/* ============================================================================
   Streamless — marketing site
   Design system INHERITED from session.streamless.io (do not invent).
   Source of truth: src/styles/tokens.css + docs/design/streamless-session.html
   ========================================================================== */

@import url('fonts/fonts.css');   /* self-hosted Inter Tight + JetBrains Mono */

/* ----------------------------------------------------------------------------
   TOKENS — copied verbatim from the Streamless token file (participant register)
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:            #000814;
  --bg-elevated:   #060e1c;
  --bg-card:       #0a1424;
  --bg-card-hover: #0f1a2c;
  --bg-hover:      #0d1828;

  /* Hairlines */
  --hairline:        #1a2332;
  --hairline-bright: #2a3849;
  --hairline-active: #3d4f66;

  /* Foregrounds */
  --fg:       #f4f4f5;
  --fg-soft:  #c8cdd4;
  --fg-dim:   #8a95a5;
  --fg-faint: #4a5566;

  /* Accents */
  --amber:      #ffa500;
  --amber-soft: #ffb733;
  --amber-dim:  #b87600;
  --amber-glow: rgba(255, 165, 0, 0.10);
  --green:      #00d96b;
  --green-dim:  #008f47;
  --red:        #ff3b30;
  --red-dim:    #b8261f;
  --blue:       #4a9eff;

  /* Fonts */
  --display: 'Inter Tight', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Type scale — inherited sizes from the design reference, extended upward
     with one marketing-hero step in the same idiom (Inter Tight, -0.025em). */
  --text-eyebrow: 11px;                          /* mono eyebrow            */
  --text-label:   10px;                          /* mono field/foot labels  */
  --text-body:    15px;                           /* base                    */
  --text-lead:    17px;                           /* lead paragraph (sub)    */
  --text-h3:      26px;                            /* card heading            */
  --text-h2:      clamp(36px, 4.5vw, 56px);        /* section title           */
  --text-hero:    clamp(44px, 6vw, 84px);          /* landing hero            */

  --tracking-eyebrow: 0.22em;
  --tracking-label:   0.18em;
  --tracking-display: -0.025em;

  /* Spacing (8px base) + section rhythm */
  --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;
  --section-y: clamp(64px, 5vw + 40px, 128px);

  /* Layout */
  --container: 1200px;
  --measure:   48ch;                               /* sub/lead max width      */
  --gutter:    clamp(24px, 5vw, 40px);

  /* Radii — sharp, per the reference (2–4px, never rounded) */
  --radius-xs: 2px;
  --radius-sm: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.15s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Atmospheric backdrop — amber glow top, blue glow bottom (participant register) */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 165, 0, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(74, 158, 255, 0.04), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Film-grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Keep interactive content above the grain layer */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ----------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--hairline);
}
.section:first-of-type { border-top: 0; }

/* Elevated feature band — the Watch section uses this for emphasis
   (elevation, not light/dark inversion — the system has no light register). */
.feature {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--amber-glow), transparent 60%),
    var(--bg-elevated);
}

/* Mono eyebrow with amber hairline dash — the recurring structural device. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
  flex: none;
}
/* Secondary eyebrow — dimmed, for sub-sections */
.eyebrow--dim { color: var(--fg-dim); }
.eyebrow--dim::before { background: var(--fg-dim); }

/* ----------------------------------------------------------------------------
   HEADER / FOOTER  (skeleton)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 8, 20, 0.72);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--fg);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tracking-eyebrow);
}
.nav { margin-inline-start: auto; }

.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--hairline);
  color: var(--fg-dim);
}
.footer-mark {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------------
   BUTTONS — amber primary (per the join-button treatment) + ghost
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-accent { background: var(--amber); color: var(--bg); }
.btn-accent:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(255, 165, 0, 0.3);
}
.btn-ghost {
  color: var(--fg-soft);
  background: var(--bg-card);
  border: 1px solid var(--hairline-bright);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--hairline-active); color: var(--fg); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Shared section title + sub */
.section-title {
  font-size: var(--text-h2);
  max-width: 18ch;
}
.section-title .accent,
.hero-title .accent,
.ethos-title .accent,
.feature .section-title .accent { color: var(--amber); font-style: italic; }

.section-sub {
  color: var(--fg-soft);
  max-width: var(--measure);
  margin-top: var(--space-4);
}
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--fg-soft); }

/* ----------------------------------------------------------------------------
   NAV LINKS
   -------------------------------------------------------------------------- */
