/**
 * DataMantis - Main Stylesheet
 * =============================
 * A dark-themed, modern landing page for FieldRoutes contract optimization services.
 * 
 * Design System:
 * - Primary Color: Mantis Green (#A7E3C3, #5EE7B7)
 * - Background: Deep Navy/Slate (#0f172a, #111827, #1e293b)
 * - Typography: Inter (body), Space Grotesk (headings)
 * 
 * @version 2.0.0
 * @author DataMantis
 */

/* ==========================================================================
   Dark Mode Override Protection
   Prevents browser extensions (Dark Reader, etc.) from inverting colors
   ========================================================================== */
:root {
    color-scheme: dark;
}

/* Meta tag should be added to HTML: <meta name="color-scheme" content="dark"> */
/* Also add: <meta name="darkreader-lock"> */

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
    /* Dark Mode Palette */
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-card: #1F2937;
    --color-text: #cbd5e1;
    --color-heading: #f8fafc;
    --color-muted: #9CA3AF;
    --color-border: #374151;
    
    /* Mantis Green Palette */
    --color-primary: #A7E3C3;
    --color-primary-dark: #5EE7B7;
    --color-secondary: #1e293b;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(167, 227, 195, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-tech: 'Space Grotesk', var(--font-sans);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Easing Functions (for animations) */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 90%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.125rem; }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #111827;
    box-shadow: 0 4px 15px rgba(167, 227, 195, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 227, 195, 0.4), 0 0 0 2px rgba(167, 227, 195, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(167, 227, 195, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-heading);
    border: 2px solid var(--color-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(167, 227, 195, 0.08);
    box-shadow: var(--shadow-glow);
}

.btn-white {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
}

.btn-white:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text);
    max-width: 600px;
    margin: var(--space-6) auto 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-bg-card);
    padding: var(--space-4) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    font-family: var(--font-tech);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: none;
    gap: var(--space-8);
    font-weight: 500;
    color: var(--color-text);
    align-items: center;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    color: var(--color-heading);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

/* Mobile menu - hidden by default */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 0;
        border-bottom: 1px solid var(--color-border);
        z-index: 999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links.nav-open {
        display: flex;
        max-height: calc(100vh - 73px);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        padding: 0.5rem 0;
    }
    
    .nav-links li {
        width: 100%;
        list-style: none;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    .nav-links.nav-open li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Stagger the animations */
    .nav-links.nav-open li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.nav-open li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.nav-open li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.nav-open li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.nav-open li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.nav-open li:nth-child(6) { transition-delay: 0.3s; }
    .nav-links.nav-open li:nth-child(7) { transition-delay: 0.35s; }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--color-heading);
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid var(--color-border);
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        background-color: rgba(167, 227, 195, 0.1);
        color: var(--color-primary);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    /* Style the CTA button in mobile menu */
    .nav-links .btn.btn-primary {
        margin: 1rem 1.5rem;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-md);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 10rem 0 6rem;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 227, 195, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(167, 227, 195, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(94, 231, 183, 0.03) 0%, transparent 30%),
        linear-gradient(180deg, #1a2332 0%, #111827 100%);
    overflow: hidden;
    position: relative;
}

/* Animated grid background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(167, 227, 195, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 227, 195, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(167, 227, 195, 0.3));
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.5; 
        filter: drop-shadow(0 0 2px rgba(167, 227, 195, 0.2));
    }
    50% { 
        opacity: 1; 
        filter: drop-shadow(0 0 6px rgba(167, 227, 195, 0.5));
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    animation: fadeInUp 1s var(--ease-smooth) forwards;
    opacity: 0;
}

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

.hero-text h1 {
    line-height: 1.08;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
}

.hero-text h1 span {
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0.15;
    z-index: -1;
    border-radius: 4px;
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { opacity: 0.15; transform: scaleX(1); }
    50% { opacity: 0.25; transform: scaleX(1.02); }
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: var(--space-8);
    max-width: 480px;
    line-height: 1.7;
    animation: fadeInUp 1s var(--ease-smooth) 0.15s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-smooth) 0.3s forwards;
    opacity: 0;
}

/* Hero Background Logo */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%) rotate(12deg);
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
    animation: logoPulse 10s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) rotate(12deg) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -50%) rotate(12deg) scale(1.02); }
}

