@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

:root {
    --primary-green: #1f9a5a;
    --secondary-green: #157f46;
    --dark-green: #0f5f34;
    --light-green: #e9f4ec;
    --accent-blue: #0f172a;
    --eco-blue: #e8f1ec;
    
    --text-primary: #0f172a;
    --text-secondary: #3f4c57;
    --text-light: #5f6b76;
    --text-hero: #0a1018;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f3f6f4;
    --bg-dark: #0f172a;
    --navbar-bg: rgba(255, 255, 255, 0.94);
    --navbar-bg-solid: rgba(255, 255, 255, 0.98);
    --navbar-border: rgba(226, 232, 240, 0.8);
    --navbar-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
    --card-border: rgba(226, 232, 240, 0.7);
    --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --feature-icon-bg: rgba(31, 154, 90, 0.12);
    --divider-highlight: rgba(226, 232, 240, 0.6);
    --hero-bg: linear-gradient(135deg, #f8fbf7 0%, #eef5ef 100%);
    --hero-overlay-1: radial-gradient(circle at 18% 15%, rgba(31, 154, 90, 0.12) 0%, transparent 55%);
    --hero-overlay-2: radial-gradient(circle at 82% 85%, rgba(15, 23, 42, 0.08) 0%, transparent 60%);
    --hero-text-primary: rgba(15, 23, 42, 0.96);
    --hero-text-secondary: rgba(15, 23, 42, 0.86);
    
    --border-color: #e2e8f0;
    --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-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 20px rgb(34 197 94 / 0.15);
    --shadow-glow-intense: 0 0 30px rgb(34 197 94 / 0.25), 0 0 60px rgb(34 197 94 / 0.1);
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --scroll-stagger-step: 0.12s;
    
    /* Fluid Typography Scale */
    --font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --font-size-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --font-size-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);
    --font-size-4xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --font-size-5xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    --font-size-6xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* Section rhythm */
    --section-padding: clamp(3.5rem, 7vw, 5.5rem);
    --section-padding-tight: clamp(2.5rem, 6vw, 4rem);
}

[data-theme="dark"] {
    --text-primary: #eef2f7;
    --text-secondary: #d5dde7;
    --text-light: #a9b6c6;
    --text-hero: #f8fafc;
    --bg-primary: #0c131f;
    --bg-secondary: #101a2a;
    --bg-dark: #020617;
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --navbar-bg-solid: rgba(15, 23, 42, 0.95);
    --navbar-border: rgba(30, 41, 59, 0.7);
    --navbar-shadow: 0 2px 30px rgba(2, 6, 23, 0.65);
    --card-border: rgba(30, 41, 59, 0.7);
    --card-shadow: 0 16px 40px rgba(2, 6, 23, 0.65);
    --feature-icon-bg: rgba(34, 197, 94, 0.22);
    --divider-highlight: rgba(59, 130, 246, 0.18);
    --hero-bg: linear-gradient(135deg, rgba(11, 21, 34, 0.98) 0%, rgba(7, 14, 26, 0.96) 100%);
    --hero-overlay-1: radial-gradient(circle at top left, rgba(34, 197, 94, 0.25) 0%, transparent 55%);
    --hero-overlay-2: radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
    --hero-text-primary: rgba(248, 250, 252, 0.95);
    --hero-text-secondary: rgba(221, 227, 235, 0.84);
}

[data-theme="dark"] .hero-title {
    text-shadow: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-feature-settings: 'liga' 1, 'kern' 1, 'cv05' 1, 'cv11' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
    font-weight: 450;
    letter-spacing: var(--tracking-normal);
    overflow-y: auto;
}

/* Accessibility Utilities */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

h1, h2, h3, .section-title, .hero-title, .nav-logo .logo-text {
    font-family: var(--font-display);
    letter-spacing: var(--tracking-tight);
    font-weight: 650;
}

.container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

section[id] {
    scroll-margin-top: clamp(84px, 12vw, 110px);
}

/* Fluid spacing system */
.section-spacing {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-spacing-sm {
    padding: clamp(2rem, 3vw, 3rem) 0;
}

.section-spacing-lg {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: none;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg-solid);
    box-shadow: var(--navbar-shadow);
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0.95;
}

