/* Lorient Website Styles */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    /* Lorient Warm Palette (orange + white) */
    --primary: #111827;              /* Ink */
    --primary-light: #1f2937;
    --ink-2: #374151;                /* Secondary text */
    --paper: #ffffff;                /* Page background */
    --paper-2: #f8fafc;              /* Section bg */
    --white: #ffffff;
    --surface: #ffffff;              /* Card/Panel surface */
    --surface-2: #f9fafb;            /* Elevated surface */
    /* Gray scale mapping to support legacy tokens */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --accent: #ff6a00;               /* Primary Orange */
    --accent-secondary: #ff8a3d;     /* Lighter Orange */
    --accent-tertiary: #ffb020;      /* Amber */
    --accent-success: #22c55e;
    --accent-error: #ff5a6f;
    --accent-warning: #ffb020;

    /* Gradients (warm light) */
    --gradient-primary: linear-gradient(135deg, #fff7ed 0%, #fffaf0 50%, #ffffff 100%);
    /* Dedicated background for Pricing section so it differs from others */
    --gradient-pricing: radial-gradient(900px 420px at 0% 10%, rgba(255, 106, 0, 0.08), transparent 60%),
                        radial-gradient(800px 380px at 100% 0%, rgba(255, 176, 32, 0.08), transparent 55%),
                        linear-gradient(180deg, #fff9f3 0%, #ffffff 100%);
    --gradient-accent: linear-gradient(135deg, #ff6a00 0%, #ff8a3d 50%, #ffb020 100%);
    --gradient-secondary: linear-gradient(135deg, #ffb020 0%, #ff8a3d 100%);
    --gradient-tertiary: linear-gradient(135deg, #ffe8bf 0%, #ff6a00 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    --gradient-hero: radial-gradient(1000px 500px at 10% 20%, rgba(255, 149, 64, 0.10), transparent 60%),
                     radial-gradient(800px 400px at 80% 0%, rgba(255, 176, 32, 0.10), transparent 55%),
                     radial-gradient(700px 350px at 50% 90%, rgba(255, 138, 61, 0.08), transparent 50%),
                     linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);

    /* Shadows (soft on light) */
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 12px 24px rgba(17, 24, 39, 0.10);
    --shadow-xl: 0 24px 40px rgba(17, 24, 39, 0.12);
    --shadow-2xl: 0 40px 80px rgba(17, 24, 39, 0.14);
    --shadow-glow: 0 0 0 8px rgba(255,106,0,0.12), 0 8px 24px rgba(255,106,0,0.22);

    /* Glass Effects (on light) */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(17, 24, 39, 0.08);
    --glass-backdrop: blur(16px) saturate(140%);

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

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

    /* Border Radius (softer) */
    --radius-sm: 0.6rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-2xl: 2.25rem;

    --desc-minh: 120px;
}

/* Base Styles */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: hidden;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    scroll-padding-top: 0;
    scroll-snap-type: y mandatory;
}

/* Full-page sections */
.page-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--primary);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Premium Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    z-index: -1;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    max-width: none; /* stretch to viewport width */
    width: 100%;
    margin: 0;
    padding: 0 var(--space-xl);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo .logo-img { height: 52px; width: auto; display: block; transition: transform 0.2s ease, filter 0.2s ease; }
.nav-logo:hover .logo-img { transform: scale(1.08); filter: saturate(1.05); }

/* Text logo styles */
.nav-logo.text-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease;
}
.nav-logo.text-logo:hover { transform: scale(1.05); }
.nav-logo .logo-text { color: var(--primary); }
.nav-logo .logo-accent { color: var(--accent); }

@media (min-width: 1024px) {
    .nav-logo .logo-img { height: 64px; }
    .nav-logo:hover .logo-img { transform: scale(1.1); }
    .nav-logo.text-logo { font-size: 1.8rem; }
}

.nav-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    /* Simulate slight bold without reflow */
    -webkit-text-stroke: 0.3px currentColor;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover::after { opacity: 1; transform: translateY(0); }

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: var(--white);
    color: var(--ink-2);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)), var(--gradient-secondary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: var(--space-xl) var(--space-3xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Premium Hero Section */
.hero-wave {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top, #fef6f0 0%, #ffffff 100%);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--primary);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
}

/* Ensure anchored scroll reveals section title + features */
/* Use global scroll-padding-top instead of per-anchor margins */

.hero-wave::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 5% 40%, rgba(255, 78, 205, 0.10), transparent 60%),
                radial-gradient(500px 280px at 80% 20%, rgba(22, 195, 172, 0.12), transparent 60%),
                radial-gradient(400px 220px at 60% 90%, rgba(255, 209, 102, 0.12), transparent 60%);
    z-index: 0;
}

