/**
 * Kiedy Smieci - Strona Ofertowa dla Gmin
 * Enterprise Edition CSS
 *
 * @author fiedoruk.pl
 * @version 2.0.0
 * @copyright 2026 fiedoruk.pl
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Organic & Earthy Palette */
    --forest-50: #E8F5E9;
    --forest-100: #C8E6C9;
    --forest-200: #A5D6A7;
    --forest-300: #81C784;
    --forest-400: #66BB6A;
    --forest-500: #4CAF50;
    --forest-600: #43A047;
    --forest-700: #388E3C;
    --forest-800: #2E7D32;
    --forest-900: #1B5E20;

    --earth-50: #EFEBE9;
    --earth-100: #D7CCC8;
    --earth-200: #BCAAA4;
    --earth-300: #A1887F;
    --earth-400: #8D6E63;
    --earth-500: #795548;

    --cream-50: #FFFDF9;
    --cream-100: #FBF9F4;
    --cream-200: #F9F7F2;
    --cream-300: #F5F2EB;

    --graphite-50: #ECEFF1;
    --graphite-100: #CFD8DC;
    --graphite-200: #B0BEC5;
    --graphite-300: #90A4AE;
    --graphite-400: #78909C;
    --graphite-500: #607D8B;
    --graphite-600: #546E7A;
    --graphite-700: #455A64;
    --graphite-800: #37474F;
    --graphite-900: #263238;

    /* Enterprise Gold Accent */
    --gold-50: #FFFDE7;
    --gold-100: #FFF9C4;
    --gold-200: #FFF59D;
    --gold-300: #FFF176;
    --gold-400: #FFEE58;
    --gold-500: #FFEB3B;
    --gold-600: #FDD835;
    --gold-700: #FBC02D;
    --gold-800: #F9A825;
    --gold-900: #F57F17;

    /* Sage (muted green) */
    --sage-50: #F1F8E9;
    --sage-100: #DCEDC8;
    --sage-200: #C5E1A5;
    --sage-300: #AED581;

    /* Semantic Colors */
    --primary: var(--forest-800);
    --primary-light: var(--forest-600);
    --primary-dark: var(--forest-900);
    --secondary: var(--earth-400);
    --accent: var(--gold-700);
    --bg: var(--cream-200);
    --bg-light: var(--cream-50);
    --text: var(--graphite-800);
    --text-light: var(--graphite-500);
    --text-muted: var(--graphite-400);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(46, 125, 50, 0.15);
    --shadow-gold: 0 0 40px rgba(251, 192, 45, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
}

.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 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-500) 50%, var(--earth-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-hero {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.heading-section {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.heading-card {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

.text-lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-light);
    line-height: 1.7;
}

.text-small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(46, 125, 50, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(46, 125, 50, 0.3);
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--forest-200);
}

.btn-secondary:hover {
    background: var(--forest-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    color: var(--graphite-900);
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(0,0,0,0.1);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(251, 192, 45, 0.4);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-icon-left {
    width: 22px;
    height: 22px;
    margin-right: 2px;
}

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

/* Pulsing CTA button for urgency */
.btn-pulse {
    position: relative;
    overflow: visible;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--forest-500);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

/* Hero CTA note */
.hero-cta-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--space-md);
}

/* Urgent badge style */
.hero-badge-urgent {
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    border: 1px solid var(--gold-300);
}

.hero-badge-urgent .hero-badge-dot {
    background: var(--gold-600);
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ============================================
   TOOLTIPS
   ============================================ */
.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: help;
    border-bottom: 1px dotted var(--text-muted);
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.tooltip-content {
    visibility: hidden;
    width: 280px;
    background-color: var(--graphite-900);
    color: #fff;
    text-align: left;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--duration-fast), visibility var(--duration-fast);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
    box-shadow: var(--shadow-xl);
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--graphite-900) transparent transparent transparent;
}

.tooltip:hover .tooltip-content,
.tooltip:focus .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
    background: rgba(249, 247, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-logo-badge {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gold-700);
    background: var(--gold-100);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--duration-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--duration-normal) var(--ease-out);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-radius: var(--radius-md);
    transition: background var(--duration-fast);
}

.nav-mobile-toggle:hover,
.nav-mobile-toggle:active {
    background: var(--forest-50);
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-cta .btn { display: none; }
}

/* Extra small screens */
@media (max-width: 400px) {
    .nav-logo-badge { display: none; }
    .nav-logo span:not(.nav-logo-badge) { font-size: 1rem; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    padding: var(--space-4xl) var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast);
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: var(--forest-50);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--duration-fast), color var(--duration-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: var(--forest-50);
    color: var(--primary);
}

/* Mobile Menu CTA */
.mobile-menu-cta {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--cream-300);
}

.mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0 var(--space-3xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 230, 201, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(165, 214, 167, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(141, 110, 99, 0.15) 0%, transparent 50%);
    animation: gradient-shift 15s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--forest-200) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--forest-200) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 20s ease-in-out infinite;
    opacity: 0.6;
}

.hero-float-1 {
    width: 400px;
    height: 400px;
    background: var(--forest-200);
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 300px;
    height: 300px;
    background: var(--earth-200);
    bottom: 20%;
    left: -5%;
    animation-delay: -7s;
}

.hero-float-3 {
    width: 200px;
    height: 200px;
    background: var(--forest-100);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s var(--ease-out) 0.2s both;
}

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

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

.hero-badge-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.hero-title {
    margin-bottom: var(--space-xl);
    animation: slideUp 0.8s var(--ease-out) 0.3s both;
}

.hero-title-line {
    display: block;
}

.hero-description {
    margin-bottom: var(--space-2xl);
    animation: slideUp 0.8s var(--ease-out) 0.4s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: slideUp 0.8s var(--ease-out) 0.5s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    animation: slideUp 0.8s var(--ease-out) 0.6s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideUp 0.8s var(--ease-out) 0.4s both;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

.hero-phone {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        var(--shadow-xl),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        0 0 100px rgba(46, 125, 50, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--duration-slow) var(--ease-out);
    margin: 0 auto;
    animation: phone-float 6s ease-in-out infinite;
}

/* Phone floating animation */
@keyframes phone-float {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(-10px);
    }
}

/* Phone shine effect */
.hero-phone::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 60%
    );
    animation: phone-shine 8s ease-in-out infinite;
    pointer-events: none;
    border-radius: 40px;
}

@keyframes phone-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.hero-phone:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--cream-100);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hero-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.hero-phone-content {
    padding: 50px 16px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.phone-header-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.phone-header-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.phone-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.phone-card-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.phone-card-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.phone-calendar {
    flex: 1;
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.phone-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 0.625rem;
    text-align: center;
}

.phone-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 500;
}

.phone-calendar-day.header {
    color: var(--text-muted);
    font-size: 0.5rem;
}

