/* GobyStation — gobystation.com
   The palette is the app's Abyss theme (Sources/GobyStation/Design/Theme.swift),
   the type is rounded like the app's, and the page descends from the sunlit
   surface to the abyss as you scroll, the way the app darkens on deeper decks. */

:root {
  --abyss: #03101B;
  --deep: #07202F;
  --midwater: #0A3B4E;
  --shallow: #0E5C6B;
  --surface: #14808A;

  --cyan: #3FE0D0;
  --biolum: #7CF5FF;
  --goby: #FFB454;
  --goby-deep: #F2843C;
  --coral: #FF6B7A;
  --kelp: #5AD68A;
  --anemone: #B98CFF;
  --sand: #E8D9B5;

  --ink: #EAF7FA;
  --ink-dim: rgba(234, 247, 250, .68);
  --ink-faint: rgba(234, 247, 250, .42);

  --hairline: rgba(255, 255, 255, .09);
  --rim: rgba(124, 245, 255, .22);
  --glass: rgba(3, 16, 27, .52);
  --panel: rgba(8, 24, 36, .82);

  --radius: 18px;
  --container: 1160px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--abyss);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #116c79 0%, #0c4a5c 12%, #0A3B4E 26%, #07202F 52%, #041521 78%, #03101B 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Sunlight punching through the surface, strongest at the top. */
body::before {
  content: "";
  position: absolute;
  inset: -30vh 0 auto 0;
  height: 110vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(124, 245, 255, .30), rgba(20, 128, 138, .14) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

#ocean {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; color: var(--biolum); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--cyan); color: #03101B; font-weight: 800;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--biolum); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- labels */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.eyebrow.amber::before { background: var(--goby); box-shadow: 0 0 10px var(--goby); }

.grad {
  background: linear-gradient(92deg, #9FF8FF 0%, var(--cyan) 55%, #8EE7A8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.sub { color: var(--ink-dim); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.sub.small { font-size: 15px; }
.sub strong { color: var(--ink); font-weight: 700; }
.tiny { font-size: 13.5px; color: var(--ink-faint); line-height: 1.6; }
.tiny strong { color: var(--ink-dim); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 16, 27, .42);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 22.37%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand-icon.small { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand-text small { font-size: 10.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: .02em; margin-top: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--ink-dim);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 12px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 800; color: var(--ink);
  background: rgba(124, 245, 255, .07); border: 1px solid var(--rim);
  white-space: nowrap; transition: background-color .2s, border-color .2s;
}
.nav-cta:hover { background: rgba(124, 245, 255, .14); border-color: rgba(124, 245, 255, .45); }
.cta-short { display: none; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--goby); box-shadow: 0 0 0 0 rgba(255, 180, 84, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 180, 84, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); } }

/* ---------------------------------------------------------------- hero */

.hero { padding: clamp(40px, 6.5vw, 76px) 0 40px; }
.hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(48px, 8.6vw, 98px); font-weight: 900; letter-spacing: -.04em; line-height: .96;
  margin: 18px 0 22px;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.62; color: var(--ink-dim); font-weight: 500; max-width: 680px; margin-inline: auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.hero-meta { margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--ink-faint); letter-spacing: .01em; }

.appstore {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 20px 8px 15px; border-radius: 14px;
  background: #0a0e13; color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  text-decoration: none; cursor: default;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, transform .2s var(--ease);
}
.appstore:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-1px); }
.appstore svg { width: 27px; height: 27px; fill: #fff; flex: none; }
.appstore-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .l1 { font-size: 11px; font-weight: 600; letter-spacing: .01em; opacity: .85; }
.appstore .l2 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin-top: 2px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 58px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--rim); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px;
  background: rgba(124, 245, 255, .06);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-ghost:hover { background: rgba(124, 245, 255, .13); border-color: rgba(124, 245, 255, .5); transform: translateY(-1px); }

.hero-visual {
  position: relative; margin: clamp(36px, 4.5vw, 56px) auto 0; max-width: 1080px;
  perspective: 1800px;
}
.hero-visual::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -50px; height: 180px; z-index: -1;
  background: radial-gradient(closest-side, rgba(63, 224, 208, .38), transparent);
  filter: blur(34px);
}
.hero-window { transform: rotateX(var(--tilt, 8deg)); transform-origin: 50% 0; will-change: transform; }

