/**
 * JURIS Dark Theme - Premium Dark Mode with Animations
 * Inspired by Alpha Group's sophisticated dark aesthetic
 */

/* =============================================================================
   Custom Fonts - TWK Everett
   ============================================================================= */
@font-face {
    font-family: 'TWK Everett';
    src: url('/site/assets/fonts/TWKEverett-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('/site/assets/fonts/TWKEverett-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('/site/assets/fonts/TWKEverett-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TWK Everett';
    src: url('/site/assets/fonts/TWKEverett-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* =============================================================================
   Dark Color Palette - Premium Enterprise
   ============================================================================= */
:root {
    /* Dark Backgrounds */
    --color-void: #050508;
    --color-obsidian: #0a0a0f;
    --color-carbon: #0f0f14;
    --color-graphite: #14141a;
    --color-slate-dark: #1a1a22;

    /* Accent Colors */
    --color-cyan: #00d4ff;
    --color-electric-blue: #3b82f6;
    --color-violet: #8b5cf6;
    --color-magenta: #ec4899;
    --color-emerald: #10b981;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-subtle: rgba(255, 255, 255, 0.3);

    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-accent: rgba(0, 212, 255, 0.3);

    /* Spacing */
    --space-section: 6rem;
    --space-section-lg: 8rem;
}

/* =============================================================================
   Base Styles
   ============================================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-obsidian);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3 {
    font-family: 'TWK Everett', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* =============================================================================
   Animated Background Grid
   ============================================================================= */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: var(--gradient-glow);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: glowFloat 20s ease-in-out infinite;
}

.bg-glow-1 {
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-glow-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* =============================================================================
   Scroll Animations
   ============================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero-dark {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero background zoom animation */
@keyframes heroZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero-slide {
    animation: heroZoom 20s ease-in-out infinite;
    will-change: transform;
}

/* Hero Text Animation */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: white;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    animation: heroTitleFade 1.2s ease forwards;
}

@keyframes heroTitleFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    animation: heroSubtitleFade 1s ease 0.4s both;
}

@keyframes heroSubtitleFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =============================================================================
   Glassmorphism Cards
   ============================================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 212, 255, 0.05);
}

.glass-card-accent {
    position: relative;
    overflow: hidden;
}

.glass-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card-accent:hover::before {
    opacity: 1;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn-primary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: white;
    background: var(--color-cyan);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary-dark span {
    position: relative;
    z-index: 1;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-cyan);
    background: transparent;
    border: 1px solid var(--color-cyan);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Glow button */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* =============================================================================
   Navigation
   ============================================================================= */
.nav-dark {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-dark.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-link-dark {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-dark:hover {
    color: white;
}

.nav-link-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* =============================================================================
   Section Styles
   ============================================================================= */
.section-dark {
    position: relative;
    padding: var(--space-section) 0;
    z-index: 1;
}

@media (min-width: 1024px) {
    .section-dark {
        padding: var(--space-section-lg) 0;
    }
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Section with top border accent */
.section-border-top {
    border-top: 1px solid var(--color-border);
}

/* =============================================================================
   Headlines
   ============================================================================= */
.headline-section-dark {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
}

.headline-small-dark {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

/* =============================================================================
   Feature Cards
   ============================================================================= */
.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-cyan);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* =============================================================================
   Industry Cards with Images
   ============================================================================= */
.industry-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-carbon);
    border: 1px solid var(--color-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-8px);
}

.industry-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.industry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(30%) brightness(0.8);
}

.industry-card:hover .industry-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.industry-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-carbon) 0%, transparent 50%);
}

.industry-card-content {
    padding: 1.5rem;
}

.industry-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.industry-card-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.industry-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-cyan);
    transition: color 0.3s ease;
}

.industry-card-link svg {
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-card-link svg {
    transform: translateX(4px);
}

/* =============================================================================
   Process Steps
   ============================================================================= */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.process-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid var(--color-border-accent);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.process-content {
    flex: 1;
}

.process-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.process-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Connecting line between steps */
.process-steps-container {
    position: relative;
}

.process-steps-container::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 48px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-border-accent), transparent);
}

