/* SplitWeb — splitweb.300people.com */

:root {
  --void: #07080f;
  --ground: #0a0c15;
  --panel: #121627;
  --panel-2: #0d1020;
  --line: #20263a;
  --line-soft: #171c2c;
  --ink: #edf0f8;
  --mute: #8b93ac;
  --dim: #767f9b;
  --blue: #3b7bff;
  --violet: #8b45ff;
  --amber: #f5a623;
  --up: #2ed47a;
  --down: #ff4d5e;

  --gap: 6px;
  --wrap: 1180px;
  --radius: 14px;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glow, echoing the app's own artwork */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58rem 42rem at -10% 22%, rgba(59, 123, 255, .16), transparent 70%),
    radial-gradient(52rem 40rem at 108% 34%, rgba(139, 69, 255, .16), transparent 70%);
}

main, .topbar, .foot { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2 { font-weight: 800; letter-spacing: -.025em; text-wrap: balance; margin: 0; }

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-stretch: 112%;
  line-height: 1.02;
}

h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  font-stretch: 112%;
  line-height: 1.06;
  font-weight: 700;
}

p { margin: 0; }

.lede { color: var(--mute); font-size: 1.1rem; line-height: 1.62; max-width: 48ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.eyebrow-amber::before { background: var(--amber); }

.meta { font-family: var(--mono); font-size: .75rem; color: var(--dim); letter-spacing: .01em; }

.skip {
  position: absolute;
  left: -9999px;
  top: .5rem;
  background: var(--ink);
  color: var(--void);
  padding: .5rem .9rem;
  border-radius: 8px;
  z-index: 99;
}
.skip:focus { left: .75rem; }

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 .96rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: #f3f6ff;
  color: #090b14;
  box-shadow: 0 10px 34px rgba(59, 123, 255, .22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(139, 69, 255, .3); }

.btn-sm {
  padding: .55rem 1rem;
  min-height: 38px;
  font-size: .84rem;
  border-color: var(--line);
  background: rgba(18, 22, 39, .7);
  color: var(--ink);
}
.btn-sm:hover { border-color: #3a4260; background: rgba(30, 36, 60, .8); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  align-self: flex-start;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.cta { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-note { margin: 0; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 8, 15, .72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.01em;
}
.brand img { border-radius: 7px; }

.topbar-end { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.topbar-end .meta { display: none; }
.wide-only { display: none; }

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

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; max-width: 40rem; min-width: 0; }

.hero-media { margin: 0; min-width: 0; }
.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .9);
}

.tryit h2 { margin: .8rem 0 clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }

.hero-board { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .85rem; }

.board-hint { display: flex; align-items: center; gap: .55rem; }

.grip {
  width: 20px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  flex: none;
}

/* ---------- interactive board ---------- */

.board {
  display: grid;
  grid-template-columns: var(--sx, 30%) var(--gap) 1fr;
  height: clamp(360px, 54vh, 560px);
  padding: var(--gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0c0f1c, #090b16);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.stack { display: grid; grid-template-rows: var(--sy, 58%) var(--gap) 1fr; min-height: 0; min-width: 0; }
.row { display: grid; grid-template-columns: var(--sr, 52%) var(--gap) 1fr; min-height: 0; min-width: 0; }

.pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-2);
}

.chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  flex: none;
}

.dots {
  width: 26px;
  height: 6px;
  flex: none;
  background:
    radial-gradient(circle 3px at 3px 3px, #38405c 98%, transparent),
    radial-gradient(circle 3px at 13px 3px, #38405c 98%, transparent),
    radial-gradient(circle 3px at 23px 3px, #38405c 98%, transparent);
}

.host {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--dim);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--up);
  white-space: nowrap;
}

.chrome-cropped { background: rgba(245, 166, 35, .08); border-bottom-color: rgba(245, 166, 35, .3); }

.crop-tag {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}

.pane-body { flex: 1; min-height: 0; overflow: hidden; padding: .55rem; }

/* splitters */

.split { position: relative; background: transparent; border: 0; padding: 0; }
.split::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 3px;
  background: var(--line);
  transition: background-color .15s ease;
}
.split-v { cursor: col-resize; touch-action: none; }
.split-v::after { width: 2px; height: 26px; }
.split-h { cursor: row-resize; touch-action: none; }
.split-h::after { height: 2px; width: 26px; }
.split:hover::after, .split:focus-visible::after, .split.dragging::after {
  background: linear-gradient(180deg, var(--blue), var(--violet));
}
.split:focus-visible { outline-offset: -2px; }

