/* ========================================
   Egir Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

:focus:not(:focus-visible) {
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge, .section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--primary);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

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

.logo img {
    height: 56px;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* CTA separator and styling */
.nav-links .btn-primary {
    color: var(--white);
    margin-left: 0.5rem;
    padding-left: 1.5rem;
    border-left: none;
    position: relative;
}

.nav-links .btn-primary::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--gray-200);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

/* Nav progress bar */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
}

.nav-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.1s linear;
}

/* Active nav link */
.nav-links a:not(.btn).active {
    color: var(--primary);
}

.nav-links a:not(.btn).active::after {
    transform: scaleX(1);
}

/* ========================================
   Sticky CTA Mobile
   ======================================== */
.sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .sticky-cta.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .sticky-cta .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Add bottom padding to footer so sticky CTA doesn't cover content */
    .footer {
        padding-bottom: 5rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    /* Multi-layer background with subtle pattern */
    background:
        /* Dot pattern overlay */
        radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        /* Main gradient */
        linear-gradient(180deg, #f0f4ff 0%, var(--gray-50) 40%, var(--white) 100%);
    background-size: 24px 24px, 100% 100%;
}

/* Hero rotating text */
.hero-rotating-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: text-bottom;
    overflow: hidden;
    height: 1.25em;
}

.hero-rotating {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.hero-rotating.slide-out {
    transform: translateY(-100%);
    opacity: 0;
}

.hero-rotating.slide-in {
    transform: translateY(100%);
    opacity: 0;
}

/* Large decorative blob - top right */
.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-slow 20s ease-in-out infinite;
}

/* Secondary blob - bottom left */
.hero::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.02) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content .badge {
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero wave divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.mockup-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-content {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 180px;
    padding: 1rem;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
}

.menu-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.mockup-main {
    flex: 1;
    padding: 1.5rem;
    position: relative;
}

.card-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header-preview {
    padding: 1rem;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

.card-stats-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.mini-stat {
    flex: 1;
    text-align: center;
}

.mini-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.mini-stat strong {
    font-size: 0.875rem;
    color: var(--gray-900);
}

.mini-stat.good strong {
    color: var(--accent);
}

/* Mockup interactive cursor */
.mockup-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 12px;
    left: 40%;
    pointer-events: none;
    z-index: 2;
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1), left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-cursor::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary);
    border-right: 6px solid transparent;
    border-bottom: 10px solid transparent;
    border-top: 2px solid var(--primary);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Mockup fade transition for cycling dishes */
.card-header-preview,
.mini-stat {
    transition: opacity 0.3s ease;
}

.card-header-preview.mockup-fade,
.mini-stat.mockup-fade {
    opacity: 0;
}

/* ========================================
   Problem Section
   ======================================== */
.problem {
    padding: var(--section-padding);
    background: var(--white);
}

.problem h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.problem-card {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    color: var(--danger);
    transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.problem-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Solution / Features Section
   ======================================== */
.solution {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header .section-badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

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

.feature-card.highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.feature-card.highlight h3,
.feature-card.highlight p,
.feature-card.highlight li {
    color: var(--white);
}

.feature-card.highlight .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

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

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.feature-card.highlight .feature-list li::before {
    background: var(--white);
}

/* ========================================
   Trust Section
   ======================================== */
.trust-section {
    padding: 3.5rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}


/* ========================================
   Calculator Section
   ======================================== */
.calculator-section {
    padding: var(--section-padding);
    background: var(--white);
}

.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

.calculator-input {
    margin-bottom: 2rem;
}

.calculator-input label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
    padding: 1rem 0;
}

#ca-slider {
    --progress: 10.5%;
    width: 100%;
    height: 44px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#ca-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress), var(--gray-200) var(--progress), var(--gray-200) 100%);
}

#ca-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
    margin-top: -10px;
}

#ca-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#ca-slider::-moz-range-track {
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress), var(--gray-200) var(--progress), var(--gray-200) 100%);
}

#ca-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.result-card.total {
    background: var(--gradient-primary);
    border: none;
    padding: 1.5rem;
}

.result-card.total .result-content {
    width: 100%;
    text-align: center;
}

.result-card.total .result-label,
.result-card.total .result-sublabel {
    color: rgba(255, 255, 255, 0.9);
}

