/* =====================================================================
   NIMBENT — DESIGN SYSTEM
   Single source of truth for the entire site.
   v1.0 · 2026
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- 1. TOKENS --------------------------------------------- */
:root {
    /* Brand — pulled directly from the logo gradient */
    --indigo-950: oklch(0.18 0.08 280);   /* darkest, ink */
    --indigo-900: oklch(0.25 0.12 280);   /* logo deep */
    --indigo-700: oklch(0.38 0.16 285);   /* primary */
    --indigo-500: oklch(0.55 0.20 290);   /* logo mid */
    --violet-500: oklch(0.55 0.22 305);   /* logo light */
    --violet-300: oklch(0.78 0.12 295);
    --violet-100: oklch(0.94 0.04 290);

    /* Technical accent — electric cyan for data, status, highlights */
    --cyan-500:   oklch(0.72 0.16 220);
    --cyan-400:   oklch(0.80 0.14 215);
    --cyan-100:   oklch(0.95 0.04 215);

    /* Neutrals — warm-cool, slightly indigo-tinted */
    --ink:        oklch(0.18 0.02 280);
    --ink-2:      oklch(0.32 0.02 280);
    --ink-3:      oklch(0.50 0.015 280);
    --ink-4:      oklch(0.68 0.01 280);
    --line:       oklch(0.92 0.008 280);
    --line-2:     oklch(0.96 0.005 280);
    --paper:      oklch(0.985 0.004 280);
    --paper-2:    oklch(0.97 0.005 280);
    --white:      #ffffff;

    /* Status */
    --ok:         oklch(0.62 0.14 155);
    --warn:       oklch(0.72 0.14 70);
    --err:        oklch(0.58 0.20 25);

    /* Type */
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Scale (modular ~1.2) */
    --t-mono:   0.75rem;
    --t-xs:     0.8125rem;
    --t-sm:     0.9375rem;
    --t-base:   1.0625rem;
    --t-lg:     1.25rem;
    --t-xl:     1.5rem;
    --t-2xl:    2rem;
    --t-3xl:    2.75rem;
    --t-4xl:    3.75rem;
    --t-5xl:    5rem;
    --t-6xl:    6.5rem;

    /* Spacing */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  96px;
    --space-10: 128px;

    /* Radii — restrained */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Shadows — soft, used sparingly */
    --shadow-1: 0 1px 2px rgba(30, 27, 75, 0.04), 0 1px 1px rgba(30, 27, 75, 0.03);
    --shadow-2: 0 4px 12px rgba(30, 27, 75, 0.06), 0 1px 3px rgba(30, 27, 75, 0.04);
    --shadow-3: 0 16px 40px rgba(30, 27, 75, 0.10), 0 4px 12px rgba(30, 27, 75, 0.05);

    /* Layout */
    --container: 1200px;
    --gutter:    24px;

    --transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. RESET ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--t-base);
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- REQUEST ACCESS MODAL ---------------------------------- */
.access-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.access-modal.is-open { display: flex; }
.access-modal__backdrop {
    position: absolute;
    inset: 0;
    background: oklch(0.18 0.02 280 / 0.58);
    backdrop-filter: blur(8px);
}
.access-modal__panel {
    position: relative;
    width: min(100%, 620px);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-3);
    padding: 32px;
}
.access-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ink-3);
}
.access-modal__close:hover { background: var(--paper-2); color: var(--ink); }
.access-modal h2 {
    margin: 0;
    max-width: 12ch;
    font-size: var(--t-3xl);
    line-height: 1;
    letter-spacing: -0.04em;
}
.access-modal__lede {
    margin: 14px 0 24px;
    color: var(--ink-2);
}
.access-form {
    display: grid;
    gap: 16px;
}
.access-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.access-field {
    display: grid;
    gap: 7px;
}
.access-field--full { grid-column: 1 / -1; }
.access-field label {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--ink);
}
.access-field input,
.access-field select,
.access-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
}
.access-field textarea {
    min-height: 104px;
    resize: vertical;
}
.access-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: var(--t-sm);
    color: var(--ink-2);
}
.access-check input { margin-top: 4px; }
.access-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.access-status {
    min-height: 22px;
    font-size: var(--t-sm);
    color: var(--ink-2);
}
.access-status.is-error { color: var(--err); }
.access-status.is-success { color: var(--ok); }
@media (max-width: 640px) {
    .access-modal { padding: 12px; align-items: flex-end; }
    .access-modal__panel {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 22px;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }
    .access-modal h2 { font-size: var(--t-2xl); }
    .access-form__grid { grid-template-columns: 1fr; }
}

/* ---------- 3. TYPOGRAPHY ----------------------------------------- */
.t-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo-700);
}
.t-eyebrow.muted { color: var(--ink-3); }