.phone-calendar-day.highlight-green { background: var(--forest-500); color: white; }
.phone-calendar-day.highlight-yellow { background: #FBC02D; color: #1a1a1a; }
.phone-calendar-day.highlight-blue { background: #2196F3; color: white; }
.phone-calendar-day.highlight-brown { background: #795548; color: white; }

/* Floating Elements */
.hero-floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card-1 {
    top: 10%;
    right: -20%;
    animation-delay: 0s;
}

.hero-floating-card-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-card-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.floating-card-icon.green { background: var(--forest-100); color: var(--forest-700); }
.floating-card-icon.yellow { background: #FFF9C4; color: #F57F17; }
.floating-card-icon.blue { background: #E3F2FD; color: #1565C0; }

.floating-card-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.floating-card-subtext {
    font-size: 0.625rem;
    color: var(--text-muted);
}

@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-stat { text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
}

@media (max-width: 600px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-3xl);
        min-height: auto;
    }
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    .hero-stat-value {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    .trust-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
    padding: var(--space-5xl) 0;
    position: relative;
}

.problem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

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

.problem-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(46, 125, 50, 0.1);
}

.problem-card:hover .problem-card-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s var(--ease-out);
}

.problem-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: var(--cream-300);
    color: var(--text);
}

.problem-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.problem-card-text {
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .problem-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, var(--cream-200) 0%, var(--forest-50) 50%, var(--cream-200) 100%);
    position: relative;
    overflow: hidden;
}

.solution-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
}

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

.solution-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--forest-200);
    z-index: -1;
    transform: skewX(-5deg);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--space-5xl) 0;
}

.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

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

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-500), var(--forest-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--forest-100), var(--forest-200));
    color: var(--forest-700);
}

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

.feature-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-tag {
    display: inline-flex;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--forest-50);
    color: var(--forest-700);
    border-radius: var(--radius-full);
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   SHOWCASE SECTION (Apple-style)
   ============================================ */
.showcase {
    padding: var(--space-5xl) 0;
    background: var(--graphite-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg), var(--graphite-900));
}

.showcase-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
    position: relative;
    z-index: 1;
}

.showcase-header .text-lead {
    color: var(--graphite-300);
}

.showcase-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-out);
}

.showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item:nth-child(even) {
    direction: rtl;
}

.showcase-item:nth-child(even) > * {
    direction: ltr;
}

.showcase-item-content {
    padding: var(--space-xl);
}

.showcase-item-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--forest-400), var(--forest-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

.showcase-item-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.showcase-item-text {
    color: var(--graphite-300);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.showcase-item-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.showcase-item-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--graphite-200);
}

.showcase-item-feature i {
    width: 20px;
    height: 20px;
    color: var(--forest-400);
}

.showcase-item-visual {
    position: relative;
}

.showcase-item-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: var(--graphite-800);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-item-image-placeholder {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--graphite-600);
    text-align: center;
    padding: var(--space-xl);
}

@media (max-width: 900px) {
    .showcase-item {
        grid-template-columns: 1fr;
    }
    .showcase-item:nth-child(even) { direction: ltr; }
    .showcase-item-visual { order: -1; }
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, var(--graphite-900), var(--graphite-800));
    color: white;
}

.comparison-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.comparison-header .text-lead {
    color: var(--graphite-300);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: var(--graphite-700);
    box-shadow: var(--shadow-xl);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-lg) var(--space-xl);
    text-align: left;
    border-bottom: 1px solid var(--graphite-600);
}

.comparison-table th {
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--graphite-800);
}

.comparison-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

.comparison-table .highlight {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2), rgba(46, 125, 50, 0.1));
}

.comparison-table .highlight th,
.comparison-table .highlight td {
    border-color: rgba(46, 125, 50, 0.3);
}

.comparison-table .check { color: var(--forest-400); }
.comparison-table .cross { color: var(--graphite-500); }
.comparison-table .partial { color: var(--earth-300); }

.comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--forest-700);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   ENTERPRISE SECTION (NEW)
   ============================================ */
.enterprise-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, var(--graphite-800) 0%, #0f1416 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.enterprise-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(251, 192, 45, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(251, 192, 45, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: enterprise-glow 8s ease-in-out infinite alternate;
}

@keyframes enterprise-glow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Floating gold particles effect */
.enterprise-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    animation: enterprise-line-shimmer 3s ease-in-out infinite;
}

@keyframes enterprise-line-shimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

.enterprise-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
    position: relative;
    z-index: 1;
}

/* VIP badge */
.enterprise-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-lg);
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--graphite-900);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(251, 192, 45, 0.4);
    animation: vip-glow 2s ease-in-out infinite alternate;
}

@keyframes vip-glow {
    0% { box-shadow: 0 4px 20px rgba(251, 192, 45, 0.3); }
    100% { box-shadow: 0 4px 30px rgba(251, 192, 45, 0.6); }
}

.enterprise-header .eyebrow {
    color: var(--gold-500);
}

.enterprise-header .eyebrow::before {
    background: var(--gold-500);
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.enterprise-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Animated gold border on hover */
.enterprise-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700), var(--gold-500));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration-normal);
}

.enterprise-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(180deg, rgba(26, 28, 30, 0.98), rgba(15, 20, 22, 0.98));
    z-index: -1;
}

.enterprise-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.35), 0 0 40px rgba(251, 192, 45, 0.25);
}

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

.enterprise-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.2), rgba(251, 192, 45, 0.1));
    color: var(--gold-500);
    position: relative;
    z-index: 1;
    transition: transform var(--duration-fast) var(--ease-out);
}

.enterprise-card:hover .enterprise-card-icon {
    transform: scale(1.1);
}

.enterprise-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
}

.enterprise-card-text {
    font-size: 0.9rem;
    color: var(--graphite-400);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

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

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

/* ============================================
   ROADMAP / PROCESS SECTION
   ============================================ */
.roadmap {
    padding: var(--space-5xl) 0;
    background: var(--graphite-900);
    color: white;
}

.roadmap-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.roadmap-header .text-lead {
    color: var(--graphite-400);
}

.roadmap-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--graphite-700);
    z-index: 1;
}

.roadmap-step {
    position: relative;
    z-index: 2;
    width: 22%;
    text-align: center;
}

.roadmap-step-number {
    width: 56px;
    height: 56px;
    background: var(--graphite-800);
    border: 2px solid var(--forest-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--forest-500);
    transition: all var(--duration-normal) var(--ease-out);
}

.roadmap-step:hover .roadmap-step-number {
    background: var(--forest-500);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.roadmap-step-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.roadmap-step-desc {
    font-size: 0.875rem;
    color: var(--graphite-400);
    line-height: 1.5;
}

@media (max-width: 800px) {
    .roadmap-timeline {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    .roadmap-timeline::before { display: none; }
    .roadmap-step {
        width: 100%;
        display: flex;
        gap: var(--space-lg);
        text-align: left;
    }
    .roadmap-step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: var(--space-5xl) 0;
    background: var(--bg);
    position: relative;
}

.pricing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.pricing-toggle-label {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--duration-fast);
}

.pricing-toggle-label.active {
    color: var(--text);
}

.pricing-toggle-switch {
    width: 56px;
    height: 32px;
    background: var(--graphite-200);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background var(--duration-fast);
}

.pricing-toggle-switch.active {
    background: var(--primary);
}

.pricing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-out);
}

