/* site.css: landing and inner pages. */

/* hero */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-rows: 1fr auto; isolation: isolate; padding-bottom: var(--sp-40); }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-in { align-self: center; padding-block: clamp(3rem, 2rem + 6vh, 7rem) 2rem; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; line-height: .94; max-width: 9ch; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-10); margin-bottom: var(--sp-28); padding: var(--sp-8) var(--sp-14) var(--sp-8) var(--sp-12);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px);
  font: 500 var(--fs-xs)/1.2 var(--font-mono); color: var(--text-2); }
.eyebrow .sep { color: var(--text-3); }
.eyebrow-ic { color: var(--up); }
@media (max-width: 560px) { .eyebrow .fips { display: none; } }

/* the hero enters once */
.hero-in > * { animation: rise 300ms var(--ease) both; }
.hero h1 { animation-name: lift; }
.hero-in > :nth-child(2) { animation-delay: 60ms; } .hero-in > :nth-child(3) { animation-delay: 120ms; } .hero-in > :nth-child(4) { animation-delay: 180ms; }
.hero .tape { animation: rise 300ms 240ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes lift { from { transform: translateY(8px); } } /* the headline is painted at once (it is the largest paint), then settles */
@media (prefers-reduced-motion: reduce) { .hero-in > *, .hero .tape { animation: none; } }
.lead { margin-top: var(--sp-24); font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); color: var(--text-2); max-width: 36ch; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--sp-12); margin-top: var(--sp-32); }

