/* ─────────────────────────────────────────────────────────────────────────
   Plume design system — distilled from styles.refero.design (NEW STANDARD)
   Last refreshed: 2026-05-08

   Refero rules applied here, with sources:
   - Linear: "Midnight Command Center · single neon accent"  (refero northStar)
       → one cyan accent, never two CTAs filled, dark page
   - Raycast: "Obsidian command terminal · #040506 page canvas, depth via
       shadow layering not color contrast"  (refero northStar)
       → near-black page, no colored panels, hairline borders
   - Linear / Raycast: button radius 6-8px, card radius 11-16px
       → sharp buttons (8px), softly-rounded cards (14px). NO 100px pill
         except for badges (the Tailwind SaaS look is the AI-tell)
   - Anthropic: "word-level underline replaces color as primary emphasis"
       (refero northStar)
       → key sentences get a 1px cyan underline, not a colored span
   - 18.13 (catalog): "never use font weights above 500" — 2 brands cite
       → display headings clamp at 500-600, body 400. No 900-weight H1.
   - 18.5: section gap 48px (most common across 23 brands)
       → --gap-section: clamp(56px, 9vw, 96px)
   - 18.7: page max-width 1200px (33 of 177 brands)
       → --maxw-content: 1180px
   - Apple MacBook (line 631 catalog): -0.04em letter-spacing on display
       → headline tracking -0.03em not -0.06em (the latter looks compressed/AI)
   - 18.1: Inter is most-used (41 brands); JetBrains Mono for numerics
       → keep both. Add Tiempos-style serif fallback for editorial pull-quotes
   - One accent only. Cyan #00f0ff = links + 1 underline + 1 dot. Not the
     dominant fill anywhere except the demo "play" affordance.

   Anti-AI-tells we're explicitly avoiding (per refero_design_system.md §1
   anti-patterns):
   - centered title + 3 generic feature columns  → REPLACED with editorial
       2-column asymmetric layouts on every page
   - rounded-xl gradient buttons + drop shadows  → REPLACED with 8px sharp
       outlined buttons (Linear pattern), one filled per fold
   - "Trusted by" logo wall with no logos       → NEVER. Honest empty state
   - emoji as brand                             → ★ glyph only, in mono
       eyebrow labels (Stripe / Linear pattern)
   - centered 3-up "Easy / Fast / Beautiful"    → REPLACED. Each page has
       ONE main idea, not three.
───────────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* surface */
  --bg:        #08090a;        /* Raycast-near-black, not the warmer #0a0a0f */
  --bg-2:      #0d0e11;        /* nav bar / sticky elements */
  --surface:   #101115;        /* cards */
  --surface-2: #16171c;        /* elevated card / form input */
  --hairline:  rgba(255,255,255,0.06);
  --hairline-2:rgba(255,255,255,0.10);
  --hairline-cyan: rgba(0,240,255,0.18);

  /* type */
  --text:      #ececf1;
  --text-dim:  #8e8e9b;
  --text-mute: #5a5b66;

  /* one accent */
  --cyan:      #00f0ff;
  --cyan-soft: rgba(0,240,255,0.85);
  --cyan-glow: rgba(0,240,255,0.14);

  /* secondary signal (status only — NEVER decorative) */
  --green:     #2bd87a;
  --amber:     #ffb545;

  /* motion */
  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-quiet:cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  240ms;
  --dur-slow:  420ms;
  --dur-reveal:680ms;

  /* radii — sharp, editorial. NO 100px pills outside small badges */
  --r-btn:    8px;     /* Linear/Raycast/Superhuman */
  --r-card:   14px;    /* between Raycast 11 + Anthropic 8 + 16 catalog mode */
  --r-tile:   12px;
  --r-input:  8px;
  --r-pill:   100px;   /* badges / dot-chips ONLY */

  /* layout */
  --maxw-prose:   720px;
  --maxw-content: 1180px;
  --maxw-narrow:  920px;

  --pad-side:    clamp(20px, 4vw, 36px);
  --gap-section: clamp(56px, 9vw, 96px);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.serif {
  font-family: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, serif;
  font-style: italic;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: var(--bg);
  padding: 10px 16px; font-weight: 600; z-index: 9999;
}
.skip-link:focus { left: 0; }

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

/* ── shared layout ── */
.wrap { max-width: var(--maxw-content); margin: 0 auto; padding: 0 var(--pad-side); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--pad-side); }
.wrap-prose { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 var(--pad-side); }

main { position: relative; z-index: 2; }