.pricing-toggle-switch.active::after {
    transform: translateX(24px);
}

.pricing-badge {
    display: inline-flex;
    padding: var(--space-xs) var(--space-md);
    background: var(--forest-100);
    color: var(--forest-700);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
    border: 2px solid transparent;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
    color: white;
    transform: scale(1.02);
    z-index: 1;
}

.pricing-card.featured.visible {
    transform: scale(1.02) translateY(0);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* ENTERPRISE Pricing Card */
.pricing-card.enterprise {
    background: linear-gradient(180deg, #1a2226 0%, #0f1416 100%);
    color: white;
    border: 1px solid var(--graphite-700);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.enterprise.visible {
    transform: scale(1.05) translateY(0);
}

.pricing-card.enterprise:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-gold);
    border-color: var(--gold-700);
}

.pricing-card.enterprise .pricing-card-name {
    color: var(--gold-500);
}

.pricing-card.enterprise .pricing-card-description {
    color: var(--graphite-400);
}

.pricing-card.enterprise .check {
    color: var(--gold-500);
}

.pricing-card.enterprise .pricing-card-header {
    border-color: var(--graphite-700);
}

.pricing-card-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-lg);
    background: var(--earth-400);
    color: white;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card.enterprise .pricing-card-popular {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    color: var(--graphite-900);
    box-shadow: var(--shadow-gold);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--cream-300);
}

.pricing-card.featured .pricing-card-header {
    border-color: rgba(255,255,255,0.2);
}

.pricing-card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.pricing-card-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.pricing-card.featured .pricing-card-description {
    color: var(--forest-100);
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.pricing-card-from {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold-500);
}

.pricing-card-currency {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-card-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-card-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
    margin-top: var(--space-xs);
}

.pricing-card.featured .pricing-card-period {
    color: var(--forest-200);
}

.pricing-card.enterprise .pricing-card-period {
    color: var(--graphite-500);
}

/* Pricing card savings/ROI indicator */
.pricing-card-savings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--forest-50), var(--sage-50));
    border: 1px solid var(--forest-200);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--forest-700);
    animation: savings-pulse 3s ease-in-out infinite;
}

.pricing-card-savings i {
    color: var(--forest-600);
}

@keyframes savings-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 139, 34, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(34, 139, 34, 0); }
}

.pricing-card.featured .pricing-card-savings {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    border-color: rgba(255,255,255,0.25);
    color: var(--forest-100);
}

.pricing-card.featured .pricing-card-savings i {
    color: var(--forest-200);
}

.pricing-card.enterprise .pricing-card-savings {
    background: linear-gradient(135deg, var(--gold-50), rgba(255,215,0,0.1));
    border-color: var(--gold-300);
    color: var(--gold-800);
}

.pricing-card.enterprise .pricing-card-savings i {
    color: var(--gold-600);
}

/* Pricing card hover comparison highlight */
.pricing-card:hover {
    border-color: var(--forest-300);
}

.pricing-card.featured:hover {
    border-color: rgba(255,255,255,0.3);
}

.pricing-card.enterprise:hover {
    border-color: var(--gold-600);
}

/* Pricing amount emphasis */
.pricing-card-amount {
    transition: transform var(--duration-fast) var(--ease-out);
}

/* Pricing features better readability */
.pricing-card-feature {
    position: relative;
}

.pricing-card-feature span {
    flex: 1;
}

/* Pricing comparison indicator */
.pricing-card[data-tier="enterprise"] .pricing-card-feature strong {
    color: var(--gold-500);
}

.pricing-card-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-card-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.pricing-card-feature i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card-feature .check {
    color: var(--forest-500);
}

.pricing-card.featured .pricing-card-feature .check {
    color: var(--forest-200);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card.featured .btn-primary {
    background: white;
    color: var(--forest-700);
    position: relative;
    overflow: visible;
}

.pricing-card.featured .btn-primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: white;
    opacity: 0;
    z-index: -1;
    animation: featured-cta-glow 2s ease-in-out infinite;
}

@keyframes featured-cta-glow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

.pricing-card.featured .btn-primary:hover {
    background: var(--forest-50);
}

/* Enterprise golden CTA */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--graphite-900);
    border: none;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: gold-shine 3s ease-in-out infinite;
}

@keyframes gold-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

/* Pricing card scale on hover for better comparison */
.pricing-card {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.pricing-card:hover .pricing-card-amount {
    transform: scale(1.05);
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-3xl);
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.enterprise { grid-column: span 2; }
}

@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .pricing-card.featured,
    .pricing-card.enterprise { transform: none; }
    .pricing-card.featured.visible,
    .pricing-card.enterprise.visible { transform: none; }
    .pricing-card.featured:hover,
    .pricing-card.enterprise:hover { transform: translateY(-8px); }
    .pricing-card.enterprise { grid-column: span 1; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: var(--space-5xl) 0;
    background: var(--forest-50);
}

.testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--forest-200);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--forest-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-700);
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Social proof stats row */
.social-proof-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-4xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--forest-50), var(--sage-50));
    border-radius: var(--radius-xl);
    border: 1px solid var(--forest-100);
}

.social-proof-stat {
    text-align: center;
    min-width: 120px;
}

.social-proof-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--forest-700);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.social-proof-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Enhanced testimonial card */
.testimonial-featured {
    position: relative;
    border: 2px solid var(--forest-200);
    padding-top: var(--space-3xl);
}

.testimonial-quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--forest-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--forest-50);
    border: 1px solid var(--forest-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--forest-700);
    margin-left: auto;
}

.testimonial-badge i {
    color: var(--forest-600);
}

.testimonial-note {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--gold-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold-200);
    color: var(--text);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.testimonial-note i {
    color: var(--gold-600);
}

.testimonial-note a {
    color: var(--forest-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.testimonial-note a:hover {
    color: var(--forest-700);
}

/* ============================================
   LEGAL / SECURITY SECTION
   ============================================ */
.legal {
    padding: var(--space-5xl) 0;
    background: var(--bg);
}

.legal-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

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

.legal-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(40px);
}

.legal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: var(--forest-100);
    color: var(--forest-700);
}

.legal-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.legal-card-text {
    color: var(--text-light);
    line-height: 1.7;
}

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

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq {
    padding: var(--space-5xl) 0;
    background: var(--cream-100);
}

.faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

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

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background var(--duration-fast);
}

.faq-question:hover {
    background: var(--cream-100);
}

.faq-question-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
    color: var(--primary);
}

.faq-item.active .faq-question-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   MORE APPS / CO WIĘCEJ SECTION
   ============================================ */
.more-apps {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-200) 50%, var(--forest-50) 100%);
    position: relative;
    overflow: hidden;
}

.more-apps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.more-apps-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    position: relative;
    z-index: 1;
}

