/* ========================================
   VASLEVI - Award-Winning Design 2024
   Modern Financial Newsletter Landing Page
   ======================================== */

/* ========================================
   Anti-bot Honeypot Field
   ======================================== */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
     Shopify BuyButton modal: prevent scroll jump
     ======================================== */

/*
    BuyButton.js toggles `body.is-active` (and `shopify-buy-modal-is-active`) when the modal opens.
    On small screens, the default CSS uses `position: fixed` on `body.is-active`, which can
    reset the scroll position and feel like a "jump to top".
*/
body.is-active {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        overflow: hidden !important;
        height: auto !important;
}

html.shopify-buy-modal-is-active,
body.shopify-buy-modal-is-active {
        height: auto !important;
        overflow: hidden !important;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #0f172a;
    
    --accent-green: #34d399;
    --accent-purple: #93c5fd;
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
    
    /* Typography (Tailwind default: font-sans) */
    --font-primary: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Fixed navbar height (used to offset fixed hero background image) */
    --nav-height: 96px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 60px rgba(96, 165, 250, 0.4);
    --shadow-glow-green: 0 0 60px rgba(52, 211, 153, 0.4);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-950);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--primary-500);
    color: white;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-600);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -20px) scale(1.05);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-400);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(100vh) scale(0);
    --particle-alpha: 0.6;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: var(--particle-alpha);
    }
    90% {
        opacity: var(--particle-alpha);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out-expo);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out-expo), width 0.3s, height 0.3s, border-color 0.3s;
}

/* Custom cursor disabled (use system cursor) */
.cursor-dot,
.cursor-outline {
    display: none !important;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--primary-400);
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-lg) var(--space-xl);
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md) var(--space-xl);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0;
    transition: transform 0.3s var(--ease-out-back);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: white;
}

.logo-accent {
    color: var(--primary-400);
}

.logo-dot {
    color: var(--primary-300);
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: var(--space-2xl);
}

.nav-social-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-link.nav-social {
    padding: calc(var(--space-sm) * 0.75);
    line-height: 0;
}

.nav-link.nav-social::after {
    display: none;
}

.nav-link {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 101;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.98);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-link.mobile-social {
    font-size: 1rem;
    line-height: 0;
    padding: 10px;
}

.mobile-link.mobile-social .social-icon {
    width: 28px;
    height: 28px;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-link:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-link:nth-child(8) { transition-delay: 0.45s; }

.mobile-link:hover {
    color: var(--primary-400);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px var(--space-xl) var(--space-3xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: fixed;
    top: var(--nav-height);
    left: 0;
    height: calc(100vh - var(--nav-height));
    width: min(560px, 48vw);
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::before {
        /* Keep the hero image pinned to the bottom-left on small screens */
        background-position: left bottom;
        bottom: 0;
        top: auto;
        height: 100vh;
    }
}

@media (max-width: 1024px) {
    .hero::before {
        background-position: left bottom;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-200);
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    color: white;
}

.title-highlight {
    display: inline-block;
    position: relative;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    opacity: 0.7;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary-300);
    z-index: 2;
}

.email-input {
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s var(--ease-out-expo);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.input-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: var(--gradient-accent);
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s;
}

.email-input:focus ~ .input-glow {
    opacity: 0.3;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text, .btn-icon, .btn-success {
    display: flex;
    align-items: center;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-success {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
}

.btn-success svg {
    width: 24px;
    height: 24px;
}

.submit-btn.success .btn-text,
.submit-btn.success .btn-icon {
    opacity: 0;
    transform: scale(0.8);
}

.submit-btn.success .btn-success {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.submit-btn.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

@media (max-width: 600px) {
    .subscribe-form {
        flex-direction: column;
    }
    
    .submit-btn {
        justify-content: center;
    }
}

/* Hero Note */
.hero-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-3xl);
}

.note-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.25s var(--ease-out-expo);
}

.hero-scroll-cta:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
    transform: translateY(-1px);
}

.hero-scroll-cta:focus {
    outline: none;
}

.hero-scroll-cta:focus-visible {
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.hero-scroll-cta-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-400);
    animation: hero-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-400);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .stats-row {
        gap: var(--space-xl);
    }

    .hero-scroll-cta {
        font-size: 0.9rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: float-gentle 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-in {
    opacity: 0;
    transform: translateY(30px);
}

.animate-in.visible {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */

.calculator-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) var(--space-xl);
}

