/* ==========================================
   GRAL - Institutional Design System
   Enterprise Platforms & Infrastructure
   ========================================== */

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #0f0f0f;
    --bg-elevated: #141414;
    
    --text-primary: #f5f5f5;
    --text-secondary: rgba(245, 245, 245, 0.65);
    --text-tertiary: rgba(245, 245, 245, 0.45);
    --text-muted: rgba(245, 245, 245, 0.25);
    
    --accent: #00d47e;
    --accent-dim: rgba(0, 212, 126, 0.08);
    --accent-border: rgba(0, 212, 126, 0.25);
    
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-medium: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
    --space-3xl: 6rem;
    --section-padding: var(--space-3xl);
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Fonts */
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

    /* Glow */
    --accent-glow: rgba(0, 212, 126, 0.15);

    /* Container */
    --container-max: 1200px;
    --container-padding: 2rem;
}

/* ==========================================
   Base
   ========================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: hidden;
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

.btn i {
    font-size: 1rem;
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(3px);
}

@keyframes border-beam {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-primary {
    background: transparent;
    color: var(--accent);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 212, 126, 0.1);
    z-index: 0;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.6) 75%,
        rgba(0, 255, 153, 1) 85%,
        rgba(0, 212, 126, 0.6) 95%,
        transparent 100%
    );
    z-index: -2;
    animation: border-beam 2.5s linear infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-primary, #0a0a0a);
    z-index: -1;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 126, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: rgba(0, 212, 126, 0.08);
    border-color: rgba(0, 212, 126, 0.25);
    color: var(--accent);
}

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

/* ==========================================
   Navigation - Full Width to Floating
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating state after hero */
.navbar.scrolled {
    top: 1rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1240px;
    padding: 1rem 1.75rem;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding var(--transition-base);
}

.navbar.scrolled .nav-container {
    padding: 0;
}

.navbar.scrolled .nav-links {
    gap: 1.75rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    transition: height var(--transition-base);
}

.navbar.scrolled .logo-img {
    height: 36px;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.navbar.scrolled .nav-link {
    font-size: 0.8125rem;
}

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

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0;
}

.dropdown-trigger i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    padding: 0.5rem;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.navbar.scrolled .dropdown-menu {
    top: calc(100% + 0.5rem);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

.dropdown-item i {
    font-size: 1.25rem;
    color: var(--accent);
}

.dropdown-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 16px rgba(0, 212, 126, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.nav-cta i {
    font-size: 0.9375rem;
    transition: transform var(--transition-base);
}

.navbar.scrolled .nav-cta i {
    font-size: 0.8125rem;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.6) 75%,
        rgba(0, 255, 153, 1) 85%,
        rgba(0, 212, 126, 0.6) 95%,
        transparent 100%
    );
    z-index: -2;
    animation: border-beam 2.5s linear infinite;
}

.nav-cta::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: #0c0c0c;
    z-index: -1;
}

.nav-cta:hover {
    box-shadow: 0 0 24px rgba(0, 212, 126, 0.15);
}

.nav-cta:hover i {
    transform: translateX(2px);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 100px var(--container-padding) 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

/* Stagger animation for menu children */
.mobile-menu-content > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content > * {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-content > *:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-content > *:nth-child(8) { transition-delay: 0.4s; }

.mobile-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.mobile-section:first-child {
    padding-top: 0;
    border-top: none;
}

.mobile-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
}

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

/* Primary sections (Platforms, Services) get larger links */
.mobile-section:nth-child(1) .mobile-link,
.mobile-section:nth-child(2) .mobile-link {
    font-size: 1.5rem;
}


/* Portfolio expandable list */
.mobile-portfolio-overflow {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-portfolio-overflow.expanded {
    display: flex;
}

.mobile-view-more {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

.mobile-view-more:hover {
    opacity: 1;
}

.mobile-view-more i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.mobile-view-more.expanded i {
    transform: rotate(180deg);
}

/* CTA button — matches nav-cta / btn-primary border-beam style */
.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    color: var(--accent);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 126, 0.1);
}

.mobile-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.6) 75%,
        rgba(0, 255, 153, 1) 85%,
        rgba(0, 212, 126, 0.6) 95%,
        transparent 100%
    );
    z-index: -2;
    animation: border-beam 2.5s linear infinite;
}

.mobile-cta::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-primary, #0a0a0a);
    z-index: -1;
}

.mobile-cta i {
    font-size: 1rem;
    transition: transform var(--transition-base);
}

.mobile-lang {
    margin-top: 0.5rem;
    opacity: 0.5;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.mobile-lang:hover {
    opacity: 0.8;
    color: var(--text-primary);
}

/* ==========================================
   Hero
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 180px 0 var(--space-2xl);
    overflow: hidden;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-bottom: var(--space-lg);
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    max-width: 650px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 769px) {
    .hero-ctas .btn-primary::before {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .hero-ctas .btn-primary:hover::before {
        opacity: 1;
    }
    .hero-ctas .btn-secondary {
        border-color: transparent;
        box-shadow: none;
    }
    .hero-ctas .btn-secondary:hover {
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================
   Reveal Animations - Interactive Transitions
   ========================================== */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition:
        opacity 2.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 2.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.9); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
}

/* Staggered delays */
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.9s; }
.delay-4 { transition-delay: 1.2s; }
.delay-5 { transition-delay: 1.5s; }
.delay-6 { transition-delay: 1.8s; }

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Section Styles
   ========================================== */

section {
    position: relative;
    padding: var(--space-3xl) 0;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-title {
    margin-bottom: 0.75rem;
}

.mobile-br {
    display: none;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
}

.section-cta {
    margin-top: var(--space-2xl);
    text-align: center;
}

/* ==========================================
   Why Gral
   ========================================== */

.why-gral {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) 0;
}