.nav { margin-inline-start: auto; display: flex; gap: var(--space-6); }
.nav-link {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--fg); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ----------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(72px, 10vw, 160px) var(--section-y); }
.hero-title {
  font-size: var(--text-hero);
  max-width: 16ch;
  margin-bottom: var(--space-6);
}
.hero-sub { max-width: 56ch; margin-bottom: var(--space-7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-note {
  margin-top: var(--space-7);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-transform: none;
}

/* ----------------------------------------------------------------------------
   THREE VERBS
   -------------------------------------------------------------------------- */
.verbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.verb-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.verb-card:hover {
  border-color: var(--hairline-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.verb-card--lead {
  grid-column: span 1;
  border-color: var(--hairline-bright);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--amber-glow), transparent 65%),
    var(--bg-card);
}
.verb-index {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  color: var(--amber-dim);
  margin-bottom: var(--space-5);
}
.verb-name {
  font-size: var(--text-h3);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.verb-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  transform: translateY(-2px);
}
.verb-lede { color: var(--fg); font-size: var(--text-lead); margin-bottom: var(--space-3); }
.verb-body { color: var(--fg-dim); font-size: 14px; }
.verb-more {
  margin-top: var(--space-5);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.verb-more .arrow { transition: transform var(--dur) var(--ease); }
.verb-more:hover .arrow { transform: translateX(4px); }

/* ----------------------------------------------------------------------------
   WHY WATCH — feature band
   -------------------------------------------------------------------------- */
.feature-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-9);
  align-items: start;
}
.feature-head { position: sticky; top: 100px; }
.feature-body > * + * { margin-top: var(--space-5); }
.feature-body strong { color: var(--fg); font-weight: 600; }
.feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-5);
  color: var(--fg-soft);
  font-size: 14px;
}
.feature-app {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-right: var(--space-2);
}
.feature-close { color: var(--fg); font-size: var(--text-lead); }

/* ----------------------------------------------------------------------------
   CONTROL
   -------------------------------------------------------------------------- */
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.control-card {
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  border-top: 2px solid var(--amber-dim);
  background: var(--bg-card);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.control-card:hover { background: var(--bg-card-hover); border-color: var(--hairline-active); border-top-color: var(--amber); }
.control-name { font-size: var(--text-h3); margin-bottom: var(--space-3); }
.control-body { color: var(--fg-dim); font-size: 14px; }

/* ----------------------------------------------------------------------------
   USE CASES
   -------------------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.case-card {
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.case-card:hover { background: var(--bg-card-hover); border-color: var(--hairline-active); }
.case-card--lead {
  grid-column: 1 / -1;
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, var(--amber-glow), transparent 55%),
    var(--bg-elevated);
  border-color: var(--hairline-bright);
  padding: var(--space-7);
}
.case-card--lead .case-name { font-size: clamp(28px, 3.4vw, 40px); }
.case-name { font-size: var(--text-h3); margin-bottom: var(--space-3); }
.case-body { color: var(--fg-dim); font-size: 14px; max-width: 52ch; }
.case-card--lead .case-body { color: var(--fg-soft); font-size: var(--text-lead); }

/* ----------------------------------------------------------------------------
   ETHOS
   -------------------------------------------------------------------------- */
.ethos-inner { max-width: 40ch; }
.ethos-title { font-size: var(--text-h2); margin-bottom: var(--space-6); }
.ethos-body { max-width: 52ch; }

/* ----------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta-inner {
  max-width: 640px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, var(--amber-glow), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--hairline-bright);
  border-radius: var(--radius-sm);
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.cta-title { font-size: var(--text-h2); margin-bottom: var(--space-5); }
.cta-sub { max-width: 46ch; margin-inline: auto; margin-bottom: var(--space-7); }
.cta-actions { display: flex; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.cta-note {
  margin-top: var(--space-5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ----------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-mark {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  text-transform: none;
}
.footer-nav { display: flex; gap: var(--space-5); margin-inline-start: auto; }
.footer-legal {
  width: 100%;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .verbs-grid,
  .control-grid,
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .verb-card--lead { grid-column: 1 / -1; }
  .case-card--lead { grid-column: 1 / -1; }
  .feature-inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .feature-head { position: static; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .verbs-grid,
  .control-grid,
  .cases-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-nav { margin-inline-start: 0; width: 100%; flex-wrap: wrap; }
}

/* ----------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
@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;
  }
}