/* live tape */
.tape { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); overflow: hidden; min-height: 74px; }
.tape a { display: grid; gap: var(--sp-4); padding: var(--sp-14) var(--sp-16); border-right: 1px solid var(--line); min-width: 0; transition: background-color var(--t-fast) var(--ease); }
.tape a:last-child { border-right: 0; }
.tape a:hover { background: var(--accent-wash); }
.tape .t-c { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-sm); color: var(--text-2); min-width: 0; }
.tape .t-c b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape .t-p { display: flex; justify-content: space-between; gap: var(--sp-8); font-size: var(--fs-sm); }
.tape-wait { grid-column: 1 / -1; align-self: center; padding: 0 var(--sp-16); color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 1000px) { .tape { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tape a:nth-child(n+4) { display: none; } .tape a:nth-child(3) { border-right: 0; } }
@media (max-width: 560px) { .tape { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tape a:nth-child(3) { display: none; } .tape a:nth-child(2) { border-right: 0; } }

.hero + .frame { margin-top: clamp(2rem, 1rem + 4vw, 5rem); background: color-mix(in srgb, var(--bg) 55%, transparent); }

/* board */
.board-wrap { padding: 1.25rem clamp(1rem, .75rem + 1vw, 2rem) 1.5rem; }
.seg { display: inline-flex; gap: 2px; padding: var(--sp-4); border: 1px solid var(--line-2); border-radius: var(--r-pill); margin-bottom: var(--sp-16); max-width: 100%; overflow-x: auto; }
.seg button { padding: var(--sp-8) var(--sp-14); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--text-2); white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.board { overflow-x: auto; }
.brow { display: grid; grid-template-columns: minmax(180px, 2.2fr) repeat(4, minmax(90px, 1fr)) minmax(110px, 1fr); gap: var(--sp-16); align-items: center; padding: var(--sp-12) var(--sp-8); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); min-width: 760px; }
.brow > span:not(:first-child) { text-align: right; }
.bhead { color: var(--text-3); font-size: var(--fs-xs); padding-top: 0; }
a.brow { transition: background-color var(--t-fast) var(--ease); border-radius: var(--r-sm); }
a.brow:hover { background: var(--accent-wash); }
.bm { display: flex; align-items: center; gap: var(--sp-10); min-width: 0; }
.bm b { font-weight: 500; }
.bm em { font-style: normal; color: var(--text-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-msg { padding: var(--sp-32) var(--sp-8); color: var(--text-2); font-size: var(--fs-sm); }
.board-msg a { color: var(--accent); }

/* post-quantum */
.pq { display: flex; flex-direction: column; gap: var(--sp-14); min-height: 260px; }
.pq h3 { font-size: var(--fs-2xl); }
.pq p { color: var(--text-2); }
.pq .eq { margin-top: auto; font-size: var(--fs-xl); color: var(--text); }
.seal-live { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
.seal-cv { width: 100%; aspect-ratio: 1; }
.seal-copy { display: grid; gap: var(--sp-16); justify-items: start; max-width: 52ch; }
.seal-copy h3 { font-size: var(--fs-2xl); }
.seal-copy > p { color: var(--text-2); }
.seal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: var(--sp-8) 0; width: 100%; border-top: 1px solid var(--line); }
.seal-facts div { padding: var(--sp-12) 0; border-bottom: 1px solid var(--line); }
.seal-facts dt { font-size: var(--fs-xs); color: var(--text-3); }
.seal-facts dd { margin: var(--sp-2) 0 0; }
.seal-facts .ok { color: var(--up); }
.fine { font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 860px) { .seal-live { grid-template-columns: minmax(0, 1fr); } .seal-cv { max-width: 360px; } }

/* privacy facts */
.fact { display: grid; gap: var(--sp-10); align-content: start; }
.fact h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.fact p { color: var(--text-2); font-size: var(--fs-sm); }

/* cta */
.cta { padding: clamp(3rem, 2rem + 4vw, 6rem) clamp(1.25rem, 1rem + 1vw, 2rem); background: radial-gradient(70% 120% at 100% 100%, var(--accent-wash), transparent 60%); }
.cta h2, .cta h1 { font-size: var(--fs-3xl); max-width: 16ch; }
.cta-p { margin-top: var(--sp-16); color: var(--text-2); max-width: 46ch; }

/* ---------- inner pages (404) ---------- */
.page { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }

/* clean-up pass */
.tape-sk { display: grid; gap: var(--sp-8); padding: var(--sp-14) var(--sp-16); border-right: 1px solid var(--line); }
.tape-sk:last-child { border-right: 0; }
.tape-sk > span { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); }
.tape-sk .sk { height: .75rem; }
@media (max-width: 1000px) { .tape-sk:nth-child(n+4) { display: none; } }
@media (max-width: 560px) { .tape-sk:nth-child(3) { display: none; } }
.brow.skr { cursor: default; }
.brow.skr .sk { height: .75rem; justify-self: end; }
.brow.skr .bm .sk { justify-self: auto; }
.hint-tip { display: inline-flex; align-items: center; gap: var(--sp-4); min-height: 28px; border-radius: var(--r-sm); }
.hint-tip .ic { color: var(--text-3); }
.seg button:active, .brow:active { transform: translateY(1px); }

/* the market board fits the screen: fewer columns on tablets and phones instead of a sideways scroll */
@media (max-width: 860px) {
  .board { overflow: visible; }
  .brow { grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); min-width: 0; gap: var(--sp-12); }
  .brow > :nth-child(5), .brow > :nth-child(6) { display: none; }
}
@media (max-width: 560px) {
  .brow { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
  .brow > :nth-child(4) { display: none; }
  .bm em { display: none; }
}

/* referrals */
.shead h1 { font-size: var(--fs-3xl); }
.ref-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12) var(--sp-16); padding: var(--sp-16) clamp(1.25rem, 1rem + 1vw, 2rem); font-size: var(--fs-sm); color: var(--text-2);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--accent-wash) 10px 11px); }
.ref-note p { flex: 1 1 320px; } .ref-note b, .ref-priv b { color: var(--text); font-weight: 500; }
.kpi { display: grid; gap: var(--sp-6); align-content: start; }
.kpi > span { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-xs); color: var(--text-3); }
.kpi b { font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); letter-spacing: -0.03em; }
.kpi em { font-style: normal; font-size: var(--fs-xs); color: var(--text-2); }
.ref-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ref-cols > section { display: grid; gap: var(--sp-16); align-content: start; padding: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(1.25rem, 1rem + 1vw, 2rem); min-width: 0; }
.ref-cols > section:first-child { border-right: 1px solid var(--line); }
.ref-cols h2, .ph h2 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.ref-cols section > p { color: var(--text-2); max-width: 46ch; }
.ref-cols .ctas { margin-top: 0; }
.ref-code { display: flex; align-items: center; gap: var(--sp-10); height: 48px; padding: 0 var(--sp-14); border: 1px dashed var(--line-3); border-radius: var(--r-md); background: var(--surface); color: var(--text-3); font-size: var(--fs-sm); min-width: 0; }
.ref-code em { font-style: normal; color: var(--text-3); border-bottom: 1px dashed var(--line-3); }
.hint { font-size: var(--fs-xs); color: var(--text-3); }
.ol { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ol li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--sp-8); padding: var(--sp-16) 0; border-bottom: 1px solid var(--line); }
.ol li > span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: .2rem; }
.ol b { display: block; font-weight: 500; margin-bottom: var(--sp-4); }
.ol p { color: var(--text-2); font-size: var(--fs-sm); }
.ref-table { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.ph { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-16); margin-bottom: var(--sp-16); }
.ph span { font-size: var(--fs-xs); color: var(--text-3); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-weight: 400; color: var(--text-3); font-size: var(--fs-xs); padding: 0 var(--sp-8) var(--sp-10); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl-empty { padding: var(--sp-32) var(--sp-8); color: var(--text-2); }
.ref-priv { display: flex; gap: var(--sp-14); align-items: flex-start; padding: var(--sp-20) clamp(1.25rem, 1rem + 1vw, 2rem); color: var(--text-2); font-size: var(--fs-sm); }
.ref-priv .ic { color: var(--accent); margin-top: .1rem; }
.ref-priv p { max-width: 80ch; }
@media (max-width: 860px) { .ref-cols { grid-template-columns: minmax(0, 1fr); } .ref-cols > section:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.shead h1 .tag.soon { vertical-align: middle; margin-left: var(--sp-12); font: 500 var(--fs-xs)/1 var(--font); letter-spacing: 0; padding: var(--sp-6) var(--sp-10); border-color: var(--line-3); color: var(--accent); }

/* ---------- Hush: landing ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
.hero h1 { font-size: clamp(3rem, 1.2rem + 6vw, 6.5rem); letter-spacing: -0.045em; line-height: .96; max-width: 10ch; }
.wave { opacity: .9; }
/* the sign: it switches on with a flicker, then hums */
.sign { position: absolute; z-index: 0; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + 20px)); top: 50%; width: clamp(220px, 28vw, 420px); height: auto; transform: translateY(-58%); overflow: visible; }
.sign-ring, .sign-bar { animation: neon-on 1.6s steps(1, end) .35s both, hum 4.8s ease-in-out 2.2s infinite; }
.sign-bar { animation-delay: .5s, 2.4s; }
@keyframes neon-on { 0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 27% { opacity: .25; } 34% { opacity: 1; } 100% { opacity: 1; } }
@keyframes hum { 0%, 100% { opacity: 1; } 50% { opacity: .9; } }
@media (max-width: 900px) { .sign { right: 50%; top: 8%; transform: translateX(50%); width: min(56vw, 260px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sign-ring, .sign-bar { animation: none; } }
.tape { border-radius: var(--r-md); }
.pq h3, .seal-copy h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); }
.pq .eq { color: var(--accent-hi); text-shadow: 0 0 14px rgba(77, 134, 255, .7); }
.fact h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.cta { background: radial-gradient(70% 120% at 100% 100%, rgba(77, 134, 255, .18), transparent 60%); }
.cta h2, .cta h1 { max-width: 14ch; }
.seal-facts dt { text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; }
/* a pool of dark behind the words, so the wave never fights the text */
.hero-in { position: relative; }
.hero-in::before { content: ""; position: absolute; z-index: -1; inset: -6% 40% -8% -12%; background: radial-gradient(closest-side, rgba(7, 10, 18, .86), rgba(7, 10, 18, .55) 55%, rgba(7, 10, 18, 0)); pointer-events: none; }
@media (max-width: 900px) {
  .sign { top: calc(var(--sp-24)); width: 132px; opacity: .9; transform: translateX(50%); }
  .hero-in { padding-top: 188px; }
}
@media (max-width: 900px) { .hero-in::before { inset: 150px -10% -8% -10%; } }
