:root {
  color-scheme: dark;
  --bg: #050606;
  --bg-soft: #0b0d0d;
  --panel: #141818;
  --panel-high: #1b2020;
  --line: rgba(255, 255, 255, 0.12);
  --line-orange: rgba(242, 85, 24, 0.42);
  --text: #f6f2eb;
  --muted: #9aa2a0;
  --faint: #66706e;
  --orange: #f25518;
  --green: #78bb62;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 85, 24, 0.18), transparent 32rem),
    linear-gradient(180deg, #090b0b 0%, var(--bg) 42%, #020303 100%);
  color: var(--text);
}

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

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

code {
  color: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(5, 6, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
footer span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

nav a:hover {
  color: var(--orange);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  padding: clamp(52px, 9vw, 110px) 0;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 720px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 900;
}

.button.primary {
  background: var(--orange);
  color: #160805;
  border-color: var(--orange);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero-device {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 30px;
  border: 1px solid var(--line-orange);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.hero-device img,
.gallery img {
  width: 100%;
  aspect-ratio: 402 / 874;
  object-fit: cover;
  border-radius: 22px;
  background: #060707;
}

.overview,
.section-heading,
.split,
.demo-band,
.production-architecture {
  padding: clamp(58px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.overview-grid,
.stack-list {
  display: grid;
  gap: 14px;
}

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

article,
figure,
.private-note,
.video-placeholder {
  background: linear-gradient(180deg, var(--panel-high), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

article,
.private-note {
  padding: 24px;
}

article span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: center;
  gap: 10px;
  margin: 26px 0;
}

.architecture-flow div {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--text);
  font-weight: 900;
  text-align: center;
  background: linear-gradient(180deg, rgba(242, 85, 24, 0.15), var(--panel));
  border: 1px solid var(--line-orange);
  border-radius: 6px;
}

.architecture-flow span {
  display: none;
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

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

.architecture-grid article:last-child {
  grid-column: span 3;
}

.architecture-grid ul,
.stack-list ul {
  margin: 0;
  padding-left: 18px;
}

.section-heading {
  max-width: 740px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(58px, 9vw, 96px);
}

figure {
  margin: 0;
  padding: 12px;
}

figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 4px 2px;
}

figcaption strong {
  color: var(--text);
}

figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.demo-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.video-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(242, 85, 24, 0.22), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px);
}

.video-placeholder span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  clip-path: polygon(34% 24%, 34% 76%, 78% 50%);
  position: relative;
  z-index: 1;
}

.video-placeholder p {
  position: absolute;
  bottom: 24px;
  color: var(--text);
  font-weight: 900;
}

ol {
  padding-left: 22px;
}

.private-note {
  border-color: var(--line-orange);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #020303;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .overview,
  .split,
  .demo-band {
    grid-template-columns: 1fr;
  }

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

  .architecture-flow {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .architecture-flow span {
    display: block;
  }

  .architecture-grid article:last-child {
    grid-column: span 2;
  }

  .hero-device {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .overview-grid,
  .gallery,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .architecture-grid article:last-child {
    grid-column: span 1;
  }

  .hero-device {
    width: min(100%, 300px);
  }

  .video-container {
    width: 100%;
    margin: 0 auto;
  }

  .video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
  }
}
