/* Hourpad: a station departure board. Doto (dot matrix) for the board, Familjen Grotesk to read, Martian Mono for figures. */
:root { --bg: #0c0b0a; --ink: #f1ece3; --dim: #8c857a; --line: #25221e; --card: #131210; --led: #ff6a1a; --led2: #ffb37a; --up: #82e3a0; --dn: #ff7b6b; }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 'Familjen Grotesk', sans-serif; }
a { color: inherit; } button { font: inherit; cursor: pointer; }
.mono { font-family: 'Martian Mono', monospace; font-size: .86em; } .dim { color: var(--dim); } .up { color: var(--up); } .dn { color: var(--dn); }
.eyebrow { font: 500 11.5px 'Martian Mono'; letter-spacing: .12em; text-transform: uppercase; color: var(--led2); }

/* masthead: a floating pill */
.navwrap { position: sticky; top: 14px; z-index: 30; padding: 0 24px; }
.top { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 26px; padding: 10px 10px 10px 22px; border: 1px solid #2a2622; border-radius: 16px; background: rgba(17,15,13,.72); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.word { text-decoration: none; display: flex; align-items: baseline; gap: 2px; font: 900 26px/1 'Doto'; letter-spacing: .02em; }
.word .dot { color: var(--led); text-shadow: 0 0 14px rgba(255,106,26,.35); } .word .pad { color: var(--ink); }
.top nav { display: flex; gap: 4px; margin-left: 6px; }
.top nav a { text-decoration: none; color: #a9a196; font-weight: 500; font-size: 14.5px; padding: 7px 12px; border-radius: 9px; }
.top nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 11px 'Martian Mono'; color: #a9a196; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px rgba(130,227,160,.6); } .live i.off { background: #555; box-shadow: none; }
.go { border: 0; background: var(--led); color: #1a0700; font-weight: 700; padding: 10px 18px; border-radius: 10px; letter-spacing: .005em; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 20px rgba(255,106,26,.25); }
.go:hover { background: #ff7d36; } .go.big { padding: 14px 26px; font-size: 16.5px; border-radius: 12px; } .go.wide { width: 100%; margin-top: 18px; } .go:disabled { opacity: .45; cursor: not-allowed; }
.ghost { display: inline-block; padding: 13px 24px; border: 1px solid #34302b; border-radius: 12px; text-decoration: none; color: #e6dfd3; font-weight: 600; background: rgba(255,255,255,.02); }
.ghost:hover { border-color: #5a524a; }

/* hero: the clock at the centre, coins flowing in, one line out to pump.fun */
.hero { position: relative; text-align: center; padding: 26px 24px 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -60px 0 0; z-index: -1;
  background: radial-gradient(520px 300px at 50% 28%, rgba(255,106,26,.16), rgba(255,106,26,0) 70%), radial-gradient(900px 500px at 50% 10%, rgba(120,60,30,.12), transparent 70%),
    radial-gradient(circle, rgba(255,255,255,.085) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(1000px 640px at 50% 34%, #000 45%, transparent 100%); mask-image: radial-gradient(1000px 640px at 50% 34%, #000 45%, transparent 100%); }
.stage { position: relative; width: 1120px; height: 350px; margin: 0 auto; transform-origin: 50% 0; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; }
.clockimg { position: absolute; left: 50%; top: 18px; width: 350px; transform: translateX(-50%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(255,106,26,.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, -6px) } }
.node { position: absolute; width: 58px; height: 58px; border-radius: 16px; overflow: hidden; border: 1px solid #34302b; background: #151311; box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.node img { width: 100%; height: 100%; object-fit: cover; display: block; }
.node .tk { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); font: 500 10.5px 'Martian Mono'; color: #a9a196; white-space: nowrap; }
.node.lit { border-color: var(--led); box-shadow: 0 0 0 3px rgba(255,106,26,.18), 0 10px 30px rgba(0,0,0,.5); }
.node.wrap { overflow: visible; } .node.wrap img { border-radius: 15px; }
.node.out { width: auto; height: auto; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left; overflow: visible; }
.node.out b { display: block; font-weight: 700; font-size: 15px; } .node.out span { font: 500 11px 'Martian Mono'; color: var(--led2); white-space: nowrap; }
.pillic { width: 40px; height: 40px; border-radius: 12px; background: #0f0e0c; border: 1px solid #2a2622; display: grid; place-items: center; }
.pillic i { width: 26px; height: 11px; border-radius: 6px; transform: rotate(-35deg); background: linear-gradient(90deg, #5be38f 50%, #f4f1ea 50%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.node.out.fire { border-color: var(--led); box-shadow: 0 0 0 4px rgba(255,106,26,.2), 0 0 40px rgba(255,106,26,.35); }
.eyebrow.center { margin-top: 8px; }
.headline { font: 700 96px/.92 'Familjen Grotesk'; letter-spacing: -.055em; margin: 14px 0 0; }
.headline span { color: #6d665e; }
.sub { max-width: 660px; margin: 18px auto 0; font-size: 19px; line-height: 1.55; color: #c9c2b6; }
.cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.depart { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 10px 18px 10px 16px; border: 1px solid #2a2622; border-radius: 14px; background: rgba(15,14,12,.8); }
.depart .dep { font: 900 34px/1 'Doto'; color: var(--led); text-shadow: 0 0 16px rgba(255,106,26,.4); font-variant-numeric: tabular-nums; min-width: 128px; }
.depart .dep.soon { color: #ff3b2e; animation: pulse 1s steps(2) infinite; }
@keyframes pulse { 50% { opacity: .55 } }
.depart i { width: 1px; height: 22px; background: #2e2a25; }
.hero .lead { justify-content: center; margin: 18px auto 0; border: 0; min-height: 0; }
.lead { display: flex; gap: 12px; align-items: center; } .lead img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.lead .tk { font: 900 26px/1 'Doto'; color: var(--ink); }

/* the last departure */
.band { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.last { display: grid; grid-template-columns: 128px 1fr auto; gap: 26px; align-items: center; border: 1px solid #3a2414; border-radius: 10px; padding: 22px; background: linear-gradient(90deg, rgba(255,106,26,.09), rgba(255,106,26,0) 65%); }
.last img { width: 128px; height: 128px; border-radius: 8px; object-fit: cover; background: #222; }
.last h3 { font: 900 54px/1 'Doto'; margin: 8px 0 10px; }
.ca { font: 500 12px 'Martian Mono'; background: #0f0e0c; border: 1px solid var(--line); padding: 6px 10px; border-radius: 4px; cursor: pointer; word-break: break-all; }
.last .stats { text-align: right; } .last .stats b { display: block; font: 900 40px 'Doto'; }

/* sections */
.sec { max-width: 1300px; margin: 0 auto; padding: 76px 40px 10px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sh h2 { font: 900 56px/1 'Doto'; margin: 0; }
.note { margin: 14px 0 20px; font-size: 15px; }
.rows { display: grid; gap: 8px; }
.rw { display: grid; grid-template-columns: 54px 60px minmax(0, 1fr) 220px 110px; gap: 18px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.rw.first { border-color: #5a3014; background: linear-gradient(90deg, rgba(255,106,26,.08), var(--card) 60%); }
.flap { display: grid; place-items: center; height: 44px; background: #0a0908; border: 1px solid #2a2622; border-radius: 4px; font: 900 24px 'Doto'; color: var(--led); }
.rw img, .rw .ph { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; background: #221f1b; }
.rw .tk { font: 900 30px/1 'Doto'; } .rw .nm { color: #c6bfb2; font-size: 14.5px; } .rw .ds { color: var(--dim); font-size: 13.5px; }
.meter { display: grid; gap: 6px; } .meter .bar { height: 8px; background: #221f1b; border-radius: 2px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--led); transition: width .4s; } .meter span { font: 500 12px 'Martian Mono'; color: #b5ad9f; }
.vote { border: 1px solid #3a352e; background: none; color: var(--ink); padding: 10px 0; width: 100%; border-radius: 4px; font-weight: 700; }
.vote:hover { border-color: var(--led); } .vote.on { background: var(--led); border-color: var(--led); color: #1a0700; }
.hrw { grid-template-columns: 110px 60px minmax(0, 1fr) 150px 150px; }
.hrw .t { font: 900 26px 'Doto'; color: var(--led); }
.empty { border: 1px dashed #34302a; border-radius: 8px; padding: 40px; text-align: center; color: var(--dim); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.steps div { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--card); }
.steps b { font: 900 28px 'Doto'; color: var(--led); } .steps h3 { font: 900 34px/1 'Doto'; margin: 10px 0 12px; } .steps p { color: #c6bfb2; font-size: 15px; margin: 0; }
.facts { columns: 2; column-gap: 44px; margin: 36px 0 100px; } .facts p { break-inside: avoid; color: #c6bfb2; margin: 0 0 18px; font-size: 15.5px; } .facts b { color: var(--ink); }

/* the launch sheet */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: #11100e; border-left: 1px solid var(--line); z-index: 50; padding: 30px; overflow: auto; transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.on { transform: none; } .sheet h2 { font: 900 44px/1 'Doto'; margin: 10px 0 6px; }
.sheet .x { position: absolute; right: 18px; top: 16px; border: 0; background: none; color: var(--dim); font-size: 24px; }
.sheet label { display: block; font: 500 11px 'Martian Mono'; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px; }
.sheet input { width: 100%; padding: 12px 13px; background: #191714; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font: inherit; outline: none; }
.sheet input:focus { border-color: #6a3a1c; } .sheet #fPrev { display: none; width: 90px; height: 90px; border-radius: 6px; object-fit: cover; margin-top: 10px; }
.checks { margin-top: 20px; border-top: 1px dashed #2e2a25; padding-top: 12px; }
.ck { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; } .ck i { width: 16px; font-style: normal; text-align: center; color: var(--dim); } .ck i.ok { color: var(--up); } .ck i.no { color: var(--dn); }
.small { font-size: 13.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 90; padding: 12px 18px; background: #1b1916; border: 1px solid var(--line); border-left: 3px solid var(--led); border-radius: 4px; transition: .25s; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); } .toast.bad { border-left-color: var(--dn); }
@media (max-width: 960px) {
  .top { gap: 12px; } .top nav, .live { display: none; } .navwrap { padding: 0 12px; }
  .headline { font-size: 60px; } .sub { font-size: 16.5px; } .depart { flex-wrap: wrap; justify-content: center; }
  .band, .sec { padding-left: 18px; padding-right: 18px; } .last { grid-template-columns: 84px 1fr; } .last img { width: 84px; height: 84px; } .last .stats { grid-column: 1 / -1; text-align: left; }
  .rw { grid-template-columns: 44px 52px minmax(0, 1fr) 96px; } .rw .meter { display: none; } .hrw { grid-template-columns: 74px 52px minmax(0, 1fr) 100px; } .hrw .hm { display: none; }
  .steps { grid-template-columns: 1fr; } .facts { columns: 1; } .sh h2 { font-size: 40px; }
}