.window {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: #0b1a24; border: 1px solid rgba(124, 245, 255, .16);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .45), 0 0 140px -40px rgba(63, 224, 208, .35);
}
.window-bar {
  height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: linear-gradient(#11262f, #0b1a24); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.window-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.window-bar i:nth-child(2) { background: #FEBC2E; }
.window-bar i:nth-child(3) { background: #28C840; }
.window img { display: block; width: 100%; height: auto; }
.window figcaption, .done-figure figcaption {
  padding: 14px 18px; font-size: 14px; color: var(--ink-dim); border-top: 1px solid var(--hairline);
  background: rgba(3, 16, 27, .45);
}
.window.wide { margin-top: 28px; }

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(6, 26, 38, .86); border: 1px solid var(--rim);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em;
  animation: bob 7s ease-in-out infinite;
}
.chip small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-faint); margin-top: 3px; }
.chip-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.chip-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip-ic.kelp { color: var(--kelp); background: rgba(90, 214, 138, .14); box-shadow: inset 0 0 0 1px rgba(90, 214, 138, .3); }
.chip-ic.cyan { color: var(--cyan); background: rgba(63, 224, 208, .14); box-shadow: inset 0 0 0 1px rgba(63, 224, 208, .3); }
.chip-ic.amber { color: var(--goby); background: rgba(255, 180, 84, .14); box-shadow: inset 0 0 0 1px rgba(255, 180, 84, .3); }
.chip-1 { top: 9%; right: -3%; animation-delay: -1s; }
.chip-2 { bottom: 13%; left: -3.5%; animation-delay: -3.5s; }
.chip-3 { top: 52%; right: -4.5%; animation-delay: -5.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------------------------------------------------------------- stats */

.stats-wrap { padding: clamp(56px, 8vw, 96px) 0 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--glass); padding: 28px 28px 26px; }
.stat b { display: block; font-size: clamp(36px, 3.6vw, 46px); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .5em; vertical-align: top; color: var(--cyan); margin-left: 2px; }
.stat span { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-dim); line-height: 1.4; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(72px, 10vw, 140px) 0 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .split-copy h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 18px; }
.section-head .sub { max-width: 640px; }
h2.quote { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; max-width: 900px; }

.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 255, .38), transparent);
}
.card:hover { transform: translateY(-3px); border-color: var(--rim); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(63, 224, 208, .35); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px 26px 28px; }
.feature h3 { display: flex; flex-direction: column; gap: 3px; font-size: 19px; margin: 18px 0 10px; }
.feature h3 small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.feature p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.ficon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: var(--accent, var(--cyan)); background: color-mix(in srgb, var(--accent, var(--cyan)) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--cyan)) 28%, transparent);
}
.ficon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* split layouts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-copy h2 { max-width: 520px; }
.split-copy .sub + .sub { margin-top: 14px; }
.split-visual { margin: 0; }

.risk-list { display: grid; gap: 12px; margin-top: 26px; }
.risk-list li { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-dim); }
.risk { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; flex: none; min-width: 84px; justify-content: center; }
.risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.risk-safe { color: #9BE86B; background: rgba(90, 214, 138, .13); box-shadow: inset 0 0 0 1px rgba(90, 214, 138, .35); }
.risk-review { color: var(--goby); background: rgba(255, 180, 84, .13); box-shadow: inset 0 0 0 1px rgba(255, 180, 84, .35); }
.risk-caution { color: var(--coral); background: rgba(255, 107, 122, .13); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .35); }

.decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.deck { padding: 22px 24px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--hairline); }
.deck h3 { font-size: 17px; display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.deck h3 small { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.deck ul { display: grid; gap: 7px; }
.deck li { position: relative; padding-left: 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-dim); line-height: 1.4; }
.deck li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--kelp); box-shadow: 0 0 6px var(--kelp); }
.deck li[data-risk="review"]::before { background: var(--goby); box-shadow: 0 0 6px var(--goby); }
.deck li[data-risk="caution"]::before { background: var(--coral); box-shadow: 0 0 6px var(--coral); }
.deck li em { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ink-faint); }

.toolchains { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--hairline); }
.toolchains h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; margin: 12px 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-dim);
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, .035);
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--rim); color: var(--ink); }
.tags.locked .tag { padding-left: 30px; position: relative; }
.tags.locked .tag::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 11px; transform: translateY(-50%);
  border: 1.6px solid var(--coral); border-radius: 2px 2px 3px 3px; box-sizing: border-box;
  background: linear-gradient(transparent 45%, var(--coral) 45%);
}
.tags.locked .tag.soft::before { border-color: var(--goby); background: linear-gradient(transparent 45%, var(--goby) 45%); }