.more-apps-header .eyebrow {
    background: linear-gradient(135deg, var(--forest-600), var(--forest-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 700;
}

.text-highlight {
    color: var(--forest-600);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: linear-gradient(90deg, var(--forest-200), var(--sage-200));
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-3deg);
}

.more-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

/* App Card - Premium Design */
.app-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(76, 175, 80, 0.1);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-400), var(--forest-600));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(76, 175, 80, 0.2);
    border-color: var(--forest-300);
}

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

.app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.app-card:hover .app-card-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.app-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.app-card-featured .app-card-badge {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--graphite-900);
    box-shadow: 0 2px 8px rgba(251, 192, 45, 0.4);
}

.app-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.app-card-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.app-card-features {
    list-style: none;
    margin-bottom: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.app-card-features li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--forest-700);
    background: var(--forest-50);
    border-radius: var(--radius-full);
    border: 1px solid var(--forest-100);
}

.app-card-features li i {
    color: var(--forest-500);
    flex-shrink: 0;
    width: 12px !important;
    height: 12px !important;
}

.app-card-price {
    padding-top: var(--space-md);
    border-top: 1px solid var(--cream-300);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.app-card-price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-card-price-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-card-price-currency {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-card-price-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--forest-600);
}

/* Featured app card - Bestseller */
.app-card-featured {
    border: 2px solid var(--gold-400);
    box-shadow: 0 8px 30px rgba(251, 192, 45, 0.15), 0 0 0 4px rgba(251, 192, 45, 0.1);
    background: linear-gradient(180deg, white 0%, var(--gold-50) 100%);
}

.app-card-featured::before {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    opacity: 1;
}

.app-card-featured:hover {
    border-color: var(--gold-500);
    box-shadow: 0 20px 50px rgba(251, 192, 45, 0.2), 0 0 0 4px rgba(251, 192, 45, 0.15);
}

.app-card-featured .app-card-icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.4);
}

/* Custom app card - Twoja Aplikacja */
.app-card-custom {
    background: linear-gradient(135deg, var(--forest-50) 0%, var(--sage-50) 50%, white 100%);
    border: 2px dashed var(--forest-300);
}

.app-card-custom::before {
    display: none;
}

.app-card-custom:hover {
    border-style: solid;
    border-color: var(--forest-400);
    background: linear-gradient(135deg, var(--forest-100) 0%, var(--sage-100) 50%, white 100%);
}

.app-card-custom .app-card-icon {
    background: linear-gradient(135deg, var(--forest-400), var(--forest-500));
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.app-card-custom .app-card-price-label {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--forest-600), var(--forest-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* More apps CTA - Premium Banner */
.more-apps-cta {
    background: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-800) 50%, var(--forest-900) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(27, 94, 32, 0.3);
}

.more-apps-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.more-apps-cta-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.more-apps-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.more-apps-cta-text {
    flex: 1;
    min-width: 250px;
}

.more-apps-cta-text h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.more-apps-cta-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.more-apps-cta-text strong {
    color: var(--gold-300);
}

.more-apps-cta .btn {
    flex-shrink: 0;
    background: white;
    color: var(--forest-700);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.more-apps-cta .btn:hover {
    background: var(--gold-100);
    color: var(--forest-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Trust indicators */
.more-apps-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--cream-300);
}

.more-apps-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--cream-300);
}

.more-apps-trust-item i {
    color: var(--forest-500);
    width: 16px !important;
    height: 16px !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .more-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .more-apps-grid {
        grid-template-columns: 1fr;
    }

    .more-apps-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .more-apps-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-5xl) 0;
    background: var(--graphite-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--cream-100), var(--graphite-900));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    margin-bottom: var(--space-lg);
}

.contact-info .text-lead {
    color: var(--graphite-300);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--graphite-800);
    color: var(--forest-400);
}

.contact-detail-text {
    font-size: 1.0625rem;
}

.contact-detail-label {
    font-size: 0.75rem;
    color: var(--graphite-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-wrapper {
    background: var(--graphite-800);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--graphite-300);
}

.form-input,
.form-textarea,
.form-select {
    padding: var(--space-md) var(--space-lg);
    background: var(--graphite-700);
    border: 2px solid var(--graphite-600);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--duration-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--graphite-500);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2390A4AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 48px;
}

.form-select option {
    background: var(--graphite-800);
}

.form-success {
    background: var(--forest-700);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.form-error {
    background: #B71C1C;
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* Form validation states */
.form-input.valid,
.form-textarea.valid,
.form-select.valid {
    border-color: var(--forest-500);
}

.form-input.invalid,
.form-textarea.invalid,
.form-select.invalid {
    border-color: #EF5350;
}

/* Focused form group */
.form-group.focused .form-label {
    color: var(--forest-400);
}

/* Loading button state */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 900px) {
    .contact-content { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--forest-700), var(--forest-900));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 60%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-lg);
}

.cta-text {
    font-size: 1.25rem;
    color: var(--forest-100);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--forest-700);
}

.cta .btn-primary:hover {
    background: var(--forest-50);
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.cta .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid transparent;
    padding: var(--space-md) var(--space-lg);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

.cta .btn-ghost {
    font-weight: 500;
}

/* CTA Badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.15);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(8px);
}

/* CTA Trust row */
.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
    font-size: 0.875rem;
    color: var(--forest-200);
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

@media (max-width: 600px) {
    .cta-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--graphite-900);
    color: var(--graphite-300);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--graphite-700);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--forest-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-badges {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--graphite-800);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--graphite-400);
}

.footer-badge i {
    color: var(--forest-500);
}

.footer-column-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-link {
    font-size: 0.9375rem;
    transition: color var(--duration-fast);
}

