:root {
  --bg: #080808;
  --bg-raised: #111111;
  --bg-panel: #161616;
  --text: #f0eeee;
  --muted: #928f8d;
  --faint: #5f5b59;
  --line: #272323;
  --red: #e52329;
  --red-dark: #981b1f;
  --bone: #d9d3ca;
  --steel: #8e9990;
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --radius: 8px;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(229, 35, 41, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(229, 35, 41, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(229, 35, 41, 0.08) 0, transparent 28%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  transition: padding 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img,
.site-footer img {
  width: 34px;
  height: 34px;
}

.brand span,
.site-footer span {
  font-family: var(--heading);
  font-size: 1.45rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 38px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-cta {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.header-cta:hover {
  border-color: var(--red);
  background: rgba(229, 35, 41, 0.12);
}

.section-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  padding: clamp(52px, 7vw, 96px) 0 clamp(42px, 6vw, 76px);
  gap: clamp(40px, 7vw, 88px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 0.95;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 9vw, 7.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.hero-lede,
.split-copy > p,
.records-copy > p,
.feature-panel p,
.access-card p {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.mobile-product-peek {
  display: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: #fff6f4;
}

.button-primary:hover {
  background: #f02b31;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--red);
  background: rgba(229, 35, 41, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.hero-stats dt {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-device {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.phone-frame {
  overflow: hidden;
  border: 1px solid #2d2724;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 32px 70px var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-primary {
  position: relative;
  z-index: 2;
  width: min(55vw, 340px);
}

.phone-secondary {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 1;
  width: min(40vw, 245px);
  opacity: 0.78;
  transform: rotate(4deg);
}

.system-strip {
  position: absolute;
  left: 0;
  bottom: 82px;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(48vw, 280px);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.system-strip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.system-strip strong {
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.74);
}

.proof-item {
  padding: clamp(24px, 4vw, 42px);
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item span {
  color: var(--red);
  font-family: var(--mono);
  font-weight: 700;
}

.proof-item strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--heading);
  font-size: 2rem;
  line-height: 1;
}

.proof-item p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
  padding: clamp(86px, 11vw, 132px) 0 0;
}

.about-copy {
  border-top: 1px solid var(--red-dark);
  padding-top: 22px;
}

.about-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.about-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.about-loop span {
  display: grid;
  min-height: 74px;
  place-items: center;
  background: rgba(20, 20, 20, 0.92);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 18px;
  padding: clamp(86px, 12vw, 142px) 0;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 820px;
  margin-bottom: 20px;
}

.feature-panel,
.shot-card,
.record-tile,
.access-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.88);
}

.feature-panel-large {
  display: grid;
  align-content: space-between;
  min-height: 460px;
  padding: clamp(28px, 5vw, 52px);
}

.tick-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--bone);
  font-weight: 700;
}

.shot-card {
  overflow: hidden;
  align-self: stretch;
  padding: 16px;
}

.shot-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(350px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
  padding: 0 0 clamp(86px, 12vw, 142px);
}

.stacked-shots {
  position: relative;
  min-height: 620px;
}

.stacked-shots .phone-frame {
  width: min(66vw, 330px);
}

.phone-offset {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: min(52vw, 265px) !important;
}

.mini-matrix {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mini-matrix div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mini-matrix span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-matrix strong {
  color: var(--bone);
}

.records-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
  padding-bottom: clamp(86px, 12vw, 142px);
}

.records-copy {
  position: sticky;
  top: 110px;
}

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

.record-tile {
  min-height: 190px;
  padding: 22px;
}

.record-tile span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.record-tile strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1;
}

.record-tile p {
  margin: 0;
  color: var(--muted);
}

.image-tile {
  overflow: hidden;
  padding: 0;
}

.image-tile img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
}

.metric-tile {
  background: linear-gradient(135deg, rgba(229, 35, 41, 0.2), rgba(20, 20, 20, 0.92) 55%);
}

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 108px) 0;
}

.access-card {
  padding: 28px;
}

.access-card .button {
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
}

@media (max-width: 940px) {
  .hero,
  .split-section,
  .records-section,
  .access-section {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-device {
    min-height: 600px;
  }

  .records-copy {
    position: static;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-card img {
    max-height: 560px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .section-shell {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 30px;
    gap: 26px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(3.25rem, 14vw, 4.65rem);
  }

  h2 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .hero-lede {
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  .hero-stats {
    display: none;
  }

  .mobile-product-peek {
    display: block;
    overflow: hidden;
    height: 168px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
  }

  .mobile-product-peek img {
    width: 100%;
    transform: translateY(-76px);
  }

  .hero-stats,
  .proof-band,
  .record-wall,
  .about-loop {
    grid-template-columns: 1fr;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-device {
    display: none;
  }

  .phone-primary {
    width: min(76vw, 310px);
  }

  .phone-secondary {
    right: 8px;
    width: min(46vw, 190px);
  }

  .system-strip {
    left: 4px;
    bottom: 56px;
    width: min(62vw, 245px);
  }

  .stacked-shots {
    min-height: 560px;
  }

  .stacked-shots .phone-frame {
    width: min(75vw, 300px);
  }

  .phone-offset {
    width: min(55vw, 220px) !important;
  }

  .mini-matrix div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .image-tile img {
    height: 500px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .site-footer a {
    grid-column: 1 / -1;
  }
}

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