/* safety */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { padding: 28px 28px 30px; }
.rule-n { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--cyan); letter-spacing: .1em; }
.rule h3 { font-size: 21px; margin: 14px 0 12px; letter-spacing: -.02em; }
.rule p { color: var(--ink-dim); font-size: 15px; line-height: 1.62; }
.safety-split { margin-top: clamp(40px, 5vw, 64px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.safety-split .tags { margin: 18px 0 28px; }
.refusals { display: grid; gap: 18px; }
.refusals h4 { font-size: 17px; margin-bottom: 6px; }
.refusals p { color: var(--ink-dim); font-size: 15px; }
.done-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rim); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); background: #071e2b; }
.done-figure img { display: block; width: 100%; }

/* ---------------------------------------------------------------- app elements */

.elements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel {
  border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.plabel { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.plabel::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pmeta { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-caption { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.55; }

/* treemap */
.treemap { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.cell {
  position: absolute; overflow: hidden; border-radius: 5px;
  padding: 7px 8px; color: #03101B; font-size: 12px; font-weight: 800; line-height: 1.15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  background: var(--c);
  transition: filter .2s;
}
.cell:hover { filter: brightness(1.08); }
.cell small { display: block; font-size: 10.5px; font-weight: 700; opacity: .72; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cell.tiny { padding: 0; }
.cell.tiny * { display: none; }
.noscript { padding: 20px; font-size: 14px; color: var(--ink-faint); }
.composition .bar { margin-bottom: 10px; }
.bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar.one i { background: var(--coral); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-dim); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend li i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend li i.free { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend.small { font-size: 12px; }

/* applications */
.app-list { display: grid; gap: 6px; }
.app { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.app-ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-style: normal; font-weight: 900; font-size: 13px; color: #fff;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 100%, white 18%), var(--c));
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.app-name { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 800; min-width: 0; }
.app-name small { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.app b { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.idle { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--goby); background: rgba(255, 180, 84, .14); box-shadow: inset 0 0 0 1px rgba(255, 180, 84, .3); }
.app-detail { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--hairline); font-size: 14px; }
.app-detail small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.mini-btn { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; border: 1px solid var(--rim); background: rgba(124, 245, 255, .06); }
.mini-btn.danger { color: var(--coral); border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .1); }

/* startup items */
.group-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; }
.group-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-faint); font-size: 12.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.kelp { background: var(--kelp); box-shadow: 0 0 8px var(--kelp); }
.dot.amber { background: var(--goby); box-shadow: 0 0 8px var(--goby); }
.job-list { display: grid; gap: 6px; }
.job { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.job-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; min-width: 0; flex: 1; }
.job-name small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.badge.kelp { color: #9BE86B; background: rgba(90, 214, 138, .14); }
.badge.amber { color: var(--goby); background: rgba(255, 180, 84, .14); }
.badge.anemone { color: var(--anemone); background: rgba(185, 140, 255, .16); }
.toggle { position: relative; width: 36px; height: 21px; border-radius: 999px; background: rgba(255, 255, 255, .14); flex: none; transition: background-color .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.toggle.on { background: var(--kelp); }
.toggle.on::after { transform: translateX(15px); }

/* processes */
.meters { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.meter { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); position: relative; }
.meter-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.meter-head b { font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; }
.meter-head b small { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0; }
.meter-head em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.meter .legend { margin-top: 10px; }
.bar-label { position: absolute; right: 14px; top: 12px; font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.proc { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.proc th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 10px; border-bottom: 1px solid var(--hairline); }
.proc td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: middle; }
.proc td small { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-faint); }
.proc th:not(:first-child), .proc td:not(:first-child) { text-align: right; white-space: nowrap; }
.proc tbody tr:first-child td { color: var(--cyan); }
.cpu { display: inline-block; width: 56px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-right: 8px; vertical-align: middle; position: relative; overflow: hidden; }
.cpu::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--cyan); border-radius: 999px; }

/* ---------------------------------------------------------------- design */

.design-split { align-items: start; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.motion { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--hairline); }
.motion .sub { margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 16px; }
.tile { position: relative; padding: 16px 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hairline); overflow: hidden; }
.tile b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile b small { font-size: .5em; color: var(--cyan); margin-left: 1px; }
.tile span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); line-height: 1.35; }
.tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.tile-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.themes-head { margin-top: clamp(44px, 6vw, 72px); max-width: 720px; }
.themes-head .sub { margin-top: 12px; }
.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.theme { border-radius: 14px; overflow: hidden; background: var(--glass); border: 1px solid var(--hairline); transition: transform .3s var(--ease), border-color .3s; }
.theme:hover { transform: translateY(-3px); border-color: var(--rim); }
.theme-water { position: relative; height: 92px; background: linear-gradient(180deg, var(--t-surface), var(--t-mid) 48%, var(--t-abyss)); }
.theme-water::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% -10%, rgba(255, 255, 255, .28), transparent 70%); }
.theme-dots { position: absolute; left: 12px; bottom: 11px; display: flex; gap: 6px; z-index: 1; }
.theme-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.theme h3 { font-size: 15px; padding: 12px 14px 0; }
.theme p { padding: 4px 14px 14px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.45; }

