/* Shared by every page: tokens (DESIGN.md §10), base, header, footer, buttons. */

/* Tokens. The site runs dark ("Night", Jerry 2026-10-31): the dark blocks use a near-black ink. */
:root { --fp-bg: #F6F8FA; --fp-bg-subtle: #E9EEF2; --fp-surface: #FCFDFD; --fp-surface-inverse: #142838; --fp-border: #DCE3E9; --fp-border-strong: #9DB3C5; --fp-text: #142838; --fp-text-body: #4A5866; --fp-text-muted: #5E6B78; --fp-text-label: #58758D; --fp-text-label-strong: #4E6A82; --fp-text-inverse: #F2F5F8; --fp-text-inverse-muted: #B8C8D6; --fp-label-inverse: #9DB3C5; --fp-accent: #58758D; --fp-focus: #58758D; --fp-gap: #A0561A; --fp-gap-bg: #FBF3EA; --fp-chip: #D6E0E8; --fp-chart-1: #142838; --fp-chart-2: #58758D; --fp-chart-3: #9DB3C5; --fp-inverse-line: #3A556C; --fp-shot-bg: #E9EEF2; --fp-shadow-lift: 0 12px 40px rgba(20, 40, 56, 0.25); --fp-font: Inter, "Inter Fallback: Arial", "Inter Fallback: Roboto", "Noto Sans SC", Arial, sans-serif; --fp-font-lead: "DM Sans", "DM Sans Fallback: Arial", "DM Sans Fallback: Roboto", "Noto Sans SC", Arial, sans-serif; --fp-font-display: "Funnel Display", "Funnel Display Fallback: Arial", "Funnel Display Fallback: Roboto", "Noto Sans SC", Arial, sans-serif; --fp-font-mono: "DM Mono", "DM Mono Fallback", ui-monospace, monospace; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fp-bg: #0A141D; --fp-bg-subtle: #0F2130; --fp-surface: #142838; --fp-surface-inverse: #0F2130; --fp-border: #22394D; --fp-border-strong: #58758D; --fp-text: #F2F5F8; --fp-text-body: #B8C8D6; --fp-text-muted: #9DB3C5; --fp-text-label: #9DB3C5; --fp-text-label-strong: #9DB3C5; --fp-chip: #2C4356; --fp-chart-1: #F2F5F8; --fp-chart-2: #9DB3C5; --fp-chart-3: #58758D; --fp-inverse-line: #2C4356; --fp-shot-bg: #1A3042; --fp-gap: #D98F4A; --fp-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.4); color-scheme: dark; }
}
:root[data-theme="dark"] { --fp-bg: #0A141D; --fp-bg-subtle: #0F2130; --fp-surface: #142838; --fp-surface-inverse: #0F2130; --fp-border: #22394D; --fp-border-strong: #58758D; --fp-text: #F2F5F8; --fp-text-body: #B8C8D6; --fp-text-muted: #9DB3C5; --fp-text-label: #9DB3C5; --fp-text-label-strong: #9DB3C5; --fp-chip: #2C4356; --fp-chart-1: #F2F5F8; --fp-chart-2: #9DB3C5; --fp-chart-3: #58758D; --fp-inverse-line: #2C4356; --fp-shot-bg: #1A3042; --fp-gap: #D98F4A; --fp-shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.4); color-scheme: dark; }

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; background: var(--fp-bg); color: var(--fp-text-body); font-family: var(--fp-font); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--fp-bg); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--fp-text); text-wrap: balance; font-family: var(--fp-font-display); }
a { color: var(--fp-text-label-strong); }
a:hover { color: var(--fp-text); }
:focus-visible { outline: 2px solid var(--fp-focus); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

/* Layout. One spacing rhythm for every page, written up in DESIGN.md 4.5:
   page top (header to the first line), section (between blocks), block (a heading to its content). */
:root { --fp-space-page: 96px; --fp-space-section: 96px; --fp-space-block: 48px; }
@media (max-width: 640px) { :root { --fp-space-page: 56px; --fp-space-section: 64px; --fp-space-block: 32px; } }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding-block: var(--fp-space-section); }
section[id] { scroll-margin-top: 72px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: var(--fp-space-block); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fp-text-label); }
.h2 { font-size: 39px; font-weight: 500; line-height: 1.15; letter-spacing: -0.042em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--fp-text-body); max-width: 640px; }
.tint { background: var(--fp-bg-subtle); }
.tint .eyebrow { color: var(--fp-text-label-strong); }
.ink { background: var(--fp-surface-inverse); color: var(--fp-text-inverse-muted); }
.ink h2, .ink h3 { color: var(--fp-text-inverse); }
.ink .eyebrow { color: var(--fp-label-inverse); }
@media (max-width: 640px) {
  .h2 { font-size: 30px; }
}
/* Content pages (Network, About) open the same way: eyebrow, title, lead. */
.page-head { padding-top: var(--fp-space-page); }
.page-head .eyebrow { margin: 0 0 16px; }
.page-title { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; }
.page-head .lead { margin: 24px 0 0; max-width: 520px; color: var(--fp-text-inverse-muted); font-family: var(--fp-font-lead); font-variant-numeric: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--fp-font-display); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: #142838; color: #F2F5F8; }
.btn-primary:hover { background: #3A556C; color: #F2F5F8; }
:root[data-theme="dark"] .btn-primary { background: #F2F5F8; color: #142838; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #F2F5F8; color: #142838; }
}

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--fp-bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 3px; color: var(--fp-text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand svg { flex: none; }
.wordmark { font-family: var(--fp-font-mono); font-weight: 500; letter-spacing: -0.07em; font-size: 23px; line-height: 1; font-variant-numeric: normal; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav .login { margin-left: -4px; text-decoration: none; font-family: var(--fp-font-display); font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links a { color: var(--fp-text-muted); text-decoration: none; font-family: var(--fp-font-display); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fp-text); }
.nav .login { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 16px; border-radius: 999px; background: transparent; border: 1px solid #3A556C; color: var(--fp-text); font-weight: 500; transition: transform 0.2s cubic-bezier(.2,.8,.2,1), border-color 0.2s; }
.nav .login:hover { color: var(--fp-text); border-color: #9DB3C5; transform: translateY(-1px); }
.nav .login:active { transform: scale(0.97); }
.nav .login .arr { width: 28px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--fp-text) 10%, transparent); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.nav .login .arr svg { transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.nav .login:hover .arr svg { animation: arr-slide 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes arr-slide { 0% { transform: translateX(0); } 45% { transform: translateX(18px); } 46% { transform: translateX(-18px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .nav .login, .nav .login .arr svg { transition: none; animation: none !important; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; height: 60px; }
  .brand { gap: 3px; }
  .brand .mark { width: 28px; height: 28px; }
  .wordmark { font-size: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav .login { height: 34px; padding-left: 14px; }
  .nav .login .arr { width: 24px; height: 24px; }
}
/* Phone: logo, Open app and a menu button; the page links open as a panel under the header. */
.nav-links a { white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .nav { gap: 8px; }
  .nav .login { margin-left: auto; font-size: 14px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 40px; height: 40px; margin: 0 -8px 0 0; padding: 0; border: 0; background: transparent; color: var(--fp-text); cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
  .site-header.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  /* Open: the header and a full-screen panel turn near-black; hard edges, no card. */
  .site-header.is-open { background: #05080B; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: #1A2733; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; height: calc(100dvh - 60px); padding: 12px max(16px, env(safe-area-inset-left)) 32px; background: #05080B; overflow-y: auto; }
  .site-header.is-open .nav-links { animation: fp-menu 0.18s ease-out both; }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { padding: 18px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--fp-text); border-bottom: 1px solid #1A2733; }
  .nav-links a[aria-current="page"] { color: var(--fp-text-muted); }
}

/* Footer */
footer { padding-block: 32px; border-top: 1px solid var(--fp-border); font-size: 13px; color: var(--fp-text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@keyframes fp-menu { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-open .nav-links { animation: none; } }
