/* Railway Bar landing — railway.com dark tokens, own layout */
:root {
  --bg: #13111c; --bg-1: #1c1a28; --bg-2: #211f2d; --bg-3: #2a2839;
  --border: #33323e; --border-2: #545260;
  --text: #f1f0f5; --text-2: #9e9cab; --text-3: #6c6b7b;
  --accent: #a667e4; --accent-strong: #853bce; --accent-soft: #bf93ec;
  --ready: #72c09c; --error: #d54b45; --error-soft: #e07a76; --warn: #e6be4c; --blue: #306ee8;
  --grad: linear-gradient(101deg, #523ae3 -10%, #f24fa7 110%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p a, dd a, .notice a, .term-note a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(191,147,236,.35); }
p a:hover, dd a:hover { text-decoration-color: var(--accent-soft); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .92em; }
.dim { color: var(--text-3); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 100; }

/* mark */
.mark { display: inline-block; width: 20px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M0 4a4 4 0 0 1 4-4h10.5c1.6 0 3.1.6 4.2 1.8l4 4A4 4 0 0 1 24 8.6V12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M0 4a4 4 0 0 1 4-4h10.5c1.6 0 3.1.6 4.2 1.8l4 4A4 4 0 0 1 24 8.6V12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mark-mono { background: #e8e8ee; width: 15px; height: 11px; }
.mark-white { background: #fff; width: 17px; height: 12px; }
.mark-inline { width: 15px; height: 11px; vertical-align: -1px; }
.mark-big { width: 48px; height: 34px; margin-bottom: 18px; }

/* topbar */
.topbar { position: sticky; top: 14px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(28,26,40,.85); border: 1px solid var(--border); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 10px 40px rgba(0,0,0,.35); font-size: 14px; }
.pill a { padding: 7px 12px; border-radius: 999px; color: var(--text-2); }
.pill a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pill .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-family: var(--display); }
.pill-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.pill-x { display: inline-flex; }
.pill .pill-cta { background: var(--text); color: #13111c; font-weight: 600; }
.pill .pill-cta:hover { background: #fff; color: #13111c; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(133,59,206,.35); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(133,59,206,.45); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-wide { width: 100%; justify-content: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cta-center { justify-content: center; }

/* hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(133,59,206,.35), transparent 70%),
    radial-gradient(40% 40% at 85% 60%, rgba(242,79,167,.10), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 20%, #000 40%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 20%, #000 40%, transparent 100%); }
.hero-inner { position: relative; text-align: center; max-width: 780px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(28,26,40,.7); font-size: 13px; color: var(--text-2); }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 3px rgba(114,192,156,.18); }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
.grad { background: linear-gradient(92deg, #bf93ec 0%, #f24fa7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: 18px; color: var(--text-2); margin: 24px auto 0; max-width: 640px; }
.tiny { margin: 14px 0 0; font-size: 13px; color: var(--text-3); font-family: var(--mono); }

/* notification stack */
.stack-wrap { position: relative; margin-top: 56px; max-width: 720px; }
.menubar-strip { display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 12px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #2b2836, #221f2c); border: 1px solid var(--border); border-bottom: none; font-size: 12px; color: #ddd; }
.ms-left { display: inline-flex; gap: 12px; align-items: center; } .ms-left b { font-weight: 600; }
.ms-apple { width: 12px; height: 12px; border-radius: 50% 50% 45% 45%; background: #ddd; }
.ms-right { display: inline-flex; gap: 12px; align-items: center; }
.ms-glyph { display: inline-flex; padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.14); }
.ms-ghost { width: 14px; height: 10px; border-radius: 3px; background: rgba(255,255,255,.28); } .ms-ghost.w { width: 24px; }
.ms-time { font-variant-numeric: tabular-nums; }
.stack { list-style: none; margin: 0; padding: 22px 18px 6px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, rgba(28,26,40,.6), rgba(19,17,28,.2)); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.note { width: min(100%, 380px); display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: rgba(44,42,58,.9); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 44px rgba(0,0,0,.45); font-size: 13px; opacity: 0; transform: translateX(28px); }
.stack.play .note { animation: slide .55s cubic-bezier(.2,.8,.2,1) forwards; }
.stack.play .n1 { animation-delay: .2s } .stack.play .n2 { animation-delay: .7s } .stack.play .n3 { animation-delay: 1.2s }
@keyframes slide { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .note { opacity: 1; transform: none; } }
.note-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(160deg, #853bce, #2c0a5c); border: 1px solid rgba(255,255,255,.12); }
.note-body { display: flex; flex-direction: column; gap: 2px; }
.note-title { font-weight: 600; color: #fff; }
.note-text { color: #c5c3d0; line-height: 1.4; }
.note-time { color: #8a8896; font-size: 11px; }
.stack-caption { text-align: center; font-size: 13px; color: var(--text-3); margin: 14px 0 0; }

/* notice */
.notice { display: flex; gap: 14px; align-items: flex-start; margin: 40px auto 0; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(166,103,228,.25); background: rgba(166,103,228,.06); font-size: 14px; color: var(--text-2); }
.notice p { margin: 0; } .notice strong { color: var(--text); }
.notice-i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(166,103,228,.5); color: var(--accent-soft); font: italic 600 12px var(--font); margin-top: 1px; }

/* sections */
.section { padding: 100px 0; }
.section-head { margin-bottom: 40px; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.05; }

/* bento */
.bento { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 16px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot { margin: 0; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-1); padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.shot-tall { grid-row: span 2; }
.shot:not(.shot-tall) img { max-height: 320px; object-fit: cover; object-position: top; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 20px 50px rgba(0,0,0,.45); display: block; }
.shot figcaption { font-size: 13px; color: var(--text-3); }
.fact { border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(133,59,206,.14), rgba(28,26,40,.6)); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.fact-n { font-family: var(--display); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(92deg, #fff, #bf93ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-l { font-size: 14px; color: var(--text-2); }

/* line of stops */
.section-line { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.line { list-style: none; margin: 0; padding: 0; position: relative; }
.line::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(166,103,228,.15)); border-radius: 2px; }
.stop { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 20px; padding: 0 0 36px; }
.stop:last-child { padding-bottom: 0; }
.stop-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--bg); margin-top: 2px; }
.stop-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); opacity: .5; }
.stop-accent .stop-dot::after { background: var(--error-soft); opacity: 1; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stop-end { background: var(--accent); } .stop-end::after { background: #fff !important; opacity: 1 !important; }
.stop-body { max-width: 680px; }
.stop h3 { font-size: 20px; margin-bottom: 6px; }
.stop p { margin: 0; color: var(--text-2); font-size: 15px; }
.stop p em { color: var(--accent-soft); font-style: italic; }
.kbd { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font-family: var(--font); }

/* terminal */
.term { border-radius: 16px; border: 1px solid var(--border); background: #0f0e16; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.term-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: var(--bg-1); border-bottom: 1px solid var(--border); }
.term-dots { display: inline-flex; gap: 6px; } .term-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.term-tabs { display: flex; gap: 4px; }
.term-tab { font: 500 13px var(--font); color: var(--text-3); background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.term-tab.is-on { color: var(--text); background: var(--bg-2); border-color: var(--border); }
.term-pane { padding: 22px; display: none; } .term-pane.is-on { display: block; }
.cmd { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 10px; background: #151321; border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; }
.cmd code { flex: 1; min-width: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; color: var(--text); }
.ps { color: var(--accent-soft); }
.copy { flex: none; font: 600 12px var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.copy.done { color: var(--ready); border-color: rgba(114,192,156,.5); }
.term-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); } .term-note strong { color: var(--text); }
.term-lead { margin-top: 0; }
.term-note + .cmd { margin-top: 14px; }
.after { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.after li { counter-increment: s; padding: 18px 18px 18px 52px; position: relative; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-1); font-size: 14px; color: var(--text-2); }
.after li b { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }
.after li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--accent-soft); border: 1px solid rgba(166,103,228,.4); background: rgba(166,103,228,.1); }

/* faq */
.qa { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qa > div { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-1); }
dt { font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
dd { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* final / footer */
.final { padding: 120px 0; text-align: center; background: radial-gradient(50% 60% at 50% 100%, rgba(133,59,206,.22), transparent 70%); }
.foot { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 13px; color: var(--text-2); }
.foot-inner p { margin: 0 0 8px; max-width: 760px; }
.foot a { color: var(--text); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; } .shot-tall { grid-row: auto; } .shot:not(.shot-tall) img { max-height: none; }
  .after { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pill a:not(.brand):not(.pill-cta):not(.pill-x) { display: none; } .pill-sep { display: none; }
  .hero { padding: 48px 0 32px; } .section { padding: 64px 0; }
  .facts { grid-template-columns: 1fr; }
  .note { width: 100%; }
  .stack { align-items: stretch; }
}