.footer-link:hover {
    color: var(--forest-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

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

.footer-legal-link {
    transition: color var(--duration-fast);
}

.footer-legal-link:hover {
    color: var(--forest-400);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-version {
    padding: 2px 8px;
    background: var(--forest-100);
    color: var(--forest-700);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-made {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
}

.footer-heart {
    display: inline-block;
    color: #e74c3c;
    vertical-align: middle;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

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

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */

/* Performance: will-change hints for animated elements */
.hero-phone,
.hero-floating-card,
.hero-float,
.pricing-card,
.feature-card,
.problem-card,
.enterprise-card {
    will-change: transform;
}

.nav {
    will-change: transform, background-color;
}

/* Reduced motion preferences - comprehensive */
@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;
    }

    /* Remove will-change for reduced motion */
    .hero-phone,
    .hero-floating-card,
    .hero-float,
    .pricing-card,
    .feature-card,
    .problem-card,
    .enterprise-card,
    .nav {
        will-change: auto;
    }

    /* Make animated elements immediately visible */
    .problem-card,
    .feature-card,
    .showcase-item,
    .pricing-card,
    .testimonial-card,
    .legal-card,
    .faq-item,
    .enterprise-card {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Disable floating animations */
    .hero-float,
    .hero-floating-card {
        animation: none !important;
    }

    /* Disable hero phone rotation */
    .hero-phone {
        transform: none !important;
    }
}

/* Stagger animations for grids */
.problem-card:nth-child(1) { transition-delay: 0.1s; }
.problem-card:nth-child(2) { transition-delay: 0.2s; }
.problem-card:nth-child(3) { transition-delay: 0.3s; }

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

.enterprise-card:nth-child(1) { transition-delay: 0.1s; }
.enterprise-card:nth-child(2) { transition-delay: 0.2s; }
.enterprise-card:nth-child(3) { transition-delay: 0.3s; }
.enterprise-card:nth-child(4) { transition-delay: 0.4s; }
.enterprise-card:nth-child(5) { transition-delay: 0.5s; }
.enterprise-card:nth-child(6) { transition-delay: 0.6s; }
.enterprise-card:nth-child(7) { transition-delay: 0.7s; }
.enterprise-card:nth-child(8) { transition-delay: 0.8s; }

.pricing-card:nth-child(1) { transition-delay: 0.1s; }
.pricing-card:nth-child(2) { transition-delay: 0.2s; }
.pricing-card:nth-child(3) { transition-delay: 0.3s; }
.pricing-card:nth-child(4) { transition-delay: 0.4s; }

.legal-card:nth-child(1) { transition-delay: 0.1s; }
.legal-card:nth-child(2) { transition-delay: 0.2s; }
.legal-card:nth-child(3) { transition-delay: 0.3s; }
.legal-card:nth-child(4) { transition-delay: 0.4s; }

.faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-item:nth-child(2) { transition-delay: 0.1s; }
.faq-item:nth-child(3) { transition-delay: 0.15s; }
.faq-item:nth-child(4) { transition-delay: 0.2s; }
.faq-item:nth-child(5) { transition-delay: 0.25s; }
.faq-item:nth-child(6) { transition-delay: 0.3s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cream-200);
}

::-webkit-scrollbar-thumb {
    background: var(--graphite-300);
    border-radius: 6px;
    border: 3px solid var(--cream-200);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--graphite-400);
}

/* ============================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ============================================ */

/* Link underline animation */
.text-link {
    position: relative;
    text-decoration: none;
    color: var(--forest-600);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--duration-fast) var(--ease-out);
}

.text-link:hover::after {
    width: 100%;
}

/* Icon micro-rotation on hover */
.feature-card:hover .feature-icon i,
.legal-card:hover .legal-card-icon i {
    transform: rotate(-5deg) scale(1.1);
}

.feature-icon i,
.legal-card-icon i {
    transition: transform var(--duration-fast) var(--ease-out);
}

/* Button press effect */
.btn:active {
    transform: scale(0.98);
}

/* Card subtle lift animation */
.problem-card,
.feature-card,
.legal-card,
.testimonial-card {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.problem-card:hover,
.feature-card:hover,
.legal-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
}

/* 3D Tilt effect on hover */
.feature-card,
.problem-card,
.legal-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover,
.problem-card:hover,
.legal-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

/* Staggered fade-in for grid items */
.problem-card:nth-child(1),
.feature-card:nth-child(1),
.legal-card:nth-child(1) { transition-delay: 0.05s; }
.problem-card:nth-child(2),
.feature-card:nth-child(2),
.legal-card:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3),
.feature-card:nth-child(3),
.legal-card:nth-child(3) { transition-delay: 0.15s; }
.problem-card:nth-child(4),
.feature-card:nth-child(4),
.legal-card:nth-child(4) { transition-delay: 0.2s; }
.problem-card:nth-child(5),
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.problem-card:nth-child(6),
.feature-card:nth-child(6) { transition-delay: 0.3s; }

/* Roadmap step number pulse on hover */
.roadmap-step:hover .roadmap-step-number {
    animation: step-pulse 0.6s ease-out;
}

@keyframes step-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* FAQ arrow rotation with spring effect */
.faq-question-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-question-icon {
    transform: rotate(180deg);
}

/* Social proof counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-proof-stat {
    animation: count-up 0.5s ease-out both;
}

.social-proof-stat:nth-child(1) { animation-delay: 0.1s; }
.social-proof-stat:nth-child(2) { animation-delay: 0.2s; }
.social-proof-stat:nth-child(3) { animation-delay: 0.3s; }
.social-proof-stat:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   INFOGRAPHIC STATS BAR
   ============================================ */
.stats-bar {
    padding: var(--space-3xl) 0;
    background: white;
    border-top: 1px solid var(--cream-300);
    border-bottom: 1px solid var(--cream-300);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    text-align: center;
}

.stats-bar-item {
    position: relative;
}

.stats-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--space-xl) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--cream-300);
}

.stats-bar-item {
    transition: transform 0.3s var(--ease-out);
    cursor: default;
}

.stats-bar-item:hover {
    transform: scale(1.05);
}

.stats-bar-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s var(--ease-out);
}

.stats-bar-item:hover .stats-bar-value {
    transform: scale(1.1);
}

.stats-bar-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.stats-bar-item:hover .stats-bar-label {
    color: var(--text);
}

@media (max-width: 800px) {
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    .stats-bar-item::after { display: none; }
}

@media (max-width: 500px) {
    .stats-bar-grid { grid-template-columns: 1fr; }
}

/* ============================================
   TRUST BADGES ROW
   ============================================ */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, white, var(--forest-50));
    border: 1px solid var(--forest-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--forest-800);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--forest-100), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest-300);
}

.trust-badge:hover::before {
    opacity: 1;
}

.trust-badge i {
    color: var(--forest-600);
    position: relative;
    z-index: 1;
}

.trust-badge span {
    position: relative;
    z-index: 1;
}

/* Trust badge stagger animation */
.trust-badge:nth-child(1) { animation: trust-fade-in 0.5s ease-out 0.1s both; }
.trust-badge:nth-child(2) { animation: trust-fade-in 0.5s ease-out 0.2s both; }
.trust-badge:nth-child(3) { animation: trust-fade-in 0.5s ease-out 0.3s both; }

@keyframes trust-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOCUS VISIBLE INDICATORS (Accessibility)
   ============================================ */

/* Global focus-visible outline */
:focus-visible {
    outline: 3px solid var(--forest-500);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Buttons */
.btn:focus-visible {
    outline: 3px solid var(--forest-400);
    outline-offset: 4px;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(46, 125, 50, 0.15);
}

.btn-gold:focus-visible {
    outline-color: var(--gold-600);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(251, 192, 45, 0.2);
}

/* Navigation links */
.nav-link:focus-visible {
    outline: 2px solid var(--forest-500);
    outline-offset: 4px;
}

/* Form inputs */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

/* FAQ accordion buttons */
.faq-question:focus-visible {
    outline: 3px solid var(--forest-500);
    outline-offset: -3px;
    background: var(--forest-50);
}

/* Pricing toggle */
.pricing-toggle-switch:focus-visible {
    outline: 3px solid var(--forest-500);
    outline-offset: 3px;
}

/* Cards - add subtle highlight */
.pricing-card:focus-within {
    box-shadow: var(--shadow-xl), 0 0 0 3px var(--forest-300);
}

/* Footer links */
.footer-link:focus-visible,
.footer-legal-link:focus-visible {
    outline: 2px solid var(--forest-400);
    outline-offset: 2px;
}

/* Skip link */
.sr-only:focus {
    position: fixed !important;
    width: auto !important;
    height: auto !important;
    padding: 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    background: var(--forest-700);
    color: white;
    z-index: 10000;
    top: 0;
    left: 0;
    font-weight: 600;
}

/* Mobile menu links */
.mobile-menu-link:focus-visible {
    outline: 2px solid var(--forest-500);
    outline-offset: 4px;
}

/* Tooltip focus */
.tooltip:focus-visible {
    outline: 2px solid var(--forest-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }

    .btn:focus-visible {
        outline: 3px solid currentColor;
        box-shadow: none;
    }
}

/* ============================================
   LAZY LOADING PLACEHOLDER
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.lazy-placeholder {
    background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-100) 50%, var(--cream-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================
   FINANCING SECTION
   ============================================ */
.financing-section {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--forest-50), var(--cream-100));
    border-radius: var(--radius-xl);
    border: 1px solid var(--forest-200);
}

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

