/* UAVCrew.ai Design System
   Clean enterprise authority — light theme, navy + blue brand
   Semantic CSS only — no Tailwind
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Brand */
    --primary: #1D63A0;
    --primary-light: #1F89C9;
    --primary-dark: #182D52;
    --primary-50: #F3F9FC;
    --navy: #0D2339;
    --navy-light: #182D52;
    --flight-blue: #1F89C9;
    --flight-blue-mid: #1D63A0;
    --flight-navy: #182D52;
    --flight-ink: #0D2339;
    --flight-metal: #A2A4A7;
    --flight-gradient: linear-gradient(115deg, #1F89C9 0%, #1D63A0 48%, #182D52 100%);

    /* Text */
    --text: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    /* Status */
    --success: #059669;
    --success-light: #ECFDF5;
    --success-border: #A7F3D0;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --warning-border: #FDE68A;
    --error: #DC2626;
    --error-light: #FEF2F2;
    --error-border: #FECACA;
    --info: #2563EB;
    --info-light: #EFF6FF;
    --info-border: #BFDBFE;

    /* Agent colors */
    --agent-arpa: #3b82f6;
    --agent-concord: #10b981;
    --agent-tucker: #f59e0b;
    --agent-meridian: #8b5cf6;
    --agent-ren: #ec4899;
    --agent-sterling: #14b8a6;

    /* Typography */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

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

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Layout */
    --container-max: 1200px;
    --sidebar-width: 288px;
    --topbar-height: 64px;
    --nav-height: 64px;
}


/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    font-feature-settings: normal;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

p {
    margin: 0 0 var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-tertiary);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
    color: var(--text);
}

pre {
    font-family: var(--font-mono);
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-lg) 0;
}


/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-mono {
    font-family: var(--font-mono);
}

[x-cloak] {
    display: none !important;
}


/* ========================================
   LAYOUT — CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }
}


/* ========================================
   LAYOUT — SITE NAVIGATION
   ======================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.site-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .site-nav__inner {
        padding: 0 var(--space-lg);
    }
}

.site-nav__logo img {
    height: 32px;
}

.site-nav__links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .site-nav__links {
        display: flex;
        align-items: center;
    }
}

.site-nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

.site-nav__actions {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .site-nav__actions {
        display: flex;
    }
}

.site-nav__actions a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.site-nav__actions a:hover {
    color: var(--text);
}

.site-nav__actions a.btn {
    color: var(--text-inverse);
}

.site-nav__actions a.btn:hover {
    color: var(--text-inverse);
}

.site-nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.site-nav__hamburger:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.site-nav__hamburger svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .site-nav__hamburger {
        display: none;
    }
}

/* Mobile menu */
.site-nav__mobile {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0 var(--space-md);
}

.site-nav__mobile a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 4px solid transparent;
}

.site-nav__mobile a:hover {
    background: var(--bg-secondary);
    border-left-color: var(--border);
    color: var(--text);
}

.site-nav__mobile-divider {
    border-top: 1px solid var(--border);
    margin: var(--space-sm) 0;
    padding-top: var(--space-sm);
}

/* Body offset when nav is fixed */
body.has-nav {
    padding-top: var(--nav-height);
}


/* ========================================
   LAYOUT — DASHBOARD
   ======================================== */
.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.dashboard-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 50;
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .dashboard-sidebar {
        display: flex;
    }
}

.dashboard-sidebar__logo {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.dashboard-sidebar__logo img {
    height: 32px;
}

.dashboard-sidebar__nav {
    flex: 1;
    padding: var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar__group {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
}

.dashboard-sidebar__group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-sm);
}

.dashboard-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dashboard-sidebar__link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dashboard-sidebar__link.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dashboard-sidebar__link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dashboard-sidebar__link .external-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--text-muted);
}

.dashboard-sidebar__footer {
    margin-top: auto;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

/* Mobile sidebar overlay */
.dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.5);
}

.dashboard-sidebar--mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    z-index: 50;
    background: var(--bg);
    flex-direction: column;
    transform: translateX(0);
    transition: transform var(--transition-slow);
}

/* Main content area */
.dashboard-main {
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .dashboard-main {
        margin-left: var(--sidebar-width);
    }
}

/* Topbar */
.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
    .dashboard-topbar {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .dashboard-topbar {
        padding: 0 var(--space-xl);
    }
}

.dashboard-topbar__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .dashboard-topbar__hamburger {
        display: none;
    }
}

.dashboard-topbar__hamburger svg {
    width: 24px;
    height: 24px;
}

.dashboard-topbar__separator {
    width: 1px;
    height: 24px;
    background: var(--border);
}

@media (min-width: 1024px) {
    .dashboard-topbar__separator {
        display: none;
    }
}

.dashboard-topbar__spacer {
    flex: 1;
}

.dashboard-topbar__user {
    position: relative;
}

.dashboard-topbar__user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dashboard-topbar__user-btn:hover {
    background: var(--bg-secondary);
}

.dashboard-topbar__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-topbar__user-name {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

@media (min-width: 1024px) {
    .dashboard-topbar__user-name {
        display: block;
    }
}

.dashboard-topbar__chevron {
    display: none;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .dashboard-topbar__chevron {
        display: block;
    }
}

/* Dashboard content */
.dashboard-content {
    padding: var(--space-xl) var(--space-md);
}

@media (min-width: 768px) {
    .dashboard-content {
        padding: var(--space-xl) var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .dashboard-content {
        padding: var(--space-2xl) var(--space-xl);
    }
}

/* Dashboard footer */
.dashboard-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* ========================================
   TYPOGRAPHY
   ======================================== */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}


/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.page-header__content {
    min-width: 0;
    flex: 1;
}

.page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}


/* ========================================
   CARD
   ======================================== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card--shadow {
    box-shadow: var(--shadow-sm);
}

.card__header {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card__body {
    padding: var(--space-lg);
}

.card__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}


/* ========================================
   STAT CARD
   ======================================== */
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xs);
}

.stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.stat-card__value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin: var(--space-xs) 0 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-card__change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card__change--up {
    color: var(--success);
}

.stat-card__change--down {
    color: var(--error);
}

/* Stats grid layout */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ========================================
   BADGE
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.badge--success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge--warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge--error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.badge--info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge--neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge__dot--pulse {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* Primary */
.btn--primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn--primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Secondary */
.btn--secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.btn--secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Danger */
.btn--danger {
    background: var(--error);
    color: var(--text-inverse);
    border-color: var(--error);
    box-shadow: var(--shadow-xs);
}

.btn--danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    color: var(--text-inverse);
}

.btn--danger:focus-visible {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}


/* ========================================
   ALERTS
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    transition: opacity var(--transition-base);
}

.alert--success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid var(--success-border);
}

.alert--warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid var(--warning-border);
}

.alert--error {
    background: var(--error-light);
    color: #991B1B;
    border: 1px solid var(--error-border);
}

.alert--info {
    background: var(--info-light);
    color: #1E40AF;
    border: 1px solid var(--info-border);
}

.alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.alert__content {
    flex: 1;
    min-width: 0;
}

.alert__title {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.alert__text {
    margin: 0;
}

.alert__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert__close:hover {
    opacity: 1;
}

/* Flash message container */
.flash-messages {
    max-width: var(--container-max);
    margin: var(--space-md) auto 0;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .flash-messages {
        padding: 0 var(--space-lg);
    }
}

.flash-messages--dashboard {
    max-width: none;
    margin: 0;
    padding: var(--space-md) var(--space-md) 0;
}

@media (min-width: 768px) {
    .flash-messages--dashboard {
        padding: var(--space-md) var(--space-lg) 0;
    }
}

@media (min-width: 1024px) {
    .flash-messages--dashboard {
        padding: var(--space-md) var(--space-xl) 0;
    }
}


