/* ===== SANDLOCK - "THE BOARD" DESIGN SYSTEM =====
   Shared with Multikernel Technologies: enterprise ink navy with ENIG
   pad-gold accents, cool silkscreen neutrals, datasheet mono annotations.
   Signature: a solid gold rule under hero headlines and above section
   titles. */

:root {
    /* Accent - ENIG pad gold */
    --accent-50: #faf5e4;
    --accent-100: #f3e7bf;
    --accent-200: #e7d18a;
    --accent-300: #dcbd63;
    --accent-400: #d7b057;
    --accent-500: #c9a13e;
    --accent-600: #a88428;
    --accent-700: #7c6118;
    --accent-800: #5f4a13;
    --accent-900: #4a3a10;

    /* Secondary - steel blue */
    --secondary-50: #eef4f9;
    --secondary-100: #d5e4f0;
    --secondary-200: #a9c8e1;
    --secondary-300: #79a8cd;
    --secondary-400: #4d88b4;
    --secondary-500: #2f6d9d;
    --secondary-600: #265d88;
    --secondary-700: #1e4e74;
    --secondary-800: #173c5a;
    --secondary-900: #122f47;

    /* Neutrals - cool blue-tinted grays; 900 is deep ink navy */
    --gray-25: #f8fafc;
    --gray-50: #f2f5f8;
    --gray-100: #e7ecf1;
    --gray-200: #d4dde5;
    --gray-300: #b1bfcc;
    --gray-400: #8697a8;
    --gray-500: #5f7183;
    --gray-600: #465667;
    --gray-700: #334354;
    --gray-800: #16293f;
    --gray-900: #0e1e33;

    /* Semantic */
    --success: #2f7d57;
    --warning: #c9a13e;
    --error: #c0453a;
    --info: var(--secondary-500);

    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    --font-display: 'DM Sans', system-ui, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius - sharp, technical */
    --radius-sm: 2px;
    --radius-base: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(14, 30, 51, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(14, 30, 51, 0.06), 0 1px 2px -1px rgba(14, 30, 51, 0.06);
    --shadow-base: 0 4px 6px -1px rgba(14, 30, 51, 0.07), 0 2px 4px -2px rgba(14, 30, 51, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(14, 30, 51, 0.08), 0 4px 6px -4px rgba(14, 30, 51, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(14, 30, 51, 0.1), 0 8px 10px -6px rgba(14, 30, 51, 0.04);

    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;

    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--gray-800);
    background: var(--gray-25);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: var(--header-height);
    overflow-x: hidden;
}

body.mobile-nav-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

/* Icon placeholders are filled with inline SVG at load. The size lives on the
   placeholder so the surrounding component controls it; the SVG just fills. */
[data-lucide] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

[data-lucide] > svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 22, 38, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 999999;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-10);
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 34px;
    width: 34px;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo-name {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
}

.site-logo-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.site-nav-link {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.site-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link.active {
    color: white;
    font-weight: 600;
}

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

.site-nav-dropdown-trigger {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: none;
    font-family: inherit;
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.site-nav-dropdown-trigger:hover,
.site-nav-dropdown:hover .site-nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-dropdown-trigger.active {
    color: white;
    font-weight: 600;
}

.site-nav-dropdown-trigger svg {
    width: 10px;
    height: 10px;
    opacity: 0.4;
    transition: transform var(--transition-fast);
}

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

.site-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #152841;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 4px;
    padding-top: 12px;
    z-index: 1000;
}

.site-nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu {
    display: block;
}

.site-nav-dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    line-height: 1.3;
}

.site-nav-dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-dropdown-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.site-nav-dropdown-item small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
    font-family: var(--font-mono);
}

.site-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.site-nav-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-icon svg {
    width: 18px;
    height: 18px;
}

.site-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #0b1a2e;
    background: var(--accent-500);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-left: 4px;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.site-nav-cta:hover {
    background: var(--accent-400);
    box-shadow: 0 0 16px rgba(201, 161, 62, 0.3);
}

.site-nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px 0 auto;
    flex-shrink: 0;
}