.financing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.financing-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.financing-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.financing-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.financing-card-icon.green {
    background: var(--forest-100);
    color: var(--forest-700);
}

.financing-card-icon.gold {
    background: var(--gold-100);
    color: var(--gold-800);
}

.financing-card-icon.earth {
    background: var(--earth-100);
    color: var(--earth-500);
}

.financing-card h4 {
    font-family: var(--font-display);
    font-weight: 600;
}

.financing-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.financing-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-md);
    color: var(--forest-700);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--duration-fast);
}

.financing-card a:hover {
    color: var(--primary);
}

/* ============================================
   ADDITIONAL MOBILE FIXES
   ============================================ */
@media (max-width: 600px) {
    /* Container padding with safe area */
    .container {
        padding: 0 var(--space-md);
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }

    /* Section padding */
    .problem,
    .solution,
    .features,
    .legal,
    .faq,
    .testimonials {
        padding: var(--space-3xl) 0;
    }

    /* Heading sizes */
    .heading-section {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    /* Touch-friendly button targets (min 44px) */
    .btn {
        min-height: 48px;
        padding: var(--space-md) var(--space-xl);
    }

    .btn-lg {
        min-height: 56px;
    }

    /* Cards spacing */
    .problem-card,
    .feature-card,
    .legal-card {
        padding: var(--space-xl);
    }

    /* Horizontal scroll snap for pricing cards */
    .pricing-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-lg);
        padding-bottom: var(--space-md);
        margin: 0 calc(-1 * var(--space-md));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .pricing-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
    }

    /* Scroll indicator hint */
    .pricing-grid::after {
        content: '';
        flex: 0 0 var(--space-md);
    }

    /* Touch-friendly FAQ */
    .faq-question {
        padding: var(--space-lg) var(--space-md);
        min-height: 56px;
        font-size: 1rem;
    }

    /* Roadmap mobile improvements */
    .roadmap-step {
        align-items: flex-start;
    }
    .roadmap-step-number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    /* Financing section */
    .financing-section {
        padding: var(--space-xl);
        margin-top: var(--space-2xl);
    }

    /* Contact form - touch friendly */
    .contact-form-wrapper {
        padding: var(--space-xl);
    }

    .form-input,
    .form-textarea,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .form-label {
        font-size: 0.9375rem;
    }

    /* FAQ */
    .faq-answer-content {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* Footer with safe area */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
    .footer-top {
        gap: var(--space-xl);
    }

    /* Social proof stats stacked */
    .social-proof-stats {
        gap: var(--space-xl);
        padding: var(--space-xl);
    }

    .social-proof-stat {
        min-width: 100px;
    }

    .social-proof-value {
        font-size: 2rem;
    }

    /* Sticky CTA on mobile */
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet specific */
@media (min-width: 601px) and (max-width: 900px) {
    .problem-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .enterprise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    /* Hide non-essential elements */
    .nav,
    .mobile-menu,
    .hero-bg,
    .hero-float,
    .hero-floating-card,
    .hero-visual,
    .trust-badges,
    .cta,
    .contact,
    footer,
    .btn,
    .pricing-toggle,
    .faq-question-icon,
    [data-lucide] {
        display: none !important;
    }

    /* Reset colors for printing */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Reset backgrounds */
    body,
    .hero,
    .problem,
    .solution,
    .features,
    .showcase,
    .comparison,
    .enterprise-section,
    .roadmap,
    .pricing,
    .testimonials,
    .legal,
    .faq {
        background: white !important;
        padding: 1rem 0 !important;
    }

    /* Typography adjustments */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        color: black !important;
    }

    .heading-hero {
        font-size: 24pt;
    }

    .heading-section {
        font-size: 18pt;
    }

    /* Cards layout */
    .problem-grid,
    .features-grid,
    .legal-grid,
    .enterprise-grid,
    .pricing-grid {
        display: block !important;
    }

    .problem-card,
    .feature-card,
    .legal-card,
    .enterprise-card,
    .pricing-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 1px solid #ccc !important;
    }

    /* Pricing cards */
    .pricing-card {
        border: 2px solid #333 !important;
    }

    .pricing-card.featured,
    .pricing-card.enterprise {
        border-width: 3px !important;
    }

    /* FAQ - show all answers */
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }

    .faq-answer-content {
        display: block !important;
    }

    /* Show URLs for links */
    a[href^="http"]::after,
    a[href^="mailto"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666 !important;
    }

    /* Page breaks */
    .problem,
    .features,
    .pricing,
    .enterprise-section {
        page-break-before: always;
    }

    /* Container width */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Comparison table */
    .comparison-table {
        font-size: 10pt;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        border: 1px solid #ccc !important;
    }

    /* Testimonial */
    .testimonial-card {
        border: 1px solid #ccc !important;
        padding: 1rem;
    }

    /* Add page footer with URL */
    @page {
        margin: 2cm;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

/* Dark mode color scheme detection */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark theme colors */
        --bg: #1a1a1f;
        --bg-light: #242429;
        --bg-card: #2a2a30;
        --bg-elevated: #323238;

        --text: #e8e8ed;
        --text-light: #a0a0a8;
        --text-muted: #707078;

        /* Adjusted semantic colors for dark */
        --primary: var(--forest-400);
        --primary-light: var(--forest-300);
        --primary-dark: var(--forest-500);

        /* Adjusted shadows for dark mode */
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
        --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
        --shadow-glow: 0 0 40px rgba(102, 187, 106, 0.2);
        --shadow-gold: 0 0 40px rgba(251, 192, 45, 0.15);

        /* Cream becomes dark */
        --cream-50: #2a2a30;
        --cream-100: #242429;
        --cream-200: #1a1a1f;
        --cream-300: #151518;

        /* Graphite inverted */
        --graphite-50: #1a1a1f;
        --graphite-100: #242429;
        --graphite-200: #323238;
        --graphite-300: #505058;
        --graphite-400: #707078;
        --graphite-500: #909098;
        --graphite-600: #a0a0a8;
        --graphite-700: #c0c0c8;
        --graphite-800: #e0e0e8;
        --graphite-900: #f0f0f8;
    }

    /* Body and base styles */
    body {
        background-color: var(--bg);
        color: var(--text);
    }

    /* Navigation */
    .nav {
        background: rgba(26, 26, 31, 0.95);
        backdrop-filter: blur(16px);
    }

    .nav.scrolled {
        background: rgba(26, 26, 31, 0.98);
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }

    .nav-logo span {
        color: var(--text);
    }

    .nav-link {
        color: var(--text-light);
    }

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

    /* Mobile menu */
    .mobile-menu {
        background: var(--bg);
    }

    .mobile-menu-link {
        color: var(--text);
    }

    .mobile-menu-link:hover {
        background: var(--bg-elevated);
    }

    /* Hero */
    .hero {
        background: var(--bg);
    }

    .hero-gradient {
        background: linear-gradient(135deg, var(--bg) 0%, #1e2a1e 50%, #1a1a1f 100%);
    }

    .hero-pattern {
        background-image: radial-gradient(circle at 20% 30%, rgba(102, 187, 106, 0.1) 1px, transparent 1px);
    }

    .hero-title {
        color: var(--text);
    }

    .text-gradient {
        background: linear-gradient(135deg, var(--forest-400) 0%, var(--forest-300) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-description {
        color: var(--text-light);
    }

    /* Hero phone mockup */
    .hero-phone {
        background: linear-gradient(145deg, #2d2d35, #1a1a1f);
        box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    }

    .hero-phone-screen {
        background: var(--bg-card);
    }

    .phone-header-title {
        color: var(--primary);
    }

    .phone-header-subtitle {
        color: var(--text-muted);
    }

    .phone-card {
        background: var(--bg-elevated);
    }

    .phone-card-label {
        color: var(--text-muted);
    }

    .phone-card-value {
        color: var(--text);
    }

    .phone-calendar {
        background: var(--bg-elevated);
    }

    .phone-calendar-day {
        color: var(--text);
    }

    .phone-calendar-day.header {
        color: var(--text-muted);
    }

    /* Floating cards */
    .hero-floating-card {
        background: var(--bg-card);
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }

    .floating-card-text {
        color: var(--text);
    }

    .floating-card-subtext {
        color: var(--text-muted);
    }

    /* Trust badges */
    .trust-badge {
        background: var(--bg-elevated);
        color: var(--text-light);
    }

    /* Stats bar */
    .stats-bar {
        background: linear-gradient(135deg, #1e2a1e 0%, #1a1a1f 100%);
    }

    .stats-bar-value {
        color: #fff;
    }

    .stats-bar-label {
        color: rgba(255,255,255,0.7);
    }

    /* Cards - Problem, Feature, etc. */
    .problem-card,
    .feature-card,
    .legal-card,
    .enterprise-card {
        background: var(--bg-card);
        border: 1px solid var(--bg-elevated);
    }

    .problem-card:hover,
    .feature-card:hover,
    .legal-card:hover,
    .enterprise-card:hover {
        background: var(--bg-elevated);
        border-color: var(--primary);
    }

    .problem-card-icon,
    .feature-icon,
    .legal-card-icon,
    .enterprise-card-icon {
        background: rgba(102, 187, 106, 0.15);
        color: var(--forest-400);
    }

    .problem-card-title,
    .feature-title,
    .legal-card-title,
    .enterprise-card-title {
        color: var(--text);
    }

    .problem-card-text,
    .feature-text,
    .legal-card-text,
    .enterprise-card-text {
        color: var(--text-light);
    }

    .feature-tags .feature-tag {
        background: var(--bg-elevated);
        color: var(--text-light);
    }

    /* Sections with dark backgrounds */
    .problem,
    .solution,
    .features,
    .legal,
    .faq {
        background: var(--bg);
    }

    .showcase {
        background: linear-gradient(180deg, var(--bg) 0%, #151518 100%);
    }

    .comparison {
        background: #151518;
    }

    .enterprise-section {
        background: linear-gradient(180deg, #151518 0%, #1a1a1f 100%);
    }

    /* Section headers */
    .eyebrow {
        color: var(--primary);
    }

    .heading-section {
        color: var(--text);
    }

    .text-lead {
        color: var(--text-light);
    }

    /* Showcase items */
    .showcase-item-content {
        background: var(--bg-card);
    }

    .showcase-item-number {
        color: var(--forest-300);
    }

    .showcase-item-title {
        color: var(--text);
    }

    .showcase-item-text {
        color: var(--text-light);
    }

    .showcase-item-feature {
        color: var(--text-light);
    }

    .showcase-item-image {
        background: var(--bg-elevated);
    }

    .showcase-item-image-placeholder {
        color: var(--text-muted);
    }

    /* Comparison table */
    .comparison-table {
        background: var(--bg-card);
    }

    .comparison-table th,
    .comparison-table td {
        border-color: var(--bg-elevated);
        color: var(--text);
    }

    .comparison-table th {
        background: var(--bg-elevated);
    }

    .comparison-table th.highlight {
        background: var(--forest-900);
    }

    .comparison-table td.highlight {
        background: rgba(102, 187, 106, 0.1);
    }

    .comparison-table tbody tr:hover td {
        background: var(--bg-elevated);
    }

    /* Roadmap */
    .roadmap {
        background: var(--bg);
    }

    .roadmap-step {
        background: var(--bg-card);
        border-color: var(--bg-elevated);
    }

    .roadmap-step-number {
        background: var(--primary);
        color: #fff;
    }

    .roadmap-step-title {
        color: var(--text);
    }

    .roadmap-step-desc {
        color: var(--text-light);
    }

    /* Pricing */
    .pricing {
        background: var(--bg);
    }

    .pricing-toggle-label {
        color: var(--text-light);
    }

    .pricing-toggle-label.active {
        color: var(--text);
    }

    .pricing-toggle-switch {
        background: var(--bg-elevated);
    }

    .pricing-card {
        background: var(--bg-card);
        border-color: var(--bg-elevated);
    }

    .pricing-card:hover {
        border-color: var(--forest-400);
    }

    .pricing-card-name {
        color: var(--text);
    }

    .pricing-card-description {
        color: var(--text-light);
    }

    .pricing-card-amount {
        color: var(--text);
    }

    .pricing-card-period {
        color: var(--text-muted);
    }

    .pricing-card-feature {
        color: var(--text-light);
    }

    .pricing-card-feature i.check {
        color: var(--forest-400);
    }

    /* Featured pricing card */
    .pricing-card.featured {
        background: linear-gradient(145deg, var(--forest-900), var(--forest-800));
    }

    .pricing-card.featured .pricing-card-name,
    .pricing-card.featured .pricing-card-amount {
        color: #fff;
    }

    .pricing-card.featured .pricing-card-description,
    .pricing-card.featured .pricing-card-period,
    .pricing-card.featured .pricing-card-feature {
        color: rgba(255,255,255,0.8);
    }

    /* Enterprise pricing card */
    .pricing-card.enterprise {
        background: linear-gradient(145deg, #2a2520, #1a1815);
        border-color: var(--gold-800);
    }

    .pricing-card.enterprise:hover {
        border-color: var(--gold-600);
    }

    .pricing-note {
        color: var(--text-muted);
    }

    /* Pricing savings indicator dark mode */
    .pricing-card-savings {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
        border-color: var(--forest-700);
        color: var(--forest-300);
    }

    .pricing-card-savings i {
        color: var(--forest-400);
    }

    .pricing-card.featured .pricing-card-savings {
        background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
        border-color: rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.9);
    }

    .pricing-card.enterprise .pricing-card-savings {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
        border-color: var(--gold-700);
        color: var(--gold-300);
    }

    /* Golden button dark mode */
    .btn-gold {
        background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
        color: #1a1a1f;
    }

    .btn-gold:hover {
        background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
        box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
    }

    /* Financing section */
    .financing-section {
        background: linear-gradient(135deg, rgba(30, 42, 30, 0.5), var(--bg-card)) !important;
        border-color: var(--forest-900) !important;
    }

    .financing-section > div > div {
        background: var(--bg-elevated) !important;
    }

    /* Testimonials */
    .testimonials {
        background: var(--bg-light);
    }

    .testimonial-card {
        background: var(--bg-card);
    }

    .testimonial-quote {
        color: var(--text);
    }

    .testimonial-name {
        color: var(--text);
    }

    .testimonial-role {
        color: var(--text-muted);
    }

    .testimonial-avatar {
        background: var(--bg-elevated);
        color: var(--primary);
    }

    /* Social proof dark mode */
    .social-proof-stats {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
        border-color: var(--forest-800);
    }

    .social-proof-value {
        color: var(--forest-400);
    }

    .social-proof-label {
        color: var(--text-muted);
    }

    .testimonial-featured {
        border-color: var(--forest-700);
    }

    .testimonial-quote-icon {
        background: var(--forest-600);
    }

    .testimonial-badge {
        background: rgba(76, 175, 80, 0.15);
        border-color: var(--forest-700);
        color: var(--forest-300);
    }

    .testimonial-note {
        background: rgba(255, 193, 7, 0.1);
        border-color: var(--gold-800);
        color: var(--text-light);
    }

    .testimonial-note i {
        color: var(--gold-500);
    }

    .testimonial-note a {
        color: var(--forest-400);
    }

    /* FAQ */
    .faq-item {
        background: var(--bg-card);
        border-color: var(--bg-elevated);
    }

    .faq-question {
        color: var(--text);
    }

    .faq-question:hover {
        background: var(--bg-elevated);
    }

    .faq-question-icon {
        color: var(--text-muted);
    }

    .faq-answer-content {
        color: var(--text-light);
    }

    /* More Apps Section */
    .more-apps {
        background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
    }

    .text-highlight::after {
        background: var(--forest-800);
    }

    .app-card {
        background: var(--bg-card);
        border-color: var(--bg-elevated);
    }

    .app-card:hover {
        border-color: var(--forest-600);
    }

    .app-card-icon {
        background: linear-gradient(135deg, var(--forest-800), var(--forest-900));
        color: var(--forest-300);
    }

    .app-card-title {
        color: var(--text);
    }

    .app-card-text {
        color: var(--text-light);
    }

    .app-card-features li {
        color: var(--text-light);
    }

    .app-card-features li i {
        color: var(--forest-400);
    }

    .app-card-price {
        border-color: var(--bg-elevated);
    }

    .app-card-price-amount {
        color: var(--forest-400);
    }

    .app-card-featured {
        border-color: var(--forest-600);
        box-shadow: var(--shadow-lg), 0 0 0 4px rgba(76, 175, 80, 0.1);
    }

    .app-card-custom {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
        border-color: var(--forest-700);
    }

    .app-card-custom .app-card-icon {
        background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
        color: white;
    }

    .more-apps-cta {
        background: linear-gradient(135deg, var(--forest-800), var(--forest-900));
    }

    .more-apps-trust-item {
        color: var(--text-muted);
    }

    .more-apps-trust-item i {
        color: var(--forest-400);
    }

    /* Contact */
    .contact {
        background: linear-gradient(180deg, var(--bg) 0%, #151518 100%);
    }

    .contact-form-wrapper {
        background: var(--bg-card);
    }

    .form-label {
        color: var(--text-light);
    }

    .form-input,
    .form-textarea,
    .form-select {
        background: var(--bg-elevated);
        border-color: var(--bg-elevated);
        color: var(--text);
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: var(--text-muted);
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        border-color: var(--primary);
        background: var(--bg);
    }

    .form-success {
        background: rgba(102, 187, 106, 0.2);
        color: var(--forest-300);
    }

    /* Contact details */
    .contact-detail-icon {
        background: var(--bg-elevated);
        color: var(--primary);
    }

    .contact-detail-label {
        color: var(--text-muted);
    }

    .contact-detail-text {
        color: var(--text);
    }

    /* CTA */
    .cta {
        background: linear-gradient(135deg, var(--forest-900) 0%, #1B5E20 100%);
    }

    .cta-title {
        color: #fff;
    }

    .cta-text {
        color: rgba(255,255,255,0.8);
    }

    /* Footer */
    .footer {
        background: #101012;
    }

    .footer-logo span {
        color: var(--text);
    }

    .footer-description {
        color: var(--text-muted);
    }

    .footer-badge {
        background: var(--bg-elevated);
        color: var(--text-light);
    }

    .footer-column-title {
        color: var(--text);
    }

    .footer-link {
        color: var(--text-muted);
    }

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

    .footer-bottom {
        border-color: var(--bg-elevated);
        color: var(--text-muted);
    }

    .footer-legal-link {
        color: var(--text-muted);
    }

    .footer-legal-link:hover {
        color: var(--primary);
    }

    /* Buttons */
    .btn-secondary {
        background: var(--bg-elevated);
        color: var(--text);
    }

    .btn-secondary:hover {
        background: var(--bg-card);
    }

    /* Tooltips */
    .tooltip-content {
        background: var(--bg-elevated);
        color: var(--text);
        box-shadow: var(--shadow-lg);
    }

    /* Selection */
    ::selection {
        background: rgba(102, 187, 106, 0.3);
        color: #fff;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 10px;
        background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--bg-elevated);
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--graphite-400);
    }
}

/* Dark mode toggle support (manual override) */
[data-theme="dark"] {
    --bg: #1a1a1f;
    --bg-light: #242429;
    --bg-card: #2a2a30;
    --bg-elevated: #323238;
    --text: #e8e8ed;
    --text-light: #a0a0a8;
    --text-muted: #707078;
    --primary: var(--forest-400);
}

[data-theme="light"] {
    --bg: var(--cream-200);
    --bg-light: var(--cream-50);
    --text: var(--graphite-800);
    --text-light: var(--graphite-500);
    --text-muted: var(--graphite-400);
    --primary: var(--forest-800);
}