.hero-wave::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1400" height="800"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.04"/></feComponentTransfer></filter><rect width="1400" height="800" filter="url(%23n)" opacity="0.4"/></svg>');
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    flex: 1;
}

/* Canvas background for hero */
.hero-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    /* Remove entrance animation to avoid title movement on load */
    animation: none;
    text-align: center;
    position: static; /* allow CTA to anchor to hero container */
}

/* Removed center hero logo */

.hero-title {
    font-family: 'Outfit', 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-tagline {
    font-family: 'Outfit', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 500;
    color: var(--ink-2);
    margin-top: -0.25rem;
    opacity: 1; /* keep static */
    animation: none;
}

.hero-cta-row {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
}
.hero-learn-btn {
    position: relative;
    display: inline-block;
    font-family: 'Outfit', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent, #ff6a00);
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    opacity: 1;
    transition: color 0.2s ease;
}
.hero-learn-btn:hover,
.hero-learn-btn:focus-visible {
    color: var(--accent-secondary, #ff8a3d);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.75;
    margin-bottom: var(--space-3xl);
    color: rgba(17,24,39,0.7);
    max-width: 640px;
}

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

.stat {
    text-align: center;
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Premium Dashboard Mockup */
.hero-image {
    position: relative;
}

.dashboard-mockup {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-6deg) rotateX(1.5deg);
    transition: box-shadow 0.3s ease;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    height: 360px; /* lock height to prevent layout shift */
}

.dashboard-mockup:hover { box-shadow: var(--shadow-2xl); }

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

/* Voice note (live waveform) */
/* Simplified status panels (replaces voice-note + typing UI) */
.status-panel { background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.status-help { color: var(--ink-2); margin: 0; }


.voice-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; }
.voice-meta { white-space: nowrap; }
.live-text { opacity: 0.85; }

/* Remove heavy waveform animation */

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.mockup-dots {
    display: flex;
    gap: var(--space-sm);
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.7;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: var(--accent-tertiary); }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-content { flex: 1 1 auto; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-md); }
.mockup-content > div {
    margin-bottom: 0; /* use gap on parent to space items */
    padding: var(--space-lg);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.call-transcription h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.call-transcription p {
    font-size: 0.95rem;
    color: var(--ink-2);
    font-style: italic;
    margin: 0; /* avoid extra spacing that shifts layout */
    height: 48px; /* keep constant height */
    overflow: hidden;
}

.ai-suggestion {
    background: var(--gradient-accent);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    height: 36px; /* keep constant height */
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}
.ai-suggestion strong { margin-right: 6px; }

.ai-suggestion .live-typing,
.call-transcription .live-typing {
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.green { background: #10b981; }
.status-dot.blue { background: var(--accent); }

/* Premium Sections */
section { padding: var(--space-4xl) 0; position: relative; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--primary);
}

.section-header p { font-size: 1.1rem; color: var(--ink-2); line-height: 1.7; }

/* Premium Features */
.features-section .section-header { margin-bottom: var(--space-xl); }
.features-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: var(--paper);
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.features-section::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,0.15), transparent); }
.features-section::after {
    content: '';
    position: absolute;
    inset: auto -20% 0 -20%;
    height: 180px;
    background: radial-gradient(60% 140% at 50% 100%, rgba(255, 138, 61, 0.08), transparent 70%);
    pointer-events: none;
}

.features-section .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* 4-column grid for products - fluid scaling */
.features.features-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 1400px) {
    .features.features-4 {
        gap: clamp(12px, 1.5vw, 20px);
    }
}

@media (max-width: 1200px) {
    .features {
        gap: 24px;
    }
    .features.features-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .features.features-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .features {
        gap: 16px;
    }
    .features.features-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* On mobile, allow sections to grow beyond viewport if content requires */
    html {
        scroll-snap-type: y proximity;
    }

    .features-section,
    .pricing-section,
    .contact-section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 2.5vw, 32px);
    border-radius: clamp(12px, 1.5vw, 16px);
    border: 1px solid #e5e7eb;
    box-shadow: none;
    background: #ffffff;
    height: 100%;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
}

.icon-box {
    width: clamp(40px, 4vw, 48px);
    height: clamp(40px, 4vw, 48px);
    display: grid;
    place-items: center;
    border-radius: clamp(10px, 1vw, 12px);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    margin: 0 0 clamp(8px, 1vw, 12px);
    color: #ea580c;
}