/* ── ambient background (subtle, near-invisible) ── */
.bg-ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    /* sparse 80px grid, very low contrast */
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ── nav (shared on every page) ── */
nav.plume-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,10,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
nav.plume-nav.scrolled {
  background: rgba(8,9,10,0.92);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--maxw-content); margin: 0 auto;
  padding: 14px var(--pad-side);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .mark {
  width: 22px; height: 22px;
  align-self: center;
  color: var(--cyan);
}
.nav-brand b {
  font-weight: 600;
}
.nav-brand .sub {
  color: var(--text-mute); font-weight: 400; font-size: 12px;
  letter-spacing: 0; margin-left: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--cyan);
}
.nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--r-btn);
  background: var(--cyan); color: var(--bg);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  width: 40px; height: 40px; position: relative; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--dur-base), top var(--dur-base), opacity var(--dur-fast);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(360px, 88vw);
  background: var(--bg-2);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-quiet);
  padding: 80px 28px 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.open { transform: none; }
.mobile-drawer a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px; font-weight: 500;
}
.mobile-drawer a .arrow { color: var(--text-mute); }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ── eyebrow label (Stripe/Linear) ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow .star { color: var(--cyan); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
.eyebrow.is-cyan { color: var(--cyan-soft); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.35); }
}

/* ── headings ── */
.h-display {
  /* Refero: "never weights above 500" — we land at 500 with negative tracking */
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}
.h-display .accent {
  color: var(--cyan);
}
.h-display .underline {
  /* Anthropic-style word-level underline emphasis */
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 4px;
}
.h-section {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.h-card {
  font-size: 19px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.012em;
}
.h-row {
  font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.018em;
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-dim); line-height: 1.55;
  max-width: 60ch;
}

/* ── buttons (sharp, editorial) ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-primary {
  background: var(--cyan); color: var(--bg);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn svg {
  width: 14px; height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }

/* ── small chip (badges, status pills) ── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase; color: var(--text-dim);
}
.chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}

/* ── reveal on scroll ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── dividers ── */
.rule {
  height: 1px; background: var(--hairline);
  border: 0; margin: 0;
}

/* ── footer (shared) ── */
footer.plume-foot {
  border-top: 1px solid var(--hairline);
  padding: 56px var(--pad-side) 32px;
  margin-top: var(--gap-section);
  position: relative; z-index: 2;
}
.foot-inner {
  max-width: var(--maxw-content); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .mark { color: var(--cyan); width: 22px; height: 22px; }
.foot-brand .name {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.foot-tag {
  margin-top: 14px; color: var(--text-dim);
  font-size: 14px; line-height: 1.55; max-width: 36ch;
}
.foot-col h5 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.foot-col a {
  display: block; padding: 5px 0;
  color: var(--text-dim); font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--maxw-content); margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ── splat embed (reusable) ── */
.splat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
@media (max-width: 600px) { .splat { aspect-ratio: 4 / 5; } }
.splat-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 40%, rgba(0,240,255,0.06) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(0,240,255,0.04) 0%, transparent 55%),
    var(--surface);
  transition: background var(--dur-base);
}
.splat-poster .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
}
.splat-poster .play {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cyan); color: var(--bg);
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease-out);
  box-shadow: 0 0 0 1px rgba(0,240,255,0.3), 0 0 30px var(--cyan-glow);
}
.splat-poster:hover .play { transform: scale(1.05); }
.splat-poster .play svg { width: 22px; height: 22px; margin-left: 3px; }
.splat-poster .label {
  position: relative; z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
}
.splat-poster .sublabel {
  position: relative; z-index: 2;
  font-size: 13px; color: var(--text-mute);
  max-width: 360px; text-align: center; padding: 0 24px;
  line-height: 1.5;
}
.splat-poster.loaded { display: none; }
.splat iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; background: var(--surface);
}
.splat-meta {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-mute);
}
.splat-meta b { color: var(--cyan); font-weight: 500; }

/* ── pagination at bottom (next page) ── */
.next-page {
  border-top: 1px solid var(--hairline);
  padding: 56px var(--pad-side);
  margin-top: var(--gap-section);
}
.next-page-inner {
  max-width: var(--maxw-content); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
}
.next-page .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.next-page .h-row { margin-top: 8px; }
.next-page a.next-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan);
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--hairline-cyan);
  padding-bottom: 4px;
  transition: border-color var(--dur-fast);
}
.next-page a.next-link:hover { border-bottom-color: var(--cyan); }
.next-page a.next-link svg {
  transition: transform var(--dur-base) var(--ease-out);
}
.next-page a.next-link:hover svg { transform: translateX(4px); }

/* ── shared utility ── */
.spacer-section { height: var(--gap-section); }
.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }
.text-cyan { color: var(--cyan); }

/* print */
@media print {
  nav.plume-nav, .bg-ambient, .splat, .next-page { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