/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    outline: none;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input--error,
.form-select--error,
.form-textarea--error {
    border-color: var(--error);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

.form-help {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-error {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--error);
}

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

@media (min-width: 600px) {
    .form-row--2col {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   DATA TABLE
   ======================================== */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

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

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

.data-table tbody tr {
    background: var(--bg);
    transition: background var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.data-table tbody tr:hover {
    background: var(--primary-50);
}

.data-table td.actions {
    text-align: right;
    white-space: nowrap;
}

.data-table td.actions a {
    font-weight: 500;
}

.data-table td.actions a + a {
    margin-left: var(--space-md);
}

.data-table td.actions .action-danger {
    color: var(--error);
}

.data-table td.actions .action-danger:hover {
    color: #B91C1C;
}

.data-table .cell-mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-tertiary);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.data-table .cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
}

.empty-state__icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.empty-state__icon svg {
    width: 100%;
    height: 100%;
}

.empty-state__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.empty-state__message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 320px;
}


/* ========================================
   DEFINITION LIST
   ======================================== */
.definition-list {
    border-top: 1px solid var(--border-light);
}

.definition-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-xs);
}

@media (min-width: 600px) {
    .definition-item {
        flex-direction: row;
        gap: var(--space-md);
    }
}

.definition-item__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .definition-item__label {
        width: 200px;
    }
}

.definition-item__value {
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
    word-break: break-word;
}


/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    list-style: none;
    padding: 0;
    margin-top: 0;
    flex-wrap: wrap;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb__link {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb__link:hover {
    color: var(--primary);
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 600;
}


/* ========================================
   DROPDOWN
   ======================================== */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    right: 0;
    z-index: 50;
    margin-top: var(--space-sm);
    min-width: 192px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
    transform-origin: top right;
}

.dropdown__item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--text);
    transition: background var(--transition-fast);
}

.dropdown__item:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.dropdown__divider {
    border-top: 1px solid var(--border-light);
    margin: var(--space-xs) 0;
}


/* ========================================
   COPY BLOCK
   ======================================== */
.copy-block {
    position: relative;
}

.copy-block__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.copy-block__inner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.copy-block__value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    word-break: break-all;
    user-select: all;
}

.copy-block__btn {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-block__btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}


/* ========================================
   COLLAPSIBLE
   ======================================== */
.collapsible {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    overflow: hidden;
}

.collapsible + .collapsible {
    margin-top: var(--space-sm);
}

.collapsible__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background var(--transition-fast);
}

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

.collapsible[open] .collapsible__trigger {
    border-bottom-color: var(--border);
}

.collapsible__count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: var(--space-sm);
}

.collapsible__icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.collapsible[open] .collapsible__icon {
    transform: rotate(180deg);
}

.collapsible__body {
    padding: var(--space-lg);
}


/* ========================================
   AGENT CARD
   ======================================== */
.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.agent-card:hover {
    border-color: var(--agent-color, var(--border));
    box-shadow: 0 0 0 1px var(--agent-color, transparent), var(--shadow-md);
}

.agent-card__bar {
    height: 3px;
    flex-shrink: 0;
}

.agent-card__body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.agent-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.agent-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.agent-card__title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.agent-card__description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.agent-card__capabilities {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.agent-card__capabilities li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.agent-card__capabilities li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.agent-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 600;
}

.agent-card__link svg {
    width: 16px;
    height: 16px;
}

/* Agent card mini (dashboard/landing) */
.agent-card-mini {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.agent-card-mini:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.agent-card-mini__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.agent-mark {
    display: inline-grid;
    place-items: center;
    width: var(--agent-mark-size, 40px);
    height: var(--agent-mark-size, 40px);
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--agent-color, #6b7280);
    font-family: var(--font-body);
    font-size: var(--agent-mark-font-size, 1rem);
    font-weight: 700;
    line-height: 1;
}

.agent-card-mini__icon .agent-mark {
    --agent-mark-size: 40px;
    --agent-mark-font-size: 1.05rem;
}

.agent-card-mini__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.agent-card-mini__title {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}


/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    background: linear-gradient(to bottom, var(--primary-50), var(--bg));
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .hero__inner {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: center;
        padding: 0 var(--space-xl);
    }
}

.hero__badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 86, 219, 0.1);
    border: 1px solid rgba(26, 86, 219, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__title-accent {
    color: var(--primary);
}

.hero__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__visual {
    margin-top: var(--space-2xl);
}

@media (min-width: 1024px) {
    .hero__visual {
        margin-top: 0;
    }
}

.hero__code-block {
    background: var(--navy);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__code-block pre {
    padding: var(--space-xl);
    margin: 0;
    overflow-x: auto;
}

.hero__code-block code {
    color: #86EFAC;
    font-size: 0.875rem;
    line-height: 1.6;
    background: none;
    padding: 0;
}


/* ========================================
   FEATURE GRID
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
    transition: box-shadow var(--transition-fast);
}

.feature-card:hover {
    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

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


/* ========================================
   STEP CARD
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.step-card {
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
}

.step-card__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.step-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0;
}

.trust-strip__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .trust-strip__inner {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 var(--space-lg);
    }
}

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

.trust-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.trust-item__icon svg {
    width: 100%;
    height: 100%;
}

.trust-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.trust-item__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ========================================
   PRICING CARD
   ======================================== */
.pricing-card {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-xl);
    border: 2px solid var(--primary);
    border-radius: var(--radius-2xl);
    background: var(--bg);
}

@media (min-width: 768px) {
    .pricing-card {
        padding: var(--space-2xl);
    }
}

.pricing-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.pricing-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.pricing-card__billing {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0 0;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-card__features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}


/* ========================================
   FAQ
   ======================================== */
.faq {
    max-width: 640px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.faq__item:first-child {
    padding-top: 0;
}

.faq__question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

/* When used with <details>/<summary> */
.faq__item summary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: var(--space-md);
    transition: transform var(--transition-fast);
}

.faq__item[open] summary::after {
    content: '-';
}

.faq__answer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ========================================
   AUTH CARD
   ======================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-card__subtitle a {
    font-weight: 600;
}

.auth-card__body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .auth-card__body {
        padding: var(--space-2xl);
    }
}

.auth-card__divider {
    position: relative;
    text-align: center;
    margin: var(--space-lg) 0;
}

.auth-card__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}

.auth-card__divider span {
    position: relative;
    background: var(--bg);
    padding: 0 var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.auth-card__social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-card__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.auth-card__social-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.auth-card__social-btn svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--primary);
    padding: var(--space-4xl) 0;
}

.cta-section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section__inner {
        padding: 0 var(--space-lg);
    }
}

.cta-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .cta-section__title {
        font-size: 2.5rem;
    }
}

.cta-section__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-section .btn--inverse {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--bg);
}

.cta-section .btn--inverse:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.cta-section .btn--inverse-ghost {
    background: transparent;
    color: var(--text-inverse);
    border-color: transparent;
}

.cta-section .btn--inverse-ghost:hover {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.1);
}


/* ========================================
   SECTION LAYOUTS
   ======================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section--bg {
    background: var(--bg-secondary);
}

.section--white {
    background: var(--bg);
}

.section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .section__inner {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .section__inner {
        padding: 0 var(--space-xl);
    }
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2.25rem;
    }
}

.section__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ========================================
   LANDING V2 — INTELLIGENT FLIGHT DECK
   ======================================== */
.landing-v2 {
    --flight-line: rgba(31, 137, 201, 0.16);
    --flight-line-dark: rgba(155, 211, 239, 0.14);
    background: #fff;
    color: var(--flight-ink);
}