/* ==========================================
   Contact Form
   ========================================== */

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.375rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-label {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.radio-option input:checked + .radio-label {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.radio-option:hover .radio-label {
    border-color: var(--border-strong);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

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

.footer-logo {
    display: inline-block;
}

.footer-logo-img {
    height: 52px;
    width: auto;
}

.footer-brand p {
    margin: var(--space-sm) 0 var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.footer-social a i {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.footer-social a:hover {
    border-color: var(--accent-border);
}

.footer-social a:hover i {
    color: var(--accent);
}

.footer-links h5 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 0.625rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   SaaS Platforms
   ========================================== */

.platforms-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
    .navbar.scrolled {
        width: calc(100% - 2rem);
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

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

    .engines-grid {
        grid-template-columns: 1fr;
    }

    .authority-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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

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

    .footer-brand {
        grid-column: span 2;
    }
}

/* ==========================================
   The World Has Changed (Context Section)
   ========================================== */

.world-changed {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================
   The Gral System (Three Engines)
   ========================================== */

.gral-system {
    padding: var(--space-3xl) 0;
}

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

.engine-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 0;
}

.engine-card:hover {
    background: var(--bg-tertiary);
}

.engine-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.engine-card:hover .engine-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.engine-icon i {
    font-size: 1.75rem;
    color: var(--accent);
    transition: color 0.4s ease;
}

.engine-card:hover .engine-icon i {
    color: var(--bg-primary);
}

.engine-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.engine-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.engine-cta i {
    transition: transform var(--transition-base);
}

.engine-card:hover .engine-cta i {
    transform: translateX(3px);
}

.engine-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 3em;
}

.engine-description {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.engine-description:last-of-type {
    margin-bottom: 1.5rem;
}

.engine-description-closing {
    color: var(--text-secondary);
    font-weight: 500;
    font-style: italic;
}

/* Capability tags */
.engine-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.capability-tag {
    padding: 0.4375rem 0.875rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
}

.engine-card:hover .capability-tag {
    border-color: var(--accent);
}

/* Fabrica section subtitle full-width */
.gral-system .section-subtitle {
    max-width: none;
    font-size: 1.125rem;
}

.engine-features {
    list-style: none;
    flex: 1;
}

.engine-features li {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.engine-features li:last-child {
    border-bottom: none;
}

.engine-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ==========================================
   Why Gral - Authority Grid
   ========================================== */

.authority-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.authority-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.authority-card:hover {
    background: var(--bg-tertiary);
}

.authority-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}

.authority-card:hover .authority-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.authority-icon i {
    font-size: 1.25rem;
    color: var(--accent);
    transition: color 0.4s ease;
}

.authority-card:hover .authority-icon i {
    color: var(--bg-primary);
}

.authority-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.authority-card p {
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ==========================================
   Job Cards (Careers)
   ========================================== */

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

a.job-card {
    text-decoration: none;
    color: inherit;
}

.job-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

.job-card:hover {
    border-color: var(--accent-border);
    background: var(--bg-tertiary);
}

.job-card-dept {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.job-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.job-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
}

.job-card-tag i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.job-card-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
}

.job-card-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.job-card:hover .job-card-apply {
    gap: 0.75rem;
}

.job-card-apply i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.job-card:hover .job-card-apply i {
    transform: translateX(2px);
}

/* ==========================================
   Final CTA
   ========================================== */

.final-cta {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

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

.cta-lines p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cta-statement {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: var(--space-lg) !important;
}

/* ==========================================
   Scrollbar
   ========================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-elevated);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* ==========================================
   Wide Dropdown Menu
   ========================================== */

.dropdown-wide {
    min-width: 320px;
    padding: 0.75rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.dropdown-label {
    display: block;
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.dropdown-item.active {
    background: var(--accent-dim);
}

/* ==========================================
   Page Hero (for subpages)
   ========================================== */

.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 var(--space-3xl);
    overflow: hidden;
}

.page-hero-content {
    max-width: 700px;
}

.page-hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    padding-bottom: 0.15em;
}

.page-hero-tagline {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.page-hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.page-hero-ctas {
    display: flex;
    gap: 1rem;
}

/* ==========================================
   Features Grid (Argos)
   ========================================== */

.features {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.feature-card:hover {
    background: var(--bg-tertiary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    border-color: var(--accent);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--accent);
    transition: color 0.4s ease;
}

.feature-card:hover .feature-icon i {
    color: var(--bg-primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card > p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

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

.feature-details li {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
    padding-left: 1rem;
    position: relative;
}

.feature-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

/* ==========================================
   Steps Grid
   ========================================== */

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

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.step-card:hover {
    background: var(--bg-tertiary);
}

.step-card .step-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1;
}

.step-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================
   Pricing Section
   ========================================== */

.pricing-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

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

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 0;
}

.pricing-card:hover {
    background: var(--bg-tertiary);
}

.pricing-card.featured {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, var(--accent-dim) 0%, var(--bg-secondary) 100%);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.pricing-features li i {
    font-size: 0.875rem;
    color: var(--accent);
}

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

/* ==========================================
   FAQ Section
   ========================================== */

.faq {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
}

.faq-item {
    background: var(--bg-secondary);
    padding: 2rem;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.875rem;
    line-height: 1.65;
}

.faq-item a {
    color: var(--accent);
}

/* ==========================================
   Page CTA
   ========================================== */

.page-cta {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.cta-card {
    text-align: center;
    padding: var(--space-2xl);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================
   Service Sections (Consulting Page)
   ========================================== */

.services-overview {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.service-nav-item i {
    font-size: 1.125rem;
}

.service-nav-item:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.service-nav-item.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.service-nav-item.active i {
    color: var(--accent);
}


/* ==========================================
   Contact Section (Consulting Page)
   ========================================== */

.contact-section {
    padding: 10rem 0 var(--space-3xl);
    border-top: 1px solid var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
}

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-point {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.contact-point i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-point strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.contact-point p {
    font-size: 0.8125rem;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.375rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-option input {
    display: none;
}

.checkbox-label {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.checkbox-option input:checked + .checkbox-label {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.checkbox-option:hover .checkbox-label {
    border-color: var(--border-strong);
}

/* Centered Section Header */
.section-header.centered {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ==========================================
   Enterprise Pages - Custom Projects & Consulting
   ========================================== */

/* What We Build Grid */
.what-we-build {
    padding: var(--space-3xl) 0;
}

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

.build-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.build-card:hover {
    transform: translateY(-4px);
}

.build-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.build-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.build-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.build-card > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.build-examples {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.build-examples li {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

/* Tech Stack */
.tech-stack {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.stack-category h4 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-items span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
    transition: all var(--transition-base);
}

.stack-items span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* How We Deliver */
.how-we-deliver {
    padding: var(--space-3xl) 0;
}

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

.delivery-phase {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: relative;
}

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

.phase-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.5;
    font-family: var(--font-mono);
}

.phase-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.phase-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.phase-deliverables {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.phase-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.phase-deliverables li:last-child {
    border-bottom: none;
}

.phase-deliverables i {
    color: var(--accent);
    font-size: 0.875rem;
}

.phase-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.phase-timeline i {
    color: var(--accent);
}

/* Enterprise Pricing */
.enterprise-pricing {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.enterprise-price-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
    overflow: hidden;
    z-index: 0;
}

.enterprise-price-card:hover {
    border-color: var(--border-strong);
}

.enterprise-price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.enterprise-price-card .price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
}

.enterprise-price-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.price-range {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.price-scope {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.price-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.price-includes {
    list-style: none;
}

.price-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.price-includes i {
    color: var(--accent);
    font-size: 0.875rem;
    margin-top: 0.125rem;
}

/* Upsell Section */
.upsell {
    padding: var(--space-3xl) 0;
}

.upsell.alt-bg {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.upsell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

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

.upsell-content .section-tag {
    margin-bottom: var(--space-sm);
}

.upsell-content h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

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

.upsell-ctas {
    flex-shrink: 0;
}

/* Consulting Page - Why Consulting */
.why-consulting {
    padding: var(--space-3xl) 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.problem-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.problem-card i {
    font-size: 2rem;
    color: #ff4d4d;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.problem-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.problem-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-statement {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
}

.solution-statement p {
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.solution-statement em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* Consulting Services - Detailed Grid */
.consulting-services {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.service-detailed-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

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

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

.service-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.service-card-icon i {
    font-size: 1.25rem;
    color: var(--accent);
}

.service-card-header h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
}

.service-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.service-card-deliverables {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.service-card-deliverables h4 {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

.service-card-deliverables ul {
    list-style: none;
}

.service-card-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
}

.service-card-deliverables i {
    color: var(--accent);
    font-size: 0.75rem;
}

.service-card-meta {
    display: flex;
    gap: var(--space-lg);
}

.service-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.service-card-meta i {
    color: var(--accent);
    font-size: 0.875rem;
}

/* Who It's For - Personas */
.who-its-for {
    padding: var(--space-3xl) 0;
}

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

.persona-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.persona-card:hover {
    transform: translateY(-4px);
}

.persona-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
}

.persona-icon i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.persona-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.persona-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================
   Responsive - New Pages
   ========================================== */

@media (max-width: 1024px) {
    .build-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .enterprise-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .upsell-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   UI Enhancements
   ========================================== */

/* Gradient section dividers */
.world-changed::before,
.gral-system::before,
.platforms-section::before,
.why-gral::before,
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

/* Hero orb subtle animation */
@keyframes orbPulse {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.18; transform: scale(1.05); }
}

.orb-1 {
    animation: orbPulse 8s ease-in-out infinite;
}

/* Enhanced form focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 126, 0.1);
}

/* Smoother card transitions */
.engine-card,
.build-card,
.authority-card,
.feature-card,
.persona-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   Card Border Beam Hover Effect
   ========================================== */

.engine-card::before,
.authority-card::before,
.feature-card::before,
.step-card::before,
.build-card::before,
.pricing-card::before,
.service-detailed-card::before,
.enterprise-price-card::before,
.persona-card::before,
.cog-arch-layer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.engine-card:hover::before,
.authority-card:hover::before,
.feature-card:hover::before,
.step-card:hover::before,
.build-card:hover::before,
.pricing-card:hover::before,
.service-detailed-card:hover::before,
.enterprise-price-card:hover::before,
.persona-card:hover::before,
.cog-arch-layer:hover::before {
    opacity: 1;
}

.engine-card::after,
.authority-card::after,
.feature-card::after,
.step-card::after,
.build-card::after,
.pricing-card::after,
.service-detailed-card::after,
.enterprise-price-card::after,
.persona-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-secondary);
    z-index: -1;
    transition: background 0.4s ease;
}

.service-detailed-card::after,
.enterprise-price-card::after {
    background: var(--bg-primary);
}

.engine-card:hover::after,
.authority-card:hover::after,
.feature-card:hover::after,
.step-card:hover::after,
.pricing-card:hover::after {
    background: var(--bg-tertiary);
}

.service-detailed-card:hover::after {
    background: var(--bg-secondary);
}

.cog-arch-layer::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: var(--bg-primary);
    z-index: -1;
}

.cog-arch-layer:hover::after {
    background: var(--bg-secondary);
}

/* Section tag subtle animation on hover */
.section-tag {
    transition: letter-spacing var(--transition-base);
}

.section-header:hover .section-tag {
    letter-spacing: 0.25em;
}

/* Platform badge pulse */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 126, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(0, 212, 126, 0); }
}

.platform-badge {
    animation: badgePulse 3s ease-in-out infinite;
}


/* Hero title gradient text effect */
.hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(245, 245, 245, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page hero title same treatment */
.page-hero-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(245, 245, 245, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar glass morphism enhancement */
.navbar.scrolled {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 80px rgba(0, 212, 126, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* CTA section background enhancement */
.final-cta {
    background: radial-gradient(ellipse at center, rgba(0, 212, 126, 0.03) 0%, var(--bg-secondary) 70%);
}

/* Solution statement glow */
.solution-statement {
    box-shadow: 0 0 40px rgba(0, 212, 126, 0.05);
}

/* Upsell card hover enhancement */
.upsell-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}


/* Nova WebGL Orb */
.nova-orb {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    z-index: 0;
    pointer-events: auto;
}

.nova-orb canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1024px) {
    .nova-orb {
        width: 380px;
        height: 380px;
        right: 2%;
        opacity: 0.6;
    }
}

/* ==========================================
   Cognity Page - New Components
   ========================================== */

/* Stats Section */
.stats-section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

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

/* Quote Section */
.quote-section {
    padding: var(--section-padding) 0;
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.quote-text {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quote-author {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.quote-role {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Integrations Section */
.integrations-section {
    padding: var(--section-padding) 0;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.integration-category {
    padding: 2rem;
    background: var(--bg-primary);
}

.integration-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.integration-category h4 i {
    color: var(--accent);
    font-size: 1.125rem;
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.integration-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* Security Section */
.security-section {
    padding: var(--section-padding) 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.security-grid .authority-card {
    border: none;
    border-radius: 0;
}

/* Deployment Section */
.deployment-section {
    padding: var(--section-padding) 0;
}

/* ==========================================
   Rolling Text Animation
   ========================================== */

[data-rolling] {
    display: flex;
    flex-wrap: wrap;
}

.roll-word {
    display: inline-flex;
}

.roll-space {
    display: inline-block;
    width: 0.35em;
}

.roll-break {
    flex-basis: 100%;
    height: 0;
}

.roll-col {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.roll-inner {
    display: flex;
    flex-direction: column;
    will-change: transform, filter;
}

.roll-go .roll-inner {
    animation: rollIn 1.2s var(--rd, 0s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.roll-char {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes rollIn {
    0% { transform: translateY(0); filter: blur(0px); }
    10% { filter: blur(6px); }
    80% { filter: blur(3px); }
    100% { transform: translateY(var(--re)); filter: blur(0px); }
}

/* ==========================================
   Language Toggle
   ========================================== */

.lang-switcher {
    position: relative;
    margin-left: 1rem;
    margin-right: 1rem;
}

.lang-switcher-btn {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.lang-switcher-btn i {
    font-size: 0.6rem;
    transition: transform var(--transition-base);
}

.lang-switcher:hover .lang-switcher-btn {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.lang-switcher:hover .lang-switcher-btn i {
    transform: rotate(180deg);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-base);
    width: 100%;
    z-index: 100;
}

.lang-switcher:hover .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-menu a {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-decoration: none;
    text-align: center;
    padding: 0.3rem 0.35rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-switcher-menu a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ==========================================
   Scroll-Driven Text Reveal
   ========================================== */

.scroll-reveal {
    max-width: 900px;
    margin: 0;
    padding: var(--space-lg) 0;
}

.scroll-reveal p {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.scroll-reveal p:last-child {
    margin-bottom: 0;
}

.sr-word {
    opacity: 0.1;
    will-change: opacity;
}

.sr-accent {
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   3D Auto-Rotating Carousel (Platforms)
   ========================================== */

@keyframes carouselSpin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    perspective: 1000px;
    overflow: visible;
}

.carousel-3d-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.carousel-3d-wrapper {
    cursor: grab;
}

.carousel-3d-wrapper.dragging {
    cursor: grabbing;
}

.carousel-3d-card {
    position: absolute;
    width: 240px;
    height: 280px;
    top: 50%;
    left: 50%;
    margin-left: -120px;
    margin-top: -140px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    backface-visibility: visible;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.carousel-3d-card:hover {
    box-shadow: 0 8px 40px rgba(0, 212, 126, 0.1);
}

.carousel-3d-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.carousel-3d-card:hover::before {
    opacity: 1;
}

.carousel-3d-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-tertiary);
    z-index: -1;
}

.c3d-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.c3d-icon i {
    font-size: 1.125rem;
    color: var(--accent);
}

.carousel-3d-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.carousel-3d-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c3d-card-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.375rem;
}

.c3d-has-img h3 {
    margin-top: 0;
}

.c3d-cta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

/* ==========================================
   Interactive Drag Carousel (Portfolio)
   ========================================== */

.portfolio-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

/* --- Wide dropdown for portfolio nav --- */
.dropdown-menu-wide {
    display: flex;
    gap: 1.5rem;
    min-width: 720px;
    padding: 1.25rem;
}

.dropdown-col {
    flex: 1;
    min-width: 0;
}

.dropdown-col-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    padding: 0 0.75rem 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-menu-wide .dropdown-item {
    padding: 0.5rem 0.75rem;
}

/* --- Portfolio grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-lg);
}

.portfolio-col-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.portfolio-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-subtle);
}

.portfolio-item i {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color var(--transition-base);
}

.portfolio-item:hover i {
    color: var(--accent);
}

.portfolio-item h5 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.portfolio-item p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.carousel-drag-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    perspective: 1200px;
    overflow: visible;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.carousel-drag-wrapper:active {
    cursor: grabbing;
}

.carousel-drag-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.carousel-drag-card {
    position: absolute;
    width: 280px;
    height: 240px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -120px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: border-color 0.4s ease;
}

.carousel-drag-card:hover {
    border-color: var(--accent-border);
}

.cd-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cd-icon i {
    font-size: 1.25rem;
    color: var(--accent);
}

.carousel-drag-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-drag-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Hero Manifesto (Italian)
   ========================================== */

.hero-manifesto {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    font-style: italic;
    opacity: 0.6;
    max-width: 700px;
    letter-spacing: 0.01em;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* ==========================================
   Coverflow Carousel (Portfolio)
   ========================================== */

.coverflow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 420px;
    perspective: 1200px;
}

.coverflow-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.coverflow-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    transform: translate(-50%, -50%) scale(0.6) translateX(0);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.coverflow-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

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

.coverflow-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-secondary);
    z-index: -1;
    transition: background 0.4s ease;
}

.coverflow-card.active {
    transform: translate(-50%, -50%) scale(1) translateX(0);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 126, 0.08);
    border-color: var(--border-medium);
}

.coverflow-card.prev {
    transform: translate(-50%, -50%) scale(0.78) translateX(-280px) rotateY(8deg);
    opacity: 0.6;
    z-index: 5;
    pointer-events: auto;
}

.coverflow-card.next {
    transform: translate(-50%, -50%) scale(0.78) translateX(280px) rotateY(-8deg);
    opacity: 0.6;
    z-index: 5;
    pointer-events: auto;
}

.coverflow-visual {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.coverflow-visual i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.coverflow-info {
    padding: 1.5rem;
    text-align: center;
}

.coverflow-info h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.coverflow-info p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Navigation arrows */
.coverflow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.coverflow-btn:hover {
    background: rgba(0, 212, 126, 0.15);
    border-color: var(--accent-border);
    color: var(--accent);
}

.coverflow-prev {
    left: 0;
}

.coverflow-next {
    right: 0;
}

@media (max-width: 1024px) {
    .coverflow {
        height: 380px;
    }

    .coverflow-card {
        width: 280px;
    }

    .coverflow-card.prev {
        transform: translate(-50%, -50%) scale(0.75) translateX(-220px) rotateY(8deg);
    }

    .coverflow-card.next {
        transform: translate(-50%, -50%) scale(0.75) translateX(220px) rotateY(-8deg);
    }

    .coverflow-visual {
        height: 180px;
    }
}

/* ==========================================
   Portfolio Page Grid
   ========================================== */

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.portfolio-category-label {
    grid-column: 1 / -1;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: var(--space-lg);
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.portfolio-category-label:first-child {
    margin-top: 0;
}

a.portfolio-card {
    text-decoration: none;
    color: var(--text-primary);
}

.portfolio-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 212, 126, 0.06);
    transform: translateY(-4px);
}

.portfolio-card-visual {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-visual i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.portfolio-card-info {
    padding: 1.25rem;
}

.portfolio-card-info h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.portfolio-card-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Carousel "View All" CTA */
.carousel-view-all {
    text-align: center;
    margin-top: var(--space-lg);
}

@media (max-width: 1024px) {
    .portfolio-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .portfolio-card-visual {
        height: 120px;
    }

    .portfolio-card-visual i {
        font-size: 2rem;
    }

    .portfolio-card-info {
        padding: 1rem;
    }

    .portfolio-card-info h3 {
        font-size: 1rem;
    }

    .carousel-view-all {
        margin-top: var(--space-md);
    }
}

@media (max-width: 480px) {
    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Mobile Card Components (hidden on desktop)
   ========================================== */

.mobile-cards {
    display: none;
}

/* ==========================================
   Mobile Optimization — Single Source of Truth
   All mobile rules consolidated here.
   ========================================== */

@media (max-width: 768px) {
    /* --- Variables --- */
    :root {
        --space-3xl: 3.5rem;
        --space-2xl: 2.5rem;
        --space-xl: 3rem;
        --container-padding: 1.25rem;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 1rem 0;
    }

    .navbar.scrolled {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
        padding: 0.625rem 1rem;
        border-radius: 14px;
    }

    .logo-img {
        height: 46px;
    }

    .navbar.scrolled .logo-img {
        height: 38px;
    }

    .nav-cta {
        display: none;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 120px 0 var(--space-lg);
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-md);
        line-height: 1.2;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-manifesto {
        font-size: 0.8125rem;
        max-width: 100%;
    }

    .nova-orb {
        display: none;
    }

    /* --- Buttons --- */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    /* --- Sections --- */
    section {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .section-cta {
        margin-top: var(--space-lg);
    }

    /* --- Grids → single column --- */
    .engines-grid,
    .authority-grid {
        grid-template-columns: 1fr !important;
    }

    .job-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Job cards mobile --- */
    .job-card {
        padding: 1.5rem;
    }

    .job-card h4 {
        font-size: 1rem;
    }

    .job-card-desc {
        font-size: 0.8125rem;
    }

    /* --- Authority cards mobile --- */
    .authority-card {
        padding: 1.5rem;
    }

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

    /* --- Security page partner badge text --- */
    .authority-card p[style*="font-size: 0.85rem"] {
        font-size: 0.75rem !important;
    }

    /* --- Long section titles --- */
    .section-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    /* --- cog-split mobile tighten --- */
    .cog-split-right[style*="padding-top"] {
        padding-top: 0 !important;
    }

    .mobile-br {
        display: block;
    }

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

    /* --- Forms & layout --- */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* --- Scroll reveal --- */
    .scroll-reveal {
        padding: var(--space-md) 0;
    }

    .scroll-reveal p {
        font-size: 1.125rem;
        line-height: 1.65;
    }

    /* --- Rolling text --- */
    [data-rolling] {
        justify-content: flex-start;
    }

    .roll-space {
        width: 0.25em;
    }

    /* --- Hide desktop carousels, show mobile cards --- */
    .carousel-3d-wrapper,
    .carousel-drag-wrapper {
        display: none;
    }

    /* --- Coverflow mobile optimization --- */
    .coverflow {
        height: 300px;
        perspective: 800px;
    }

    .coverflow-card {
        width: 220px;
    }

    .coverflow-card.active {
        transform: translate(-50%, -50%) scale(1) translateX(0);
    }

    .coverflow-card.prev {
        transform: translate(-50%, -50%) scale(0.72) translateX(-150px) rotateY(10deg);
        opacity: 0.45;
    }

    .coverflow-card.next {
        transform: translate(-50%, -50%) scale(0.72) translateX(150px) rotateY(-10deg);
        opacity: 0.45;
    }

    .coverflow-visual {
        height: 140px;
    }

    .coverflow-visual i {
        font-size: 2.5rem;
    }

    .coverflow-info {
        padding: 1rem;
    }

    .coverflow-info h3 {
        font-size: 1.1rem;
    }

    .coverflow-info p {
        font-size: 0.8125rem;
    }

    .coverflow-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .coverflow-prev {
        left: 0.25rem;
    }

    .coverflow-next {
        right: 0.25rem;
    }

    .mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .m-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: var(--bg-secondary);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        text-decoration: none;
        color: var(--text-primary);
        transition: all var(--transition-base);
    }

    .m-card:active {
        background: var(--bg-tertiary);
        border-color: var(--accent-border);
    }

    .m-card-img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        object-fit: contain;
    }

    .m-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-dim);
        border: 1px solid var(--accent-border);
        border-radius: var(--radius-md);
    }

    .m-card-icon i {
        font-size: 1.25rem;
        color: var(--accent);
    }

    .m-card-body {
        flex: 1;
        min-width: 0;
    }

    .m-card-body h3 {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .m-card-body p {
        font-size: 0.8125rem;
        color: var(--text-tertiary);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .m-card-arrow {
        font-size: 1rem;
        color: var(--text-muted);
        flex-shrink: 0;
        transition: color var(--transition-base);
    }

    .m-card:active .m-card-arrow {
        color: var(--accent);
    }

    /* --- Cards --- */
    .engine-card {
        padding: 1.5rem;
    }

    .engine-tagline {
        font-size: 0.875rem;
        min-height: 0;
        margin-bottom: 1rem;
    }

    .engine-description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .engine-description:last-of-type {
        margin-bottom: 1rem;
    }

    .engine-capabilities {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .capability-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .engine-cta {
        margin-top: 1rem;
        font-size: 0.8125rem;
    }

    .gral-system .section-subtitle {
        font-size: 0.9375rem;
    }

    .authority-card {
        padding: 1.5rem;
    }

    .feature-card,
    .build-card {
        padding: 1.5rem;
    }

    /* --- Stats / Integrations / Security --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .quote-text {
        font-size: 1.125rem;
    }

    .quote-block {
        padding: 2rem;
    }

    /* --- CTA Section --- */
    .final-cta {
        padding: var(--space-2xl) 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-lines p {
        font-size: 1rem;
    }

    .cta-statement {
        font-size: 0.9375rem;
    }

    /* --- Footer --- */
    .footer {
        padding: var(--space-lg) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: span 1;
    }

    /* --- Page hero (product pages) --- */
    .page-hero {
        min-height: auto;
        padding: 120px 0 var(--space-2xl);
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    .page-hero-title br,
    .page-hero-desc br {
        display: none;
    }

    .page-hero-ctas {
        flex-direction: column;
    }

    .page-hero-ctas .btn {
        width: 100%;
        justify-content: center;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* --- Product page grids --- */
    .features-grid,
    .steps-grid,
    .build-grid,
    .stack-grid,
    .problems-grid,
    .services-detailed-grid,
    .personas-grid {
        grid-template-columns: 1fr;
    }

    .services-nav {
        flex-wrap: wrap;
    }

    .upsell-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .upsell-content h2 {
        font-size: 1.5rem;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .service-card-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
    }

    .hero {
        padding: 100px 0 var(--space-md);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .page-hero {
        padding: 100px 0 var(--space-md);
        min-height: auto;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

    .page-hero-desc {
        font-size: 0.875rem;
    }

    .section-header h2,
    .section-title {
        font-size: 1.5rem;
    }

    .scroll-reveal p {
        font-size: 1rem;
    }

    /* Mobile card tweaks at 480px */
    .m-card {
        padding: 0.875rem 1rem;
    }

    .m-card-img {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .m-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .m-card-icon i {
        font-size: 1.125rem;
    }

    .m-card-body h3 {
        font-size: 0.9375rem;
    }

    .m-card-body p {
        font-size: 0.75rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

    /* Buttons */
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .nav-cta {
        display: none;
    }

    /* Coverflow 480px */
    .coverflow {
        height: 260px;
    }

    .coverflow-card {
        width: 190px;
    }

    .coverflow-card.prev {
        transform: translate(-50%, -50%) scale(0.68) translateX(-120px) rotateY(12deg);
        opacity: 0.35;
    }

    .coverflow-card.next {
        transform: translate(-50%, -50%) scale(0.68) translateX(120px) rotateY(-12deg);
        opacity: 0.35;
    }

    .coverflow-visual {
        height: 110px;
    }

    .coverflow-info {
        padding: 0.75rem;
    }

    .coverflow-info h3 {
        font-size: 1rem;
    }

    .coverflow-info p {
        font-size: 0.75rem;
    }

    .coverflow-btn {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.375rem;
    }

    .cta-lines p {
        font-size: 0.9375rem;
    }
}

/* ==========================================
   Platform Icons (custom SVG)
   ========================================== */

.icon-platform {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    vertical-align: -0.125em;
}

.icon-cognity {
    -webkit-mask-image: url('icons/cognity.svg');
    mask-image: url('icons/cognity.svg');
}

.icon-emittra {
    -webkit-mask-image: url('icons/emittra.svg');
    mask-image: url('icons/emittra.svg');
}

.icon-blackchannel {
    -webkit-mask-image: url('icons/blackchannel.svg');
    mask-image: url('icons/blackchannel.svg');
}

.icon-sentara {
    -webkit-mask-image: url('icons/sentara.svg');
    mask-image: url('icons/sentara.svg');
}

/* ==========================================
   Manifesto Section (Homepage)
   ========================================== */

.manifesto {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
    text-align: center;
}

.manifesto::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 126, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.manifesto-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    opacity: 0.6;
}

.manifesto-logo img {
    width: 100%;
    height: auto;
}

.manifesto-lead {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.manifesto-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(245, 245, 245, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manifesto-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   Mission Section (Homepage)
   ========================================== */

.mission-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.mission-body p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.mission-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   Founders Section (Homepage)
   ========================================== */

.founders-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.founders-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.founders-body p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.founders-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.founders-visual {
    background: linear-gradient(135deg, rgba(0, 212, 126, 0.05) 0%, rgba(0, 212, 126, 0.02) 50%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.founders-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.founders-stat-num {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}

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

.founders-stat + .founders-stat {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Responsive — Manifesto, Mission, Founders */
@media (max-width: 1024px) {
    .mission-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .manifesto-headline {
        font-size: 1.75rem;
    }

    .manifesto-lead {
        font-size: 1rem;
    }

    .mission-title,
    .founders-title {
        font-size: 1.75rem;
    }
}

/* ==========================================
   Cognity Redesign — Palantir-inspired
   ========================================== */

/* Hero — Split layout with architecture diagram */
.cog-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 var(--space-3xl);
    overflow: hidden;
}

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

.platform-logo {
    height: 0.85em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.15em;
    transform: translateY(-0.05em);
}

.cog-hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    padding-bottom: 0.15em;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(245, 245, 245, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cog-hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* Hero image */
.cog-hero-img {
    width: 100%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
}

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

/* Platform stack diagram */
.cog-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-medium);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cog-stack-layer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: background 0.4s ease;
}

.cog-stack-layer:hover {
    background: var(--bg-tertiary);
}

.cog-stack-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-family: var(--font-mono);
}

.cog-stack-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cog-stack-node {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.cog-stack-layer:hover .cog-stack-node {
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

/* Metrics bar */
.cog-metrics {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.cog-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cog-metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cog-metric-num {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-mono);
}

.cog-metric-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Split sections — number + title left, content right */
.cog-split-section {
    padding: var(--space-3xl) 0;
}

.cog-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cog-split-left {
    position: sticky;
    top: 120px;
}

.cog-num {
    font-size: 5rem;
    font-weight: 200;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.cog-split-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cog-body-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Problem cards in split layout */
.cog-problems {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cog-problem {
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    transition: background 0.4s ease;
}

.cog-problem:hover {
    background: var(--bg-secondary);
}

.cog-problem h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cog-problem p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Architecture diagram — full-width layers */
.cog-arch {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.cog-cra-graphic {
    margin-bottom: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cog-cra-img {
    width: 100%;
    height: auto;
    animation: craFloat 7s ease-in-out infinite;
}

@keyframes craFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

.connects-section-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    align-items: start;
}

.connects-mobile-img {
    display: none;
}

.connects-visual {
    margin-bottom: var(--space-2xl);
}

.connects-visual .cog-cra-graphic {
    margin-bottom: 0;
    max-width: none;
}

.connects-visual .cog-cra-img {
    animation: connectsFloat 6s ease-in-out infinite;
}

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

.connects-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-sm);
}

.connects-labels-top {
    margin-bottom: var(--space-md);
}

.connects-labels-bottom {
    margin-top: var(--space-md);
}

.connects-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.connects-labels-top .connects-label:first-child {
    transform: translate(-20px, -10px);
}

.connects-labels-top .connects-label:last-child {
    transform: translate(20px, -10px);
}

.connects-labels-bottom .connects-label:first-child {
    transform: translate(-20px, 10px);
}

.connects-labels-bottom .connects-label:last-child {
    transform: translate(20px, 10px);
}

.connects-visual.visible .connects-label {
    opacity: 1;
    transform: translate(0, 0);
}

.connects-visual.visible .connects-labels-top .connects-label:first-child {
    transition-delay: 0.3s;
}

.connects-visual.visible .connects-labels-top .connects-label:last-child {
    transition-delay: 0.5s;
}

.connects-visual.visible .connects-labels-bottom .connects-label:first-child {
    transition-delay: 0.7s;
}

.connects-visual.visible .connects-labels-bottom .connects-label:last-child {
    transition-delay: 0.9s;
}

@media (max-width: 768px) {
    .connects-section-wrap {
        grid-template-columns: 1fr;
    }

    .connects-mobile-img {
        display: block;
        margin: var(--space-md) 0;
    }

    .connects-mobile-img .cog-cra-img {
        animation: craFloat 7s ease-in-out infinite;
    }

    .connects-visual {
        display: none;
    }
}

.cog-arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-medium);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cog-arch-layer {
    background: var(--bg-primary);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
    align-items: start;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.cog-arch-layer:hover {
    background: var(--bg-secondary);
}

.cog-arch-label {
    padding-top: 0.25rem;
}

.cog-arch-num {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.cog-arch-label h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.cog-arch-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cog-arch-detail p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cog-arch-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cog-arch-node {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.cog-arch-node:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

/* Tabbed capabilities */
.cog-caps {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.cog-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-2xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cog-tabs-nav::-webkit-scrollbar {
    display: none;
}

.cog-tab-btn {
    padding: 1rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cog-tab-btn:hover {
    color: var(--text-primary);
}

.cog-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.cog-tab-panel {
    display: none;
}

.cog-tab-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cog-tab-info h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.cog-tab-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cog-tab-features {
    list-style: none;
}

.cog-tab-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.cog-tab-features li:last-child {
    border-bottom: none;
}

.cog-tab-features i {
    color: var(--accent);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.cog-tab-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cog-tab-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cog-tab-visual-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.cog-tab-visual-row:hover {
    border-color: var(--accent-border);
}

.cog-tab-visual-row i {
    color: var(--accent);
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ==========================================
   Emittra — 4-Card Capabilities Grid
   ========================================== */

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

.emittra-cap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.emittra-cap-card:hover {
    background: var(--bg-tertiary);
}

.emittra-cap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.emittra-cap-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.emittra-cap-icon i {
    font-size: 1.25rem;
    color: var(--accent);
}

.emittra-cap-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

.emittra-cap-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.emittra-cap-features {
    list-style: none;
}

.emittra-cap-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.emittra-cap-features li:last-child {
    border-bottom: none;
}

.emittra-cap-features i {
    color: var(--accent);
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Border beam hover for emittra cards */
.emittra-cap-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.emittra-cap-card:hover::before {
    opacity: 1;
}

.emittra-cap-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-secondary);
    z-index: -1;
    transition: background 0.4s ease;
}

.emittra-cap-card:hover::after {
    background: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .emittra-caps {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .emittra-cap-card {
        padding: 1.5rem;
    }

    .emittra-cap-header {
        gap: 0.75rem;
    }

    .emittra-cap-icon {
        width: 38px;
        height: 38px;
    }

    .emittra-cap-card h3 {
        font-size: 1.0625rem;
    }

    .emittra-cap-card > p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .emittra-cap-features li {
        font-size: 0.8125rem;
        gap: 0.625rem;
        padding: 0.4rem 0;
    }
}

/* ==========================================
   Sentara — 3x2 Capabilities Grid
   ========================================== */

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

.sentara-cap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.sentara-cap-card:hover {
    background: var(--bg-tertiary);
}

.sentara-cap-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.sentara-cap-icon i {
    font-size: 1.125rem;
    color: var(--accent);
}

.sentara-cap-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.sentara-cap-card > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sentara-cap-features {
    list-style: none;
}

.sentara-cap-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sentara-cap-features li:last-child {
    border-bottom: none;
}

.sentara-cap-features i {
    color: var(--accent);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

/* Border beam hover for sentara cards */
.sentara-cap-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.sentara-cap-card:hover::before {
    opacity: 1;
}

.sentara-cap-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-secondary);
    z-index: -1;
    transition: background 0.4s ease;
}

.sentara-cap-card:hover::after {
    background: var(--bg-tertiary);
}

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

@media (max-width: 768px) {
    .sentara-caps {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .sentara-cap-card {
        padding: 1.25rem;
    }

    .sentara-cap-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }

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

    .sentara-cap-card > p {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .sentara-cap-features li {
        font-size: 0.75rem;
        gap: 0.5rem;
        padding: 0.3rem 0;
    }
}

/* ==========================================
   Cognity Redesign — Responsive
   ========================================== */

@media (max-width: 1024px) {
    .cog-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cog-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cog-split-left {
        position: static;
    }

    .cog-arch-layer {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cog-tab-panel.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cog-hero-section {
        min-height: auto;
        padding: 120px 0 var(--space-2xl);
    }

    .cog-hero-title {
        font-size: 2.5rem;
    }

    .cog-hero-sub {
        font-size: 1.0625rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .cog-hero-img {
        max-height: 320px;
        object-fit: contain;
    }

    .cog-stack-layer {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .cog-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cog-metric-num {
        font-size: 2rem;
    }

    .cog-num {
        font-size: 3rem;
    }

    /* Section spacing */
    .cog-split-section,
    .cog-arch,
    .cog-caps,
    .who-its-for,
    .integrations-section,
    .security-section {
        padding: var(--space-2xl) 0;
    }

    /* Architecture */
    .cog-arch-layer {
        padding: 1.5rem;
    }

    .cog-arch-label h3 {
        font-size: 1.25rem;
    }

    .cog-arch-detail p {
        font-size: 0.875rem;
    }

    .cog-arch-node {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Tabs (Cognity only) */
    .cog-tabs-nav {
        gap: 0;
    }

    .cog-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    /* Problem cards */
    .cog-problem {
        padding: 1.25rem 1.5rem;
    }

    .cog-problem h4 {
        font-size: 0.9375rem;
    }

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

    /* Personas / use cases */
    .persona-card {
        padding: var(--space-lg);
    }

    .persona-icon {
        width: 48px;
        height: 48px;
    }

    .persona-icon i {
        font-size: 1.25rem;
    }

    /* Integrations */
    .integration-category {
        padding: 1.25rem;
    }

    .integration-category h4 {
        font-size: 0.875rem;
    }

    .integration-tag {
        padding: 0.3rem 0.625rem;
        font-size: 0.75rem;
    }

    /* Security */
    .authority-card {
        padding: 1.25rem;
    }

    .engine-card {
        padding: 1.25rem;
    }

    .engine-card h3 {
        font-size: 1.125rem;
    }

    /* Upsell */
    .upsell-content h2 {
        font-size: 1.375rem;
    }

    .upsell-content p {
        font-size: 0.9375rem;
    }

    /* Contact */
    .contact-desc {
        font-size: 0.9375rem;
    }

    .contact-point p {
        font-size: 0.8125rem;
    }

    /* Split title */
    .cog-split-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .cog-body-text {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .cog-hero-section {
        padding: 100px 0 var(--space-xl);
    }

    .cog-hero-title {
        font-size: 2rem;
    }

    .cog-hero-sub {
        font-size: 1rem;
    }

    .cog-hero-img {
        max-height: 260px;
    }

    .cog-metric-num {
        font-size: 1.75rem;
    }

    .cog-num {
        font-size: 2.5rem;
    }

    /* Tighter section spacing */
    .cog-split-section,
    .cog-arch,
    .cog-caps,
    .who-its-for,
    .integrations-section,
    .security-section {
        padding: var(--space-xl) 0;
    }

    .cog-arch-layer {
        padding: 1.25rem;
    }

    .cog-arch-label h3 {
        font-size: 1.125rem;
    }

    .cog-problem {
        padding: 1rem 1.25rem;
    }

    .persona-card {
        padding: var(--space-md);
    }

    .integration-category {
        padding: 1rem;
    }

    /* Emittra card tighten */
    .emittra-cap-card {
        padding: 1.25rem;
    }

    /* Sentara card tighten */
    .sentara-cap-card {
        padding: 1rem;
    }

    /* --- Careers / Partnerships / Security mobile 480px --- */
    .job-card {
        padding: 1.25rem;
    }

    .job-card-meta {
        gap: 0.375rem;
    }

    .job-card-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .job-card-apply {
        margin-top: 1.25rem;
    }

    .abt-hero .cog-hero-sub {
        font-size: 0.9375rem;
    }
}

/* Single-card engines grid (full width) */
.engines-grid-single {
    grid-template-columns: 1fr;
}

/* ==========================================
   About Page
   ========================================== */

.abt-hero .cog-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.abt-hero .cog-hero-sub {
    max-width: 600px;
    margin: 0 auto;
}

.abt-story {
    padding: var(--section-padding) 0;
}

.abt-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.abt-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-border), var(--accent-border), transparent);
}

.abt-milestone {
    position: relative;
    padding: 2rem 0 2rem 4rem;
}

.abt-milestone::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 2.5rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    z-index: 1;
}

.abt-year {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
}

.abt-milestone h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.abt-milestone p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.abt-founders {
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border-subtle);
}

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

.abt-founder-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.abt-founder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.abt-founder-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.abt-founder-card h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.abt-founder-role {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.abt-founder-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.abt-founder-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(0, 212, 126, 0.5) 75%,
        rgba(0, 255, 153, 0.8) 85%,
        rgba(0, 212, 126, 0.5) 95%,
        transparent 100%
    );
    z-index: -2;
    opacity: 0;
    animation: border-beam 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.abt-founder-card:hover::before {
    opacity: 1;
}

.abt-founder-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: var(--bg-secondary);
    z-index: -1;
    transition: background 0.4s ease;
}

.abt-founder-card:hover::after {
    background: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .abt-founders-grid {
        grid-template-columns: 1fr;
    }

    .abt-milestone {
        padding: 1.5rem 0 1.5rem 3.5rem;
    }

    .abt-milestone h3 {
        font-size: 1.25rem;
    }

    .abt-milestone p {
        font-size: 0.875rem;
    }

    .abt-founder-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   Blackchannel AI — Landing Page
   ========================================== */

.bc-page {
    background: var(--bg-primary);
}

.bc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-base);
}

.bc-nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.bc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.bc-nav .logo-img {
    height: 40px;
    transition: height var(--transition-base);
}

.bc-nav.scrolled .logo-img {
    height: 32px;
}

.bc-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 160px 0 var(--space-3xl);
}

.bc-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 126, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.bc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.bc-headline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.bc-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.bc-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.bc-form:focus-within {
    border-color: var(--accent-border);
}

.bc-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
}

.bc-input::placeholder {
    color: var(--text-muted);
}

.bc-submit {
    padding: 1rem 1.75rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition-base);
    white-space: nowrap;
}

.bc-submit:hover {
    background: var(--accent);
}

/* Sections */
.bc-section {
    padding: var(--space-3xl) 0;
    position: relative;
}

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

.bc-section-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.bc-section-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Feature Grid */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bc-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    transition: background 0.4s ease;
}

.bc-card:hover {
    background: var(--bg-tertiary);
}

.bc-card-visual {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.bc-card-visual i {
    font-size: 2rem;
    color: var(--text-muted);
}

.bc-card h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.bc-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Terminal section */
.bc-terminal {
    padding: var(--space-3xl) 0;
    position: relative;
}

.bc-terminal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 126, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

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

.bc-terminal-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00d47e;
    margin-bottom: 1.25rem;
}

.bc-terminal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bc-terminal-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    transition: background 0.4s ease;
}

.bc-terminal-card:hover {
    background: var(--bg-tertiary);
}

.bc-terminal-card-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #00d47e;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.bc-terminal-card h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.bc-terminal-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Card screenshot images */
.bc-card-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel serif brand mark */
.c3d-brand-mark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    height: 72px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.375rem;
    line-height: 1;
}

.m-card-brand-mark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    padding: 1rem 1.25rem 0;
}

/* Divider */
.bc-divider {
    width: 40%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
    margin: 0 auto;
}

/* CTA Section */
.bc-cta {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.bc-cta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.bc-cta-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.bc-cta-sub {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .bc-hero {
        min-height: auto;
        padding: 140px 0 var(--space-2xl);
    }

    .bc-headline {
        font-size: clamp(2.75rem, 13vw, 4.5rem);
    }

    .bc-sub {
        font-size: 1.0625rem;
    }

    .bc-form {
        flex-direction: column;
    }

    .bc-submit {
        padding: 0.875rem;
    }

    .bc-grid {
        grid-template-columns: 1fr;
    }

    .bc-terminal-grid {
        grid-template-columns: 1fr;
    }

    .bc-terminal-card {
        padding: 1.75rem;
    }

    .bc-section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .bc-card {
        padding: 1.75rem;
    }

    .bc-cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

@media (max-width: 480px) {
    .bc-hero {
        padding: 120px 0 var(--space-xl);
    }

    .bc-headline {
        font-size: 2.5rem;
    }

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

/* ==========================================
   CASE STUDIES
   ========================================== */

.cs-section {
    padding: var(--section-padding) 0;
}

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

.cs-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color var(--transition-fast);
}

.cs-card:hover {
    border-color: var(--border-strong);
}

.cs-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
}

.cs-card h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cs-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.cs-metrics {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.cs-metric {
    display: flex;
    flex-direction: column;
}

.cs-metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.cs-metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

.cs-soon {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.75rem;
}

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

    .cs-metrics {
        gap: var(--space-md);
    }
}

/* ==================== BLOG LISTING ==================== */

.blog-section {
    padding: var(--section-padding) 0;
}

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

.blog-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--border-strong);
}

.blog-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
}

.blog-card h3 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-date {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
}

/* ==================== BLOG ARTICLE ==================== */

.article-hero {
    padding-bottom: var(--space-3xl);
}

.article-header {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 0;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-bottom: var(--space-xl);
}

.article-back:hover {
    color: var(--accent);
}

.article-header-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.article-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.article-reading-time {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-reading-time i {
    font-size: 0.9375rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.article-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.article-author-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.article-author-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.article-section {
    padding: var(--space-3xl) 0 var(--section-padding);
}

.article-body {
    max-width: 680px;
    margin: 0 auto;
}

.article-body > p:first-child {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.75;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2.5rem 0 0.75rem;
}

.article-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.0625rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--accent-dim);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.4em;
}

.article-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2.5rem 0;
}

.article-end-divider {
    max-width: 680px;
    margin: var(--space-3xl) auto var(--space-xl);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-medium), transparent);
}

.article-footer {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

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

    .article-title {
        font-size: 1.75rem;
    }

    .article-description {
        font-size: 1rem;
    }

    .article-body p,
    .article-body ul,
    .article-body ol {
        font-size: 1rem;
    }

    .article-body > p:first-child {
        font-size: 1rem;
    }
}

/* ==================== 404 PAGE ==================== */

.error-page {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.error-code {
    display: block;
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.error-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.error-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

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

/* ==========================================
   Light Mode - System Preference
   @media (prefers-color-scheme: light)
   ========================================== */

@media (prefers-color-scheme: light) {

    /* --- Layer 1: CSS Variable Overrides --- */

    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f7f7f8;
        --bg-tertiary: #eeeff1;
        --bg-elevated: #e5e6e9;

        --text-primary: #111111;
        --text-secondary: rgba(17, 17, 17, 0.72);
        --text-tertiary: rgba(17, 17, 17, 0.50);
        --text-muted: rgba(17, 17, 17, 0.30);

        --accent: #00a864;
        --accent-dim: rgba(0, 168, 100, 0.08);
        --accent-border: rgba(0, 168, 100, 0.30);
        --accent-glow: rgba(0, 168, 100, 0.10);

        --border-subtle: rgba(0, 0, 0, 0.06);
        --border-medium: rgba(0, 0, 0, 0.10);
        --border-strong: rgba(0, 0, 0, 0.15);
    }

    /* --- Layer 2: Hardcoded Color Overrides --- */

    /* Logo: white SVG needs inverting to black */
    .logo-img,
    .footer-logo-img {
        filter: invert(1);
    }

    /* Navbar scrolled state */
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.06),
            0 0 0 1px rgba(0, 0, 0, 0.04) inset,
            0 0 80px rgba(0, 168, 100, 0.03),
            0 1px 0 rgba(255, 255, 255, 0.6) inset;
    }

    /* Selection */
    ::selection {
        background: var(--accent);
        color: #ffffff;
    }

    /* Dropdown menu */
    .dropdown-menu,
    .lang-switcher-menu {
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    }

    /* Base button border */
    .btn {
        border-color: rgba(0, 0, 0, 0.10);
    }

    /* Primary button */
    .btn-primary {
        box-shadow: 0 0 20px rgba(0, 168, 100, 0.1);
    }

    .btn-primary::before {
        background: conic-gradient(
            transparent 0%,
            transparent 60%,
            rgba(0, 168, 100, 0.6) 75%,
            rgba(0, 200, 120, 1) 85%,
            rgba(0, 168, 100, 0.6) 95%,
            transparent 100%
        );
    }

    .btn-primary::after {
        background: #ffffff;
    }

    .btn-primary:hover {
        box-shadow: 0 0 30px rgba(0, 168, 100, 0.2);
    }

    /* Secondary button */
    .btn-secondary {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.10);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .btn-secondary:hover {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.18);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    /* Outline button */
    .btn-outline {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.10);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .btn-outline:hover {
        background: rgba(0, 168, 100, 0.08);
        border-color: rgba(0, 168, 100, 0.25);
    }

    /* Nav CTA */
    .nav-cta::after {
        background: #ffffff;
    }

    .nav-cta:hover {
        box-shadow: 0 0 24px rgba(0, 168, 100, 0.15);
    }

    /* Mobile CTA light mode */
    .mobile-cta::after {
        background: #ffffff;
    }

    /* Hero grid overlay */
    .grid-overlay {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    }

    /* Hero title gradient — dark text on light bg */
    .hero-title,
    .page-hero-title {
        background: linear-gradient(135deg, var(--text-primary) 0%, rgba(17, 17, 17, 0.65) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Platform badge pulse */
    @keyframes badgePulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 100, 0.3); }
        50% { box-shadow: 0 0 0 6px rgba(0, 168, 100, 0); }
    }

    /* CTA section background */
    .final-cta {
        background: radial-gradient(ellipse at center, rgba(0, 168, 100, 0.04) 0%, var(--bg-secondary) 70%);
    }

    /* Solution statement glow */
    .solution-statement {
        box-shadow: 0 0 40px rgba(0, 168, 100, 0.05);
    }

    /* Upsell card hover */
    .upsell-card:hover {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    }

    /* Carousel drag card */
    .carousel-drag-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    }

    /* 3D carousel card hover */
    .carousel-3d-card:hover {
        box-shadow: 0 8px 40px rgba(0, 168, 100, 0.08);
    }

    /* Coverflow cards */
    .coverflow-card {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    }

    .coverflow-card.active {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 0 40px rgba(0, 168, 100, 0.06);
    }

    /* Coverflow visual icon */
    .coverflow-visual i {
        color: rgba(0, 0, 0, 0.20);
    }

    /* Coverflow navigation buttons */
    .coverflow-btn {
        background: rgba(255, 255, 255, 0.85);
    }

    .coverflow-btn:hover {
        background: rgba(0, 168, 100, 0.12);
    }

    /* Form focus rings */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        box-shadow: 0 0 0 3px rgba(0, 168, 100, 0.12);
    }

    /* ---- Blackchannel: force dark mode ---- */

    /* Reset CSS variables to dark mode values */
    .bc-page {
        --bg-primary: #050505;
        --bg-secondary: #0a0a0a;
        --bg-tertiary: #0f0f0f;
        --bg-elevated: #141414;
        --text-primary: #f5f5f5;
        --text-secondary: rgba(245, 245, 245, 0.65);
        --text-tertiary: rgba(245, 245, 245, 0.45);
        --text-muted: rgba(245, 245, 245, 0.25);
        --accent: #00d47e;
        --accent-dim: rgba(0, 212, 126, 0.08);
        --accent-border: rgba(0, 212, 126, 0.25);
        --accent-glow: rgba(0, 212, 126, 0.15);
        --border-subtle: rgba(255, 255, 255, 0.04);
        --border-medium: rgba(255, 255, 255, 0.08);
        --border-strong: rgba(255, 255, 255, 0.12);
        color-scheme: dark;
    }

    /* Undo hardcoded light mode overrides for .bc-page */

    .bc-page .logo-img,
    .bc-page .footer-logo-img {
        filter: none;
    }

    .bc-page .navbar.scrolled {
        background: rgba(5, 5, 5, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.03) inset,
            0 0 80px rgba(0, 212, 126, 0.03),
            0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }

    .bc-page ::selection {
        background: var(--accent);
        color: #ffffff;
    }

    .bc-page .dropdown-menu,
    .bc-page .lang-switcher-menu {
        background: rgba(10, 10, 10, 0.97);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }

    .bc-page .btn {
        border-color: rgba(255, 255, 255, 0.08);
    }

    .bc-page .btn-primary {
        box-shadow: 0 0 20px rgba(0, 212, 126, 0.15);
    }

    .bc-page .btn-primary::before {
        background: conic-gradient(
            transparent 0%,
            transparent 60%,
            rgba(0, 212, 126, 0.6) 75%,
            rgba(0, 255, 150, 1) 85%,
            rgba(0, 212, 126, 0.6) 95%,
            transparent 100%
        );
    }

    .bc-page .btn-primary::after {
        background: #050505;
    }

    .bc-page .btn-primary:hover {
        box-shadow: 0 0 30px rgba(0, 212, 126, 0.3);
    }

    .bc-page .btn-secondary {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .bc-page .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }

    .bc-page .btn-outline {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .bc-page .btn-outline:hover {
        background: rgba(0, 212, 126, 0.08);
        border-color: rgba(0, 212, 126, 0.25);
    }

    .bc-page .nav-cta::after {
        background: #050505;
    }

    .bc-page .nav-cta:hover {
        box-shadow: 0 0 24px rgba(0, 212, 126, 0.2);
    }

    .bc-page .mobile-cta::after {
        background: #050505;
    }

    .bc-page .grid-overlay {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    }

    .bc-page .hero-title,
    .bc-page .page-hero-title {
        background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .bc-page .final-cta {
        background: radial-gradient(ellipse at center, rgba(0, 212, 126, 0.04) 0%, var(--bg-secondary) 70%);
    }

    .bc-page .solution-statement {
        box-shadow: 0 0 40px rgba(0, 212, 126, 0.05);
    }

    .bc-page .upsell-card:hover {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    .bc-page .carousel-drag-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .bc-page .carousel-3d-card:hover {
        box-shadow: 0 8px 40px rgba(0, 212, 126, 0.1);
    }

    .bc-page .coverflow-card {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .bc-page .coverflow-card.active {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 126, 0.08);
    }

    .bc-page .coverflow-visual i {
        color: rgba(255, 255, 255, 0.20);
    }

    .bc-page .coverflow-btn {
        background: rgba(10, 10, 10, 0.85);
    }

    .bc-page .coverflow-btn:hover {
        background: rgba(0, 212, 126, 0.12);
    }

    .bc-page .form-group input:focus,
    .bc-page .form-group select:focus,
    .bc-page .form-group textarea:focus {
        box-shadow: 0 0 0 3px rgba(0, 212, 126, 0.15);
    }

}