/* pane contents */

.feed-row { display: flex; gap: .5rem; align-items: center; padding: .34rem 0; }
.feed-thumb { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.feed-lines { flex: 1; display: grid; gap: 5px; min-width: 0; }
.bar { height: 6px; border-radius: 3px; background: #1c2237; }
.bar.dim { background: #161b2c; }

#chart { width: 100%; height: 100%; }

.msg { display: flex; gap: .45rem; align-items: flex-end; margin-bottom: .5rem; }
.msg-av { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.bubble { padding: .42rem .55rem; border-radius: 10px; background: #1a2036; display: grid; gap: 5px; min-width: 54px; }
.msg-me { flex-direction: row-reverse; }
.msg-me .bubble { background: linear-gradient(96deg, var(--blue), var(--violet)); }
.msg-me .bar { background: rgba(255, 255, 255, .5); }

.tick { display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .7rem; }
.tick-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.tick-price { font-family: var(--mono); font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tick-delta { font-family: var(--mono); font-size: .8rem; color: var(--down); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 44px; }

/* ---------- bands ---------- */

.band {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
}

/* ---------- crop ---------- */

.crop { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.crop-copy { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; min-width: 0; }
.crop-demo { min-width: 0; }
.crop-copy p:not(.eyebrow):not(.meta) { color: var(--mute); max-width: 46ch; }

.stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  transition: border-color .4s ease, box-shadow .4s ease, aspect-ratio .75s cubic-bezier(.6, .04, .2, 1);
}
.stage.is-cropped { border-color: rgba(245, 166, 35, .55); box-shadow: 0 0 0 1px rgba(245, 166, 35, .18), 0 30px 70px -30px rgba(245, 166, 35, .35); }

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3.2%;
  padding: 4%;
  container-type: inline-size;
  transform-origin: 0 0;
  transition: transform .75s cubic-bezier(.6, .04, .2, 1);
}

.blk { border-radius: 8px; background: #1b2237; border: 1px solid #272f49; }
.b1 { grid-column: 1 / -1; grid-row: 1; background: #232b44; }
.b2 { grid-column: 1 / 3; grid-row: 2 / 4; }
.b3 { grid-column: 3 / -1; grid-row: 2 / 4; background: linear-gradient(150deg, rgba(59,123,255,.55), rgba(139,69,255,.4)); border-color: rgba(110, 140, 235, .6); }
.b4 { grid-column: 1 / 2; grid-row: 4 / 6; }
.b5 { grid-column: 2 / 3; grid-row: 4 / 6; }
.b6 { grid-column: 3 / -1; grid-row: 4 / 6; background: linear-gradient(150deg, rgba(139,69,255,.5), rgba(59,123,255,.3)); border-color: rgba(140, 112, 235, .6); }
.b7 { grid-column: 1 / 3; grid-row: 6; }
.b8 { grid-column: 3 / -1; grid-row: 6; }

.mini-bars { display: flex; align-items: flex-end; gap: 6%; height: 100%; padding: 12%; }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #9fc0ff, #5b8cff); }
.mini-bars i:nth-child(1) { height: 26%; }
.mini-bars i:nth-child(2) { height: 40%; }
.mini-bars i:nth-child(3) { height: 34%; }
.mini-bars i:nth-child(4) { height: 58%; }
.mini-bars i:nth-child(5) { height: 72%; }
.mini-bars i:nth-child(6) { height: 64%; }
.mini-bars i:nth-child(7) { height: 92%; }

.b6 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; }
.mini-num {
  font-family: var(--mono);
  font-size: 3.4cqw;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
}
.mini-delta { font-family: var(--mono); font-size: 1.3cqw; color: #9be8bd; }

.marquee {
  grid-column: 3 / -1;
  grid-row: 2 / 6;
  position: relative;
  margin: -6px;
  border: 2px solid var(--amber);
  box-shadow: 0 0 24px rgba(245, 166, 35, .45), inset 0 0 40px rgba(245, 166, 35, .1);
  transition: opacity .35s ease;
  pointer-events: none;
}
.marquee i { position: absolute; width: 9px; height: 9px; background: var(--amber); }
.marquee i:nth-child(1) { left: -5px; top: -5px; }
.marquee i:nth-child(2) { right: -5px; top: -5px; }
.marquee i:nth-child(3) { left: -5px; bottom: -5px; }
.marquee i:nth-child(4) { right: -5px; bottom: -5px; }
.is-cropped .marquee { opacity: 0; }

/* ---------- shots ---------- */

.shots h2 { margin: .8rem 0 clamp(2rem, 4vw, 3rem); max-width: 22ch; }

.shot-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }

.shot { margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.shot figcaption { color: var(--mute); font-size: .95rem; line-height: 1.5; }

/* ---------- specs ---------- */

.spec-list { display: grid; gap: 1px; margin: clamp(2rem, 4vw, 2.6rem) 0 0; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.spec { background: var(--void); padding: 1.5rem .2rem; display: grid; gap: .5rem; }
.spec dt {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.spec dd { margin: 0; color: var(--mute); font-size: .98rem; line-height: 1.5; max-width: 34ch; }

/* ---------- limits ---------- */

.limits h2 { margin: .8rem 0 0; max-width: 20ch; }

.limit-list {
  list-style: none;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.limit-list li {
  background: var(--void);
  padding: 1.4rem 0;
  color: var(--mute);
  font-size: .98rem;
  line-height: 1.55;
  position: relative;
}
.limit-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: .25rem;
}

.note {
  font-size: .9rem;
  color: var(--dim);
  border-left: 2px solid rgba(245, 166, 35, .5);
  padding-left: .8rem;
  max-width: 44ch;
}

.more-link { font-size: .95rem; }
.more-link a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 123, 255, .35);
}
.more-link a:hover { color: #7aa5ff; border-bottom-color: #7aa5ff; }

/* ---------- read on ---------- */

.reading-list {
  list-style: none;
  margin: clamp(1.8rem, 3.5vw, 2.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.reading-list li { background: var(--void); padding: 1.5rem 0; display: grid; gap: .35rem; }
.reading-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.3;
}
.reading-list a::after { content: " →"; color: var(--dim); }
.reading-list a:hover { color: var(--blue); }
.reading-list span { color: var(--mute); font-size: .95rem; line-height: 1.5; }

/* ---------- closer ---------- */

.closer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.3rem; }
.closer img { border-radius: 20px; }
.closer h2 { max-width: 18ch; }
.closer .lede { max-width: 50ch; }

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

.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  justify-content: space-between;
  align-items: center;
}
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* a four-pane board is unreadable on a phone — drop the feed column */
@media (max-width: 759px) {
  .board { grid-template-columns: 1fr; height: clamp(320px, 62vh, 460px); }
  .pane-feed, #split-main { display: none; }
}

@media (min-width: 760px) {
  .topbar-end .meta { display: inline; }
  .wide-only { display: inline; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .shot:first-child { grid-column: 1 / -1; }
  .spec-list { grid-template-columns: repeat(2, 1fr); }
  .spec { padding: 1.6rem 1.5rem; }
  .spec:nth-child(odd) { padding-left: 0; }
}

@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 31rem) minmax(0, 1fr); align-items: center; }
  .crop { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .spec-list { grid-template-columns: repeat(4, 1fr); }
  .spec dd { max-width: none; }
  .spec:nth-child(odd) { padding-left: 1.5rem; }
  .spec:first-child { padding-left: 0; }
  .limit-list { grid-template-columns: repeat(3, 1fr); }
  .limit-list li { padding: 1.5rem 1.5rem 1.6rem; }
  .limit-list li:first-child { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
