/*
 * Sleigh Terminal styles. Layout, tokens and components ported from Launch UI
 * (https://github.com/launch-ui/launch-ui), MIT License, Copyright (c) 2024 Mikolaj Dobrucki:
 * dark theme tokens, glass surfaces, the hero badge / gradient title / mockup frame / glow, items grid,
 * stats, accordion, CTA and footer. Recoloured to midnight, sleigh red, gold and snow.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright
 * notice and this permission notice shall be included in all copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
 */
:root {
  --background: #070b22;
  --night: #0b1230;
  --card: #0f1738;
  --foreground: #f4f7ff;
  --muted: #9aa6d1;
  --muted-2: #7682b2; /* about 4.9:1 on the feed rows (AA) */
  --border: rgb(255 255 255 / .1);
  --border-top: rgb(255 255 255 / .18);
  --brand: #f5c451;
  --brand-foreground: #ffd978;
  --red: #e23b3b;
  --green: #34d399;
  --ember: #ff8c46;
  --radius: .625rem;
  --container: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--foreground); color: var(--night); border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.container-wide { width: min(1248px, 100% - 24px); }
.narrow { width: min(760px, 100% - 32px); }
.line-b { border-bottom: 1px solid var(--border); }

/* Buttons (Launch UI: default = bright gradient, glow = glass) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: calc(var(--radius) - 2px); font: 500 .9rem/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, opacity .2s; }
.btn-lg { height: 44px; padding: 0 22px; font-size: .95rem; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn-primary { color: #0b1230; background: linear-gradient(to bottom, #fff, rgb(244 247 255 / .78)); border-top-color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.btn-primary:hover { background: linear-gradient(to bottom, rgb(255 255 255 / .9), rgb(244 247 255 / .68)); }
.btn-glow { color: var(--foreground); background: linear-gradient(to bottom, rgb(244 247 255 / .1), rgb(244 247 255 / .04)); border-color: var(--border); border-top-color: rgb(255 255 255 / .3); border-bottom-width: 0; box-shadow: 0 4px 12px -2px rgb(0 0 0 / .4); }
.btn-glow:hover { background: linear-gradient(to bottom, rgb(244 247 255 / .16), rgb(244 247 255 / .05)); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Floating pill nav */
.nav-wrap { position: fixed; inset: 12px 0 auto; z-index: 50; padding-inline: 12px; pointer-events: none; }
.nav { pointer-events: auto; max-width: 980px; margin-inline: auto; display: flex; align-items: center; gap: 16px; padding: 7px 7px 7px 10px; border-radius: 999px; background: rgb(11 18 48 / .55); border: 1px solid var(--border); border-top-color: var(--border-top); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .6); transition: background .3s; }
.nav-wrap.is-sticky .nav { background: rgb(11 18 48 / .82); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--foreground); background: rgb(255 255 255 / .06); }
.nav-cta { border-radius: 999px; }
.menu-btn { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: rgb(255 255 255 / .05); color: var(--foreground); cursor: pointer; }
.menu-btn svg, .menu-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu { position: fixed; inset: 0; z-index: 60; background: rgb(3 5 16 / .6); backdrop-filter: blur(4px); }
.menu-panel { position: absolute; inset: 0 0 0 auto; width: min(320px, 86vw); padding: 72px 24px 24px; display: flex; flex-direction: column; gap: 6px; background: var(--night); border-left: 1px solid var(--border); }
.menu-panel a:not(.btn) { padding: 12px 8px; font-size: 1.15rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.menu-panel .btn { margin-top: 18px; }
.menu-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--foreground); cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 136px 0 0; border-bottom: 1px solid var(--border); background: radial-gradient(60% 50% at 50% 0%, rgb(47 77 255 / .22), transparent 70%); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.4px), radial-gradient(rgb(255 255 255 / .35) 1px, transparent 1.4px); background-size: 140px 140px, 90px 90px; background-position: 0 0, 40px 60px; mask-image: linear-gradient(to bottom, black, transparent 55%); opacity: .35; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.tile { perspective: 700px; margin-bottom: 4px; }
.tile-3d { position: relative; width: 132px; height: 132px; border-radius: 30px; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); box-shadow: 0 1px 0 1px rgb(255 255 255 / .12) inset, 18px 26px 40px -10px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08), 0 0 60px -10px rgb(47 77 255 / .7); animation: float 6s ease-in-out infinite; }
.tile-3d img { width: 100%; height: 100%; border-radius: inherit; }
.tile-shine { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(130deg, rgb(255 255 255 / .35), transparent 38%, transparent 70%, rgb(255 255 255 / .1)); mix-blend-mode: soft-light; }
@keyframes float { 50% { translate: 0 -8px; } }
.badge { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 5px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .03); font-size: .78rem; font-weight: 600; }
.badge a { display: inline-flex; gap: 4px; text-decoration: none; color: var(--brand-foreground); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
h1 { max-width: 15ch; font-size: clamp(2.35rem, 6.6vw, 5.6rem); line-height: 1.04; letter-spacing: -.035em; background: linear-gradient(to right, var(--foreground), #b5c0ec); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .45)); }
h1 .w { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
.lead { max-width: 680px; font-size: clamp(1rem, 2.1vw, 1.2rem); font-weight: 500; color: var(--muted); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ca-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 5px 5px 14px; border-radius: 999px; border: 1px dashed rgb(245 196 81 / .45); background: rgb(245 196 81 / .06); font-size: .82rem; }
.ca-label { color: var(--brand); font: 700 .72rem/1 var(--mono); letter-spacing: .08em; }
.ca-pill code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--foreground); }
.ca-copy { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--brand); color: #1a1405; font: 600 .78rem var(--sans); cursor: pointer; }
.ca-copy:disabled { background: rgb(255 255 255 / .08); color: var(--muted-2); cursor: default; }

/* The live map in Launch UI's mockup frame */
.frame-wrap { position: relative; margin-top: 56px; padding-bottom: 72px; }
.frame { position: relative; z-index: 2; padding: 8px; border-radius: 18px; background: rgb(255 255 255 / .06); }
.mockup { position: relative; overflow: hidden; border-radius: 11px; border: 1px solid rgb(255 255 255 / .06); border-top-color: rgb(255 255 255 / .16); background: rgb(7 11 34 / .94); box-shadow: -12px 16px 48px rgb(0 0 0 / .5); }
.beam::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--beam, 0deg), transparent 0 72%, rgb(245 196 81 / .9) 82%, rgb(226 59 59 / .9) 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 7s linear infinite; pointer-events: none; }
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes beam { to { --beam: 360deg; } }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .8rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.dots i:nth-child(2) { background: var(--brand); }
.dots i:nth-child(3) { background: var(--green); }
.term-title { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-size: .75rem; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status[data-status="live"] i { background: var(--green); animation: ping 2s infinite; }
.status[data-status="snapshot"] { border-color: rgb(245 196 81 / .4); color: var(--brand-foreground); }
.status[data-status="snapshot"] i { background: var(--brand); }
.status[data-status="reconnecting"] { border-color: rgb(255 140 70 / .45); color: var(--ember); }
.status[data-status="reconnecting"] i { background: var(--ember); }
.clock { color: var(--muted-2); font-size: .75rem; }
.map-box { position: relative; background: #060a1f; }
.map-box canvas { width: 100%; }
.map-note { padding: 10px 16px; font-size: .78rem; color: var(--muted-2); border-top: 1px solid var(--border); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-top: 1px solid var(--border); }
.stat-row > div { padding: 14px 16px; border-right: 1px solid var(--border); }
.stat-row > div:last-child { border-right: 0; }
.stat-row dt { font-size: .74rem; font-weight: 600; color: var(--muted); }
.stat-row dd { margin: 4px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; }
.stat-flight dd { color: var(--brand-foreground); }
.feed { border-top: 1px solid var(--border); padding: 16px; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.feed-title { font-size: 1rem; letter-spacing: -.01em; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.feed-list li { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgb(255 255 255 / .03); font-size: .84rem; }
.feed-list li.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgb(245 196 81 / .18); } }
.feed-list .feed-empty { grid-column: 1 / -1; display: block; background: none; }
.feed-list .ico { width: 18px; height: 18px; border-radius: 5px; background: var(--red); box-shadow: inset 0 0 0 2px var(--brand); }
.feed-list .ico.coal { border-radius: 50%; background: #2b2e3a; box-shadow: 0 0 8px rgb(255 140 70 / .6); }
.feed-list a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-list a b { font-weight: 700; }
.feed-list a:hover b { text-decoration: underline; }
.feed-list .usd { font: 600 .84rem var(--mono); }
.feed-list .usd.coal { color: var(--ember); }
.feed-list .ago { color: var(--muted-2); font: .74rem var(--mono); min-width: 52px; text-align: right; }

/* Launch UI glow under the frame */
.glow { position: absolute; left: 0; right: 0; top: 10%; height: 0; pointer-events: none; z-index: 1; }
.glow span { position: absolute; left: 50%; translate: -50% 0; border-radius: 50%; }
.glow span:first-child { width: 60%; height: 512px; scale: 2.5; background: radial-gradient(closest-side, rgb(255 217 120 / .28) 10%, rgb(255 217 120 / 0) 60%); }
.glow span:last-child { width: 40%; height: 256px; scale: 2; background: radial-gradient(closest-side, rgb(245 196 81 / .22) 10%, rgb(255 217 120 / 0) 60%); }
.glow-center { top: 50%; }
.glow-center span { translate: -50% -50%; }

/* Route marquee */
.route { padding: 56px 0; }
.route-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 26px; }
.h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.eyebrow { color: var(--brand); font: 700 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid var(--border); border-top-color: var(--border-top); background: linear-gradient(to bottom, rgb(255 255 255 / .06), rgb(255 255 255 / .02)); font-weight: 600; white-space: nowrap; text-decoration: none; }
.chip i { width: 22px; height: 22px; border-radius: 7px; background: var(--red); box-shadow: inset 0 0 0 2px var(--brand); }
.chip:nth-child(3n+2) i { background: #1fa363; box-shadow: inset 0 0 0 2px var(--foreground); }
.chip:nth-child(3n) i { background: var(--brand); box-shadow: inset 0 0 0 2px var(--red); }

/* Sections */
.section { position: relative; padding: clamp(72px, 11vw, 128px) 0; }
.head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: clamp(36px, 6vw, 72px); }
.head h2, .cta h2 { max-width: 20ch; font-size: clamp(1.9rem, 4.6vw, 3rem); text-wrap: balance; }
.lead-sm { max-width: 560px; font-size: 1.05rem; text-wrap: balance; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.item, .card { position: relative; padding: 24px; border-radius: 14px; border: 1px solid var(--border); border-top-color: var(--border-top); background: linear-gradient(to bottom, rgb(244 247 255 / .05), rgb(244 247 255 / .015)); overflow: hidden; }
.item::after, .card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgb(245 196 81 / .09), transparent 60%); pointer-events: none; }
.item h3 { margin: 16px 0 8px; font-size: 1.08rem; }
.item p { color: var(--muted); font-size: .95rem; }
.item-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: rgb(255 255 255 / .04); color: var(--foreground); }
.item-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.item-icon.gold { color: var(--brand); }
.item-icon.ember { color: var(--ember); }