.flight-container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.flight-eyebrow,
.ops-label,
.mission-board__kicker,
.mission-board__online,
.mission-board__decision-label,
.crew-agent__index,
.crew-agent__state,
.system-node__label,
.system-route__connector span,
.action-card-v2__agent,
.action-card-v2__time {
    font-family: var(--font-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.flight-eyebrow {
    margin: 0 0 1rem;
    color: var(--flight-blue-mid);
    font-size: 0.72rem;
    font-weight: 700;
}

.flight-eyebrow--light {
    color: #72c8ec;
}

.flight-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 7.5rem 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 84% 26%, rgba(31, 137, 201, 0.25), transparent 33%),
        linear-gradient(118deg, #081a2b 0%, #102b45 54%, #172f54 100%);
}

.flight-hero__grid,
.flight-cta__grid {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(var(--flight-line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--flight-line-dark) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, transparent 4%, #000 40%, #000 85%, transparent);
}

.flight-hero__glow {
    position: absolute;
    width: 580px;
    height: 580px;
    right: -190px;
    top: -240px;
    border: 1px solid rgba(101, 195, 235, 0.17);
    border-radius: 50%;
    box-shadow:
        0 0 0 92px rgba(31, 137, 201, 0.035),
        0 0 0 184px rgba(31, 137, 201, 0.025);
}

.flight-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    gap: 4.5rem;
    align-items: center;
}

.ops-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    color: #87d4f3;
    font-size: 0.7rem;
    font-weight: 700;
}

.ops-label__pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #54d6ae;
    box-shadow: 0 0 0 5px rgba(84, 214, 174, 0.12);
}

.flight-hero__title {
    max-width: 650px;
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: clamp(3.15rem, 5.4vw, 5.4rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.052em;
}

.flight-hero__title span {
    color: #8ad7f5;
}

.flight-hero__description {
    max-width: 620px;
    margin: 0 0 2rem;
    color: #b7c7d5;
    font-size: 1.1rem;
    line-height: 1.72;
}

.flight-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.btn--flight,
.btn--flight-inverse {
    gap: 0.7rem;
    color: #fff;
    border-color: transparent;
    background: var(--flight-gradient);
    box-shadow: 0 10px 30px rgba(4, 20, 39, 0.28);
}

.btn--flight:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(4, 20, 39, 0.38);
}

.btn--flight svg,
.btn--flight-inverse svg,
.text-link-flight svg,
.crew-agent__link svg {
    width: 18px;
    height: 18px;
}

.btn--flight-ghost {
    color: #d9e5ee;
    border-color: rgba(255, 255, 255, 0.19);
    background: rgba(255, 255, 255, 0.045);
}

.btn--flight-ghost:hover {
    color: #fff;
    border-color: rgba(135, 212, 243, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.flight-hero__assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.35rem;
    color: #8197aa;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flight-hero__assurance span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.flight-hero__assurance span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #399fd0;
}

.mission-board-wrap {
    position: relative;
}

.mission-board-wrap::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    border: 1px solid rgba(90, 174, 214, 0.12);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.mission-board {
    overflow: hidden;
    color: #d9e6ef;
    border: 1px solid rgba(123, 190, 222, 0.24);
    background: rgba(5, 20, 35, 0.82);
    box-shadow: 0 30px 80px rgba(0, 7, 18, 0.4);
    backdrop-filter: blur(12px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.mission-board__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(123, 190, 222, 0.17);
    background: rgba(31, 137, 201, 0.055);
}

.mission-board__kicker {
    margin: 0 0 0.3rem;
    color: #68859a;
    font-size: 0.62rem;
}

.mission-board__mission {
    margin: 0;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.mission-board__online {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #7fd7ba;
    font-size: 0.6rem;
}

.mission-board__online span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #54d6ae;
    box-shadow: 0 0 0 4px rgba(84, 214, 174, 0.1);
}

.mission-board__route {
    position: relative;
    height: 44px;
    margin-inline: 1.5rem;
}

.mission-board__route-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #1f89c9, rgba(31, 137, 201, 0.07));
}

.mission-board__route-node {
    position: absolute;
    top: calc(50% - 3px);
    width: 7px;
    height: 7px;
    border: 1px solid #5dc0e9;
    border-radius: 50%;
    background: #0a2034;
}

.mission-board__route-node:nth-child(2) { left: 0; }
.mission-board__route-node:nth-child(3) { left: 49%; }
.mission-board__route-node:nth-child(4) { right: 0; }

.mission-board__rows {
    padding: 0 1.5rem;
}

.mission-row {
    display: grid;
    grid-template-columns: 34px 84px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 54px;
    border-top: 1px solid rgba(123, 190, 222, 0.11);
}

.mission-row__mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
}

.mission-row__mark .agent-mark {
    --agent-mark-size: 28px;
    --agent-mark-font-size: .72rem;
}

.mission-row__agent {
    color: #f4f8fa;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.mission-row__task {
    overflow: hidden;
    color: #8fa5b7;
    font-size: 0.76rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mission-row__status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.mission-row__status--good {
    color: #66d5b1;
}

.mission-board__decision {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 1.5rem 1.5rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(84, 214, 174, 0.32);
    background: linear-gradient(90deg, rgba(84, 214, 174, 0.1), rgba(31, 137, 201, 0.035));
}

.mission-board__decision-label,
.mission-board__approval span {
    display: block;
    margin-bottom: 0.25rem;
    color: #708b9d;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
}

.mission-board__decision strong {
    color: #72dfbd;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.mission-board__approval {
    padding-left: 1.2rem;
    text-align: right;
    border-left: 1px solid rgba(123, 190, 222, 0.17);
}

.mission-board__approval strong {
    color: #fff;
}

.mission-board__caption {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0.25rem 0;
    color: #587084;
    font-family: var(--font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
}

.control-rail {
    border-bottom: 1px solid #dbe5eb;
    background: #f7fafc;
}

.control-rail__inner {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.control-point {
    display: flex;
    gap: 1rem;
    padding: 1.65rem 1.8rem;
    border-left: 1px solid #dbe5eb;
}

.control-point:last-child {
    border-right: 1px solid #dbe5eb;
}

.control-point__index {
    color: #2190c9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.control-point strong {
    display: block;
    margin-bottom: 0.22rem;
    color: #163049;
    font-size: 0.83rem;
}

.control-point p {
    color: #718396;
    font-size: 0.75rem;
    line-height: 1.45;
}

.crew-section {
    padding: 7rem 0;
    background:
        linear-gradient(rgba(29, 99, 160, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 99, 160, 0.045) 1px, transparent 1px),
        #fff;
    background-size: 72px 72px;
}

.split-heading {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 7rem;
    align-items: end;
    margin-bottom: 3.25rem;
}

.split-heading h2,
.connection-heading h2,
.outcome-copy h2,
.flight-cta h2 {
    margin: 0;
    color: var(--flight-ink);
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.split-heading > p,
.connection-heading > p,
.outcome-copy > p {
    color: #687c8f;
    font-size: 1rem;
    line-height: 1.75;
}

.crew-roster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cfdae2;
    border-left: 1px solid #cfdae2;
}

.crew-agent {
    position: relative;
    min-height: 360px;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--flight-ink);
    border-right: 1px solid #cfdae2;
    border-bottom: 1px solid #cfdae2;
    background: rgba(255, 255, 255, 0.88);
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.crew-agent::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--crew-color);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 220ms ease;
}

.crew-agent:hover {
    z-index: 1;
    color: var(--flight-ink);
    background: color-mix(in srgb, var(--crew-color) 5%, #fff);
    box-shadow: 0 18px 46px rgba(13, 35, 57, 0.12);
    transform: translateY(-3px);
}

.crew-agent:hover::after {
    transform: scaleX(1);
}

.crew-agent__topline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.crew-agent__index {
    color: #8ca0b1;
    font-size: 0.62rem;
}

.crew-agent__state {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #8ca0b1;
    font-size: 0.56rem;
}

.crew-agent__state i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--crew-color);
}

.crew-agent__mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 1.6rem;
    border: 0;
    background: transparent;
}

.crew-agent__mark .agent-mark {
    --agent-mark-size: 56px;
    --agent-mark-font-size: 1.3rem;
}

.crew-agent__identity {
    margin-bottom: 1rem;
}

.crew-agent__name {
    margin: 0 0 0.3rem;
    color: #102c44;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.crew-agent__role {
    min-height: 2.7em;
    color: #657a8c;
    font-size: 0.82rem;
    line-height: 1.35;
}

.crew-agent__summary {
    color: #718396;
    font-size: 0.77rem;
    line-height: 1.55;
}