.icon-box svg,
.icon-box img {
    width: clamp(22px, 2.5vw, 28px);
    height: clamp(22px, 2.5vw, 28px);
}

.card h3 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
    margin: 8px 0 4px;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.accent-line {
    font-weight: 700;
    display: block;
    font-size: clamp(11px, 1.2vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ea580c;
}

.headline-rest {
    display: block;
    color: var(--primary);
    font-weight: 700;
}

.desc {
    min-height: var(--desc-minh);
    color: #4B5563;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-end;
}
.desc span {
    display: block;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.pill {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    font-weight: 500;
    font-size: 13px;
    color: #c2410c;
}

/* Follow-Up Capacity Planner */
.capacity-planner-section {
    position: relative;
    padding: clamp(88px, 16vh, 140px) 0;
    background:
        radial-gradient(900px 420px at 0% 12%, rgba(255, 214, 170, 0.24), transparent 60%),
        radial-gradient(900px 460px at 100% 18%, rgba(180, 246, 238, 0.22), transparent 62%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.92), #ffffff 100%);
}

.capacity-planner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.capacity-planner-shell {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px;
}

.capacity-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    display: grid;
    gap: 16px;
}

.capacity-subtext {
    margin: 0;
    color: var(--ink-2, #4b5563);
    font-size: 1.05rem;
    line-height: 1.6;
}

.capacity-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 1024px) {
    .capacity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.planner-card {
    background: var(--surface, #ffffff);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.planner-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.45rem;
    font-weight: 700;
}

.planner-form {
    display: grid;
    gap: 20px;
}

.planner-field {
    display: grid;
    gap: 8px;
}

.planner-field label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.planner-field input,
.planner-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    background: var(--paper, #ffffff);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planner-field input:focus,
.planner-field select:focus {
    outline: none;
    border-color: var(--accent, #ff7a00);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.planner-field input::-webkit-outer-spin-button,
.planner-field input::-webkit-inner-spin-button {
    margin: 0;
}

.planner-field input[type="number"] {
    -moz-appearance: textfield;
}

.capacity-results {
    gap: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

.status-idle {
    background: var(--paper-2, #f3f4f6);
    color: var(--ink-2, #4b5563);
}

.status-under {
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.status-near {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
}

.status-over {
    background: rgba(248, 113, 113, 0.22);
    color: #991b1b;
}

.kpi-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.kpi-row dt {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-2, #4b5563);
}

.kpi-row dd {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent, #ff7a00);
}

.capacity-helper {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-2, #4b5563);
}

.capacity-helper.is-hidden {
    display: none;
}

.capacity-context {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--primary);
}

.capacity-context strong {
    display: block;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--accent, #ff7a00);
    margin-top: 6px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .capacity-planner-shell {
        padding: 64px 20px;
    }

    .planner-card {
        padding: 24px;
    }

    .kpi-row {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        align-self: flex-start;
    }
}

/* Responsive mockup height tuning */
@media (max-width: 1024px) {
  .dashboard-mockup { height: 320px; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 100px; }
  .dashboard-mockup { height: 280px; }
}

/* Premium ROI Section */
.roi-section {
    background: var(--gradient-primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.roi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.roi-section .container {
    position: relative;
    z-index: 2;
}

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

.roi-text h2 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.roi-highlight {
    font-size: 1.3rem;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

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

.roi-stats {
    display: grid;
    gap: var(--space-lg);
}

.roi-stat {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-backdrop);
}


/* Premium Testimonials */
.testimonials { background: var(--paper); }

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

.testimonial-card {
    background: var(--surface);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148,163,184,0.15);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: var(--space-xl);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.author-info h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--accent-tertiary);
    font-size: 1.3rem;
}

/* Clean up hero Learn More button: remove arrows, use underline */
.hero-learn-btn {
    position: relative;
}
.hero-learn-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #ff6a00 0%, #e55600 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 1;
}
.hero-learn-btn:hover::after,
.hero-learn-btn:focus-visible::after {
    transform: scaleX(1);
}

/* Pricing */
@keyframes pricingGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ctaShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pricing-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: linear-gradient(-45deg, #ffffff, #fff8f5, #fef3ec, #fff5eb, #ffffff);
    background-size: 400% 400%;
    animation: pricingGradient 12s ease infinite;
    overflow: hidden;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 20% 30%, rgba(255, 106, 0, 0.06), transparent 60%),
        radial-gradient(500px 350px at 80% 70%, rgba(255, 138, 61, 0.05), transparent 60%);
    pointer-events: none;
}

.pricing-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    gap: 32px;
}

.pricing-intro {
    text-align: center;
    display: grid;
    gap: 16px;
}

.pricing-intro h2 {
    margin: 0;
}

.pricing-intro p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink-2);
    line-height: 1.7;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 106, 0, 0.12);
    border-radius: 24px;
    box-shadow:
        0 4px 24px rgba(255, 106, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 48px;
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "pricing content"
        "cta content";
    gap: 32px 48px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(255, 106, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card__pricing {
    grid-area: pricing;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card__guarantee {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.pricing-card__content {
    grid-area: content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-left: 48px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-card__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card__section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 106, 0, 0.2);
}

.pricing-card__cta-wrapper {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.pricing-card__cta-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-2);
}

.pricing-card__label {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(255, 106, 0, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
}

.pricing-card__callout {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.pricing-card__callout .pricing-period {
    font-size: 0.4em;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--ink-2);
    color: var(--ink-2);
}

.pricing-card__seat {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-2);
}

.pricing-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.pricing-card__features li:hover {
    background: rgba(255, 106, 0, 0.04);
}

.pricing-card__features svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.3));
}

.pricing-card__features span {
    line-height: 1.4;
}

.pricing-cta {
    grid-area: cta;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    box-shadow:
        0 4px 16px rgba(255, 106, 0, 0.35),
        0 8px 24px rgba(255, 106, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: none;
}

.pricing-cta:hover::before {
    animation: ctaShine 0.6s ease forwards;
}

.pricing-cta:hover,
.pricing-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(255, 106, 0, 0.4),
        0 16px 40px rgba(255, 106, 0, 0.2);
}

.pricing-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

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

@media (max-width: 900px) {
    .pricing-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "pricing"
            "content"
            "cta";
        text-align: center;
        padding: 40px 32px;
        gap: 32px;
    }

    .pricing-card__pricing {
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        align-items: center;
    }

    .pricing-card__content {
        padding-left: 0;
        border-left: none;
        grid-template-columns: repeat(3, 1fr);
        padding-top: 8px;
    }

    .pricing-card__cta-wrapper {
        align-items: center;
    }

    .pricing-cta {
        width: auto;
    }
}

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

@media (max-width: 500px) {
    .pricing-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .pricing-card__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card__section-title {
        text-align: center;
    }

    .pricing-card__features li {
        justify-content: flex-start;
    }

    .pricing-cta {
        width: 100%;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .pricing-section {
        animation: none;
        background: linear-gradient(-45deg, #ffffff, #fff8f5);
    }

    .pricing-card,
    .pricing-card__features li,
    .pricing-cta {
        transition: none;
    }

    .pricing-card:hover {
        transform: none;
    }

    .pricing-cta:hover::before {
        animation: none;
    }
}

/* Contact / Calendly */
.contact-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background:
        radial-gradient(900px 360px at 0% 15%, rgba(255, 214, 170, 0.16), transparent 65%),
        radial-gradient(900px 380px at 100% 30%, rgba(166, 239, 226, 0.18), transparent 65%),
        var(--paper);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.contact-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.contact-shell.contact-shell--centered {
    grid-template-columns: 1fr;
    max-width: 700px;
    text-align: center;
}

.contact-content.contact-content--centered {
    align-items: center;
}

.contact-content--centered .contact-actions {
    justify-content: center;
}

.contact-email-hint {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--ink-2);
}

.contact-email-hint a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

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

.contact-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #ff6a00);
}

.contact-content {
    display: grid;
    gap: 16px;
}

.contact-copy {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink-2, #4b5563);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6a00, #d94e00);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.22);
}

.contact-cta:hover,
.contact-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 106, 0, 0.3);
}