/* Mobile */
.site-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin-left: auto;
}

.site-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.site-mobile-toggle span {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    display: block;
    border-radius: 1px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

.site-mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999998;
    overflow-y: auto;
}

.site-mobile-nav.active {
    display: block;
}

.site-mobile-nav-inner {
    padding: 16px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-mobile-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.28);
    padding: 18px 16px 6px;
}

.site-mobile-link {
    display: block;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.site-mobile-link:hover,
.site-mobile-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.site-mobile-cta {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #0b1a2e;
    background: var(--accent-500);
    text-decoration: none;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 16px;
}

.site-mobile-cta:hover {
    background: var(--accent-400);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: var(--gray-900);
    color: white;
    overflow: hidden;
    padding: var(--space-24) 0;
}

.hero.hero-tall {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: var(--space-20) 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(201, 161, 62, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(77, 136, 180, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 161, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 161, 62, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 1;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: rgba(201, 161, 62, 0.1);
    border: 1px solid rgba(201, 161, 62, 0.25);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-400);
    margin-bottom: var(--space-8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-badge i {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.04em;
    margin: 0 auto var(--space-6);
    color: white;
    max-width: 920px;
    text-wrap: balance;
}

.hero h1::after {
    content: '';
    display: block;
    width: 148px;
    height: 3px;
    margin: var(--space-6) auto 0;
    background: var(--accent-500);
}

.hero .subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.62);
    max-width: 720px;
    margin: 0 auto var(--space-10);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-16) auto 0;
    max-width: 980px;
}

.hero-stat {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--accent-500);
    border-radius: var(--radius-md);
}

.hero-stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-400);
    margin-bottom: var(--space-2);
}

.hero-stat-label {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-1);
}

.hero-stat-detail {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.hero-trust {
    margin-top: var(--space-16);
}

.trust-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.trust-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.trust-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
}

.trust-feature i {
    width: 15px;
    height: 15px;
    color: var(--accent-500);
}

/* Page hero: compact variant for interior pages */
.hero.hero-page {
    padding: var(--space-20) 0 var(--space-16);
}

.hero.hero-page h1 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

.hero.hero-page .subtitle {
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin: var(--space-10) 0 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn i {
    width: 15px;
    height: 15px;
}

.btn-primary {
    background: var(--accent-500);
    color: var(--gray-900);
    border-color: var(--accent-500);
}

.btn-primary:hover {
    background: var(--accent-400);
    border-color: var(--accent-400);
    box-shadow: 0 0 20px rgba(201, 161, 62, 0.25);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--accent-500);
    color: var(--accent-700);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2px;
}

.btn-link:hover {
    color: var(--accent-700);
    border-bottom-color: var(--accent-500);
}

.btn-link i {
    width: 15px;
    height: 15px;
    transition: transform var(--transition-fast);
}

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

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-alt {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.section-dark {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-container.narrow {
    max-width: 900px;
}

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

.section-header.left {
    text-align: left;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: rgba(201, 161, 62, 0.1);
    color: var(--accent-700);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(201, 161, 62, 0.2);
}

.section-badge i {
    width: 13px;
    height: 13px;
}

.section-dark .section-badge {
    color: var(--accent-400);
    border-color: rgba(201, 161, 62, 0.25);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    font-weight: 800;
    line-height: var(--leading-tight);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.section-dark .section-title {
    color: white;
}

.section-header .section-title::before,
.value-text .section-title::before {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 0 var(--space-4);
    background: var(--accent-500);
}

.section-header:not(.left) .section-title::before {
    margin: 0 auto var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-500);
    max-width: 680px;
    margin: 0 auto;
}

.section-header.left .section-subtitle {
    margin: 0;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

/* Two-column value block */
.value-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.value-text {
    max-width: 560px;
}

.value-cta {
    margin-top: var(--space-6);
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
}

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

.capability-card,
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--gray-300);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    text-align: left;
}

.capability-card:hover,
.feature-card:hover {
    border-left-color: var(--accent-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.capability-card.primary {
    border-left-color: var(--accent-500);
}

.capability-icon,
.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-900);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--accent-400);
}