/* Hero Visual Container */
.hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s var(--ease-smooth) 0.4s forwards;
    opacity: 0;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 227, 195, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Dashboard Card (Hero Illustration) */
.dashboard-card {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    width: 100%;
    max-width: 300px;
    min-height: 380px;
    border-radius: var(--radius-lg);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px rgba(167, 227, 195, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(55, 65, 81, 0.5);
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}

.dashboard-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(167, 227, 195, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    margin-bottom: 8px;
}

.doc-logo-placeholder {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(167, 227, 195, 0.3);
    animation: logoPulseSmall 3s ease-in-out infinite;
}

@keyframes logoPulseSmall {
    0%, 100% { box-shadow: 0 4px 12px rgba(167, 227, 195, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(167, 227, 195, 0.5); }
}

.doc-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.doc-line {
    height: 10px;
    background: linear-gradient(90deg, #374151 0%, #4B5563 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transform-origin: left;
    transform: scaleX(0);
    animation: writeLine 0.8s var(--ease-smooth) forwards;
}

.doc-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.5s ease-in-out infinite;
}

.doc-line.title { 
    height: 14px; 
    margin-bottom: 8px; 
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0.9;
    animation-delay: 0.2s; 
}

.doc-line.short { width: 45%; }
.doc-line.medium { width: 75%; }
.doc-line.long { width: 100%; }

.doc-line.primary { 
    background: linear-gradient(90deg, rgba(167, 227, 195, 0.4), rgba(94, 231, 183, 0.3));
}

.doc-line:nth-child(1) { animation-delay: 0.3s; }
.doc-line:nth-child(2) { animation-delay: 0.4s; }
.doc-line:nth-child(3) { animation-delay: 0.5s; }
.doc-line:nth-child(4) { animation-delay: 0.6s; }
.doc-line:nth-child(5) { animation-delay: 0.7s; }
.doc-line:nth-child(6) { animation-delay: 0.8s; }
.doc-line:nth-child(7) { animation-delay: 0.9s; }
.doc-line:nth-child(8) { animation-delay: 1.0s; }
.doc-line:nth-child(9) { animation-delay: 1.1s; }
.doc-line:nth-child(10) { animation-delay: 1.2s; }

@keyframes writeLine {
    to { transform: scaleX(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

.doc-section-box {
    height: 50px;
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: rgba(31, 41, 55, 0.5);
}

.doc-section-box .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 0 0 6px 6px;
    animation: progressFill 2s ease-out forwards;
    animation-delay: 1.5s;
    width: 0;
}

@keyframes progressFill {
    to { width: 100%; }
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 5s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

.float-card.stats { top: 20px; right: 0px; animation-delay: 0s; }
.float-card.status { bottom: 40px; right: -10px; left: auto; animation-delay: 2s; }
.float-card.analytics { top: 60px; left: -20px; animation-delay: 1s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(-4px) rotate(-1deg); }
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(167, 227, 195, 0.3);
}

.float-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.float-card-title {
    font-weight: 700;
    font-size: 11px;
    color: white;
    letter-spacing: 0.5px;
}

.float-card-bar {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.float-card-bar::after {
    content: '';
    display: block;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
    animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {
    0%, 100% { width: 70%; }
    50% { width: 90%; }
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.mini-chart-bar {
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: chartBarGrow 1.5s ease-out forwards;
    opacity: 0.7;
}

.mini-chart-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.mini-chart-bar:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.mini-chart-bar:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.mini-chart-bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.mini-chart-bar:nth-child(5) { height: 60%; animation-delay: 0.5s; }

@keyframes chartBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* ==========================================================================
   Who We Serve Section
   ========================================================================== */
.who-we-serve {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    position: relative;
}

.who-we-serve .section-header h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.who-we-serve-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.serve-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.serve-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.serve-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.serve-support {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 7rem 0;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 227, 195, 0.2), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    align-items: stretch;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #1e293b 0%, #1a2332 100%);
    border: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(167, 227, 195, 0.1);
    border-color: rgba(167, 227, 195, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(167, 227, 195, 0.15) 0%, rgba(94, 231, 183, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(167, 227, 195, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(167, 227, 195, 0.2);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.feature-card h3 {
    margin-bottom: var(--space-4);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Comparison / Transformation Section
   ========================================================================== */
.comparison-section {
    padding: 6rem 0;
    background-color: var(--color-bg-card);
    overflow: hidden;
}

.before-after-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .before-after-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.before-column,
.after-column {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg);
}

.before-column {
    border: 1px solid var(--color-border);
}

.after-column {
    border: 1px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(167, 227, 195, 0.05) 0%, var(--color-bg) 100%);
}

.before-column h3,
.after-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.after-column h3 {
    color: var(--color-primary);
}

.before-column ul,
.after-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.before-column li,
.after-column li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.before-column li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-size: 0.85rem;
}

.after-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.comparison-footer-note {
    text-align: center;
    color: var(--color-muted);
    font-size: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comparison-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
    position: relative;
}

.contract-stages {
    display: flex;
    width: 100%;
    gap: var(--space-6);
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.contract-stage {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    transition: all 0.5s ease;
}

@media (max-width: 768px) {
    .contract-stages {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    .contract-stage {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    /* Order: Before (1), Button (2), After (3) */
    #stage-before {
        order: 1;
    }
    
    .action-stage {
        order: 2;
    }
    
    #stage-after {
        order: 3;
    }
}

.stage-label {
    color: var(--color-muted);
    text-align: center;
    margin-bottom: var(--space-4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.stage-label-optimized {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .stage-label {
        font-size: 0.7rem;
        margin-bottom: var(--space-2);
    }
}

.action-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 200px;
    z-index: 20;
}

@media (max-width: 768px) {
    .action-stage {
        padding: var(--space-4) 0;
        width: 100%;
    }
}

.optimize-button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    box-shadow: 0 0 20px rgba(167, 227, 195, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    animation: pulseHintWithScale 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .optimize-button {
        /* Full-width rectangle on mobile */
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        animation: pulseHintMobile 2s ease-in-out infinite;
    }
    
    .optimize-button svg {
        width: 20px;
        height: 20px;
    }
    
    .optimize-button::before {
        display: none;
    }
    
    .optimize-button::after {
        position: static;
        transform: none;
        font-size: 0.9rem;
        font-weight: 600;
        opacity: 1;
        animation: none;
        content: 'Tap to Transform';
    }
    
    .optimize-button.rotated::after {
        content: 'Tap to Revert';
    }
    
    .optimize-button:hover {
        transform: none;
    }
    
    .optimize-button.rotated {
        animation: pulseHintMobileGrey 2s ease-in-out infinite;
    }
    
    .optimize-button.btn-revert::after {
        content: 'Tap to Revert';
    }
}

@keyframes pulseHintMobile {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(167, 227, 195, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(167, 227, 195, 0.5);
    }
}

@keyframes pulseHintMobileGrey {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(107, 114, 128, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(107, 114, 128, 0.4);
    }
}

/* Rotated state (after optimization) */
.optimize-button.rotated {
    animation: pulseHintRotated 2s ease-in-out infinite;
}

.optimize-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(167, 227, 195, 0.4);
    animation: rotateBorder 8s linear infinite;
}

.optimize-button::after {
    content: 'Click!';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.8;
    white-space: nowrap;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(167, 227, 195, 0.4);
    }
    50% { 
        box-shadow: 0 0 35px rgba(167, 227, 195, 0.7);
    }
}

@keyframes pulseHintWithScale {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(167, 227, 195, 0.4);
        transform: scale(1) rotate(0deg);
    }
    50% { 
        box-shadow: 0 0 35px rgba(167, 227, 195, 0.7);
        transform: scale(1.05) rotate(0deg);
    }
}

@keyframes pulseHintRotated {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(167, 227, 195, 0.4);
        transform: scale(1) rotate(180deg);
    }
    50% { 
        box-shadow: 0 0 35px rgba(167, 227, 195, 0.7);
        transform: scale(1.05) rotate(180deg);
    }
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.optimize-button:hover {
    animation: none;
    transform: scale(1.15) rotate(0deg);
    box-shadow: 0 0 40px rgba(167, 227, 195, 0.8);
}

.optimize-button.rotated:hover {
    animation: none;
    transform: scale(1.15) rotate(180deg);
}

.optimize-button:hover::before {
    border-color: rgba(167, 227, 195, 0.8);
    animation-duration: 2s;
}

.optimize-button:hover::after {
    opacity: 0;
}

.optimize-button svg {
    color: #111827;
    transition: transform 0.3s ease;
}

.optimize-button:hover svg {
    transform: translateX(3px);
}

/* Revert Button State - Dull & Grey */
.optimize-button.btn-revert {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    box-shadow: 0 0 15px rgba(107, 114, 128, 0.3);
    animation: pulseHintGrey 2s ease-in-out infinite;
}

.optimize-button.btn-revert::before {
    border-color: rgba(107, 114, 128, 0.3);
}

.optimize-button.btn-revert::after {
    content: 'Revert';
    color: #9CA3AF;
}

.optimize-button.btn-revert:hover {
    animation: none;
    box-shadow: 0 0 25px rgba(107, 114, 128, 0.5);
    transform: scale(1.1) rotate(180deg);
}

.optimize-button.btn-revert:hover svg {
    transform: translateX(-3px);
}

@keyframes pulseHintGrey {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(107, 114, 128, 0.3);
        transform: scale(1) rotate(180deg);
    }
    50% { 
        box-shadow: 0 0 25px rgba(107, 114, 128, 0.5);
        transform: scale(1.03) rotate(180deg);
    }
}

/* Default Theme (Before) Contract */
.contract-preview.default-theme {
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 520px;
    position: relative;
    border: 1px solid #ccc;
    font-size: 10px;
    display: flex;
    flex-direction: column;
}

.source-header {
    border-bottom: 2px solid #006633;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.source-header h1 {
    color: #006633;
    font-size: 16px;
    margin: 0;
    font-family: Arial, sans-serif;
}

.source-header-info {
    font-size: 9px;
    color: #666;
    margin-top: 2px;
}

.source-section {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 8px;
}

.source-section h3 {
    color: #006633;
    margin: 0 0 4px 0;
    font-size: 12px;
    border-bottom: 1px solid #ccc;
}

.source-content {
    font-size: 10px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.source-content-small {
    font-size: 9px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.source-pests h3 {
    background: #eee;
    padding: 4px;
    margin: 0 0 8px 0;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.source-legal {
    border: 1px solid #ccc;
    padding: 8px;
    background: #f9f9f9;
    font-size: 9px;
    font-family: Arial, sans-serif;
    color: #666;
}

/* Modern Theme (After) Contract */
.contract-preview.modern-theme {
    background: var(--theme-bg, white);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    height: 520px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    opacity: 0.4;
    filter: blur(2px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
    display: flex;
    flex-direction: column;
}

/* Theme Variables */
.modern-theme {
    --theme-radius: 8px;
    --theme-border-width: 1px;
    --theme-border-style: solid;
    --theme-border-color: #e5e7eb;
    --theme-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --theme-header-align: space-between;
    --theme-text-align: left;
    --theme-font-weight-head: 800;
}

.theme-apex { 
    --theme-primary: #00a6d6; 
    --theme-dark: #1a1a3e; 
    --theme-bg: #ffffff; 
    --theme-text: #1a1a3e; 
    --theme-accent-bg: #f3f4f6;
}

.theme-matrixx { 
    --theme-primary: #8b5cf6; 
    --theme-dark: #4c1d95; 
    --theme-bg: #ffffff; 
    --theme-text: #2e1065; 
    --theme-accent-bg: #f5f3ff;
    --theme-radius: 24px;
    --theme-header-align: center;
    --theme-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
    --theme-border-color: #ddd6fe;
}

.theme-eco { 
    --theme-primary: #10b981; 
    --theme-dark: #064e3b; 
    --theme-bg: #f0fdf4; 
    --theme-text: #064e3b; 
    --theme-accent-bg: #ffffff;
    --theme-radius: 12px;
    --theme-border-width: 0px;
    --theme-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.theme-industrial { 
    --theme-primary: #f59e0b; 
    --theme-dark: #111827; 
    --theme-bg: #fffbeb; 
    --theme-text: #111827; 
    --theme-accent-bg: #ffffff;
    --theme-radius: 0px;
    --theme-border-width: 2px;
    --theme-border-color: #111827;
    --theme-shadow: 6px 6px 0px rgba(0, 0, 0, 1);
    --theme-header-align: flex-start;
    --theme-font-weight-head: 900;
}

.theme-corporate { 
    --theme-primary: #3b82f6; 
    --theme-dark: #1e3a8a; 
    --theme-bg: #f8fafc; 
    --theme-text: #1e293b; 
    --theme-accent-bg: #e2e8f0;
    --theme-radius: 2px;
    --theme-shadow: none;
    --theme-header-align: center;
    --theme-border-color: #cbd5e1;
}

/* Contract Header */
.contract-header {
    background: var(--theme-dark, #1a1a3e);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: var(--theme-header-align, space-between);
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s;
}

.company-header {
    font-weight: var(--theme-font-weight-head, 800);
    font-size: 20px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: inherit;
}

.company-logo {
    width: 20px;
    height: 20px;
    background: var(--theme-primary, #00a6d6);
    border-radius: 50%;
}

.company-name {
    color: white;
}

.company-accent {
    color: var(--theme-primary, #00a6d6);
}

.company-address {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 4px;
}

.contract-badge {
    text-align: right;
    font-size: 9px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Contract Body */
.contract-body {
    padding: 20px;
}

.contract-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.contract-card {
    border: var(--theme-border-width, 1px) var(--theme-border-style, solid) var(--theme-border-color, #e5e7eb);
    border-radius: var(--theme-radius, 8px);
    overflow: hidden;
    background: white;
    box-shadow: var(--theme-shadow, none);
}

.target-element {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s;
}

.card-header {
    background: var(--theme-accent-bg, #f3f4f6);
    padding: 6px 10px;
    font-weight: 700;
    color: var(--theme-text, #1a1a3e);
    font-size: 9px;
    text-transform: uppercase;
}

.card-content {
    padding: 10px;
}

.client-name {
    font-size: 11px;
    color: var(--theme-text, #1a1a3e);
}

.client-address {
    color: #6b7280;
    font-size: 10px;
}

.client-email {
    color: var(--theme-primary, #00a6d6);
    font-size: 9px;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.price-row-main {
    border-top: 1px solid #f3f4f6;
    padding-top: 4px;
}

.price-label {
    font-size: 10px;
    color: #6b7280;
}

.price-value {
    font-size: 11px;
    color: var(--theme-text, #1a1a3e);
}

.price-value-main {
    font-size: 14px;
    color: var(--theme-primary, #00a6d6);
}

.card-content-text {
    font-size: 9px;
    color: #6b7280;
    line-height: 1.5;
}

/* Pests Grid */
.pests-header {
    background: var(--theme-dark, #1a1a3e);
    color: white;
    padding: 5px;
    text-align: center;
    font-weight: 700;
    border-radius: var(--theme-radius, 4px) var(--theme-radius, 4px) 0 0;
    font-size: 9px;
    letter-spacing: 1px;
}

.pests-grid {
    border: var(--theme-border-width, 1px) var(--theme-border-style, solid) var(--theme-border-color, #e5e7eb);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 9px;
    background: white;
    border-top: none;
}

.pest-item {
    background: var(--theme-accent-bg, #f0f9ff);
    padding: 4px;
    border-radius: var(--theme-radius, 4px);
    color: var(--theme-dark, #0369a1);
}

/* Target Elements */
.target-legal {
    border-top: 2px solid var(--theme-primary, #00a6d6);
    padding-top: 12px;
    font-size: 8px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 12px;
}

.target-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 8px;
    color: var(--theme-primary, #00a6d6);
    font-weight: 600;
}

.optimization-complete {
    text-align: center;
    color: #9ca3af;
    font-size: 9px;
    margin-top: 20px;
}

/* Theme Layout Overrides */
.theme-matrixx .contract-header,
.theme-corporate .contract-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px;
}

.theme-industrial .contract-card div:first-child,
.theme-industrial .company-name {
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
    padding: 7rem 0;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 227, 195, 0.2), transparent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.pricing-card {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(55, 65, 81, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: 
        0 0 30px rgba(167, 227, 195, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #111827;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(167, 227, 195, 0.3);
}

.pricing-header {
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-8);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0;
}

.price-subtext {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: var(--space-2);
}

.turnaround {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: var(--space-4);
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}

.pricing-features {
    margin-bottom: var(--space-8);
    flex: 1;
}

.pricing-features li {
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.95rem;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Add-On Services */
.addons-container {
    margin-top: 5rem;
    padding: var(--space-12);
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.5) 0%, rgba(26, 35, 50, 0.5) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.addons-container h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.addons-subtitle {
    color: var(--color-text);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: var(--space-8);
    opacity: 0.8;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 900px) {
    .addons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .addon-card-featured {
        grid-column: span 4;
    }
}

@media (max-width: 600px) {
    .addons-container {
        padding: var(--space-6);
        margin-top: 3rem;
        border-radius: var(--radius-lg);
    }
    .addons-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .addon-card-featured {
        grid-column: span 1;
    }
}

.addon-card {
    background: linear-gradient(145deg, #1a2332 0%, #151c28 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(55, 65, 81, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    transition: all var(--transition-base);
    min-height: 80px;
}

.addon-card:hover {
    border-color: rgba(167, 227, 195, 0.3);
    transform: translateY(-2px);
}

.addon-card-featured {
    grid-column: span 2;
    border-color: rgba(167, 227, 195, 0.2);
    flex-direction: row;
    align-items: flex-start;
    min-height: auto;
}

@media (max-width: 600px) {
    .addon-card {
        padding: 1rem 1.25rem;
        min-height: 70px;
    }
    .addon-card-featured {
        flex-direction: column;
        padding: 1.25rem;
    }
    .addon-card-featured .addon-icon {
        margin-bottom: 0.75rem;
    }
}

.addon-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111827;
    font-size: 14px;
}

.addon-info {
    flex: 1;
    min-width: 0;
}

.addon-info h4 {
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
    font-weight: 600;
    line-height: 1.3;
}

.addon-info p {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .addon-info h4 {
        font-size: 0.9rem;
    }
    .addon-info p {
        font-size: 0.75rem;
    }
}

.addon-price-line {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem !important;
}

.addon-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.addon-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text);
}

.addon-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.addon-footer {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-style: italic;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.addon-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.addon-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-muted);
}

@media (max-width: 600px) {
    .addon-price {
        font-size: 1rem;
    }
}

/* Legal Disclaimer */
.legal-disclaimer {
    margin-top: var(--space-16);
    padding: var(--space-6);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    background: rgba(167, 227, 195, 0.05);
    text-align: center;
}

.legal-disclaimer h4 {
    color: var(--color-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.legal-disclaimer p {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
    padding: 7rem 0;
    background: linear-gradient(180deg, #151e2e 0%, #111827 100%);
    position: relative;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin-top: var(--space-16);
    position: relative;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .steps-container::before {
        content: '';
        position: absolute;
        top: 28px;
        left: 80px;
        right: 80px;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), rgba(167, 227, 195, 0.3), var(--color-primary));
        z-index: 0;
        opacity: 0.4;
    }
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 var(--space-6);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--space-6);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(167, 227, 195, 0.15);
    transition: all var(--transition-base);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(167, 227, 195, 0.25);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-3);
}

.step p {
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-footnotes {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.process-footnotes p {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 7rem 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(167, 227, 195, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--color-heading);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 227, 195, 0.3), transparent);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.brand-light {
    font-weight: 400;
    color: var(--color-muted);
}

.brand-accent {
    color: var(--color-primary);
    font-weight: 700;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: var(--space-8);
    color: var(--color-text);
    line-height: 1.7;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: var(--space-8);
}

.cta-email {
    margin-top: var(--space-6);
    font-size: 0.95rem;
    color: var(--color-muted);
}

.cta-email a {
    color: var(--color-primary);
    text-decoration: none;
}

.cta-email a:hover {
    text-decoration: underline;
}

.cta-form {
    display: flex;
    gap: var(--space-3);
    flex-direction: column;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-form {
        flex-direction: row;
    }
}

.cta-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: linear-gradient(145deg, var(--color-bg-card) 0%, #1a2332 100%);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-base);
}

.cta-input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.cta-input::placeholder {
    color: #6B7280;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0f1523;
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-bg-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--color-heading);
    font-size: 1.25rem;
}

.footer-logo img {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
    font-size: 0.875rem;
    color: var(--color-text);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-social svg {
    transition: filter 0.2s ease;
}

.footer-social a:hover svg {
    filter: drop-shadow(0 0 6px rgba(167, 227, 195, 0.5));
}

/* ==========================================================================
   Playable Bouncing Logo (Easter Egg)
   ========================================================================== */

.playable-logo {
    position: fixed;
    z-index: 9999;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
    filter: drop-shadow(0 10px 30px rgba(167, 227, 195, 0.4));
    transition: filter 0.2s ease;
}

.playable-logo img {
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.playable-logo:hover {
    filter: drop-shadow(0 10px 40px rgba(167, 227, 195, 0.6));
}

.playable-logo.grabbing {
    cursor: grabbing;
    filter: drop-shadow(0 5px 20px rgba(167, 227, 195, 0.7));
}

/* Make nav logo hint it's clickable */
.header .logo img {
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.header .logo:hover img {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 15px rgba(167, 227, 195, 0.5));
}

/* Subtle bounce hint animation for nav logo */
@keyframes logoHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.header .logo img {
    animation: logoHint 3s ease-in-out infinite;
}

.header .logo:hover img {
    animation: none;
}

/* ==========================================================================
   Animation Utilities (for Comparison Section JS)
   ========================================================================== */
@keyframes particleFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(167, 227, 195, 0.3); }
    50% { box-shadow: 0 0 40px rgba(167, 227, 195, 0.6), 0 0 60px rgba(167, 227, 195, 0.3); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes dataStream {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.optimizing .contract-preview.default-theme {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.data-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

/* Grey particles for revert animation */
.data-particle.particle-grey {
    background: #6B7280;
    box-shadow: 0 0 6px rgba(107, 114, 128, 0.6), 0 0 12px rgba(75, 85, 99, 0.4);
    width: 4px;
    height: 4px;
}

/* Grey glow trail for revert animation */
.glow-trail.trail-grey {
    background: linear-gradient(90deg, transparent, rgba(107, 114, 128, 0.4), transparent);
    height: 2px;
}

/* Grey flying element */
.flying-element.flying-element-grey {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Reverting state wrapper */
.comparison-wrapper.reverting {
    filter: saturate(0.3);
}

.comparison-wrapper.reverting::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(55, 65, 81, 0.1) 100%);
    pointer-events: none;
    z-index: 5;
}

.flying-element {
    position: fixed;
    z-index: 1500;
    pointer-events: none;
    will-change: transform, opacity;
}

.glow-trail {
    position: fixed;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    height: 2px;
    pointer-events: none;
    z-index: 1400;
    opacity: 0.6;
    filter: blur(1px);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .header,
    .hero-visual,
    .comparison-section,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

