/* ==========================================================================
   Subaxis AI — shared marketing stylesheet
   Consumes DESIGN.md tokens. Dark-only, flat surfaces, hairline borders.
   Used by: landing, pricing, docs, contact, terms, privacy, 404.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutrals — dark */
  --bg:             #0a0a0a;
  --bg-subtle:      #111111;
  --surface:        #161616;
  --surface-hover:  #1d1d1d;
  --surface-raised: #202020;
  --border:         #262626;
  --border-strong:  #333333;
  --text:           #ededed;
  --text-secondary: #a1a1a1;
  --text-tertiary:  #6b6b6b;

  /* Accent + semantic */
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;

  /* Primary button (monochrome) */
  --btn-primary-bg:    #ededed;
  --btn-primary-text:  #0a0a0a;
  --btn-primary-hover: #ffffff;

  /* Type */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-border: 0 0 0 1px var(--border);
  --shadow-border-hover: 0 0 0 1px var(--border-strong);
  --shadow-modal: 0 0 0 1px var(--border), 0 8px 30px rgba(0, 0, 0, 0.35);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* Layout */
  --container: 1100px;
  --gutter: 24px;
  --nav-height: 64px;
}

html { scroll-padding-top: 80px; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

::selection { background: rgba(59, 130, 246, 0.35); color: var(--text); }

code {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

h1, h2, h3 { color: var(--text); font-weight: 600; }

h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 28px; letter-spacing: -0.01em; }

.eyebrow {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.primary-action,
.secondary-action,
.nav-login,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-action,
.nav-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.primary-action:hover,
.nav-cta:hover {
  background: var(--btn-primary-hover);
}

.secondary-action,
.nav-login {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.secondary-action:hover,
.nav-login:hover {
  background: var(--surface-hover);
}

.action-lg { height: 40px; padding: 0 20px; }

/* --------------------------------------------------------------------------
   Navigation — full-width 64px bar, hairline bottom, blur (nav only)
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: none;
  height: 100%;
  margin: 0;
  /* Left inset matches the hero content edge (hero margin-left clamp + hero gutter) */
  padding-left: calc(clamp(0px, 6vw, 120px) + var(--gutter));
  padding-right: clamp(var(--gutter), 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 120px;
  height: 30px;
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-ai {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-login,
.nav-cta { height: 32px; padding: 0 12px; font-size: 13px; }

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-menu-btn:hover { background: var(--surface-hover); }

.nav-menu-btn .icon-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Full-screen mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--bg);
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
}

.nav-drawer.open { display: flex; }

.nav-drawer nav {
  display: flex;
  flex-direction: column;
}

.nav-drawer nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.nav-drawer nav a[aria-current="page"] { color: var(--accent); }

.nav-drawer-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 24px;
}

.nav-drawer-actions .primary-action,
.nav-drawer-actions .secondary-action {
  width: 100%;
  height: 40px;
}

body.drawer-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Layout shells
   -------------------------------------------------------------------------- */

.page-shell,
.doc-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
}

.marketing-page { min-height: calc(100vh - var(--nav-height) - 120px); }

/* --------------------------------------------------------------------------
   Landing hero — flat, typography-led
   -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #111111, #0a0a0a);
}

.hero-columns {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 96px clamp(var(--gutter), 3vw, 48px) 96px calc(clamp(0px, 6vw, 120px) + var(--gutter));
}

.hero-inner {
  flex: 0 1 560px;
  min-width: 0;
  max-width: 560px;
}

.hero-showcase {
  flex: 0 1 600px;
  min-width: 0;
  margin-left: auto;
  margin-right: clamp(0px, 4vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Code sample card — tabbed request example */
.code-card {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.code-card-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.code-tab {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.code-tab:hover { color: var(--text-secondary); }

.code-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.code-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.code-copy:hover { color: var(--text); background: var(--surface-hover); }
.code-copy .icon-check { display: none; }
.code-copy.is-copied .icon-copy { display: none; }
.code-copy.is-copied .icon-check { display: inline; color: var(--success); }

.code-card-body {
  padding: 18px 20px;
  overflow: hidden;
}

.code-pane {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.code-pane.is-active { display: block; }

.code-pane .tok-url { color: #6ea8fe; }
.code-pane .tok-str { color: #7fd88f; }
.code-pane .tok-model { color: #e6b673; }
.code-pane .tok-kw { color: #c586c0; }
.code-pane .tok-fn { color: #6ea8fe; }

/* Model pill row beneath the code card */
.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.model-pill.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.model-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-more:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero backdrop — blueprint grid, brackets, status labels, crosshairs, ASCII
   -------------------------------------------------------------------------- */

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Fill the grid to the bottom border; keep only a soft fade-in at the top edge */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}

/* Blueprint / graph-paper grid — very low opacity, slow diagonal drift */
.hero-grid {
  position: absolute;
  inset: -48px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 12px);
  will-change: transform;
  animation: heroGridDrift 24s linear infinite;
}

@keyframes heroGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(48px, 48px, 0); }
}

/* Corner-bracket registration marks */
.hero-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  animation: heroBracketFade 1200ms ease-out forwards;
}

.hero-bracket--tl { top: 28px;    left: 28px;    border-right: none; border-bottom: none; }
.hero-bracket--tr { top: 28px;    right: 28px;   border-left: none;  border-bottom: none; }
.hero-bracket--bl { bottom: 28px; left: 28px;    border-right: none; border-top: none; }
.hero-bracket--br { bottom: 28px; right: 28px;   border-left: none;  border-top: none; }

@keyframes heroBracketFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Faint monospace status labels in the far corners */
.hero-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  will-change: opacity;
  animation: heroTagPulse 9s ease-in-out infinite;
}

.hero-tag--tl { top: 56px;    left: 30px; }
.hero-tag--tr { top: 56px;    right: 30px; animation-delay: -2.25s; }
.hero-tag--bl { bottom: 56px; left: 30px;  animation-delay: -4.5s; }
.hero-tag--br { bottom: 56px; right: 30px; animation-delay: -6.75s; }

@keyframes heroTagPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Crosshair / plus "sparkle" accents — the only place blue appears */
.hero-crosshair {
  position: absolute;
  width: 12px;
  height: 12px;
  will-change: transform, opacity;
  animation: heroSparkle 7s ease-in-out infinite;
}

.hero-crosshair::before,
.hero-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(59, 130, 246, 0.55);
}

.hero-crosshair::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.hero-crosshair::after  { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }

.hero-crosshair--a { top: 22%; right: 16%; animation-delay: 0s; }
.hero-crosshair--b { top: 62%; left: 12%;  animation-delay: -2.5s; transform: scale(0.8); }
.hero-crosshair--c { top: 38%; left: 42%;  animation-delay: -4.8s; transform: scale(0.65); }

@keyframes heroSparkle {
  0%, 100% { opacity: 0.15; }
  45%      { opacity: 0.7; }
  55%      { opacity: 0.7; }
}

/* Faint ASCII-art texture that subtly shimmers */
.hero-ascii {
  position: absolute;
  right: 6%;
  bottom: 18%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.05);
  white-space: pre;
  text-align: right;
  will-change: opacity;
  animation: heroAsciiShimmer 14s ease-in-out infinite;
}

@keyframes heroAsciiShimmer {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

.hero-title {
  max-width: 720px;
  margin-top: 16px;
  font-size: 56px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-copy {
  max-width: 560px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg { color: var(--text-tertiary); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Logo marquee
   -------------------------------------------------------------------------- */

.logo-marquee {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
}

.logo-marquee-label {
  text-align: center;
  margin-bottom: 28px;
}

.logo-marquee-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: logoScroll 40s linear infinite;
}

.logo-marquee-viewport:hover .logo-track { animation-play-state: paused; }

.logo-cell {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
}

.logo-cell img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-cell img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes logoScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   Sections + feature grid
   -------------------------------------------------------------------------- */

.models-section,
.landing-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
}

.section-heading { max-width: 640px; margin-bottom: 32px; }

.section-heading h2 { margin-top: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  transition: box-shadow 0.15s ease;
}

.feature-grid article:hover { box-shadow: var(--shadow-border-hover); }

.feature-grid article > span {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
}

.feature-grid h3 { margin-top: 24px; }

.feature-grid p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* Landing CTA band */
.landing-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.landing-cta-panel h2 { margin-top: 12px; }

.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Page heroes (pricing / contact / docs / legal)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-hero h1 { margin-top: 12px; max-width: 640px; }

.page-hero p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 26px;
}

/* --------------------------------------------------------------------------
   Information pages (About / Partnerships)
   -------------------------------------------------------------------------- */

.info-page-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-page-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.info-page-card h2 { margin-top: 10px; }

.info-page-card > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.info-page-card .primary-action,
.info-page-card .secondary-action { margin-top: 22px; }

.info-page-card--wide {
  grid-column: 1 / -1;
  border-left: 2px solid var(--accent);
}

/* About / partnerships: concise operating pages, not generic marketing cards. */
.info-hero { max-width: 780px; }

.info-hero h1 { max-width: 740px; }

.info-hero-actions,
.info-next-step__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.text-action {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.text-action:hover { color: var(--text); }
.text-action span { color: var(--accent); margin-left: 4px; }

.about-principles {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-principle {
  min-width: 0;
  padding: 32px 28px 36px;
  border-left: 1px solid var(--border);
}

.about-principle:first-child { border-left: 0; }
.about-principle--lead { background: linear-gradient(135deg, rgba(67, 213, 137, 0.09), transparent 65%); }

.principle-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.about-principle h2,
.partnership-card h2,
.info-next-step h2,
.partnership-note h2 { margin-top: 18px; font-size: 21px; line-height: 29px; }

.about-principle p,
.partnership-card p:not(.eyebrow),
.partnership-note p:not(.eyebrow) { margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 23px; }

.info-next-step,
.partnership-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.info-next-step__actions { margin-top: 0; flex-shrink: 0; }

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.partnership-card {
  min-width: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.partnership-card__cue {
  display: block;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.partnership-note { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  transition: box-shadow 0.15s ease;
}

.price-card:hover { box-shadow: var(--shadow-border-hover); }

.price-card > p {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.price-card h3 {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.price-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-card ul {
  flex: 1;
  margin-top: 20px;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 26px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--success);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}

.price-card a {
  margin-top: 24px;
  width: 100%;
}

.price-card.featured {
  box-shadow: 0 0 0 1px var(--border-strong);
  position: relative;
}

.price-card.featured::after {
  content: "Popular";
  position: absolute;
  top: 20px;
  right: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.price-card.free-plan { grid-column: 1 / -1; }

.price-card.free-plan .free-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.promo-usage-hint {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.promo-usage-hint:empty { display: none; }

.pricing-note-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.pricing-note-panel h2 { margin-top: 12px; }

.pricing-note-panel p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.contact-side { display: grid; gap: 16px; }

.contact-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  transition: box-shadow 0.15s ease;
}

.contact-card:hover { box-shadow: var(--shadow-border-hover); }

.contact-card h2 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.contact-card .contact-address {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0;
}

.contact-card p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.contact-card .primary-action,
.contact-card .secondary-action { margin-top: 20px; }

.contact-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-border);
  color: var(--text-secondary);
}

.contact-card.primary-contact {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 32px;
}

.contact-card.primary-contact h2 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.discord-widget-shell {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-sm);
  background: #111214;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.discord-widget-shell iframe {
  display: block;
  width: 100%;
  max-width: 350px;
  height: 500px;
  margin-inline: auto;
  border: 0;
}

.contact-checklist {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.contact-checklist li {
  position: relative;
  padding-left: 18px;
}

.contact-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Docs
   -------------------------------------------------------------------------- */

.docs-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.docs-index {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.docs-index a {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.docs-index a:last-child { border-bottom: 0; }

.docs-index a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.docs-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.docs-stack .doc-panel { scroll-margin-top: calc(var(--nav-height) + 24px); }

.doc-panel {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  min-width: 0;
}

.doc-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-panel h2 {
  font-size: 20px;
  line-height: 28px;
}

.doc-panel p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  max-width: 720px;
}

.doc-panel pre {
  margin-top: 16px;
  overflow-x: auto;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-border);
  color: var(--text);
}

.doc-panel code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.doc-panel p code {
  padding: 1px 5px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-border);
}

.doc-panel .secondary-action { margin-top: 20px; }

.doc-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.legal-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.legal-summary strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.legal-summary p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.legal-panel {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
  min-width: 0;
}

.legal-panel h2 {
  max-width: 720px;
  font-size: 20px;
  line-height: 28px;
}

.legal-panel h2:not(:first-child) {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-panel p,
.legal-panel li {
  max-width: 720px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}

.legal-panel ul {
  max-width: 720px;
  margin-top: 12px;
  padding-left: 20px;
}

.legal-panel li { margin-top: 8px; }

.legal-panel strong { color: var(--text); font-weight: 600; }

.legal-panel a {
  color: var(--accent);
  transition: color 0.15s ease;
}

.legal-panel a:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 48px);
}

.not-found-kicker {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.not-found-shell h1 {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -0.03em;
}

.not-found-shell > section > p {
  max-width: 520px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 26px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.not-found-panel {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-border);
}

.not-found-code {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 64px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.not-found-panel span {
  display: block;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
}

.not-found-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.not-found-links a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--text); }

.site-footer--page { margin-top: 64px; }

.footer-company {
  width: 100%;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .pricing-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-page-layout { grid-template-columns: 1fr; }
  .info-page-card--wide { grid-column: auto; }
  .about-principles { grid-template-columns: 1fr; }
  .about-principle { border-left: 0; border-top: 1px solid var(--border); }
  .about-principle:first-child { border-top: 0; }
  .partnership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .contact-layout,
  .legal-layout,
  .docs-layout { grid-template-columns: 1fr; }

  .contact-card.primary-contact,
  .legal-summary { position: static; }

  .discord-widget-shell iframe {
    max-width: none;
  }

  .docs-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-index a:nth-last-child(2) { border-bottom: 0; }
}

@media (max-width: 980px) {
  .hero-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .hero-inner { max-width: 640px; }

  .hero-showcase { flex: 1 1 auto; margin-left: 0; margin-right: 0; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-actions .nav-login { display: none; }
  .nav-menu-btn { display: inline-flex; }

  .hero-columns {
    padding: 64px var(--gutter);
    gap: 32px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 40px;
  }

  .hero-showcase,
  .hero-ascii,
  .hero-crosshair--c { display: none; }

  .hero-tag { font-size: 10px; }
  .hero-tag--tl, .hero-tag--tr { top: 48px; }
  .hero-tag--bl, .hero-tag--br { bottom: 48px; }
  .hero-bracket { width: 16px; height: 16px; }

  .models-section,
  .landing-cta { padding-top: 64px; }

  .logo-marquee { padding-top: 56px; }
  .logo-cell { padding: 0 28px; }
  .logo-cell img { height: 22px; }
  .logo-marquee-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }

  .landing-cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .landing-cta-actions { justify-content: flex-start; }

  .feature-grid { grid-template-columns: 1fr; }

  .pricing-page-grid { grid-template-columns: 1fr; }

  .price-card.free-plan .free-plan-row { grid-template-columns: 1fr; }

  .pricing-note-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .doc-code-grid,
  .docs-index { grid-template-columns: 1fr; }

  .docs-index a:nth-last-child(2) { border-bottom: 1px solid var(--border); }

  .legal-panel,
  .contact-card.primary-contact { padding: 24px; }

  .page-shell,
  .doc-page { padding: 32px var(--gutter) 64px; }

  .info-hero { padding-top: 20px; margin-bottom: 32px; }
  .info-hero-actions,
  .info-next-step__actions { align-items: stretch; gap: 12px; }
  .about-principle,
  .partnership-card { padding: 24px; }
  .info-next-step,
  .partnership-note { align-items: flex-start; flex-direction: column; padding: 24px; }
  .info-next-step__actions { width: 100%; }
  .info-next-step__actions .primary-action,
  .info-next-step__actions .secondary-action { flex: 1 1 auto; text-align: center; }

  .not-found-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px var(--gutter);
    min-height: auto;
  }

  .not-found-shell h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .site-footer--page { margin-top: 48px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }

  .brand-mark { width: 104px; height: 26px; }

  .hero-tag { display: none; }
  .hero-bracket { top: 16px; bottom: 16px; left: 16px; right: 16px; }
  .hero-bracket--tl, .hero-bracket--tr { bottom: auto; }
  .hero-bracket--bl, .hero-bracket--br { top: auto; }
  .hero-bracket--tl, .hero-bracket--bl { right: auto; }
  .hero-bracket--tr, .hero-bracket--br { left: auto; }

  .hero-actions,
  .not-found-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .not-found-actions a { width: 100%; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-grid { animation: none !important; transform: none !important; }
  .hero-bracket { animation: none !important; opacity: 1; }
  .hero-tag { animation: none !important; opacity: 0.7; }
  .hero-crosshair { animation: none !important; opacity: 0.45; }
  .hero-ascii { animation: none !important; opacity: 0.5; }
}

/* JS-driven marquee: disable the CSS keyframe so the rAF loop owns the transform */
.logo-track.is-js-driven { animation: none !important; }

/* ---- Promo banner ---- */
.promo-banner {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}
.promo-banner.is-dismissed { display: none; }
.promo-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.promo-banner-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.promo-banner-text {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}
.promo-banner-text strong {
  color: var(--text);
  font-weight: 600;
}
.promo-banner-detail { margin-left: 8px; }
.promo-banner-cta {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.promo-banner-cta:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface);
}
.promo-banner-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.promo-banner-close:hover {
  color: var(--text);
  background: var(--surface);
}
@media (max-width: 767px) {
  .promo-banner-inner { padding: 9px 16px; gap: 10px; }
  .promo-banner-text { font-size: 12px; line-height: 18px; }
  .promo-banner-detail { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-banner-cta,
  .promo-banner-close { transition: none; }
}