.navbar.show {
    transform: translateY(0);
    opacity: 1;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, var(--divider-highlight) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.nav-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2.5vw, 2rem);
    height: clamp(60px, 8vw, 70px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    height: 32px;
    width: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.25rem);
    margin-left: auto;
    margin-right: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: var(--primary-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta.mobile-only {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    color: var(--primary-green);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    transform: translateY(-2px);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link.active {
    color: var(--primary-green);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 4px;
}

.download-btn {
    background: var(--primary-green);
    color: white !important;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: clamp(72px, 12vw, 96px) 0 clamp(32px, 6vw, 56px);
    min-height: 88vh;
    max-height: 900px;
    background:
        var(--hero-overlay-1),
        var(--hero-overlay-2),
        var(--hero-bg);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -12%;
    right: -12%;
    bottom: -20%;
    background:
        radial-gradient(circle at 25% 20%, rgba(34, 197, 94, 0.12) 0%, transparent 65%),
        radial-gradient(circle at 75% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.business-hero {
    background: linear-gradient(135deg, var(--eco-blue) 0%, rgba(34, 197, 94, 0.12) 100%);
}

.hero-container {
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: flex-start;
    justify-items: stretch;
}

.hero-content {
    max-width: clamp(300px, 50vw, 540px);
    width: 100%;
    justify-self: start;
}

.hero-visual {
    justify-self: center;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: 1.5rem;
    color: var(--hero-text-primary);
    letter-spacing: var(--tracking-tighter);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-variation-settings: 'wght' 800, 'slnt' 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .gradient-text {
    background: none;
    color: var(--hero-text-primary);
    -webkit-text-fill-color: currentColor;
}

/* Fade-in up animation for hero */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.6s ease-out forwards;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
    color: var(--hero-text-secondary);
    margin-bottom: 1.75rem;
    line-height: var(--leading-loose);
    font-weight: 450;
    letter-spacing: var(--tracking-normal);
    max-width: 36rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--primary-green);
    color: white;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 650;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-intense);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-green);
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 650;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-green);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover {
    border-color: var(--primary-green);
    color: white;
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-secondary:hover::before {
    opacity: 1;
}

.nav-cta,
.cta-primary,
.cta-secondary,
.download-btn,
button,
.faq-question {
    cursor: pointer;
}

.nav-cta:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.download-btn:focus-visible,
button:focus-visible,
.faq-question:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 4px;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 120px;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--hero-text-secondary);
    text-align: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.phone-mockup {
    position: relative;
    max-width: min(320px, 78vw);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: var(--shadow-2xl);
}

.phone-art-slot {
    display: none;
    width: 100%;
}

.phone-art-slot svg,
.phone-art-slot img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
}

.phone-mockup.has-custom-art .progressive-img {
    display: none;
}

