/* Hyrd — built on the Framer DESIGN.md (see DESIGN.md).
   Monochrome canvas, white pills, one blue signal colour, two gradient spotlight cards. */

:root {
  --primary: #ffffff;
  --on-primary: #000000;
  --accent-blue: #0099ff;
  --ink: #ffffff;
  --ink-muted: #999999;
  --canvas: #090909;
  --surface-1: #141414;
  --surface-2: #1c1c1c;
  --hairline: #262626;
  --hairline-soft: #1a1a1a;
  --g-magenta: #d44df0;
  --g-violet: #6a4cf5;
  --g-orange: #ff7a3d;
  --g-coral: #ff5577;
  --success: #22c55e;

  --r-md: 10px;
  --r-lg: 15px;
  --r-xl: 20px;
  --r-xxl: 30px;
  --r-pill: 100px;

  --display: "Mona Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 30px);
  --max: 1200px;
  --section: clamp(96px, 14vw, 160px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }

body {
  background: var(--canvas);
  color: var(--ink);
  font: 400 15px/1.3 var(--body);
  letter-spacing: -0.01em;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
.muted { color: var(--ink-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent-blue); }

/* ---------- type scale ---------- */
.display-xxl, .display-xl, .display-lg {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.display-xxl { font-size: clamp(48px, 9.4vw, 116px); line-height: .9; }
.display-xl  { font-size: clamp(40px, 7vw, 85px); line-height: .95; }
.display-lg  { font-size: clamp(30px, 4.8vw, 62px); line-height: 1.02; max-width: 22ch; }

.eyebrow {
  margin: 0 0 20px;
  font: 500 13px/1.2 var(--body);
  color: var(--ink-muted);
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-pill);
  font: 500 14px/1 var(--body);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.pill:active { transform: scale(.97); }
.pill-white { background: var(--primary); color: var(--on-primary); }
.pill-white:hover { opacity: .9; }
.pill-sm { min-height: 36px; padding: 8px 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(9, 9, 9, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--hairline-soft); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 19px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.links { display: flex; gap: 28px; }
.links a {
  font: 500 14px/1 var(--body);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .15s;
}
.links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--gutter) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: 500 13px/1 var(--body);
  text-decoration: none;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-violet), var(--g-magenta) 50%, var(--g-orange));
  box-shadow: 0 0 10px rgba(212, 77, 240, .7);
}
.badge-sep { width: 1px; height: 12px; background: var(--hairline); }

.display-xxl .line { display: block; }

.hero-sub {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.4;
  color: var(--ink-muted);
}

/* ---------- join form ---------- */
.join { width: 100%; max-width: 520px; margin-top: 32px; }
.join-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow .15s;
}
.join-bar:focus-within { box-shadow: inset 0 0 0 1px var(--hairline), 0 0 0 4px rgba(0, 153, 255, .15); }
.join-bar.invalid { box-shadow: inset 0 0 0 1px #ff5577; }
.join-bar input {
  flex: 1;
  min-width: 0;
  padding: 0 14px 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 15px var(--body);
  letter-spacing: -0.01em;
}
.join-bar input::placeholder { color: #666; }
.join-bar input:focus { outline: none; box-shadow: none; }
.join-bar .pill[disabled] { opacity: .6; cursor: progress; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.work { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.work legend {
  margin: 0 auto 12px;
  padding: 0;
  font: 500 13px/1.2 var(--body);
}
.work-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.work-pills label { position: relative; cursor: pointer; }
.work-pills input { position: absolute; opacity: 0; pointer-events: none; }
.work-pills span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font: 500 13px/1 var(--body);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background .15s, color .15s, box-shadow .15s;
}
.work-pills label:hover span { color: var(--ink); }
.work-pills input:checked + span {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #3a3a3a;
}
.work-pills input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent-blue); }

.form-note {
  margin: 18px 0 0;
  min-height: 1.3em;
  font: 400 13px/1.3 var(--body);
  color: #666;
}
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--g-coral); }

/* ---------- product stage ---------- */
.stage {
  position: relative;
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
}
.glow {
  position: absolute;
  inset: -14% -4% 10%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(38% 45% at 22% 45%, rgba(106, 76, 245, .9), transparent 70%),
    radial-gradient(32% 40% at 52% 30%, rgba(212, 77, 240, .75), transparent 70%),
    radial-gradient(38% 45% at 82% 50%, rgba(255, 122, 61, .8), transparent 70%);
  filter: blur(70px);
  opacity: .9;
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: scale(1) translateY(0); opacity: .75; }
  to   { transform: scale(1.06) translateY(-3%); opacity: 1; }
}

.app {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow:
    inset 0 .5px 0 rgba(255, 255, 255, .14),
    0 0 0 1px var(--hairline),
    0 30px 80px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
  text-align: left;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  font: 400 12px/1.2 var(--body);
  color: var(--ink-muted);
  text-align: center;
}
.tag { font: 500 11px/1 var(--body); color: #666; white-space: nowrap; }

.app-body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
.app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 12px;
  border-right: 1px solid var(--hairline);
}
.side-logo { padding: 0 10px 14px; font: 600 15px/1 var(--display); letter-spacing: -0.04em; }
.side-item {
  padding: 8px 10px;
  border-radius: 8px;
  font: 500 13px/1 var(--body);
  color: var(--ink-muted);
}
.side-item.on { background: var(--surface-2); color: var(--ink); }