/* =============================================================================
   CTA Section
   ============================================================================= */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-graphite) 0%, var(--color-obsidian) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer-dark {
    background: var(--color-void);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer-link {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* =============================================================================
   Dropdown Menus
   ============================================================================= */
.dropdown-menu-dark {
    background: rgba(20, 20, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu-dark.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-dark {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item-dark:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item-dark::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item-dark:hover::before {
    opacity: 1;
}

/* =============================================================================
   Logo
   ============================================================================= */
.logo-dark-theme {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================================================
   Utility Classes
   ============================================================================= */
.text-glow {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.border-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Container */
.container-dark {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container-dark {
        padding: 0 2rem;
    }
}

/* =============================================================================
   Parallax Image Sections
   ============================================================================= */
.parallax-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    z-index: 0;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.45) 50%, rgba(10, 10, 15, 0.25) 100%);
    z-index: 1;
}

.parallax-overlay-dark {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(10, 10, 15, 0.6) 100%);
}

.parallax-overlay-center {
    background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.35) 0%, rgba(10, 10, 15, 0.7) 100%);
}

.parallax-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Split layout - text left, image right visible */
.split-parallax {
    min-height: 70vh;
}

.split-parallax .parallax-overlay {
    background: linear-gradient(90deg, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.65) 35%, rgba(10, 10, 15, 0.15) 100%);
}

/* Full-width text over image */
.fullwidth-parallax {
    min-height: 60vh;
    text-align: center;
}

.fullwidth-parallax .parallax-overlay {
    background: rgba(10, 10, 15, 0.55);
}

/* Parallax quote/statement section */
.statement-parallax {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.statement-parallax .parallax-overlay {
    background: linear-gradient(180deg, var(--color-obsidian) 0%, rgba(10, 10, 15, 0.45) 20%, rgba(10, 10, 15, 0.45) 80%, var(--color-obsidian) 100%);
}

.statement-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
    color: white;
    max-width: 900px;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Image reveal on scroll */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-obsidian);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal.revealed::after {
    transform: scaleX(0);
}

/* =============================================================================
   Responsive Adjustments
   ============================================================================= */
@media (max-width: 768px) {
    .hero-dark {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .section-dark {
        padding: 4rem 0;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* =============================================================================
   Focus States for Accessibility
   ============================================================================= */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

/* Skip link */
.skip-link-dark {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-cyan);
    color: var(--color-obsidian);
    padding: 0.5rem 1rem;
    z-index: 200;
    transition: top 0.3s ease;
}

.skip-link-dark:focus {
    top: 0;
}

/* =============================================================================
   Particle Canvas
   ============================================================================= */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* =============================================================================
   Inline Logo (scales with text)
   ============================================================================= */
.juris-logo-inline {
    display: inline-block;
    height: 0.85em;
    width: auto;
    vertical-align: baseline;
    position: relative;
    top: -0.05em;
}

/* =============================================================================
   Cookie Consent Banner
   ============================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: rgba(20, 20, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cookie-banner-text a:hover {
    opacity: 0.8;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-cyan);
    color: white;
    border: none;
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.cookie-btn-decline:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text-primary);
}

/* ── Form Validation ────────────────────────────────── */

.form-error {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

input.field-error,
select.field-error,
textarea.field-error {
    border-color: #f87171 !important;
}

input.field-error:focus,
select.field-error:focus,
textarea.field-error:focus {
    ring-color: #f87171;
    box-shadow: 0 0 0 1px #f87171;
}

.form-success-state {
    text-align: center;
    padding: 3rem 2rem;
}

/* ── Calendly Container ─────────────────────────────── */

.calendly-container {
    border-radius: 16px;
    overflow: hidden;
}

.calendly-inline-widget {
    border-radius: 16px;
}

/* ── Compliance Badges ──────────────────────────────── */

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.compliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.compliance-badge:hover {
    opacity: 0.7;
}

.compliance-badge svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-text-muted);
}

.compliance-badge span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* ── Stats Strip ────────────────────────────────────── */

.stat-value {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-cyan);
    line-height: 1.2;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ── Temporarily hide Request Demo CTAs sitewide ─────
   Demo flow is not yet live. This hides every anchor linking to the
   demo-request page (buttons in hero, CTAs, footer, header nav/mobile
   menu, and list items that contain only that anchor). To re-enable
   site-wide, delete the block below. The page itself and the POST
   handler /api/demo-request remain functional for direct URL access.
*/
a[href$="/request-demo.html"],
li:has(> a[href$="/request-demo.html"]) {
    display: none !important;
}

/* ── Hide footer compliance badges ────────────────────
   Badges are kept in the markup (see site/assets/components/footer.html)
   but not displayed. Hides the entire wrapper so the border-top + margin
   also collapse, leaving a clean footer with just the column grid and
   bottom bar. To re-show, delete this block.
*/
footer div:has(> .compliance-badges) {
    display: none !important;
}