@media (max-width: 600px) {
    .calculator-section {
        padding: var(--space-3xl) var(--space-md);
    }
}

@media (max-width: 420px) {
    .calculator-section {
        padding: var(--space-3xl) var(--space-sm);
    }
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-300);
    margin-bottom: var(--space-lg);
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-400);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Card */
.calculator-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-3xl);
    padding: var(--space-2xl);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .calculator-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 420px) {
    .calculator-card {
        padding: var(--space-lg);
        border-radius: var(--radius-2xl);
    }
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
}

@media (max-width: 968px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Input Panel */
.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs);
    background: rgba(30, 58, 138, 0.3);
    border-radius: var(--radius-xl);
    position: relative;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    z-index: 2;
}

.mode-btn svg {
    width: 18px;
    height: 18px;
}

.mode-btn.active {
    color: white;
}

.mode-indicator {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    width: calc(50% - var(--space-xs));
    height: calc(100% - var(--space-xs) * 2);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out-expo);
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.mode-switcher[data-mode="target"] .mode-indicator {
    transform: translateX(calc(100% + var(--space-xs)));
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-group.small {
    flex: 1;
}

.input-group.hidden {
    display: none;
}

.input-row {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 520px) {
    .input-row {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .stepper-btn {
        width: 40px;
        height: 40px;
    }
    .stepper-value {
        min-height: 56px;
    }
}

.input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.label-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.label-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-300);
}

/* Calculator number inputs */
.number-input-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-lg);
    min-height: 60px;
}

.calc-number-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    -moz-appearance: textfield;
    appearance: textfield;
    caret-color: rgba(255, 255, 255, 0.9);
}

.calc-number-input:focus,
.calc-number-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.calc-number-input::-webkit-outer-spin-button,
.calc-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-suffix {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.number-input-container:focus-within {
    border-color: rgba(96, 165, 250, 0.15);
    box-shadow: none;
}

/* Fancy Slider */
.slider-container {
    position: relative;
    height: 24px;
}

.fancy-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
    cursor: pointer;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

.fancy-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
    border: 0;
}

.fancy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
    margin-top: -5px;
    transition: transform 0.15s var(--ease-out-expo);
}

.fancy-slider:active::-webkit-slider-thumb {
    transform: scale(0.95);
}

.fancy-slider::-moz-range-track {
    height: 8px;
    background: transparent;
    border: 0;
}

.fancy-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
    transition: transform 0.15s var(--ease-out-expo);
}

.fancy-slider:active::-moz-range-thumb {
    transform: scale(0.95);
}

.fancy-slider::-moz-focus-outer {
    border: 0;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background: rgba(30, 58, 138, 0.5);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.slider-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 0.28s var(--ease-out-expo);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

@media (max-width: 768px) {
    /* Mobile performance: avoid expensive blending/filters */
    .noise-overlay,
    .grid-overlay {
        display: none;
    }

    .gradient-orb {
        animation: none;
        filter: blur(80px);
        opacity: 0.35;
    }

    .nav.scrolled {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.95);
    }

    .mobile-menu {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.98);
    }
}

/* Stepper */
.stepper {
    display: flex;
    align-items: stretch;
    gap: var(--space-sm);
}

.stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: auto;
    min-height: 60px;
    background: rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary-300);
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
}

.stepper-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: var(--primary-400);
    color: white;
}

.stepper-btn:active {
    transform: scale(0.95);
}

.stepper-btn svg {
    width: 16px;
    height: 16px;
}

.stepper-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-lg);
    min-height: 60px;
}

.stepper-value span:first-child {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stepper-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Results Panel */
.calc-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Result Cards */
.result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

/* Make result cards adapt earlier (prevents crowding/truncation on smaller desktops) */
@media (max-width: 1100px) {
    .result-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 600px) {
    .result-cards {
        grid-template-columns: 1fr;
    }
}

.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: var(--space-lg);
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.result-head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.result-head .result-label {
    margin: 0;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
}

.result-card.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

.result-card.profit {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: rgba(52, 211, 153, 0.25);
}

.result-card.profit .result-icon {
    color: var(--accent-green);
}

.result-card.profit .result-value {
    color: var(--accent-green);
}

.result-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: var(--primary-400);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-400);
    flex-shrink: 0;
}