.app-main { padding: 18px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}
.kpi-label { font: 500 12px/1.2 var(--body); color: var(--ink-muted); }
.kpi-val {
  font: 500 clamp(20px, 2.4vw, 28px)/1 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.table { margin-top: 14px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 190px;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 6px;
  border-bottom: 1px solid var(--hairline-soft);
  font: 500 14px/1.2 var(--body);
}
.row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.head { height: 34px; font-size: 12px; color: #666; }
.row .vol { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
#rows .row { animation: slideIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: 500 12px/1 var(--body);
  color: var(--ink-muted);
  white-space: nowrap;
}
.status b { font-weight: inherit; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.working { color: var(--accent-blue); }
.status.working i { animation: blink 1s ease-in-out infinite; }
.status.review { color: var(--ink); }
.status.review i { background: linear-gradient(135deg, var(--g-violet), var(--g-orange)); }
.status.done { color: var(--success); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.section > .display-xl, .section > .display-lg { margin-bottom: clamp(40px, 6vw, 64px); }

/* bento */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.spot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xxl);
  padding: clamp(28px, 4vw, 44px);
  isolation: isolate;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spot-violet {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  background:
    radial-gradient(80% 70% at 15% 10%, var(--g-magenta) 0%, transparent 60%),
    radial-gradient(90% 80% at 90% 100%, #2a1a8a 0%, transparent 70%),
    var(--g-violet);
}
.spot-big {
  margin: 0 0 auto;
  font: 500 clamp(72px, 11vw, 150px)/.85 var(--display);
  letter-spacing: -0.06em;
}
.spot-text {
  margin: 32px 0 0;
  max-width: 22em;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}
.spot cite {
  display: block;
  margin-top: 14px;
  font: normal 500 12px/1 var(--body);
  color: rgba(255, 255, 255, .7);
}

.card {
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface-1);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .08);
}
.card-big {
  margin: 0 0 18px;
  font: 500 clamp(40px, 5vw, 62px)/1 var(--display);
  letter-spacing: -0.05em;
}
.card-big s { color: #555; text-decoration-thickness: 3px; }
.card-big .arrow { color: var(--ink-muted); }
.card-title {
  margin: 0 0 14px;
  font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--display);
  letter-spacing: -0.035em;
}
.card-text { margin: 0; max-width: 34em; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }

/* tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.tier {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  padding: 28px;
  background: var(--surface-1);
}
.tier h3 {
  margin: 0;
  font: 500 32px/1.1 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink-muted);
}
.tier-sub { margin: 6px 0 24px; color: #666; font-size: 14px; }
.tier ul { list-style: none; margin: 0 0 auto; padding: 0; }
.tier li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font: 500 15px/1.3 var(--body);
  color: var(--ink-muted);
}
.tier li span { font-size: 12px; color: #666; }
.tier-hyrd {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px #2e2e2e, inset 0 .5px 0 rgba(255, 255, 255, .12);
}
.tier-hyrd h3, .tier-hyrd li { color: var(--ink); }
.tier-hyrd .tier-sub, .tier-hyrd li span { color: var(--ink-muted); }
.tier-hyrd .pill { margin-top: 24px; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.step {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  padding: 24px 22px 26px;
  background: var(--surface-1);
  min-height: 260px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--surface-2);
  font: 500 13px/1 var(--body);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin: 40px 0 10px;
  font: 500 22px/1.1 var(--display);
  letter-spacing: -0.035em;
}
.step p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.pullquote {
  margin: clamp(48px, 7vw, 80px) 0 0;
  max-width: 24em;
  font: 500 clamp(26px, 3.4vw, 40px)/1.12 var(--display);
  letter-spacing: -0.04em;
}

/* chips + eras */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  font: 500 14px/1 var(--body);
}
.eras {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.eras li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px 0 0;
  color: #666;
}
.eras span { font: 500 12px/1 var(--body); }
.eras b { margin-top: 8px; font: 500 22px/1.1 var(--display); letter-spacing: -0.035em; color: var(--ink-muted); }
.eras em { font-style: normal; font-size: 14px; line-height: 1.4; }
.eras .now { position: relative; color: var(--ink-muted); }
.eras .now::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g-violet), var(--g-magenta), var(--g-orange));
}
.eras .now b, .eras .now em { color: var(--ink); }

/* closing */
.closing { padding-bottom: var(--section); }
.spot-sunset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  min-height: 440px;
  background:
    radial-gradient(70% 90% at 100% 0%, #ffb27a 0%, transparent 55%),
    radial-gradient(80% 90% at 0% 100%, var(--g-coral) 0%, transparent 60%),
    var(--g-orange);
}
.spot-sunset .display-xl { max-width: 17ch; color: #fff; }

/* footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline-soft);
  font: 500 13px/1.2 var(--body);
  color: var(--ink-muted);
}

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr) 120px 170px; }
}

@media (max-width: 810px) {
  .hero { overflow-x: clip; }
  .links { display: none; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 12px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 12px 4px; row-gap: 6px; }
  .row .vol { grid-row: 2; font-size: 12px; }
  .row .status { grid-row: 1 / span 2; grid-column: 2; }
  .row.head { display: none; }
  .bento, .tiers { grid-template-columns: 1fr; }
  .tier { padding: 24px; }
  .tier-sub { margin-bottom: 16px; }
  .tier li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; font-size: 14px; text-align: right; }
  .tier li span { text-align: left; flex: 0 0 auto; }
  .spot-violet { grid-row: auto; min-height: 380px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eras { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--hairline); }
  .eras li { padding: 0 0 22px 20px; }
  .eras .now::before { top: 0; bottom: 0; left: -1px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--g-violet), var(--g-orange)); }
}

@media (max-width: 560px) {
  .tag { display: none; }
  .url { margin: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 24px; }
  .join-bar { flex-direction: column; border-radius: 22px; }
  .join-bar input { flex: none; height: 48px; padding: 0 14px; }
  .spot-sunset { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