.contact-link {
    font-weight: 600;
    color: var(--accent, #ff6a00);
    text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
    text-decoration: underline;
}

.contact-widget {
    background: var(--surface, #fff);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    padding: 16px;
    min-height: 620px;
    display: flex;
}

.calendly-inline-widget {
    width: 100%;
    min-height: 588px;
}

.contact-widget noscript {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-2, #4b5563);
}

/* Footer */
.site-footer {
    background: #0f0f12;
    color: #ffffff;
    padding: 56px 24px;
}

.footer-shell {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-logo {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
}

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

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .nav-container {
        padding: 0 var(--space-lg);
    }
    .hero-content { margin-top: -96px; }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .dashboard-mockup {
        transform: perspective(800px) rotateY(-4deg) rotateX(1deg);
        margin: 0 auto;
        max-width: 400px;
    }
    .hero-content { margin-top: -72px; }
    
    .roi-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-shell {
        grid-template-columns: 1fr;
        padding: 48px 20px;
    }

    .contact-actions {
        justify-content: center;
    }

    .contact-widget {
        min-height: 520px;
    }

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

    .footer-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 1rem;
        --space-2xl: 1.5rem;
        --space-3xl: 2rem;
        --space-4xl: 3rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero {
        padding: 0;
    }
    .hero-content { margin-top: 0; }
    .hero-cta-row { bottom: 56px; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .testimonial-card,
    .pricing-card,
    .roi-calculator,
    .contact-widget {
        padding: var(--space-xl);
    }
    
    .btn-large {
        padding: var(--space-lg) var(--space-xl);
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-cta {
        width: 100%;
        justify-content: center;
    }

    .contact-widget {
        padding: 12px;
        min-height: 500px;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Typing Effect Styles */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typing-effect-subtitle {
    overflow: hidden;
    border-right: 2px solid var(--accent-secondary);
    white-space: nowrap;
    animation: typing-subtitle 4s steps(50, end) 1s both, blink-caret-subtle 0.75s step-end infinite 1s;
    opacity: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing-subtitle {
    from { 
        width: 0; 
        opacity: 1;
    }
    to { 
        width: 100%; 
        opacity: 1;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

@keyframes blink-caret-subtle {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-secondary); }
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.interactive-card:hover::before {
    left: 100%;
}

.subtle-glow {
    box-shadow: var(--shadow-blue);
    transition: box-shadow 0.3s ease;
}

.subtle-glow:hover {
    box-shadow: var(--shadow-lg), var(--shadow-blue);
}

/* Floating Animation */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* Scroll triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced stat cards with subtle colors */
.stat:nth-child(1) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat:nth-child(2) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat:nth-child(3) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .card, .icon-box { transition: none; }
}

/* Interactive hover effects for buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Sliding panels for creative sections */
.sliding-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.slide-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-panel-left {
    left: 0;
    background: var(--gradient-primary);
    transform: translateX(-100%);
}

.slide-panel-right {
    right: 0;
    background: var(--gradient-accent);
    transform: translateX(100%);
}

.slide-panel.active {
    transform: translateX(0);
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: var(--space-4xl) 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

/* Horizontal scroll section */
.horizontal-scroll-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.horizontal-scroll-container {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.horizontal-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.horizontal-slide:nth-child(1) { background: var(--gradient-primary); }
.horizontal-slide:nth-child(2) { background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%); }
.horizontal-slide:nth-child(3) { background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%); }
.horizontal-slide:nth-child(4) { background: var(--gradient-accent); }

.slide-nav {
    position: fixed;
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.slide-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-nav-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Creative split screen */
.split-reveal {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.split-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-left {
    left: 0;
    background: var(--primary);
    color: var(--white);
    transform: translateX(-50%);
}

.split-right {
    right: 0;
    background: var(--surface);
    color: var(--primary);
    transform: translateX(50%);
}

.split-half.revealed {
    transform: translateX(0);
}

.split-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-3xl);
}

/* Parallax layers */
.parallax-container {
    position: relative;
    height: 120vh;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
}

.parallax-bg {
    background: var(--gradient-primary);
    z-index: 1;
}

.parallax-mid {
    background: linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.1) 60%);
    z-index: 2;
}

.parallax-front {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Particle effect background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced mobile responsiveness for animations */
@media (max-width: 768px) {
    .typing-effect {
        animation: none;
        border: none;
        white-space: normal;
    }
    
    .typing-effect-subtitle {
        animation: none;
        border: none;
        white-space: normal;
        opacity: 1;
    }
    
    .glitch-text::before,
    .glitch-text::after {
        display: none;
.mockup-convo { display: flex; flex-direction: column; gap: 8px; height: 112px; }
    }
}
/* Features: grid layout (no snap scrolling) */

/* --- Wave canvas visibility & stacking --- */
.hero {
  position: relative;
  overflow: hidden;
  justify-content: center;
  gap: var(--space-2xl, 3rem);
  padding-block-start: clamp(48px, 9vh, 88px);
  padding-block-end: clamp(120px, 20vh, 176px);
}
.hero::before,
.hero::after { z-index: 0; }
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--space-lg, 2rem);
  padding-top: 50px;
}
.hero-content { margin-top: 0 !important; text-align: center; }
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { #heroCanvas { display: none; } }
.capacity-context .context-muted {
    display: block;
    font-size: 1rem;
    color: var(--ink-2, #4b5563);
}