.phone-mockup.has-custom-art .phone-art-slot {
    display: block;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.earning-bubble {
    position: absolute;
    top: 20%;
    right: -20px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 600;
    font-size: 0.82rem;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: earningSyncSequence 12s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@keyframes earningSyncSequence {
    0%, 88%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
    8%, 15% { 
        opacity: 1; 
        transform: scale(1) translateY(-5px); 
    }
    18% {
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
}

.gyro-earning {
    animation-delay: 0s;
}

.accel-earning {
    animation-delay: 4s;
}

.mag-earning {
    animation-delay: 8s;
}

.sensor-data {
    position: absolute;
    bottom: 15%;
    left: -45px;
    background: var(--accent-blue);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: sensorSequence 12s ease-in-out infinite;
}

@keyframes sensorSequence {
    0%, 88%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
    8%, 15% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    18% {
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
}

.gyro-data {
    animation-delay: 0s;
    background: var(--accent-blue);
}

.accel-data {
    animation-delay: 4s;
    background: var(--primary-green);
    top: 40%;
    left: -50px;
    bottom: auto;
}

.mag-data {
    animation-delay: 8s;
    background: #8b5cf6;
    top: 60%;
    right: -40px;
    left: auto;
    bottom: auto;
}

.sensor-indicator {
    position: absolute;
    bottom: 30%;
    left: -30px;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.features .container,
.how-it-works .container,
.faq .container {
    max-width: min(1100px, 92vw);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 750;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    line-height: var(--leading-tight);
    font-variation-settings: 'wght' 750;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 450;
    letter-spacing: var(--tracking-wide);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: stretch;
}

.feature-card {
    background: var(--bg-primary);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    touch-action: manipulation;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.feature-card:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 4px;
}

.feature-icon {
    width: clamp(3rem, 8vw, 3.5rem);
    height: clamp(3rem, 8vw, 3.5rem);
    border-radius: 0.9rem;
    background: var(--feature-icon-bg);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon svg {
    width: 60%;
    height: 60%;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 650;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-snug);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-size: var(--font-size-base);
}

[data-theme="dark"] .features {
    background: var(--bg-dark);
}

[data-theme="dark"] .how-it-works {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(7, 12, 23, 0.94));
    box-shadow: inset 0 1px 0 rgba(2, 6, 23, 0.4);
}

[data-theme="dark"] .faq {
    background: linear-gradient(180deg, rgba(13, 20, 33, 0.96), rgba(5, 10, 19, 0.94));
}

[data-theme="dark"] #early-access {
    background: linear-gradient(180deg, rgba(5, 15, 28, 0.96), rgba(2, 8, 16, 0.92));
    border-top: 1px solid rgba(59, 130, 246, 0.22);
    border-bottom: 1px solid rgba(15, 23, 42, 0.65);
    box-shadow: inset 0 1px 0 rgba(2, 6, 23, 0.4);
}

[data-theme="dark"] .hero-tag {
    background: rgba(34, 197, 94, 0.28);
    color: rgba(226, 252, 238, 0.94);
}

[data-theme="dark"] .cta-secondary {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--hero-text-primary);
}

[data-theme="dark"] .cta-secondary:hover {
    background: rgba(59, 130, 246, 0.45);
    border-color: rgba(59, 130, 246, 0.55);
}

[data-theme="dark"] .stat {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.65);
}

[data-theme="dark"] .hero-footnote {
    color: rgba(226, 232, 240, 0.75);
}

[data-theme="dark"] .stat-label {
    color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .early-access__input {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(59, 130, 246, 0.24);
    color: var(--text-primary);
}

[data-theme="dark"] .early-access__input::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

[data-theme="dark"] .early-access__button {
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.6);
}

[data-theme="dark"] .faq-item {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.65);
}

[data-theme="dark"] .faq-question:hover {
    background: rgba(34, 197, 94, 0.12);
    color: var(--text-primary);
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--eco-blue), var(--bg-secondary));
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.15);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
    max-width: min(800px, 90vw);
    margin: 0 auto;
    align-items: flex-start;
    width: 100%;
}

.step {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: var(--font-size-2xl);
    font-weight: 650;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-snug);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    font-size: var(--font-size-base);
}

/* FAQ Section */
.faq {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-secondary), var(--eco-blue));
}

.faq-container {
    max-width: min(800px, 90vw);
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
    color: var(--primary-green);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Early Access Section */
#early-access {
    background: linear-gradient(180deg, rgba(223, 245, 239, 0.9), var(--bg-primary));
    padding: var(--section-padding) clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.early-access__container {
    max-width: min(720px, 92vw);
}

.early-access__title {
    font-size: var(--font-size-4xl);
    font-weight: 750;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.early-access__subtitle {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 auto clamp(1.5rem, 4vw, 2rem);
    max-width: 48ch;
}

.early-access__form {
    display: grid;
    gap: 0.75rem;
    max-width: min(360px, 100%);
    margin: clamp(1rem, 3vw, 1.5rem) auto clamp(1.5rem, 4vw, 2rem);
}

.early-access__input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    font-size: var(--font-size-base);
    line-height: 1.4;
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.early-access__input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    outline: none;
}

.early-access__input.valid {
    border-color: var(--primary-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.early-access__input.invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.early-access__response {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: var(--font-size-sm);
    text-align: center;
    display: none;
}

.early-access__response.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--secondary-green);
}

.early-access__response.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

[data-theme="dark"] .early-access__response.success {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--primary-green);
}

[data-theme="dark"] .early-access__response.error {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.early-access__button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: var(--font-size-base);
}