.crew-agent__link {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--crew-color);
    font-size: 0.73rem;
    font-weight: 700;
}

.connection-section {
    padding: 7rem 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 110%, rgba(31, 137, 201, 0.18), transparent 45%),
        #0b2135;
}

.connection-heading {
    max-width: 760px;
    margin-bottom: 4rem;
}

.connection-heading h2,
.flight-cta h2 {
    color: #f5f9fc;
}

.connection-heading > p {
    max-width: 650px;
    margin-top: 1.4rem;
    color: #91a6b7;
}

.system-route {
    display: grid;
    grid-template-columns: 1.2fr 0.38fr 1fr 0.38fr 1fr 0.38fr 0.9fr;
    align-items: stretch;
}

.system-node {
    position: relative;
    min-height: 230px;
    padding: 1.4rem;
    color: #dbe7ef;
    border: 1px solid rgba(124, 185, 216, 0.2);
    background: rgba(4, 19, 32, 0.44);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.system-node__label {
    display: block;
    margin-bottom: 1.3rem;
    color: #6e899c;
    font-size: 0.58rem;
}

.system-node__stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.system-node__stack span {
    padding: 0.5rem 0.55rem;
    color: #a8bdcb;
    border: 1px solid rgba(124, 185, 216, 0.13);
    background: rgba(49, 111, 148, 0.06);
    font-family: var(--font-mono);
    font-size: 0.58rem;
}

.system-node strong,
.system-node small {
    display: block;
}

.system-node strong {
    margin-top: 1rem;
    color: #eef6fa;
    font-size: 0.82rem;
}

.system-node small {
    margin-top: 0.35rem;
    color: #738c9e;
    font-size: 0.68rem;
}

.system-node__signal {
    display: block;
    width: 48px;
    height: 48px;
    margin: 1.25rem 0 1.2rem;
    border: 1px solid #46a9d6;
    border-radius: 50%;
    box-shadow:
        0 0 0 8px rgba(70, 169, 214, 0.06),
        0 0 0 16px rgba(70, 169, 214, 0.035);
}

.system-node__signal::before,
.system-node__signal::after {
    content: "";
    position: absolute;
    background: #46a9d6;
}

.system-node__signal::before {
    width: 22px;
    height: 1px;
    margin: 23px 0 0 12px;
}

.system-node__signal::after {
    width: 1px;
    height: 22px;
    margin: 12px 0 0 23px;
}

.system-node__crewmarks {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    gap: 0.45rem;
    margin: 1rem 0 0.7rem;
}

.system-node__crewmarks > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
}

.system-node__crewmarks .agent-mark {
    --agent-mark-size: 32px;
    --agent-mark-font-size: .76rem;
}

.system-node__check {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 1.15rem 0 1.45rem;
    color: #65d6b1;
    border: 1px solid rgba(101, 214, 177, 0.5);
    background: rgba(101, 214, 177, 0.08);
}

.system-node__check svg {
    width: 28px;
    height: 28px;
}

.system-route__connector {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.system-route__connector i {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(71, 170, 216, 0.2), #48abd9, rgba(71, 170, 216, 0.2));
}

.system-route__connector i::after {
    content: "";
    position: absolute;
    right: 1px;
    top: calc(50% + 1rem - 3px);
    width: 6px;
    height: 6px;
    border-top: 1px solid #48abd9;
    border-right: 1px solid #48abd9;
    transform: rotate(45deg);
}

.system-route__connector span {
    position: absolute;
    top: calc(50% - 0.25rem);
    left: 50%;
    color: #59768a;
    font-size: 0.48rem;
    white-space: nowrap;
    transform: translate(-50%, -100%);
}

.outcome-section {
    padding: 7rem 0;
    background: #f4f8fa;
}

.outcome-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 7rem;
    align-items: center;
}

.outcome-copy > p {
    margin: 1.4rem 0 1.8rem;
}

.text-link-flight {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--flight-blue-mid);
    font-size: 0.88rem;
    font-weight: 700;
}

.action-card-v2 {
    position: relative;
    border: 1px solid #cedae2;
    background: #fff;
    box-shadow: 0 24px 60px rgba(13, 35, 57, 0.12);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.action-card-v2::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #10b981;
}

.action-card-v2__header,
.action-card-v2__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #e0e7ec;
    background: #f8fafb;
}

.action-card-v2__agent {
    color: #178965;
    font-size: 0.6rem;
    font-weight: 700;
}

.action-card-v2__time {
    color: #98a7b3;
    font-size: 0.55rem;
}

.action-card-v2__question {
    padding: 1.5rem 1.4rem;
    color: #20384d;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e7ec;
}

.action-card-v2__result {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
}

.action-card-v2__status {
    padding: 0.35rem 0.5rem;
    color: #087553;
    border: 1px solid #9dddc8;
    background: #ecfbf5;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.action-card-v2__result strong {
    display: block;
    color: #102c44;
    font-size: 1.1rem;
}

.action-card-v2__result p {
    margin-top: 0.3rem;
    color: #718396;
    font-size: 0.75rem;
}

.action-card-v2__evidence {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0 1.4rem 1.5rem;
}

.action-card-v2__evidence span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #586e80;
    font-size: 0.72rem;
}

.action-card-v2__evidence i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.action-card-v2__footer {
    align-items: center;
    color: #8796a3;
    border-top: 1px solid #e0e7ec;
    border-bottom: 0;
    font-size: 0.62rem;
}

.action-card-v2__footer strong {
    color: #4f6577;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
}

.flight-cta {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    color: #fff;
    background: var(--flight-gradient);
}

.flight-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 7rem;
    align-items: end;
}

