/* A small local subset keeps the display typography consistent. */
@font-face {
  font-family: "Void Display";
  src: url("assets/headline-semibold.ttf") format("truetype");
  font-style: normal; font-weight: 600; font-display: swap;
}

/* VOIDL marketing site: layout mirrors levla.app (nav / split hero with tilted phones /
   quote cards / alternating feature sections / CTA), rendered in VOIDL's night palette. */

:root {
  --bg: #090909;          /* obsidian black */
  --bg-2: #141212;
  --ink: #f2efea;
  --ink-2: rgba(242, 239, 234, 0.62);
  --ink-3: rgba(242, 239, 234, 0.34);
  --accent: #db777b;       /* soft crimson for legible accents */
  --accent-deep: #8f2434;  /* deep crimson */
  --ember: #c95764;        /* the warmth of a coal, used only in whispers */
  --pool: #261217;
  --card: rgba(242, 239, 234, 0.035);
  --border: rgba(242, 239, 234, 0.08);
  --serif: "Iowan Old Style", "Palatino", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* deep pools and one warm coal, low: velvet and smoke, nothing literal */
.voidfield {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(44rem 40rem at 16% 6%,  rgba(143, 36, 52, 0.16), transparent 66%),
    radial-gradient(38rem 34rem at 86% 26%, rgba(143, 36, 52, 0.10), transparent 66%),
    radial-gradient(52rem 44rem at 38% 92%, rgba(143, 36, 52, 0.08), transparent 66%),
    radial-gradient(60rem 30rem at 55% 112%, rgba(201, 87, 100, 0.06), transparent 70%),
    var(--bg);
}
/* grain: the tooth of the fabric */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* --- nav ------------------------------------------------------------------ */
nav {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px 0;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 26px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark.small { font-size: 19px; color: var(--ink-2); }
nav .links { display: flex; gap: 28px; }
nav .links a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600;
}
nav .links a:hover { color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* --- hero ----------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px;
  align-items: start; min-height: min(78vh, 700px); padding: 64px 0 60px;
}
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em;
  color: var(--ink-3);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 30px;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: "Void Display", "Helvetica Neue", var(--sans);
  font-weight: 600;
  font-size: clamp(64px, 7.5vw, 104px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  margin: 0 0 36px;
}
.hero-title > span { display: block; white-space: nowrap; }
.hero-title > span + span { margin-top: .11em; }
/* Outdent only the title; supporting copy and controls retain their column. */
.hero h1 { transform: translateX(calc(-1 * clamp(8px, (100vw - 1180px) / 2 + 12px, 72px))); }
.hero .beta-note { font-size: 12px; letter-spacing: .02em; }
.hero .badge { border-radius: 5px; padding: 13px 20px; font-size: 14px; }
.hero .text-link { font-size: 13px; }
@media (min-width: 901px) {
  .hero-phones { margin-top: 44px; }
}
.hero .sub {
  font-size: 16px; line-height: 1.75; color: var(--ink-2);
  max-width: 27em; margin: 0 0 40px;
}

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badges.center { justify-content: center; }
.badge {
  display: flex; align-items: center; gap: 12px;
  border-radius: 12px; padding: 10px 18px;
  text-decoration: none; line-height: 1.15; font-size: 17px; font-weight: 600;
}
.badge small { font-size: 11px; font-weight: 500; opacity: 0.75; }
.badge-dark {
  background: #000; color: var(--ink); border: 1px solid rgba(242,239,234,0.28);
}
.badge-dark .badge-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--pool) 55%, transparent 56%),
              radial-gradient(circle, rgba(219,119,123,0.9), rgba(219,119,123,0) 70%);
  border: 1.5px solid var(--accent);
}
.badge-ghost {
  background: var(--card); color: var(--ink); border: 1px solid var(--border);
}
.badge:hover { transform: translateY(-1px); }

/* phones: two overlapping, tilted, like levla's hero */
.hero-phones { position: relative; height: 620px; }
.phone {
  border-radius: 42px; padding: 12px;
  background: #151414;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 80px rgba(143, 36, 52, 0.12);
  overflow: hidden;
}
.phone img { display: block; width: 100%; border-radius: 32px; }
.phone-front {
  position: absolute; width: 285px; left: 6%; top: 30px;
  transform: rotate(-4deg); z-index: 2;
}
.phone-back {
  position: absolute; width: 285px; right: 2%; top: 90px;
  transform: rotate(7deg); z-index: 1; opacity: 0.94;
}