.t-display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-feature-settings: 'ss01' on;
}
.t-display em {
    font-style: italic;
    color: var(--indigo-700);
}
.t-h1 { font-size: clamp(2.5rem, 6vw, var(--t-5xl)); }
.t-h2 { font-size: clamp(2rem, 4.5vw, var(--t-4xl)); }
.t-h3 { font-size: clamp(1.5rem, 3vw, var(--t-3xl)); }

.t-section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.875rem, 4vw, var(--t-3xl));
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}
.t-section-title em { font-style: italic; color: var(--indigo-700); }

.t-card-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--t-lg);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.t-body { font-size: var(--t-base); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.t-body-lg { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.t-body-sm { font-size: var(--t-sm); line-height: 1.55; color: var(--ink-3); }
.t-mono { font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: 0.02em; }

/* ---------- 4. LAYOUT --------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 760px; }

.section { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.section-sm { padding-top: var(--space-7); padding-bottom: var(--space-7); }

/* ---------- 5. NAV ------------------------------------------------ */
.nb-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklch, var(--paper) 88%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nb-nav__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nb-nav__logo { display: flex; align-items: center; gap: 10px; }
.nb-nav__logo img { height: 28px; width: auto; }
.nb-nav__links {
    display: none;
    align-items: center;
    gap: 32px;
}
@media (min-width: 768px) {
    .nb-nav__links { display: flex; }
}
.nb-nav__link {
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--ink-2);
    transition: color var(--transition);
}
.nb-nav__link:hover { color: var(--indigo-700); }
.nb-nav__link.is-active { color: var(--ink); }

/* ---------- 6. BUTTONS -------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font-size: var(--t-sm);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.005em;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--ink);
    color: var(--paper);
}
.btn--primary:hover { background: var(--indigo-900); }
.btn--accent {
    background: linear-gradient(135deg, var(--indigo-900) 0%, var(--violet-500) 100%);
    color: var(--white);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, var(--shadow-2);
}
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, var(--shadow-3); }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink-4); }
.btn--lg { padding: 16px 24px; font-size: var(--t-base); border-radius: var(--r-lg); }
.btn--sm { padding: 8px 14px; font-size: var(--t-xs); }
.btn .arrow {
    transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 7. CARDS ---------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--space-6);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card--hover:hover {
    border-color: oklch(0.85 0.04 290);
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}
.card--ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.card--ink .t-body { color: oklch(0.78 0.02 280); }

/* ---------- 8. ICON CHIP ------------------------------------------ */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--violet-100);
    color: var(--indigo-700);
    flex-shrink: 0;
}
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip--lg { width: 48px; height: 48px; border-radius: var(--r-md); }
.icon-chip--lg svg { width: 22px; height: 22px; }
.icon-chip--ink { background: var(--ink); color: var(--paper); }
.icon-chip--cyan { background: var(--cyan-100); color: oklch(0.45 0.14 220); }

/* ---------- 9. BADGES --------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge--early {
    background: var(--cyan-100);
    color: oklch(0.40 0.12 220);
    border: 1px solid color-mix(in oklch, var(--cyan-500) 20%, transparent);
}
.badge--ca {
    background: var(--violet-100);
    color: var(--indigo-900);
}
.badge--soon {
    background: oklch(0.96 0.02 70);
    color: oklch(0.45 0.14 70);
}
.badge--dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 25%, transparent);
}

/* ---------- 10. STAT --------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--t-3xl);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.stat__label {
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------- 11. DIVIDER LABEL ------------------------------------ */
.divider-label {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink-3);
}
.divider-label::before, .divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- 12. PLACEHOLDER (for missing imagery) ----------------- */
.placeholder {
    position: relative;
    background:
      repeating-linear-gradient(
        135deg,
        var(--paper-2) 0,
        var(--paper-2) 10px,
        var(--paper) 10px,
        var(--paper) 20px
      );
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px;
    text-align: center;
}

/* ---------- 13. FOOTER -------------------------------------------- */
.nb-footer {
    background: var(--ink);
    color: oklch(0.78 0.02 280);
    padding: var(--space-9) 0 var(--space-6);
}
.nb-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}
@media (max-width: 768px) { .nb-footer__grid { grid-template-columns: 1fr 1fr; } }
.nb-footer h4 {
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    margin: 0 0 16px;
}
.nb-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-footer a {
    color: oklch(0.72 0.02 280);
    font-size: var(--t-sm);
    transition: color var(--transition);
}
.nb-footer a:hover { color: var(--paper); }
.nb-footer__bottom {
    margin-top: var(--space-7);
    padding-top: 24px;
    border-top: 1px solid oklch(0.30 0.02 280);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: var(--t-mono);
    color: oklch(0.55 0.02 280);
}

/* ---------- 14. UTIL --------------------------------------------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.hidden-mobile { display: none; }
.platform-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding: 4px 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; letter-spacing: 0.04em; }
.platform-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
@media (min-width: 768px) { .hidden-mobile { display: initial; } .hidden-desktop { display: none; } }

.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

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