.result-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 480px) {
    .result-card {
        padding: var(--space-md);
        gap: 8px;
    }
    
    .result-icon {
        width: 32px;
        height: 32px;
    }
    
    .result-icon svg {
        width: 20px;
        height: 20px;
    }
}


.result-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-xs);
}

.result-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

/* .result-card.primary .result-value {
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
} */

@media (max-width: 420px) {
    /* On very small screens, allow wrapping instead of cutting off */
    .result-value {
        white-space: normal;
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    height: 300px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    padding-top: var(--space-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
}

.legend-color.balance {
    background: var(--primary-400);
}

.legend-color.invested {
    background: rgba(147, 197, 253, 0.5);
    border: 2px dashed var(--primary-300);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) var(--space-xl);
    background: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Card */
.feature-card {
    position: relative;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Feature Icon */
.feature-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-xl);
}

.feature-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--radius-xl);
    color: var(--primary-400);
    transition: all 0.4s var(--ease-out-expo);
}

.feature-icon.accent {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-green);
}

.feature-icon.special {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.2);
    color: var(--accent-purple);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover .feature-icon.accent {
    box-shadow: var(--shadow-glow-green);
}

.icon-ring {
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(96, 165, 250, 0.2);
    border-radius: var(--radius-2xl);
    animation: rotate-slow 20s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover .icon-ring {
    opacity: 1;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.icon-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.icon-particles span:nth-child(1) { top: -10px; left: 50%; }
.icon-particles span:nth-child(2) { bottom: -10px; left: 50%; }
.icon-particles span:nth-child(3) { left: -10px; top: 50%; }
.icon-particles span:nth-child(4) { right: -10px; top: 50%; }

.feature-card:hover .icon-particles span {
    opacity: 0.6;
    animation: particle-pop 0.4s var(--ease-out-back);
}

@keyframes particle-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.feature-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-400);
    transition: all 0.3s;
    cursor: pointer;
}

.feature-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.feature-link:hover {
    color: var(--primary-300);
}

.feature-link:hover svg {
    transform: translateX(4px);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) var(--space-xl);
}

.newsletter-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    text-align: center;
}

@media (max-width: 600px) {
    .newsletter-card {
        padding: var(--space-2xl) var(--space-lg);
        border-radius: var(--radius-2xl);
    }
}

@media (max-width: 420px) {
    .newsletter-card {
        padding: var(--space-xl) var(--space-md);
    }
}

.newsletter-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.newsletter-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.newsletter-orb.orb-a {
    width: 300px;
    height: 300px;
    background: var(--primary-500);
    top: -100px;
    left: -100px;
}

.newsletter-orb.orb-b {
    width: 250px;
    height: 250px;
    background: var(--accent-purple);
    bottom: -80px;
    right: -80px;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.newsletter-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

/* Newsletter Form */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

.newsletter-input-wrap {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}

.newsletter-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.newsletter-btn:hover svg {
    transform: translateX(4px);
}

/* Newsletter Button - Icon States (shared with hero button) */
.newsletter-btn .btn-text,
.newsletter-btn .btn-icon,
.newsletter-btn .btn-success {
    transition: all 0.3s var(--ease-out-expo);
}

.newsletter-btn .btn-icon svg {
    width: 18px;
    height: 18px;
}

.newsletter-btn .btn-success {
    position: absolute;
    right: var(--space-xl);
    transform: scale(0);
    opacity: 0;
}

.newsletter-btn .btn-success svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

.newsletter-btn {
    position: relative;
}

.newsletter-btn.success .btn-text,
.newsletter-btn.success .btn-icon {
    opacity: 0;
    transform: translateX(-10px);
}

.newsletter-btn.success .btn-success {
    transform: scale(1);
    opacity: 1;
}

.newsletter-btn.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

@media (max-width: 500px) {
    .newsletter-input-wrap {
        flex-direction: column;
    }
    
    .newsletter-btn {
        justify-content: center;
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    z-index: 10;
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.footer-logo .accent {
    color: var(--primary-400);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link.footer-social {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: var(--success);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.error {
    background: #ef4444;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
}

.toast svg {
    width: 20px;
    height: 20px;
}

/* Button loading state */
.submit-btn.loading,
.newsletter-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text::after,
.newsletter-btn.loading span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 100px;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