/* Reserve real space for full-size screenshots inside the page gutters. */
@media (min-width: 901px) {
  .hero-copy { min-width: 0; }
  .hero-phones {
    width: 540px; max-width: 100%; justify-self: end;
    height: 680px; transform: none;
  }
  .hero-phones .phone-front {
    width: 285px; left: 0;
    transform: rotate(-2deg);
  }
  .hero-phones .phone-back {
    width: 285px; right: 0;
    transform: rotate(2deg);
  }
}
@media (min-width: 1201px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 540px; gap: 64px;
    /* Use spare desktop gutter space without moving the copy or leaving the viewport. */
    margin-right: calc(-1 * clamp(0px, (100vw - 1180px) / 2, 128px));
  }
  .hero-phones { margin-top: 44px; }
}
@media (min-width: 1201px) and (max-width: 1399px) {
  .hero h1 { font-size: 7vw; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { margin-top: 0; }
}

/* --- features ------------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; padding: 110px 0;
  border-top: 1px solid rgba(242,239,234,0.045);
}
.numeral {
  display: block;
  font-family: var(--serif);
  font-size: 15px; letter-spacing: 0.06em; color: var(--ember);
  margin-bottom: 14px; opacity: 0.85;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }
.feature h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.1vw, 38px); line-height: 1.14; margin: 0 0 24px;
}
.feature p { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin: 0; max-width: 30em; }
.powers-list .mono { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }

.feature-visual { display: flex; justify-content: center; }

/* §1: compact fan: three small phones overlapping, one pulse strip beneath */
.stagegroup { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stagefan { position: relative; width: 398px; height: 300px; }
.phone-mini { position: absolute; width: 130px; padding: 6px; border-radius: 24px; }
.phone-mini img { border-radius: 19px; }
.fan-1 { left: 0;    top: 10px; transform: rotate(-2deg); z-index: 1; }
.fan-2 { left: 134px; top: 4px;  transform: none;          z-index: 2; }
.fan-3 { left: 268px; top: 0;    transform: rotate(2deg);  z-index: 3; }
.fanplot { width: 398px; height: 30px; }
.fanplot line { stroke: rgba(242,239,234,0.14); stroke-width: 1; }
.fanplot rect { fill: var(--accent); opacity: 0.95; filter: drop-shadow(0 0 4px rgba(219,119,123,0.7)); }
.fanplot rect.dim { opacity: 0.45; filter: none; }

/* fog + power cards: pure-CSS visuals */
.fogcard, .powercard {
  position: relative; width: 100%; max-width: 420px; height: 340px;
  border-radius: 22px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
}
.fog-blob { position: absolute; border-radius: 50%; filter: blur(26px); }
.fog-blob.b1 { width: 240px; height: 200px; left: -40px; top: -30px; background: rgba(143, 36, 52, 0.26); }
.fog-blob.b2 { width: 300px; height: 240px; right: -60px; top: 90px; background: rgba(143, 36, 52, 0.16); }
.fog-blob.b3 { width: 180px; height: 160px; left: 90px; bottom: -50px; background: rgba(201, 87, 100, 0.06); }
.fog-label {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-3);
}
.powercard { display: grid; place-items: center; }
.powerring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(219,119,123,0.40);
  box-shadow: 0 0 60px rgba(143,36,52,0.30) inset, 0 0 44px rgba(143,36,52,0.18);
  position: relative;
}
.powerring::after {
  content: ""; position: absolute; left: 50%; top: -5px;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.powerdot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-deep);
}

/* --- CTA + footer --------------------------------------------------------- */
.cta {
  text-align: center; padding: 100px 0 110px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 34px; }