/* ---------------------------------------------------------------- trust */

.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.twin-card { padding: clamp(24px, 3vw, 36px); }
.twin-card h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; margin: 14px 0 12px; }
.twin-card > p { color: var(--ink-dim); font-size: 15.5px; }
.checks { display: grid; gap: 12px; margin: 20px 0 14px; }
.checks li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: rgba(90, 214, 138, .15); box-shadow: inset 0 0 0 1px rgba(90, 214, 138, .45); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3.5px; border-left: 2px solid #9BE86B; border-bottom: 2px solid #9BE86B; transform: rotate(-45deg); }
.checks b { color: var(--ink); }
.sheet-figure { margin: 20px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.sheet-figure img { display: block; width: 100%; }

/* ---------------------------------------------------------------- get */

.get { padding-bottom: clamp(72px, 10vw, 140px); }
.get-inner { text-align: center; max-width: 760px; }
.get h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.035em; margin: 14px 0 14px; }
.mascot {
  width: clamp(160px, 22vw, 230px); height: auto; margin: 0 auto 18px; display: block;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(63, 224, 208, .25));
  animation: swim 6.5s ease-in-out infinite;
}
@keyframes swim { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--hairline); background: rgba(3, 16, 27, .6); padding: 40px 0 48px; }
.footer-inner { display: grid; gap: 14px; max-width: 720px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.footer p { font-size: 14px; color: var(--ink-dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; font-weight: 700; }
.footer-links a { color: var(--ink-dim); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { font-size: 12.5px; color: var(--ink-faint) !important; margin-top: 8px; }

/* ---------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .mascot, .pulse { animation: none; }
  .hero-window { transform: none !important; }
  .card, .theme, .appstore, .btn-ghost { transition: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .themes { grid-template-columns: repeat(3, 1fr); }
  .chip-1 { right: 0; } .chip-2 { left: 0; } .chip-3 { right: 0; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .features, .rules, .decks { grid-template-columns: repeat(2, 1fr); }
  .split, .safety-split, .design-split, .twin, .elements { grid-template-columns: 1fr; }
  .split-copy h2 { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { perspective: none; }
  .hero-window { transform: none !important; }
  .chip { position: static; animation: none; }
  .hero-visual .chip { margin-top: 12px; }
  .hero-visual { display: grid; gap: 0; }
  .chip-1 { margin-top: 18px !important; }
  .chip-2 { margin-top: 10px !important; }
  .chip-3 { margin-top: 10px !important; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .nav-inner { height: 60px; gap: 12px; }
  .brand-text small { display: none; }
  .nav-cta { margin-left: auto; font-size: 12px; padding: 8px 11px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-inner { gap: 10px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .features, .rules, .decks, .stats, .themes, .tiles { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .appstore, .btn-ghost { justify-content: center; }
  .proc th:nth-child(2), .proc td:nth-child(2) { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile b { font-size: 26px; }
  .tile span { font-size: 11.5px; }
}

/* ---------------------------------------------------------------- 404 */

.notfound { min-height: 82vh; display: grid; place-items: center; padding: 60px 0; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.035em; margin: 14px 0 14px; }
.notfound .sub { max-width: 520px; margin-inline: auto; }
.notfound .cta-row { margin-top: 26px; }
