/* Glasstrade home: one screen. White, ink, a blue cursor, orange/blue fringes on the wordmark. */
:root { --ink: #0B0B0C; --text: #3A3A3D; --muted: #5E5E63; --rule: #E4E4E7; --field: #D4D4D8; --panel: #F5F5F6; --orange: #FF6B00; --blue: #2563FF;
  --sans: "Inter Tight", Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body { background: #fff; color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ui { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }

/* Ticker */
.ticker { position: relative; overflow: hidden; height: 30px; border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ticker::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff, transparent 10% 90%, #fff); z-index: 1; }
.ticker-track { display: flex; height: 100%; align-items: center; width: max-content; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: ticker 48s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: .6rem; padding: 0 1.4rem; white-space: nowrap; }
.ticker-item .up { color: var(--blue); }
.ticker-dot { opacity: .45; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.xlink { position: absolute; top: 44px; right: clamp(1rem, 3vw, 2rem); z-index: 2; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); padding: 9px 12px; border: 1px solid rgba(11, 11, 12, .14); background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.xlink:hover { color: var(--ink); border-color: rgba(11, 11, 12, .3); }

/* Hero row */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: clamp(2rem, 4vw, 4rem); width: 100%; max-width: 1480px; margin: 0 auto; padding-right: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero { display: grid; place-items: center; padding: 5rem 1.5rem 3rem; }
.hero-copy { width: clamp(18rem, 58vw, 34rem); max-width: 100%; color: var(--ink); }
.hero-title { margin: 0; font: 600 clamp(44px, 6.4vw, 88px)/1 var(--sans); letter-spacing: -0.045em; color: var(--ink); }
.lede { position: relative; margin-top: 1rem; padding-left: 0; font: 500 clamp(1rem, 2vw, 1.3rem)/1.45 var(--sans); letter-spacing: -.005em; color: var(--text); }

/* Bracket actions */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.action { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; padding: .8rem 1rem; border: 1px solid rgba(11, 11, 12, .22); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: background .18s, border-color .18s, box-shadow .18s; cursor: pointer; }
.action::before { content: "["; opacity: .5; margin-right: .6rem; }
.action::after { content: "]"; opacity: .5; margin-left: .6rem; }
.action:hover { background: #fff; border-color: var(--ink); box-shadow: -2px 0 0 rgba(255, 107, 0, .45), 2px 0 0 rgba(37, 99, 255, .45); }
.action[aria-disabled="true"] { color: rgba(11, 11, 12, .38); border-color: rgba(11, 11, 12, .12); background: rgba(255, 255, 255, .3); pointer-events: none; padding-top: .35rem; padding-bottom: .35rem; }
.action-stack { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; line-height: 1; }
.action-soon { font-size: 7px; letter-spacing: .18em; color: var(--blue); }
.action.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Waitlist form (revealed by the first action; visible without JS) */
.wl { margin-top: 1.2rem; padding: 1rem 1rem 1rem; border: 1px solid rgba(11, 11, 12, .14); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.js .wl:not(.is-open) { display: none; }
.wl__row { display: flex; flex-wrap: wrap; gap: 8px; }
.wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink); font: 400 16px/1 var(--sans); }
.field:focus { outline: none; border-color: var(--ink); }
.field[aria-invalid="true"] { border-color: var(--orange); }
.btn { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.wl__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.wl__consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.wl__consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--text); }
.wl__error { margin-top: 10px; font-size: 13px; color: var(--ink); }
.wl__status { font-size: 16px; color: var(--ink); padding: 6px 0; }
.wl__note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.wl__note a { text-decoration: underline; text-underline-offset: 2px; }
.wl.is-done .wl__row, .wl.is-done .wl__consent, .wl.is-done .wl__error, .wl.is-done .wl__note { display: none; }
.wl.is-busy .btn { opacity: .6; pointer-events: none; }


/* Terminal shot */
.hero-shot { display: grid; place-items: center; width: clamp(360px, 38vw, 620px); padding: 5rem 0 3rem; }
.hero-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(11, 11, 12, .18); border-radius: 8px; box-shadow: 0 24px 50px -22px rgba(37, 99, 255, .28), 0 10px 24px -10px rgba(11, 11, 12, .18); background: #fff; }
.hero-shot a:hover img { border-color: rgba(11, 11, 12, .4); }

@media (max-width: 1000px) {
  .hero-row { grid-template-columns: 1fr; gap: 0; padding-right: 0; align-content: start; }
  .hero { padding-top: clamp(1rem, 3vh, 2rem); }
  .hero-shot { order: -1; width: auto; padding: clamp(1.5rem, 3.5vh, 2.5rem) clamp(1.5rem, 8vw, 5rem) 0; }
  .hero-shot img { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .ticker { height: 28px; } .ticker-track { font-size: 10px; letter-spacing: .1em; }
  .xlink { top: 36px; right: 10px; padding: 7px 9px; }
  .hero { padding: 1.2rem 1.2rem 2rem; }
  .hero-copy { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .wm__s { transition: none; } }