footer {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px 42px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.foot-links { color: var(--ink-3); font-size: 13.5px; }
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero h1 { font-size: clamp(56px, 10vw, 88px); }
  .hero-phones { height: 520px; margin-top: 10px; }
  .phone-front { left: 4%; width: 240px; }
  .phone-back { right: 4%; width: 240px; }
  .feature { grid-template-columns: 1fr; gap: 34px; padding: 60px 0; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
  nav .links { gap: 16px; }
}

/* A quiet closing line under the capacities list: the currency they are all spent from. */
.aside{
  margin-top:18px;
  font-size:14px;
  line-height:1.7;
  color:rgba(242,239,234,.42);
  font-style:italic;
  max-width:34ch;
}


/* § 4: the sigil row, shown as it appears in the app. */
.powers-intro{
  font-size:15px;
  color:rgba(242,239,234,.55);
  margin:0 0 18px;
  max-width:36ch;
}
.powers-list + .powers-list{ margin-top:16px; }
.powerbar{
  width:100%;
  max-width:460px;
  border-radius:14px;
  display:block;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  border:1px solid rgba(242,239,234,.08);
}


/* § 4: capacities as a list, each led by its own sigil. */
.caps{ list-style:none; padding:0; margin:0; }
.caps li{
  display:flex; align-items:flex-start; gap:12px;
  margin:0 0 11px; font-size:15px; line-height:1.55;
  color:rgba(242,239,234,.66);
}
.caps .sig{ width:19px; height:19px; flex:0 0 19px; margin-top:2px; color:rgba(219,119,123,.85); }
.feature .caps-claim{
  font-weight:600;
  color:#fff;
  font-size:15.5px;
  margin:22px 0 20px;
  max-width:38ch;
}


/* ---------------------------------------------------------------------------------------------
   Narrow screens. The 900px breakpoint stacked the layout but left several fixed widths that
   are wider than a phone, so the page could still be dragged sideways: two 240px phones inside
   a 32px-padded main on a 360px screen, the 460px power bar, and the mono capacity lines.
   --------------------------------------------------------------------------------------------- */
@media (max-width: 560px) {
  main { padding: 0 18px; }
  nav { padding: 18px 18px 0; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); margin-bottom: 28px; }
  .hero .sub, .powers-list, .caps li { font-size: 14.5px; }

  /* Phones: percentage widths so two of them always fit, whatever the screen. */
  .hero-phones { height: auto; min-height: 400px; }
  .phone-front { left: 0; width: 46%; }
  .phone-back { right: 0; width: 46%; }

  .powerbar { max-width: 100%; }
  .caps li { gap: 10px; }
  .caps-claim, .aside, .powers-intro { max-width: none; }

  /* Badges wrap instead of forcing a wide row. */
  .store-badges { flex-wrap: wrap; gap: 10px; }
  .badge { padding: 9px 14px; }
}

/* Nothing on the page may exceed the viewport, whatever it is. */
img, svg, .powerbar { max-width: 100%; height: auto; }

/* Beta access and public standings, using the same quiet page rhythm. */
.beta-note { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.hero .sub { margin-bottom: 22px; }
.store-badges { align-items: center; }
.text-link { color: var(--ink-2); font-size: 14px; text-underline-offset: 5px; padding: 10px 0; }
.cta h2 { margin-bottom: 16px; }
.cta .beta-note { margin-bottom: 28px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.leaderboards { padding: 90px 0; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.leaderboards h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.1vw, 38px); margin: 0 0 16px; }
.section-intro { color: var(--ink-2); font-size: 16px; line-height: 1.8; margin: 0 0 40px; }
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.board { min-width: 0; }
.board h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 8px; }
.board-description, .board-status { color: var(--ink-2); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }
.board-status:empty { display: none; }
.board-rows { list-style: none; padding: 0; margin: 0; min-height: 220px; }
.board-rows:empty { min-height: 0; }
.board-rows li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 13px; }
.board-rank { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.board-rows a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.board-rows a:hover, .text-link:hover { color: var(--accent); }
.board-value { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
@media (max-width: 900px) {
  .boards { grid-template-columns: 1fr; gap: 36px; }
  .board-rows { min-height: 0; }
  .leaderboards { padding: 60px 0; }
}
@media (max-width: 560px) {
  nav .links { gap: 13px; }
  nav .links a { font-size: 12px; }
  .stagefan { width: min(398px, calc(100vw - 48px)); height: min(300px, 68vw); }
  .phone-mini { width: 32.5%; }
  .fan-2 { left: 33.7%; }
  .fan-3 { left: 67.3%; }
  .fanplot { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Orbital background experiment: decorative, no input interception. */
body { isolation: isolate; }
.voidfield { pointer-events: none; }
#void-motion { display: block; width: 100%; height: 100%; }
#background-toggle {
  font: inherit; color: var(--ink-2); background: none;
  border: 0; padding: 8px 12px 8px 0; cursor: pointer;
}
#background-toggle:hover { color: var(--accent); }
#background-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#background-toggle[hidden] { display: none; }

/* Show the real current control panel using the same unaltered simulator capture. */
.powerbar-current { position: relative; aspect-ratio: 3 / 1; overflow: hidden; }
.powerbar-current img { display: block; width: 100%; max-width: none; transform: translateY(-78%); }
