/* =========================================
   Variables & Theme Setup
========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-purple: #9b2cff;
    --accent-magenta: #ff2c9c;
    --border-color: #222222;
    --glow-gradient: radial-gradient(circle at center, rgba(155, 44, 255, 0.4) 0%, rgba(5, 5, 5, 0) 70%);
    --font-base: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* =========================================
   Animations
========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.slide-up { animation: fadeInUp 0.8s ease forwards; }
.fade-in { animation: fadeIn 1.2s ease forwards; opacity: 0; }

.hover-lift {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(155, 44, 255, 0.15);
}

/* =========================================
   Navigation / Header
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
}

.btn-light {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.btn-light:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    color: var(--text-main);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(155, 44, 255, 0.5);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The Purple/Magenta Glow inspired by reference image */
.hero-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(155, 44, 255, 0.35) 0%, rgba(255, 44, 156, 0.15) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    color: var(--accent-magenta);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================================
   Features Section
========================================= */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, #050505, #0a0a0a);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.feature-img {
    width: 100%;
    aspect-ratio: 16/9; /* Requested aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #222; /* Placeholder bg if image is missing */
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Featured Product (Magic Autofill)
========================================= */
.featured-product {
    padding: 100px 0;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.product-info h2 span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.product-info ul {
    margin-bottom: 30px;
}

.product-info li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.mt-4 { margin-top: 20px; }

.product-image {
    flex: 1;
}

.glow-box {
    position: relative;
    border-radius: 16px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(155,44,255,0.2), rgba(255,44,156,0.2));
}

.glow-box img {
    width: 100%;
    aspect-ratio: 16/9; /* Requested aspect ratio */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--bg-card);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-contact p, .footer-contact a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover, .footer-contact a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .flex-row {
        flex-direction: column;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, add a hamburger menu JS toggle */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
    }
}