:root {
    /* Color Palette */
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #6366f1;
    --color-primary-glow: rgba(99, 102, 241, 0.5);
    --color-accent: #818cf8;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 50%);
    --gradient-text: linear-gradient(135deg, #e0e7ff 0%, #818cf8 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --header-height: 80px;

    /* Effects */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a:not(.btn) {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
    color: var(--color-text);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    background-color: var(--color-accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-text {
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    color: var(--color-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.muted-text {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    opacity: 0.8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-mockup {
    max-width: 320px;
    border-radius: 40px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 255, 255, 0.05);
    /* Bezel */
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Feature Spotlights */
.feature-spotlight {
    padding: 6rem 0;
    position: relative;
}

.feature-spotlight.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.spotlight-grid.reverse {
    direction: rtl;
    /* Quick way to swap columns */
}

.spotlight-grid.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.spotlight-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.spotlight-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.app-card-mockup {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Ad-Free Section */
.ad-free-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(20, 0, 0, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.display-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.highlight-red {
    color: #f87171;
    text-shadow: 0 0 30px rgba(248, 113, 113, 0.3);
}

.lead {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-muted);
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50px;
    color: #f87171;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding-left: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* Form Grid for Name/Email */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media(max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.3);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.legal-content h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--color-text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    /* JS handles visibility class */
}

.visible {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        width: 90%;
        /* Reset to default container width */
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-grid,
    .spotlight-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .spotlight-grid.reverse {
        direction: ltr;
        /* Reset direction for stacking */
    }

    .hero-content,
    .spotlight-content {
        text-align: center;
        order: 1;
        /* Content first on mobile */
    }

    .hero-image,
    .spotlight-image {
        order: 2;
        /* Image second */
    }

    .app-mockup {
        max-width: 280px;
        transform: rotate(0deg);
        /* No rotation on mobile for cleaner look */
    }

    .hero h1 {
        font-size: 3rem;
    }

    .spotlight-content .icon-box {
        margin: 0 auto 1.5rem;
    }

    /* Restored Mobile Nav Styles */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 101;
    }

    .main-nav.active {
        display: flex;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}