/* SayIt design system. Tokens come straight from the Landing v3 / Dashboard v2 references. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@500&display=swap");

@font-face { font-family: Satoshi; src: url(../assets/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Satoshi; src: url(../assets/satoshi-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Satoshi; src: url(../assets/satoshi-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #08080b; --surface-1: #101015; --surface-2: #17171e; --surface-3: #22222b;
  --fg: #f4f4f7; --muted: #9b9ba8; --hairline: #ffffff14; --hairline-strong: #ffffff29;
  --brand: #1630f9; --brand-ink: #8392ff; --brand-soft: #1b2266; --on-brand: #fff; --focus: #8392ff;
  --success: #3ddc97; --warning: #ffb020; --error: #ff5c5c;
  --discord-chat: #313338; --discord-embed: #2b2d31; --discord-heading: #f2f3f5; --discord-text: #dbdee1;
  --discord-muted: #949ba4; --discord-primary: #5865f2;
  --shadow-glow: 0 8px 28px rgba(22, 48, 249, 0.45);
  --font-sans: Satoshi, ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; transition: opacity .3s var(--ease); }
a:hover { opacity: .88; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button, input, select { font-family: inherit; }
button.reset { all: unset; box-sizing: border-box; cursor: pointer; }
input::placeholder { color: var(--muted); }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, p { margin: 0; }

.em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--brand-ink); font-size: 1.1em; line-height: .8; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.page { position: relative; min-height: 100vh; background: var(--bg); overflow-x: clip; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Motion */
.press { transition: transform .25s var(--ease), opacity .3s, background .3s, color .3s; cursor: pointer; }
.press:hover { opacity: .88; }
.press:active { transform: scale(.96); }
.press .arr { display: inline-block; transition: transform .3s var(--ease); }
.press:hover .arr { transform: translateX(3px); }
.bar { transform-origin: center; animation: si-wave 820ms var(--ease) infinite alternate; }
@keyframes si-wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.bob { animation: si-bob 4.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes si-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.drift { animation: si-drift 14s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.drift2 { animation: si-drift 19s cubic-bezier(.45, 0, .55, 1) infinite alternate-reverse; }
@keyframes si-drift { from { transform: translateX(-40px) translateY(0); } to { transform: translateX(40px) translateY(-18px); } }
.pop { animation: si-pop .6s var(--ease) both; }
@keyframes si-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ping { animation: si-ping 1.6s var(--ease) infinite; }
@keyframes si-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
@media (prefers-reduced-motion: reduce) { .bar, .bob, .drift, .drift2, .pop, .ping { animation: none; } .press:active { transform: none; } html { scroll-behavior: smooth; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; white-space: nowrap; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand.lg { min-height: 56px; padding: 0 28px; font-size: 17px; gap: 8px; box-shadow: var(--shadow-glow); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .16); color: var(--fg); background: transparent; }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-danger { border: 1px solid var(--error); color: #ff8a8a; background: transparent; }

/* Glass nav */
.navwrap { position: sticky; top: 14px; z-index: 20; display: flex; justify-content: center; padding: 14px 16px 0; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(22, 22, 30, .55); border: 1px solid rgba(255, 255, 255, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 32px rgba(0, 0, 0, .45); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.nav .brand { display: flex; align-items: center; gap: 7px; color: var(--fg); margin-right: 12px; }
.nav .brand img { height: 22px; width: auto; display: block; }
.nav .brand span { font-weight: 900; font-size: 18px; letter-spacing: -0.04em; }
.navlinks { display: flex; gap: 2px; }
.navlinks a, .nav .plain { color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 999px; }
.nav .plain { color: var(--fg); }
@media (max-width: 720px) { .navlinks { display: none; } }

/* Sections */
.sec { max-width: 1200px; margin: 0 auto; padding: 140px 32px 0; }
.h2 { font-weight: 900; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -0.05em; }

/* The mark's bubble is heavier than its sound waves, so nudge it right to look optically centred in tiles. */
.mascot-tile img, .s-tile img, .logo-tile img, .tile.mark img { transform: translateX(4%); }

/* Custom dropdown (replaces native <select>) */
.dd { position: relative; display: block; min-width: 0; }
.dd-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid rgba(255,255,255,.08); color: var(--fg); font-weight: 700; font-size: 14px; transition: border-color .2s, background .2s; }
.dd-btn:hover { border-color: rgba(255,255,255,.18); }
.dd-btn[aria-expanded=true] { border-color: var(--brand-ink); }
.dd-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd-chev { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.dd-btn[aria-expanded=true] .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; left: 0; top: calc(100% + 8px); min-width: 100%; width: max-content; max-width: min(340px, 88vw); max-height: min(320px, 50vh); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 20px; background: rgba(23,23,30,.94); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.65); z-index: 60; animation: si-pop .25s var(--ease) both; scrollbar-width: thin; scrollbar-color: #3a3a46 transparent; }
.dd-list[hidden] { display: none; }
.dd-list.right { left: auto; right: 0; }
.dd-list[data-up] { top: auto; bottom: calc(100% + 8px); }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dd-opt span { overflow: hidden; text-overflow: ellipsis; }
.dd-opt[data-active] { background: var(--surface-3); color: var(--fg); }
.dd-opt[aria-selected=true] { color: var(--fg); }
.dd-opt svg { flex: none; color: var(--brand-ink); }
.dd-opt.accent { color: var(--brand-ink); margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 12px 12px; padding-top: 2px; min-height: 44px; }
.picker .dd-btn { background: transparent; border: 0; min-height: 38px; padding: 0 10px 0 6px; width: auto; }
.picker .dd { min-width: 0; }
.dd-opt.danger { color: #ff8a8a; }
.dd-opt.danger[data-active] { background: rgba(255,92,92,.12); color: #ff8a8a; }