.flight-cta__action > p {
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.btn--flight-inverse {
    color: var(--flight-navy);
    border-color: #fff;
    background: #fff;
    box-shadow: 0 12px 30px rgba(6, 24, 50, 0.2);
}

.btn--flight-inverse:hover {
    color: var(--flight-ink);
    background: #eaf7fc;
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .flight-hero {
        padding-top: 6.5rem;
    }

    .flight-hero__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .flight-hero__copy {
        max-width: 760px;
    }

    .mission-board-wrap {
        max-width: 720px;
    }

    .system-route {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .system-node {
        min-height: auto;
    }

    .system-route__connector {
        width: 1px;
        height: 60px;
        margin-left: 2rem;
        padding: 0;
        background: #48abd9;
    }

    .system-route__connector i {
        width: 1px;
        height: 100%;
    }

    .system-route__connector i::after {
        right: -3px;
        top: auto;
        bottom: 1px;
        transform: rotate(135deg);
    }

    .system-route__connector span {
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
    }
}

@media (max-width: 820px) {
    .flight-container,
    .flight-hero__inner,
    .control-rail__inner {
        width: min(100% - 2.5rem, 1200px);
    }

    .flight-hero {
        min-height: auto;
        padding: 6.5rem 0 4.5rem;
    }

    .control-rail__inner,
    .split-heading,
    .outcome-grid,
    .flight-cta__inner {
        grid-template-columns: 1fr;
    }

    .control-point {
        border-right: 1px solid #dbe5eb;
        border-bottom: 1px solid #dbe5eb;
    }

    .control-point:last-child {
        border-bottom: 0;
    }

    .split-heading,
    .outcome-grid,
    .flight-cta__inner {
        gap: 2rem;
    }

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

    .crew-section,
    .connection-section,
    .outcome-section {
        padding: 5rem 0;
    }
}

@media (max-width: 560px) {
    .flight-hero__title {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .flight-hero__description {
        font-size: 1rem;
    }

    .flight-hero__actions .btn {
        width: 100%;
    }

    .mission-board-wrap::before,
    .mission-board__caption {
        display: none;
    }

    .mission-board__topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .mission-board__rows {
        padding-inline: 1rem;
    }

    .mission-row {
        grid-template-columns: 30px 70px 1fr;
        gap: 0.55rem;
        padding: 0.65rem 0;
    }

    .mission-row__task {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .mission-row__status {
        justify-self: end;
    }

    .mission-board__decision {
        align-items: flex-start;
        flex-direction: column;
        margin-inline: 1rem;
    }

    .mission-board__approval {
        width: 100%;
        padding: 0.8rem 0 0;
        text-align: left;
        border-top: 1px solid rgba(123, 190, 222, 0.17);
        border-left: 0;
    }

    .crew-roster {
        grid-template-columns: 1fr;
    }

    .crew-agent {
        min-height: 340px;
    }

    .action-card-v2__evidence {
        grid-template-columns: 1fr;
    }

    .action-card-v2__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ========================================
   MARKETING SYSTEM — SHARED PAGES
   ======================================== */
.marketing-shell .site-nav {
    border-bottom-color: #dce5eb;
    box-shadow: none;
}

.marketing-shell .site-nav__links a,
.marketing-shell .site-nav__actions > a:not(.btn) {
    color: #52687a;
    font-size: 0.84rem;
    font-weight: 500;
}

.marketing-shell .site-nav__links a:hover,
.marketing-shell .site-nav__actions > a:not(.btn):hover {
    color: var(--flight-blue-mid);
}

.marketing-shell .site-nav .btn--primary {
    border-color: var(--flight-blue-mid);
    background: var(--flight-blue-mid);
}

.marketing-page-v2 {
    color: var(--flight-ink);
    background: #fff;
}

.marketing-page-hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 6rem;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(31,137,201,.25), transparent 34%),
        linear-gradient(118deg, #081a2b 0%, #102b45 55%, #172f54 100%);
}

.marketing-page-hero__grid,
.contact-section-v2__grid {
    position: absolute;
    inset: 0;
    opacity: .48;
    background-image:
        linear-gradient(rgba(155,211,239,.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155,211,239,.13) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, transparent, #000 25%, #000 90%, transparent);
}

.marketing-page-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 7rem;
    align-items: end;
}

.marketing-page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.1rem, 5.6vw, 5.8rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.052em;
}

.marketing-page-hero h1 span {
    color: #86d5f4;
}

.marketing-page-hero__inner > p {
    color: #aabecd;
    font-size: 1.05rem;
    line-height: 1.75;
}

.platform-roster-section,
.agent-profile-section,
.pricing-section-v2 {
    padding: 6.5rem 0;
    background:
        linear-gradient(rgba(29,99,160,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,99,160,.045) 1px, transparent 1px),
        #f9fbfc;
    background-size: 72px 72px;
}

.platform-roster {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #ccd9e1;
    border-left: 1px solid #ccd9e1;
}

.platform-agent {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: 530px;
    border-right: 1px solid #ccd9e1;
    border-bottom: 1px solid #ccd9e1;
    background: rgba(255,255,255,.9);
}

.platform-agent__rail {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 1.7rem;
    color: #8ca0b1;
    border-right: 1px solid #e0e7ec;
    font-family: var(--font-mono);
    font-size: .55rem;
}

.platform-agent__rail i {
    width: 1px;
    height: 46px;
    margin-top: .8rem;
    background: var(--crew-color);
}

.platform-agent__body {
    position: relative;
    padding: 2rem 2rem 4.5rem;
}

.platform-agent__header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.7rem;
}

.platform-agent__mark,
.agent-profile-hero__mark,
.agent-profile-cta__mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
}

.platform-agent__mark .agent-mark,
.agent-profile-cta__mark .agent-mark {
    --agent-mark-size: 56px;
    --agent-mark-font-size: 1.3rem;
}

.platform-agent__call,
.agent-profile-hero__call {
    margin: 0 0 .25rem;
    color: var(--crew-color);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .11em;
}

.platform-agent h2 {
    margin: 0;
    color: #163049;
    font-size: 1.15rem;
}

.platform-agent__description {
    min-height: 9.8em;
    color: #657b8d;
    font-size: .86rem;
    line-height: 1.65;
}

.platform-agent__label,
.scope-card-v2 > span,
.enterprise-card-v2__included > span,
.contact-form-v2__head,
.contact-expect-v2 > span {
    color: #8a9ca9;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .12em;
}

.platform-agent__capabilities {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e1e8ed;
}

.platform-agent__capabilities ul {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .65rem 1rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.platform-agent__capabilities li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: #52687a;
    font-size: .73rem;
}

.platform-agent__capabilities li i {
    width: 5px;
    height: 5px;
    margin-top: .4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--crew-color);
}

.platform-agent__link {
    color: var(--crew-color);
}

.access-section-v2,
.agent-use-section,
.faq-section-v2 {
    padding: 6.5rem 0;
}

.access-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid #d1dde5;
    border-left: 1px solid #d1dde5;
}

.access-grid-v2 article {
    min-height: 360px;
    padding: 2rem;
    border-right: 1px solid #d1dde5;
    border-bottom: 1px solid #d1dde5;
}

.access-grid-v2__number {
    color: #2893c7;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
}

.access-grid-v2 h3 {
    margin: 2.4rem 0 .8rem;
    color: #153049;
    font-size: 1.3rem;
}

.access-grid-v2 article > p {
    color: #6b7f90;
    font-size: .82rem;
    line-height: 1.6;
}

.entity-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1.5rem;
}

.entity-cloud span,
.proposal-mini,
.approval-mini {
    border: 1px solid #d7e2e8;
    background: #f7fafb;
}

.entity-cloud span {
    padding: .4rem .55rem;
    color: #607587;
    font-family: var(--font-mono);
    font-size: .56rem;
}

.proposal-mini,
.approval-mini {
    margin-top: 1.5rem;
    padding: 1rem;
}

.proposal-mini span,
.proposal-mini strong,
.proposal-mini small,
.approval-mini strong,
.approval-mini small {
    display: block;
}