.result-card.total .result-value {
    color: var(--white);
    font-size: 1.5rem;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.result-card.gain .result-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.result-card.time .result-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.result-card.cost .result-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.result-content {
    flex: 1;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.result-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.result-value.highlight {
    color: var(--accent);
}

.result-sublabel {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.roi-message {
    text-align: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    font-size: 1.125rem;
}

/* ROI Gauge Donut */
.roi-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 2rem;
    position: relative;
    width: 140px;
}

.roi-gauge-svg {
    width: 140px;
    height: 140px;
}

.roi-gauge-svg circle:last-child {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-gauge-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-gauge-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.roi-gauge-label {
    font-size: 0.6875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.calculator-cta {
    text-align: center;
}

.cta-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.calculator-details {
    max-width: 700px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.calculator-details h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: var(--section-padding);
    padding-bottom: 0;
    background: var(--gray-50);
    position: relative;
}

/* Wave divider at bottom of pricing → contact */
.pricing::after {
    content: "";
    display: block;
    width: 100%;
    height: 80px;
    margin-top: 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, #0f172a 100%);
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.price-old {
    font-size: 1.25rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-current {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.price-period {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.price-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.pricing-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(230deg, #0f172a, #1a1040, #0b1120, #0f1a2e);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating light particles */
.contact-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: particle-float linear infinite;
}

.contact-particles span:nth-child(1) { left: 10%; top: 20%; animation-duration: 18s; width: 3px; height: 3px; }
.contact-particles span:nth-child(2) { left: 30%; top: 70%; animation-duration: 22s; animation-delay: -5s; }
.contact-particles span:nth-child(3) { left: 55%; top: 15%; animation-duration: 20s; animation-delay: -8s; width: 5px; height: 5px; background: rgba(37, 99, 235, 0.2); }
.contact-particles span:nth-child(4) { left: 75%; top: 60%; animation-duration: 25s; animation-delay: -3s; width: 3px; height: 3px; }
.contact-particles span:nth-child(5) { left: 85%; top: 30%; animation-duration: 19s; animation-delay: -10s; background: rgba(124, 58, 237, 0.2); }
.contact-particles span:nth-child(6) { left: 45%; top: 85%; animation-duration: 23s; animation-delay: -7s; width: 3px; height: 3px; }

@keyframes particle-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

/* Decorative blobs */
.contact-section::before {
    content: "";
    position: absolute;
    top: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-slow 20s ease-in-out infinite;
}

.contact-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left pitch */
.contact-pitch .section-badge {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.contact-pitch h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.contact-pitch-sub {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.65rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.contact-benefits svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.contact-trust svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Right form card */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.contact-card-header {
    background: var(--gradient-primary);
    padding: 1.75rem 2.5rem;
    text-align: center;
}

.contact-card-header h3 {
    color: var(--white);
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.contact-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.contact-card form {
    padding: 2rem 2.5rem 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-optional {
    font-weight: 400;
    color: var(--gray-400);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper .form-input {
    padding-left: 2.875rem;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:hover {
    border-color: var(--gray-300);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.form-submit-area {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.form-note svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Success state */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 4rem 2rem;
}

.success-icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    color: var(--accent);
    animation: success-pop 0.4s ease-out;
}

@keyframes success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
}

.form-success p {
    color: var(--gray-600);
    max-width: 320px;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background: #0b1120;
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 56px !important;
    max-height: 56px !important;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.footer-column a {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    padding: 0.375rem 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.8125rem;
}

/* ========================================
   Bento Grid Features
   ======================================== */
.features-grid.bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.features-grid.bento .bento-a { grid-column: 1; grid-row: 1; }
.features-grid.bento .bento-b { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; }
.features-grid.bento .bento-c { grid-column: 1; grid-row: 2; }

/* ========================================
   Trust Banner
   ======================================== */
.trust-banner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-banner-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.trust-banner-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gray-200);
}

.trust-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: var(--radius-xl);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.trust-banner-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-banner-item strong {
    font-size: 0.9375rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.trust-banner-item p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   Pricing Comparison
   ======================================== */
.pricing-comparison {
    margin: 1.5rem 0;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.comparison-label.sans { color: var(--gray-400); }
.comparison-label.avec { color: var(--primary); }

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-50);
    align-items: center;
}

.comparison-row:last-child { border-bottom: none; }

.comparison-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.comparison-val {
    font-size: 0.8125rem;
    text-align: center;
}

.comparison-val.sans { color: var(--gray-400); }
.comparison-val.avec { color: var(--accent); font-weight: 600; }

/* Enhanced icon bounce animation */
@keyframes icon-bounce {
    0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(3deg); }
    70% { transform: scale(0.95) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.animate-on-scroll.is-visible .feature-icon,
.animate-fade-left.is-visible .feature-icon,
.animate-fade-right.is-visible .feature-icon,
.animate-scale.is-visible .feature-icon,
.animate-on-scroll.is-visible .problem-icon {
    animation: icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-on-scroll.is-visible .trust-banner-icon {
    animation: icon-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    /* Trust banner — 2x2 on tablet */
    .trust-banner {
        flex-wrap: wrap;
    }

    .trust-banner-item {
        flex: 1 1 45%;
    }

    .trust-banner-item:nth-child(2)::after {
        display: none;
    }

    /* Bento grid — single column on tablet */
    .features-grid.bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 500px;
        margin: 0 auto;
    }

    .features-grid.bento .bento-a { grid-column: 1; grid-row: auto; }
    .features-grid.bento .bento-b { grid-column: 1; grid-row: auto; }
    .features-grid.bento .bento-c { grid-column: 1; grid-row: auto; }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 520px;
        margin: 0 auto;
    }

    .contact-pitch {
        text-align: center;
    }

    .contact-benefits {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-trust {
        display: flex;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    /* Navbar — smaller logo on mobile */
    .logo img {
        height: 40px;
    }

    .navbar.scrolled .logo img {
        height: 34px;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 0 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        padding: 1rem;
    }

    .nav-links a:not(.btn) {
        padding: 0.75rem 0;
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links .btn-primary {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links .btn-primary::before {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero — compact on mobile */
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Hide mockup on mobile — not useful on small screens */
    .hero-visual {
        display: none;
    }

    .hero-wave svg {
        height: 40px;
    }

    /* Problems — 2 columns on tablet, more compact */
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .problem-card {
        padding: 1rem;
    }

    .problem-card h3 {
        font-size: 0.875rem;
    }

    .problem-card p {
        font-size: 0.8125rem;
    }

    .problem-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    /* Section header — tighter on mobile */
    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Features — full width, compact */
    .features-grid.bento {
        max-width: none;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Trust banner — vertical stack on mobile */
    .trust-section {
        padding: 2rem 0;
    }

    .trust-banner {
        flex-direction: column;
        align-items: center;
    }

    .trust-banner-item {
        flex: none;
        width: 100%;
        padding: 1rem 1.5rem;
        flex-direction: row;
        gap: 1rem;
        text-align: left;
    }

    .trust-banner-item:not(:last-child)::after {
        display: none;
    }

    .trust-banner-item:not(:last-child) {
        border-bottom: 1px solid var(--gray-100);
    }

    .trust-banner-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .trust-banner-number {
        font-size: 1.25rem;
    }

    /* Pricing comparison — smaller text on mobile */
    .pricing-comparison {
        margin: 1rem 0;
    }

    .comparison-item {
        font-size: 0.75rem;
    }

    .comparison-val {
        font-size: 0.6875rem;
    }

    .comparison-label {
        font-size: 0.625rem;
    }

    /* Calculator — keep result cards horizontal */
    .result-card {
        padding: 0.75rem 1rem;
    }

    .result-icon {
        width: 40px;
        height: 40px;
    }

    .result-value {
        font-size: 1rem;
    }

    .result-card.total {
        padding: 1rem;
    }

    .result-card.total .result-value {
        font-size: 1.25rem;
    }

    /* CTA buttons — smaller text to avoid wrapping */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .calculator-cta .btn-large {
        font-size: 0.9375rem;
    }

    .roi-message {
        font-size: 0.9375rem;
        padding: 0.75rem;
    }

    /* ROI details compact */
    .calculator-details {
        margin-top: 2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Pricing — compact */
    .pricing::after {
        height: 50px;
        margin-top: 2.5rem;
    }

    /* Contact section — tighter */
    .contact-section {
        padding: 4rem 0 3rem;
    }

    .contact-pitch-sub {
        margin-bottom: 1.5rem;
    }

    .contact-benefits {
        margin-bottom: 1.5rem;
    }

    /* Footer — compact */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-column h4 {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 1.5rem;
    }

    /* Keep result cards horizontal but tighter */
    .result-card {
        gap: 0.75rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 3rem;
    }

    .contact-card form {
        padding: 1.5rem 1.5rem 2rem;
    }

    .contact-card-header {
        padding: 1.5rem;
    }
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.legal-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.legal-update {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1rem;
    color: var(--gray-800);
    margin: 1.25rem 0 0.75rem;
}

.legal-section p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.legal-section ul li {
    padding: 0.375rem 0 0.375rem 1.25rem;
    position: relative;
    line-height: 1.6;
    color: var(--gray-600);
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--primary-dark);
}

/* Cookie table */
.cookie-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cookie-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
}

.cookie-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: top;
}

.cookie-table code {
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 0 2.5rem;
    }

    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .cookie-table {
        margin: 1rem -0.5rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   Scroll Animations
   ======================================== */

/* Base state - hidden */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Fade in from left */
.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