.capability-icon i,
.feature-icon i {
    width: 20px;
    height: 20px;
}

.capability-title,
.feature-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.capability-description,
.feature-description {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.capability-description {
    margin-bottom: var(--space-5);
}

.capability-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.feature-item i {
    width: 15px;
    height: 15px;
    color: var(--accent-600);
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-item span {
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--leading-snug);
}

/* Dark card variant, used on dark sections */
.section-dark .capability-card,
.section-dark .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.14);
}

.section-dark .capability-card:hover,
.section-dark .feature-card:hover {
    border-left-color: var(--accent-500);
    box-shadow: none;
}

.section-dark .capability-icon,
.section-dark .feature-icon {
    background: rgba(201, 161, 62, 0.12);
}

.section-dark .capability-title,
.section-dark .feature-title {
    color: white;
}

.section-dark .capability-description,
.section-dark .feature-description,
.section-dark .feature-item span {
    color: rgba(255, 255, 255, 0.55);
}

/* Numbered step cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
}

.step-card {
    padding: var(--space-6);
    background: white;
    border: 1px solid var(--gray-200);
    border-top: 2px solid var(--accent-500);
    border-radius: var(--radius-md);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--gray-900);
    color: var(--accent-400);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
}

.step-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* ===== DATA TABLE ===== */
.data-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 620px;
}

.data-table th,
.data-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.data-table thead th {
    background: var(--gray-50);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.data-table tbody th {
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
}

.data-table td {
    color: var(--gray-600);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--gray-25);
}

.data-table .col-highlight {
    background: rgba(201, 161, 62, 0.06);
    color: var(--gray-800);
    font-weight: 600;
}

.data-table thead .col-highlight {
    background: rgba(201, 161, 62, 0.12);
    color: var(--accent-700);
}

.data-table code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    color: var(--gray-800);
    white-space: nowrap;
}

.yes {
    color: var(--success);
    font-weight: 600;
}

.no {
    color: var(--gray-400);
}

.table-note {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-3);
    line-height: var(--leading-relaxed);
}

/* ===== CODE ===== */
.code-block {
    position: relative;
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-5) 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-block-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-copy:hover {
    color: var(--accent-400);
    border-color: rgba(201, 161, 62, 0.35);
    background: rgba(201, 161, 62, 0.08);
}

.code-copy.copied {
    color: var(--accent-400);
    border-color: rgba(201, 161, 62, 0.5);
}

.code-block pre {
    margin: 0;
    padding: var(--space-5);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    tab-size: 4;
}

.code-block pre code {
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre;
}

/* Terminal-flavoured lines inside code blocks */
.code-block .c {           /* comment */
    color: rgba(255, 255, 255, 0.35);
}

.code-block .p {           /* shell prompt / command marker */
    color: var(--accent-400);
}

.code-block .k {           /* keyword or command name */
    color: var(--secondary-300);
}

.code-block .s {           /* string */
    color: var(--accent-200);
}

.code-block .o {           /* muted program output */
    color: rgba(255, 255, 255, 0.5);
}

/* Inline code in prose */
code.inline,
.prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    color: var(--gray-800);
}

/* ASCII diagram */
.ascii-diagram {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    overflow-x: auto;
    margin: var(--space-5) 0;
}

.ascii-diagram pre {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    white-space: pre;
}

.ascii-diagram .hi {
    color: var(--accent-400);
}

/* ===== CALLOUTS ===== */
.callout {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--accent-500);
    border-radius: var(--radius-md);
    margin: var(--space-5) 0;
}

.callout i {
    width: 18px;
    height: 18px;
    color: var(--accent-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-body {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.callout-body strong {
    color: var(--gray-900);
}

.callout-body p + p {
    margin-top: var(--space-3);
}

.callout.warn {
    border-left-color: var(--error);
}

.callout.warn i {
    color: var(--error);
}

/* ===== CTA BAND ===== */
.cta-band {
    background: var(--gray-900);
    color: white;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201, 161, 62, 0.08) 0%, transparent 60%);
}

.cta-band-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
    z-index: 2;
}