.proposal-mini span { color:#9a6b14;font-family:var(--font-mono);font-size:.52rem;letter-spacing:.08em; }
.proposal-mini strong,.approval-mini strong { margin-top:.4rem;color:#213b51;font-size:.76rem; }
.proposal-mini small,.approval-mini small { margin-top:.2rem;color:#8a9ba8;font-size:.62rem; }
.approval-mini { display:flex;align-items:center;gap:.8rem; }
.approval-mini i { display:grid;place-items:center;width:34px;height:34px;color:#087553;border:1px solid #a5ddca;background:#ecfbf5;font-style:normal; }

.marketing-cta-v2 {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    color: #fff;
    background: var(--flight-gradient);
}

.marketing-cta-v2__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 7rem;
    align-items: end;
}

.marketing-cta-v2 h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem,4vw,4rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.marketing-cta-v2__inner > div:last-child p {
    color: rgba(255,255,255,.78);
}

/* Agent profiles */
.agent-profile-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%,color-mix(in srgb,var(--crew-color) 22%,transparent),transparent 34%),
        linear-gradient(118deg,#081a2b,#102b45 62%,#172f54);
}

.agent-profile-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr .78fr;
    gap: 7rem;
    align-items: center;
}

.agent-profile-hero__identity {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.agent-profile-hero__mark {
    width: 122px;
    height: 122px;
    border: 0;
    background: transparent;
}

.agent-profile-hero__mark .agent-mark {
    --agent-mark-size: 96px;
    --agent-mark-font-size: 2.2rem;
}
.agent-profile-hero h1 { margin:0;color:#fff;font-size:clamp(2.8rem,5vw,5rem);line-height:1;letter-spacing:-.045em; }
.agent-profile-hero__brief { padding:1.7rem;border-left:2px solid var(--crew-color);background:rgba(3,17,29,.32); }
.agent-profile-hero__brief > span { color:#718ea2;font-family:var(--font-mono);font-size:.58rem;letter-spacing:.12em; }
.agent-profile-hero__brief p { margin:1rem 0;color:#b3c4d1;font-size:.9rem;line-height:1.7; }
.agent-profile-hero__state { display:flex;align-items:center;gap:.5rem;color:var(--crew-color);font-family:var(--font-mono);font-size:.57rem;letter-spacing:.08em; }
.agent-profile-hero__state i { width:6px;height:6px;border-radius:50%;background:var(--crew-color); }

.agent-profile-heading {
    display:flex;
    justify-content:space-between;
    gap:2rem;
    align-items:end;
    margin-bottom:3rem;
}

.agent-profile-heading h2 { max-width:700px;margin:0;color:#102c44;font-size:clamp(2.2rem,4vw,3.5rem);line-height:1.08;letter-spacing:-.04em; }
.capability-matrix { display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ccd9e1;border-left:1px solid #ccd9e1; }
.capability-matrix__item { display:grid;grid-template-columns:30px 1px 1fr;gap:1rem;align-items:center;min-height:112px;padding:1.2rem;border-right:1px solid #ccd9e1;border-bottom:1px solid #ccd9e1;background:rgba(255,255,255,.86); }
.capability-matrix__item span { color:var(--crew-color);font-family:var(--font-mono);font-size:.57rem; }
.capability-matrix__item i { height:28px;background:color-mix(in srgb,var(--crew-color) 40%,#dce5eb); }
.capability-matrix__item strong { color:#425b6e;font-size:.8rem;line-height:1.4; }

.agent-use-section { background:#fff; }
.agent-use-grid { display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #d3dfe6;border-left:1px solid #d3dfe6; }
.agent-use-grid article { min-height:220px;padding:1.5rem;border-right:1px solid #d3dfe6;border-bottom:1px solid #d3dfe6; }
.agent-use-grid article span { color:var(--crew-color);font-family:var(--font-mono);font-size:.55rem;letter-spacing:.08em; }
.agent-use-grid article p { margin-top:3rem;color:#4e6577;font-size:.85rem;line-height:1.6; }

.agent-profile-cta { padding:5.5rem 0;background:#f1f6f9; }
.agent-profile-cta__inner { display:grid;grid-template-columns:auto 1fr auto;gap:2rem 3rem;align-items:center; }
.agent-profile-cta h2 { margin:.25rem 0;color:#102c44;font-size:clamp(2rem,3.5vw,3.2rem);letter-spacing:-.04em; }
.agent-profile-cta p { color:#718396; }
.agent-color-button { color:#fff!important;border-color:var(--crew-color);background:var(--crew-color); }
.agent-profile-cta__actions { display:flex;align-items:center;flex-direction:column;gap:1rem; }

/* Security */
.security-assurance-rail {
    position:relative;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    margin-top:4rem;
    border-top:1px solid rgba(133,199,229,.2);
    border-left:1px solid rgba(133,199,229,.2);
}

.security-assurance-rail span { display:flex;align-items:center;gap:.6rem;padding:1.1rem;color:#88a4b7;border-right:1px solid rgba(133,199,229,.2);border-bottom:1px solid rgba(133,199,229,.2);font-family:var(--font-mono);font-size:.54rem;letter-spacing:.08em; }
.security-assurance-rail i { width:5px;height:5px;border-radius:50%;background:#55d4ae; }
.security-body-v2 { padding:6.5rem 0;background:#f8fafb; }
.security-layout-v2 { display:grid;grid-template-columns:220px 1fr;gap:5rem;align-items:start; }
.security-index { position:sticky;top:100px;display:flex;flex-direction:column;border-top:1px solid #d5e0e7; }
.security-index > span { padding:1rem 0;color:#8a9daa;font-family:var(--font-mono);font-size:.58rem;letter-spacing:.11em; }
.security-index a { padding:.85rem 0;color:#657b8d;border-top:1px solid #e2e9ed;font-family:var(--font-mono);font-size:.62rem; }
.security-principles article { display:grid;grid-template-columns:50px 1fr;gap:1.5rem;padding:0 0 4rem;margin-bottom:4rem;border-bottom:1px solid #d5e0e7;scroll-margin-top:100px; }
.security-principles article:last-child { margin:0;border:0; }
.security-principle__number { color:#2895ca;font-family:var(--font-mono);font-size:.68rem; }
.security-principle__label { color:#8296a5;font-family:var(--font-mono);font-size:.58rem;letter-spacing:.11em; }
.security-principles h2 { margin:.7rem 0 1.2rem;color:#102c44;font-size:clamp(1.8rem,3vw,2.7rem);letter-spacing:-.035em; }
.security-principles p { color:#617789;font-size:.9rem;line-height:1.75; }
.scope-card-v2 { margin-top:1.5rem;padding:1.25rem;border:1px solid #d5e1e7;background:#fff; }
.scope-card-v2 > div { display:flex;flex-wrap:wrap;gap:.45rem;margin:1rem 0; }
.scope-card-v2 i { padding:.42rem .55rem;color:#087553;border:1px solid #a7dfcc;background:#effbf7;font-family:var(--font-mono);font-size:.57rem;font-style:normal; }
.scope-card-v2 .scope-write { color:#9a6405;border-color:#ead397;background:#fff9e9; }
.scope-card-v2 small { color:#8798a5;font-size:.65rem; }

/* Pricing */
.pricing-layout-v2 { display:grid;grid-template-columns:.75fr 1.25fr;gap:7rem;align-items:center; }
.pricing-intro-v2 h2 { margin:0;color:#102c44;font-size:clamp(2.3rem,4vw,3.7rem);line-height:1.05;letter-spacing:-.045em; }
.pricing-intro-v2 > p:not(.flight-eyebrow) { margin-top:1.5rem;color:#667d8f;line-height:1.75; }
.pricing-metric { display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;margin-top:2rem;color:#238fc5;font-family:var(--font-mono);font-size:.65rem; }
.pricing-metric i { height:1px;background:#bcd8e5; }
.enterprise-card-v2 { padding:2rem;border:1px solid #c8d8e2;background:#fff;box-shadow:0 28px 70px rgba(13,35,57,.12);clip-path:polygon(0 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%); }
.enterprise-card-v2__top { display:flex;justify-content:space-between;padding-bottom:1.4rem;border-bottom:1px solid #e0e8ed;color:#1d63a0;font-family:var(--font-mono);font-size:.6rem;font-weight:700;letter-spacing:.1em; }
.enterprise-card-v2__top i { color:#0b8b66;font-style:normal; }
.enterprise-card-v2 h2 { margin:2rem 0 .4rem;color:#102c44;font-size:3rem;letter-spacing:-.04em; }
.enterprise-card-v2 > p { color:#718396; }
.enterprise-card-v2 > .btn { margin:1.5rem 0 2rem; }
.enterprise-card-v2__included { padding-top:1.5rem;border-top:1px solid #e0e8ed; }
.enterprise-card-v2__included ul { display:grid;gap:.8rem;padding:0;margin:1.2rem 0 0;list-style:none; }
.enterprise-card-v2__included li { display:flex;gap:.7rem;color:#536a7c;font-size:.78rem; }
.enterprise-card-v2__included li i { color:#0ca879;font-style:normal; }
.faq-section-v2 { background:#fff; }
.faq-v2 { max-width:920px;margin-left:auto;border-top:1px solid #cfdae2; }
.faq-v2 details { border-bottom:1px solid #cfdae2; }
.faq-v2 summary { display:flex;gap:1.2rem;padding:1.35rem 0;color:#18344c;font-weight:600;cursor:pointer;list-style:none; }
.faq-v2 summary span { color:#2592c7;font-family:var(--font-mono);font-size:.64rem; }
.faq-v2 details p { padding:0 0 1.4rem 2.5rem;color:#6c8091;font-size:.84rem;line-height:1.65; }

/* Contact */
.contact-section-v2 { position:relative;overflow:hidden;padding:7rem 0;background:linear-gradient(118deg,#081a2b,#102b45 60%,#172f54); }
.contact-layout-v2 { position:relative;display:grid;grid-template-columns:.8fr 1.2fr;gap:7rem;align-items:start; }
.contact-brief-v2 h1 { margin:0;color:#fff;font-size:clamp(3rem,5vw,5rem);line-height:1;letter-spacing:-.05em; }
.contact-brief-v2 > p:not(.flight-eyebrow):not(.contact-email-v2) { margin-top:1.5rem;color:#a8bdcc;line-height:1.75; }
.contact-expect-v2 { margin-top:3rem;padding-top:1.5rem;border-top:1px solid rgba(138,203,232,.2); }
.contact-expect-v2 > div { display:grid;grid-template-columns:32px 1fr;gap:1rem;padding:1rem 0;border-bottom:1px solid rgba(138,203,232,.1); }
.contact-expect-v2 i { color:#55bce8;font-family:var(--font-mono);font-size:.6rem;font-style:normal; }
.contact-expect-v2 p { color:#8fa6b7;font-size:.75rem; }
.contact-expect-v2 strong { display:block;margin-bottom:.2rem;color:#dce8ef; }
.contact-email-v2 { margin-top:2rem;color:#7f98aa;font-size:.8rem; }
.contact-email-v2 a { color:#72caed; }
.contact-form-v2 { padding:2rem;border:1px solid rgba(128,193,224,.24);background:rgba(5,20,34,.72);box-shadow:0 30px 80px rgba(0,7,18,.35);clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%); }
.contact-form-v2__head { display:flex;justify-content:space-between;margin:-2rem -2rem 1.8rem;padding:1.1rem 2rem;color:#7b9caf;border-bottom:1px solid rgba(128,193,224,.17);background:rgba(31,137,201,.05); }
.contact-form-v2__head i { color:#54d6ae;font-style:normal; }
.contact-form-v2 .form-label { color:#b9cad6; }
.contact-form-v2 .form-input,.contact-form-v2 .form-select,.contact-form-v2 .form-textarea { color:#e9f2f7;border-color:rgba(132,190,217,.25);background:rgba(255,255,255,.045); }
.contact-form-v2 .form-input:focus,.contact-form-v2 .form-select:focus,.contact-form-v2 .form-textarea:focus { border-color:#43a9d7;box-shadow:0 0 0 3px rgba(67,169,215,.12); }
.contact-form-v2 .form-select option { color:#142c40; }

@media (max-width:900px) {
    .marketing-page-hero__inner,.marketing-cta-v2__inner,.agent-profile-hero__inner,.pricing-layout-v2,.contact-layout-v2 { grid-template-columns:1fr;gap:2.5rem; }
    .platform-roster,.capability-matrix { grid-template-columns:1fr 1fr; }
    .access-grid-v2,.agent-use-grid { grid-template-columns:1fr 1fr; }
    .security-layout-v2 { grid-template-columns:1fr;gap:2rem; }
    .security-index { position:static;display:none; }
    .agent-profile-cta__inner { grid-template-columns:auto 1fr; }
    .agent-profile-cta__actions { grid-column:2;align-items:flex-start; }
}

@media (max-width:600px) {
    .marketing-page-hero,.agent-profile-hero,.contact-section-v2 { padding:6rem 0 4rem; }
    .marketing-page-hero h1 { font-size:clamp(2.75rem,13vw,4rem); }
    .platform-roster,.capability-matrix,.access-grid-v2,.agent-use-grid { grid-template-columns:1fr; }
    .platform-agent { min-height:0; }
    .platform-agent__description { min-height:0; }
    .platform-agent__capabilities ul { grid-template-columns:1fr; }
    .platform-agent__body { padding:1.5rem 1.3rem 4.5rem; }
    .security-assurance-rail { grid-template-columns:1fr 1fr; }
    .security-principles article { grid-template-columns:1fr;gap:.7rem; }
    .agent-profile-hero__identity { align-items:flex-start;flex-direction:column; }
    .agent-profile-hero__mark { width:88px;height:88px; }
    .agent-profile-hero__mark .agent-mark {
        --agent-mark-size: 72px;
        --agent-mark-font-size: 1.7rem;
    }
    .agent-profile-heading { align-items:flex-start;flex-direction:column; }
    .agent-profile-cta__inner { grid-template-columns:1fr; }
    .agent-profile-cta__actions { grid-column:auto; }
    .pricing-layout-v2 { gap:3.5rem; }
    .enterprise-card-v2 { padding:1.4rem; }
    .enterprise-card-v2__top { align-items:flex-start;flex-direction:column;gap:.5rem; }
    .contact-form-v2 { padding:1.25rem; }
    .contact-form-v2__head { margin:-1.25rem -1.25rem 1.5rem;padding:1rem 1.25rem; }
}


/* ========================================
   PLATFORM V3 — OUTCOME-LED OPERATING MODEL
   ======================================== */
.platform-strength-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 4rem;
    border-top: 1px solid rgba(133,199,229,.2);
    border-left: 1px solid rgba(133,199,229,.2);
}

.platform-strength-rail span {
    padding: 1.05rem;
    color: #86a1b4;
    border-right: 1px solid rgba(133,199,229,.2);
    border-bottom: 1px solid rgba(133,199,229,.2);
    font-family: var(--font-mono);
    font-size: .54rem;
    letter-spacing: .08em;
}

.platform-outcomes-v3,
.platform-strengths-v3,
.interfaces-v3,
.crew-index-v3 {
    padding: 6.5rem 0;
}

.platform-outcomes-v3 {
    background:
        linear-gradient(rgba(29,99,160,.045) 1px,transparent 1px),
        linear-gradient(90deg,rgba(29,99,160,.045) 1px,transparent 1px),
        #f9fbfc;
    background-size: 72px 72px;
}

.outcome-areas-v3 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    border-top: 1px solid #ccd9e1;
    border-left: 1px solid #ccd9e1;
}

.outcome-areas-v3 > article {
    position: relative;
    min-height: 410px;
    padding: 2rem;
    border-right: 1px solid #ccd9e1;
    border-bottom: 1px solid #ccd9e1;
    background: rgba(255,255,255,.91);
}

.outcome-areas-v3__top {
    display: flex;
    justify-content: space-between;
    color: #268fc3;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
}

.outcome-areas-v3 h3 {
    max-width: 480px;
    margin: 3rem 0 1rem;
    color: #102c44;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.outcome-areas-v3 > article > p {
    max-width: 520px;
    color: #6b8091;
    font-size: .86rem;
    line-height: 1.7;
}

.outcome-agent-pair {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: .7rem;
}

.outcome-agent-pair a {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    flex: 1;
    padding: .7rem;
    color: #2b465c;
    border: 1px solid #d7e2e8;
    background: #f8fafb;
}

.outcome-agent-pair a:hover {
    border-color: var(--crew-color);
}

.outcome-agent-pair i,
.orchestration-specialists-v3 i,
.crew-index-v3__list i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    font-style: normal;
}

.outcome-agent-pair .agent-mark,
.orchestration-specialists-v3 .agent-mark,
.crew-index-v3__list .agent-mark {
    --agent-mark-size: 32px;
    --agent-mark-font-size: .76rem;
}

.outcome-agent-pair strong,
.outcome-agent-pair small {
    display: block;
}

.outcome-agent-pair strong {
    color: var(--crew-color);
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .07em;
}

.outcome-agent-pair small {
    overflow: hidden;
    margin-top: .15rem;
    color: #7b8e9d;
    font-size: .58rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.orchestration-v3 {
    padding: 6.5rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 50% 110%,rgba(31,137,201,.16),transparent 44%),
        #0b2135;
}

.orchestration-v3__heading {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 7rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.orchestration-v3__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem,4.2vw,4rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.orchestration-v3__heading > p {
    color: #91a6b7;
    line-height: 1.75;
}

.orchestration-board-v3 {
    overflow: hidden;
    border: 1px solid rgba(126,188,217,.2);
    background: rgba(3,17,29,.36);
    clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}

.orchestration-query-v3 {
    display: grid;
    grid-template-columns: .55fr 1.45fr;
    gap: 2rem;
    align-items: center;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid rgba(126,188,217,.18);
    background: rgba(31,137,201,.045);
}

.orchestration-query-v3 span,
.orchestration-step-v3 > span,
.interfaces-v3 article > span {
    color: #6e899c;
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .1em;
}

.orchestration-query-v3 strong {
    color: #eff6fa;
    font-size: 1.1rem;
}

.orchestration-flow-v3 {
    display: grid;
    grid-template-columns: .8fr 1.35fr .85fr;
}

.orchestration-step-v3 {
    min-height: 320px;
    padding: 2rem;
    border-right: 1px solid rgba(126,188,217,.14);
}

.orchestration-step-v3:last-child {
    border-right: 0;
}

.orchestration-step-v3 h3 {
    margin: 2.5rem 0 1rem;
    color: #eaf3f8;
    font-size: 1.15rem;
}

.orchestration-tags-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.orchestration-tags-v3 i {
    padding: .4rem .5rem;
    color: #8ba4b5;
    border: 1px solid rgba(126,188,217,.17);
    font-family: var(--font-mono);
    font-size: .54rem;
    font-style: normal;
}

.orchestration-specialists-v3 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .55rem;
    margin-top: 1.8rem;
}

.orchestration-specialists-v3 > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: .15rem .65rem;
    align-items: center;
    padding: .65rem;
    border: 1px solid rgba(126,188,217,.13);
}

.orchestration-specialists-v3 i {
    grid-row: 1 / 3;
}

.orchestration-specialists-v3 strong {
    color: var(--crew-color);
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .06em;
}

.orchestration-specialists-v3 small {
    color: #7891a3;
    font-size: .56rem;
}

.orchestration-status-v3 {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 2.4rem;
    padding: 1rem;
    border: 1px solid rgba(84,214,174,.35);
    background: rgba(84,214,174,.07);
}

.orchestration-status-v3 i {
    padding: .35rem .42rem;
    color: #65d6b1;
    border: 1px solid rgba(84,214,174,.4);
    font-family: var(--font-mono);
    font-size: .52rem;
    font-style: normal;
}

.orchestration-status-v3 strong,
.orchestration-status-v3 small {
    display: block;
}

.orchestration-status-v3 strong {
    color: #71dfbd;
    font-size: .8rem;
}

.orchestration-status-v3 small {
    margin-top: .15rem;
    color: #718c9e;
    font-size: .55rem;
}

.orchestration-authority-v3 {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(126,188,217,.13);
}

.orchestration-authority-v3 span {
    color: #617d91;
    font-family: var(--font-mono);
    font-size: .52rem;
    letter-spacing: .08em;
}

.orchestration-authority-v3 strong {
    color: #fff;
    font-family: var(--font-mono);
    font-size: .66rem;
}

.platform-strengths-v3 {
    background:
        linear-gradient(rgba(29,99,160,.04) 1px,transparent 1px),
        linear-gradient(90deg,rgba(29,99,160,.04) 1px,transparent 1px),
        #f7fafb;
    background-size: 72px 72px;
}

.strength-grid-v3 {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    border-top: 1px solid #cedbe3;
    border-left: 1px solid #cedbe3;
}

.strength-grid-v3 article {
    min-height: 250px;
    padding: 1.5rem;
    border-right: 1px solid #cedbe3;
    border-bottom: 1px solid #cedbe3;
    background: rgba(255,255,255,.82);
}

.strength-grid-v3 span {
    color: #2592c7;
    font-family: var(--font-mono);
    font-size: .58rem;
}

.strength-grid-v3 h3 {
    margin: 3.5rem 0 .8rem;
    color: #163149;
    font-size: 1.05rem;
}

.strength-grid-v3 p {
    color: #6c8091;
    font-size: .75rem;
    line-height: 1.6;
}

.interfaces-v3 {
    background: #fff;
}

.interfaces-v3__heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.interfaces-v3__heading h2,
.crew-index-v3__heading h2 {
    margin: 0;
    color: #102c44;
    font-size: clamp(2.25rem,4vw,3.6rem);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.interface-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid #d0dce4;
    border-left: 1px solid #d0dce4;
}

.interface-grid-v3 article {
    min-height: 260px;
    padding: 2rem;
    border-right: 1px solid #d0dce4;
    border-bottom: 1px solid #d0dce4;
}

.interface-grid-v3 article > span {
    color: #268fc4;
}

.interface-grid-v3 h3 {
    margin: 3.2rem 0 .8rem;
    color: #17334b;
    font-size: 1.25rem;
}

.interface-grid-v3 p {
    color: #6b8091;
    font-size: .82rem;
    line-height: 1.65;
}

.crew-index-v3 {
    background: #f3f7f9;
}

.crew-index-v3__heading {
    display: grid;
    grid-template-columns: 1fr .65fr;
    gap: 5rem;
    align-items: end;
    margin-bottom: 3rem;
}

.crew-index-v3__heading > p {
    color: #6b8091;
}

.crew-index-v3__list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid #cedbe3;
    border-left: 1px solid #cedbe3;
}

.crew-index-v3__list > a {
    display: grid;
    grid-template-columns: 24px 38px 1fr auto;
    gap: .7rem;
    align-items: center;
    min-height: 88px;
    padding: 1rem;
    color: #17334b;
    border-right: 1px solid #cedbe3;
    border-bottom: 1px solid #cedbe3;
    background: rgba(255,255,255,.75);
}

.crew-index-v3__list > a:hover {
    background: #fff;
    box-shadow: inset 3px 0 var(--crew-color);
}

.crew-index-v3__list > a > span {
    color: #90a1ad;
    font-family: var(--font-mono);
    font-size: .52rem;
}

.crew-index-v3__list strong,
.crew-index-v3__list small {
    display: block;
}

.crew-index-v3__list strong {
    color: var(--crew-color);
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .06em;
}

.crew-index-v3__list small {
    margin-top: .16rem;
    color: #748898;
    font-size: .59rem;
}

.crew-index-v3__list b {
    color: var(--crew-color);
    font-weight: 400;
}

@media (max-width: 900px) {
    .orchestration-v3__heading,
    .crew-index-v3__heading {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .orchestration-flow-v3 {
        grid-template-columns: 1fr;
    }

    .orchestration-step-v3 {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(126,188,217,.14);
    }

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

@media (max-width: 600px) {
    .platform-strength-rail,
    .outcome-areas-v3,
    .interface-grid-v3,
    .crew-index-v3__list {
        grid-template-columns: 1fr;
    }

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

    .outcome-areas-v3 > article {
        min-height: 470px;
        padding: 1.4rem;
    }

    .outcome-agent-pair {
        right: 1.4rem;
        bottom: 1.4rem;
        left: 1.4rem;
        flex-direction: column;
    }

    .orchestration-query-v3 {
        grid-template-columns: 1fr;
    }

    .orchestration-specialists-v3,
    .strength-grid-v3 {
        grid-template-columns: 1fr;
    }

    .strength-grid-v3 article {
        min-height: 210px;
    }
}


/* ========================================
   DELETE CONFIRM
   ======================================== */
.delete-confirm {
    max-width: 560px;
}

.delete-confirm__body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.delete-confirm__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--error);
}

.delete-confirm__icon svg {
    width: 100%;
    height: 100%;
}

.delete-confirm__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.delete-confirm__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.delete-confirm__warning {
    margin: 0 var(--space-lg) var(--space-lg);
}

.delete-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}


/* ========================================
   GRID UTILITIES
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2col {
    grid-template-columns: 1fr;
}

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

.grid--3col {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.grid--4col {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.grid--gap-xl {
    gap: var(--space-xl);
}


/* ========================================
   TAGS / SCOPE PILLS
   ======================================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.tag--primary {
    background: var(--primary-50);
    color: var(--primary-dark);
    border-color: rgba(26, 86, 219, 0.2);
}

.tag--success {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success-border);
}

.tag--warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: var(--warning-border);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}


/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner--lg {
    width: 24px;
    height: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ========================================
   RESPONSIVE VISIBILITY
   ======================================== */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}


/* ========================================
   PRINT
   ======================================== */
@media print {
    .site-nav,
    .dashboard-sidebar,
    .dashboard-topbar,
    .site-footer,
    .flash-messages,
    .btn,
    .dropdown {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .dashboard-main {
        margin-left: 0 !important;
    }
}
