:root {
  --ink: #050607;
  --signal: #0b0d0f;
  --panel: #101419;
  --panel-2: #151a20;
  --amber: #ffb000;
  --yellow: #ffe100;
  --cream: #f6f1dd;
  --muted: #98a1aa;
  --glass: #d8f3ff;
  --stroke: rgba(216, 243, 255, 0.16);
  --line-blue: #0098d4;
  --line-red: #e32017;
  --line-green: #00782a;
  --font-display: "London Underground", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Arial, sans-serif;
}

@font-face {
  font-family: "London Underground";
  src: url("assets/fonts/london-underground-regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "London Underground";
  src: url("assets/fonts/london-underground-medium.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "London Underground";
  src: url("assets/fonts/london-underground-bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "London Underground";
  src: url("assets/fonts/london-underground-heavy.ttf") format("truetype");
  font-display: swap;
  font-weight: 800 900;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 176, 0, 0.16), transparent 26rem),
    radial-gradient(circle at 10% 24%, rgba(0, 152, 212, 0.12), transparent 28rem),
    linear-gradient(180deg, #07090b 0%, var(--ink) 48%, #020303 100%);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 243, 255, 0.026) 1px, transparent 1px);
  background-size: 100% 54px, 92px 100%;
  mask-image: linear-gradient(180deg, black 0%, transparent 86%);
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(5, 6, 7, 0.78);
  border-bottom: 1px solid rgba(216, 243, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #080b0f url("assets/tubeboard-icon-180.png") center / cover no-repeat;
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 32px rgba(0, 0, 0, 0.35);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: #d8dde2;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 720;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255, 225, 0, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--yellow), var(--amber));
  color: #050607;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 860;
  box-shadow: 0 18px 42px rgba(255, 176, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(255, 176, 0, 0.26);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--glass);
  outline-offset: 4px;
}

.button-ghost {
  background: rgba(216, 243, 255, 0.08);
  color: var(--cream);
  border-color: var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button-disabled {
  cursor: default;
}

.button-disabled:hover {
  transform: none;
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 14px;
}

.hero {
  min-height: min(820px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  padding: clamp(56px, 7vw, 104px) clamp(20px, 5vw, 72px) 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 7.8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #cdd4da;
  font-size: clamp(19px, 2vw, 27px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 18px;
}

.note {
  max-width: 700px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  min-height: 680px;
  overflow: hidden;
  contain: paint;
}

.phone {
  position: relative;
  width: min(410px, 82vw);
  max-width: 100%;
  margin: 0;
  padding: 9px;
  line-height: 0;
  border-radius: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025)),
    #151515;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 42px 120px rgba(0, 0, 0, 0.58),
    0 0 92px rgba(255, 150, 37, 0.13);
  overflow: hidden;
  contain: paint;
}

.phone img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1179 / 2556;
  border-radius: 40px;
  background: #000;
}

.phone-hero {
  width: min(392px, 82vw);
}

.board-demo,
.features,
.faq {
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(216, 243, 255, 0.1);
}

.board-demo {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.phone-small {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  border-radius: 34px;
  padding: 6px;
}

.phone-small img {
  border-radius: 28px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

article {
  min-height: 310px;
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(216, 243, 255, 0.08), rgba(216, 243, 255, 0.025));
  border: 1px solid var(--stroke);
}

article p,
details p {
  color: #c8d0d7;
}

.feature-index {
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.faq h2 {
  margin-bottom: 24px;
}

.legal-page {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.legal-page h1 {
  max-width: 900px;
  font-size: clamp(46px, 7vw, 86px);
}

.legal-copy {
  max-width: 940px;
  margin-top: 44px;
}

.legal-copy h2 {
  margin-top: 34px;
  font-size: clamp(28px, 4vw, 44px);
}

.legal-copy p {
  color: #c8d0d7;
  font-size: 18px;
}

details {
  max-width: 980px;
  margin: 12px 0;
  padding: 20px 24px;
  border-radius: 8px;
  background: rgba(16, 20, 25, 0.86);
  border: 1px solid rgba(216, 243, 255, 0.12);
}

summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 840;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(216, 243, 255, 0.1);
}

footer a {
  color: #d8dde2;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero,
  .board-demo {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: auto;
  }

  .phone {
    width: min(360px, 100%);
  }

  .app-screens {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
  }

  .phone-small {
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .lead {
    font-size: 20px;
  }

  .cta-row {
    margin-top: 28px;
  }

  .note {
    margin-bottom: 12px;
  }

  .hero-visual {
    margin-top: 12px;
  }

  .phone {
    width: min(330px, 100%);
  }

  .app-screens {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .phone-small {
    max-width: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