.cta-band h2 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    color: white;
}

.cta-band h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 3px;
    margin: var(--space-5) auto 0;
    background: var(--accent-500);
}

.cta-band p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-relaxed);
    margin-top: var(--space-5);
}

/* ===== FOOTER ===== */
.enterprise-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

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

.footer-links {
    display: contents;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

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

.footer-brand-info h3 {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
}

.footer-brand-info p {
    color: var(--gray-500);
    font-size: var(--text-xs);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    color: var(--gray-500);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.contact-item i {
    width: 15px;
    height: 15px;
    color: var(--gray-500);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-400);
}

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.footer-column a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-2);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gray-500);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link:hover {
    background: rgba(201, 161, 62, 0.1);
    color: var(--accent-400);
    border-color: rgba(201, 161, 62, 0.25);
}

/* Inline links inside body copy follow the accent system. Scoped to text
   containers so buttons, cards, and nav keep their own treatment. */
.callout-body a,
.table-note a,
.section-subtitle a,
.capability-description a,
.feature-description a,
.step-card p a {
    color: var(--accent-700);
    text-decoration: underline;
    text-decoration-color: rgba(201, 161, 62, 0.35);
    text-underline-offset: 2px;
}

.callout-body a:hover,
.table-note a:hover,
.section-subtitle a:hover,
.capability-description a:hover,
.feature-description a:hover,
.step-card p a:hover {
    color: var(--accent-600);
    text-decoration-color: var(--accent-500);
}

.section-dark .section-subtitle a,
.section-dark .table-note a {
    color: var(--accent-400);
}

/* Flex and grid children default to min-width:auto, which refuses to shrink
   below their own content. One code block or one long identifier then makes
   the whole page wider than a phone, so opt every layout container's children
   out of that. */
.hero-container,
.value-content > *,
.cards-grid > *,
.features-grid > *,
.steps-grid > *,
.hero-stats > *,
.footer-main > *,
.interfaces-grid > *,
.pillars > *,
.usecase-grid > *,
.layer > *,
.layer-row > *,
.path-grid > *,
.alt-grid > *,
.not-for > *,
.boundary-grid > *,
.claims > *,
.claim-row > *,
.cap-grid > *,
.fit-grid > * {
    min-width: 0;
}

/* A long identifier is a single unbreakable token. Let inline code wrap
   instead of widening the page; code inside <pre> keeps its formatting and
   scrolls inside its own box. */
code {
    overflow-wrap: anywhere;
}

pre code {
    overflow-wrap: normal;
}

/* ===== UTILITIES ===== */
.mono-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.stack-lg > * + * {
    margin-top: var(--space-12);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .site-mobile-toggle {
        display: flex;
    }

    .site-header-inner {
        padding: 0 var(--space-5);
    }
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

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

    .value-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .value-text {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }

    .hero {
        padding: var(--space-16) 0;
    }

    .hero-container,
    .section-container,
    .footer-container {
        padding: 0 var(--space-4);
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cards-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .capability-card,
    .feature-card {
        padding: var(--space-6);
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

/* ===== HERO LOAD SEQUENCE ===== */
@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero .hero-badge,
.hero h1,
.hero .subtitle,
.hero .button-group,
.hero .hero-stats,
.hero .hero-trust {
    animation: hero-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.hero h1 { animation-delay: 0.05s; }
.hero .subtitle { animation-delay: 0.14s; }
.hero .button-group { animation-delay: 0.22s; }
.hero .hero-stats { animation-delay: 0.3s; }
.hero .hero-trust { animation-delay: 0.38s; }

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000000;
    padding: var(--space-3) var(--space-5);
    background: var(--accent-500);
    color: var(--gray-900);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
    left: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .site-header,
    .site-mobile-nav,
    .enterprise-footer,
    .code-copy {
        display: none;
    }

    body {
        padding-top: 0;
        background: white;
        color: black;
    }

    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: var(--space-8) 0;
    }
}