/* Launch UI stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 0; max-width: 960px; margin-inline: auto; }
.stats dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stats dd { margin: 10px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.stats .big { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; background: linear-gradient(to right, var(--foreground), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 1px 24px rgb(255 217 120 / .45)); }
.stats .unit { color: var(--brand); font-weight: 600; font-size: 1.1rem; }
.stats p { color: var(--muted); font-size: .88rem; }

/* Token */
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.status-card { grid-column: 1 / -1; }
.ticks, .crosses, .status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.ticks li, .crosses li { position: relative; padding-left: 28px; }
.ticks li::before, .crosses li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; }
.ticks li::before { background: rgb(52 211 153 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2334d399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.crosses li::before { background: rgb(226 59 59 / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5m0-5l-5 5' fill='none' stroke='%23ff6b5e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.status-list li { display: flex; gap: 14px; align-items: baseline; }
.pill { flex: none; min-width: 92px; text-align: center; padding: 3px 10px; border-radius: 999px; font: 700 .7rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.pill-live { background: rgb(52 211 153 / .14); color: var(--green); }
.pill-next { background: rgb(245 196 81 / .14); color: var(--brand); }
.pill-no { background: rgb(255 255 255 / .06); color: var(--muted); }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; border: 1px solid var(--border); background: rgb(255 255 255 / .02); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); rotate: 45deg; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 225deg; margin-top: 10px; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Buy CTA */
.cta { overflow: hidden; }
.cta-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 16px; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.ca-box { width: 100%; margin-top: 12px; padding: 22px; border-radius: 16px; border: 1px solid rgb(245 196 81 / .35); background: rgb(11 18 48 / .75); display: grid; gap: 12px; justify-items: center; box-shadow: 0 20px 60px -20px rgb(0 0 0 / .7); }
.ca-box .ca-label { font-size: .72rem; }
.ca-box code { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(.85rem, 2.4vw, 1.05rem); }
.ca-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer */
.footer { position: relative; padding-top: 64px; overflow: hidden; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer h3 { font-size: .85rem; margin-bottom: 12px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.footer-grid a:not(.brand) { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-grid a:not(.brand):hover { color: var(--foreground); }
.footer-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .8rem; }
.wordmark { margin: 24px 0 -0.18em; text-align: center; font-weight: 800; font-size: clamp(5rem, 24vw, 22rem); line-height: .8; letter-spacing: -.06em; background: linear-gradient(to bottom, rgb(244 247 255 / .16), rgb(244 247 255 / 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* Motion start states: only while the motion scripts are on their way (boot.js adds .js) */
.js [data-appear], .js h1[data-words], .js [data-reveal] { opacity: 0; }

/* Narrow screens */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .items { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > div { border-bottom: 1px solid var(--border); }
  .stat-row > div:nth-child(2n) { border-right: 0; }
  .stat-flight { grid-column: 1 / -1; border-bottom: 0 !important; }
  .feed-list { grid-template-columns: 1fr; }
  .feed-list li:nth-child(n+7) { display: none; }
  .token-grid { grid-template-columns: 1fr; }
  .clock { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 112px; }
  .tile-3d { width: 104px; height: 104px; border-radius: 24px; }
  .items { grid-template-columns: 1fr; }
  .term-title { display: none; }
  .status-list li { flex-direction: column; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
}

/* Admin page */
.admin { display: grid; gap: 16px; }
.admin .brand { margin-bottom: 24px; }
.admin-title { font-size: clamp(2rem, 5vw, 2.8rem); }
.admin-ca { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.admin-form { display: grid; gap: 10px; }
.admin-form label { font-weight: 600; font-size: .9rem; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border); background: rgb(255 255 255 / .04); color: var(--foreground); font: inherit; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.msg { min-height: 1.5em; font-size: .9rem; }
.msg.ok { color: var(--green); }
.msg.err { color: #ff6b5e; }
.admin .ca-actions { justify-content: flex-start; }