.early-access__button:hover {
    background: var(--secondary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.early-access__button:active {
    transform: translateY(1px) scale(0.99);
}

.early-access__response {
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
    margin-bottom: 0;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    text-align: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-note {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.85;
    line-height: 1.7;
    max-width: 32ch;
}

.footer-cta {
    display: inline-flex;
    margin-top: 1.25rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: var(--primary-green);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* Tablet Breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: clamp(2rem, 4vw, 3rem);
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: clamp(2rem, 3vw, 2.5rem);
    }
    
    .container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .steps-container {
        gap: clamp(2.5rem, 4vw, 3rem);
    }
}

@media (min-width: 1025px) {
    .hero-container {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }

    .hero-content {
        padding-right: clamp(1rem, 3vw, 2rem);
    }

    .steps-container {
        max-width: min(820px, 80vw);
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        flex: initial;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        margin-left: 0;
        margin-right: 0;
        z-index: 99;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Ensure nav-menu is hidden by default on mobile */
    .nav-menu:not(.active) {
        visibility: hidden;
    }

    .nav-menu.active {
        visibility: visible;
    }

    .nav-actions {
        margin-left: 0;
        padding-left: 0;
        gap: 0.5rem;
    }

    .nav-menu .nav-cta.mobile-only {
        display: inline-flex;
        margin: 1rem auto;
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    /* Improve touch targets on mobile */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .theme-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    .cta-primary,
    .cta-secondary {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .faq-question {
        min-height: 48px;
        padding: 1rem;
    }

    .early-access__button {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-content {
        justify-self: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: clamp(0.75rem, 3vw, 1rem);
    }
    
    .hero-stats {
        justify-content: center;
        gap: clamp(1rem, 4vw, 1.5rem);
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
        padding: clamp(64px, 12vw, 88px) 0 clamp(28px, 8vw, 52px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: clamp(1rem, 4vw, 1.5rem);
    }

    .steps-container {
        align-items: center;
    }

    .business-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .data-sources__item {
        justify-content: center;
        text-align: left;
    }

    .business-page .hero-content {
        text-align: center;
    }

    .business-page .business-visual {
        max-width: 320px;
    }

    .download-buttons {
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: clamp(1rem, 6vw, 1.5rem);
    }
    
    .hero-stats {
        gap: clamp(0.75rem, 4vw, 1rem);
    }

    .phone-mockup {
        max-width: min(250px, 85vw);
    }

    .hero-visual {
        max-width: 340px;
    }

    #early-access {
        padding: clamp(3.5rem, 10vw, 4.5rem) clamp(1rem, 6vw, 1.5rem);
    }

    .early-access__form {
        max-width: 100%;
    }

    .business-form {
        max-width: 100%;
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    .container,
    .hero-container,
    .nav-container {
        max-width: min(1400px, 90vw);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(2.5rem, 3vw, 3rem);
    }
    
    .hero-container {
        gap: clamp(4rem, 5vw, 5rem);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

/* Enhanced Hover Effects for Stats */
.hero-stats .stat {
    transition: all 0.3s ease;
    cursor: default;
}

.hero-stats .stat:hover {
    transform: translateY(-4px);
}

.hero-stats .stat:hover .stat-number {
    color: var(--secondary-green);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

/* Enhanced Floating Elements */
.floating-elements::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-elements::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -25px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Additional sensor indicators */
.sensor-indicator::before {
    content: '';
    position: absolute;
    top: 40%;
    right: -50px;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-blue));
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Loading states for download buttons */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
    .cta-primary,
    .cta-secondary,
    .download-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-top-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Enhanced mobile hero spacing */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 100px;
    }
    
    /* Mobile floating elements optimization */
    .earning-bubble {
        right: -10px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .sensor-indicator {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    .floating-elements::before {
        left: -25px;
        width: 6px;
        height: 6px;
    }
    
    .floating-elements::after {
        right: -15px;
        width: 5px;
        height: 5px;
    }
    
    .sensor-indicator::before {
        right: -30px;
        width: 8px;
        height: 8px;
    }
}

/* Typography Enhancements */
.hero-subtitle {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.section-subtitle {
    line-height: 1.7;
    letter-spacing: 0.005em;
}

.feature-description {
    line-height: 1.7;
    letter-spacing: 0.002em;
}

/* Section Background Patterns and Transitions */
.features {
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.how-it-works {
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(34, 197, 94, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(34, 197, 94, 0.02) 25%, transparent 25%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
}

/* Section Fade Transitions - Disabled */
section {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive Button Press Animations */
.cta-primary,
.cta-secondary,
.download-btn,
.scroll-top-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.cta-primary:active {
    transform: translateY(1px) scale(0.98);
}

.cta-secondary:active {
    transform: translateY(1px) scale(0.98);
}

.download-btn:active {
    transform: translateY(1px) scale(0.98);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Easter Egg Stats Interactions */
.stat {
    position: relative;
    cursor: pointer;
}

.stat.clicked {
    animation: statBounce 0.6s ease-in-out;
}

@keyframes statBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.1); }
    50% { transform: translateY(-5px) scale(1.05); }
    75% { transform: translateY(-8px) scale(1.08); }
}

.stat::after {
    content: '+';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.stat.sparkle::after {
    opacity: 1;
    animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
    0% { transform: translateX(-50%) translateY(0) scale(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-30px) scale(1.5); opacity: 0; }
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 2em;
    border-radius: 8px;
    margin-bottom: 1em;
    width: 60%;
}

.skeleton-card {
    height: 200px;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Progressive Image Loading - Disabled */
.progressive-img {
    position: relative;
    overflow: hidden;
}

.credits-overlay {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    color: #22c55e;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.progressive-img img {
    filter: none;
}

/* Enhanced Feature Card Animations */
.feature-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35), 0 12px 20px rgba(34, 197, 94, 0.18);
}

.feature-card:hover .feature-title {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

/* Improved Mobile Touch Interactions */
@media (max-width: 768px) {
    .stat:active {
        transform: scale(0.95);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .cta-primary:active,
    .cta-secondary:active {
        transform: scale(0.96);
    }
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.hero-visual,
.floating-elements,
.feature-card,
.phone-mockup {
    will-change: transform;
}

    scroll-behavior: smooth;
}

/* Enhanced loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax {
        transform: none !important;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 120px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
    padding-left: 1rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--primary-green);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
}
.business-intro {
    max-width: min(700px, 90vw);
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    text-align: center;
    line-height: 1.7;
    color: var(--text-secondary);
}

.business-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.business-actions .cta-secondary {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.business-actions .cta-secondary:hover {
    color: #fff;
}

.code-block {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 197, 94, 0.08));
    border-radius: 0.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    line-height: 1.6;
}

.code-block code {
    display: block;
    white-space: pre;
}

.dashboard-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: clamp(2rem, 5vw, 3rem);
}

.dashboard-card {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-card h3 {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-family: inherit;
    letter-spacing: var(--tracking-normal);
    font-weight: 600;
}

.dashboard-metric {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-green);
}

.business-visual {
    width: min(360px, 80vw);
    align-self: stretch;
}

.dashboard-placeholder {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.08));
    border-radius: 0.75rem;
    min-height: 200px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dashboard-table th,
.dashboard-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.dashboard-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.business-form {
    max-width: min(520px, 90vw);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.business-form label {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.business-form input,
.business-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--card-border);
    font-size: var(--font-size-base);
    line-height: 1.5;
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.business-form textarea {
    min-height: 160px;
    resize: vertical;
}

.business-form input:focus,
.business-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    outline: none;
}

.business-form button {
    justify-self: start;
}

.business-page .hero {
    padding: clamp(90px, 12vw, 130px) 0 clamp(70px, 10vw, 90px);
    background: linear-gradient(140deg, rgba(230, 244, 241, 0.9) 0%, rgba(34, 197, 94, 0.08) 55%, rgba(15, 23, 42, 0.03) 100%);
}

.business-page .hero-container {
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.business-page .hero-content {
    text-align: left;
    justify-self: stretch;
}

.business-page .hero-title {
    margin-bottom: 0.75rem;
}

.business-page .hero-subtitle {
    max-width: 34rem;
}

.business-page .hero-visual {
    justify-self: stretch;
    display: flex;
    justify-content: center;
}

.business-page .business-visual {
    max-width: 360px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
    margin: clamp(3rem, 6vw, 4rem) auto;
}

/* Demo Dashboard Callout */
.demo-callout {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.demo-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.demo-callout-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.demo-callout-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-callout-subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.cta-large {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.cta-large:hover {
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
}

.demo-callout-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

[data-theme="dark"] .demo-callout {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

[data-theme="dark"] .demo-callout::before {
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

[data-theme="dark"] .demo-callout-title {
    background: none;
    color: #e6f4ee;
    -webkit-text-fill-color: currentColor;
}

[data-theme="dark"] .demo-callout-subtitle {
    color: rgba(226, 236, 243, 0.9);
}

[data-theme="dark"] .demo-callout-note {
    color: rgba(226, 236, 243, 0.72);
}

.data-sources {
    padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    background: var(--bg-primary);
}

.data-sources h3 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.data-sources p {
    max-width: min(640px, 90vw);
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

.data-sources__list {
    list-style: none;
    padding: 0;
    margin: clamp(1.25rem, 4vw, 2rem) auto 0;
    display: grid;
    gap: 0.85rem;
    max-width: min(640px, 92vw);
}

.data-sources__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.data-sources__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(59, 130, 246, 0.18));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.data-sources__item strong {
    color: var(--text-primary);
}

.data-sources__note {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    font-size: 0.9rem;
    color: var(--text-light);
}

.business-page .features .feature-card {
    text-align: left;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 70%), var(--bg-primary);
}

.business-page .features .feature-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.business-page .features .feature-title {
    font-size: var(--font-size-2xl);
}

.business-page .features .feature-description {
    max-width: 32rem;
}

@media (min-width: 1025px) {
    .business-page .hero-container {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .data-sources__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .data-sources__item {
        justify-content: flex-start;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: var(--primary-green);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hero-footnote {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--hero-text-secondary);
    max-width: 420px;
}

.business-page .dashboard-metric {
    font-weight: 700;
    font-size: 1.8rem;
}

.business-page .business-visual h3 {
    margin-bottom: 0.75rem;
    font-family: inherit;
    letter-spacing: var(--tracking-normal);
    font-weight: 600;
}

.business-page .business-visual .feature-description {
    font-size: 0.95rem;
}

/* API Status Badge */
.api-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-green);
}

.status-dot-live {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Earnings Calculator */
.earnings-calculator {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--card-shadow);
    margin: clamp(2rem, 4vw, 3rem) 0;
}

.earnings-calculator h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.earnings-calculator p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calculator-input-group {
    margin-bottom: 1.5rem;
}

.calculator-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calculator-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calculator-slider {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.calculator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calculator-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.calculator-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    min-width: 60px;
    text-align: right;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.125rem;
}

.earnings-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.earnings-result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.earnings-result-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.earnings-result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
}

.earnings-comparison {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.earnings-comparison p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Live Stats Widget */
.live-stats-widget {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.live-stats-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stats-header h3 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-green);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--feature-icon-bg);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Animated Counter */
.animated-counter {
    font-variant-numeric: tabular-nums;
}

/* Referral Message */
.referral-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 90vw;
}

.referral-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.referral-message p {
    margin: 0;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .earnings-results {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Styling improvements for centering and smoothness */

/* Add extra top padding to features since calculator/stats sections are hidden */
.hero + section.features {
    padding-top: clamp(4rem, 8vw, 6rem);
}

/* Ensure all section text is centered */
.features .section-header,
.how-it-works .section-header,
.faq .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Smooth transitions for interactive elements */
.cta-primary,
.cta-secondary,
.nav-link,
.footer-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better button hover states */
.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 154, 90, 0.15);
}

/* Ensure consistent max-width for all containers */
.hero-container,
.container {
    margin-left: auto;
    margin-right: auto;
}

/* Smooth scroll padding for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Better text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Center align footer sections on mobile */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Enhanced mobile UX improvements */

/* Better tap targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .nav-cta,
    .cta-primary,
    .cta-secondary {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Larger text on mobile for readability */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.6;
    }

    /* Better spacing on mobile */
    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Improve FAQ accordion on mobile */
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Better CTA buttons on mobile */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 320px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Improve focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Better hover states on touch devices */
@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-green);
    }

    .nav-link:hover {
        color: var(--primary-green);
    }
}

/* Prevent hover effects on touch devices */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .nav-link:hover {
        color: inherit;
    }
}

/* Better mobile hero layout */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        justify-self: center;
    }

    .hero-visual {
        justify-self: center;
        max-width: 90vw;
    }

    .hero-cta {
        justify-content: center;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

/* Improve early access form on mobile */
@media (max-width: 768px) {
    .early-access__container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .early-access__form {
        max-width: 100%;
    }

    .early-access__input,
    .early-access__button {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


