:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: #0d1319;
  --panel-2: #141d26;
  --ink: #f4f7fb;
  --muted: #9facba;
  --line: rgba(255,255,255,.13);
  --cyan: #19c9dd;
  --green: #55d879;
  --red: #ff4f62;
  --amber: #ffb84c;
  --blue: #6ea3ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(5,7,10,.68);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { color: #fff; font-weight: 850; white-space: nowrap; }

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: #d8e1eb;
  font-size: 14px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.contact-button:hover {
  border-color: rgba(25,201,221,.64);
  background: rgba(25,201,221,.14);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 130px clamp(20px, 5vw, 72px) 34px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 26%, rgba(25,201,221,.2), transparent 32%), #020406;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,.96) 0%, rgba(5,7,10,.84) 34%, rgba(5,7,10,.18) 72%, rgba(5,7,10,.48) 100%),
    linear-gradient(0deg, rgba(5,7,10,.92), transparent 52%);
  z-index: 2;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 5vw, 72px);
  top: clamp(132px, 20vh, 210px);
  width: min(70vw, 1148px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 34px 90px rgba(0,0,0,.7);
  transform: rotateY(-10deg) rotateX(2deg);
  transition: opacity 1.2s ease;
}

.glide-video.is-switching { opacity: .18; }

.hero-video {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(0deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(0deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
  border-color: transparent;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 3;
}

.hero-copy { width: min(720px, 100%); }
.hero-copy > p:not(.eyebrow) { font-size: clamp(20px, 1.9vw, 28px); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 850;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 94px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary { background: #f4f7fb; color: #0c1117; }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.06); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(860px, 100%);
  margin-top: clamp(44px, 8vh, 88px);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.hero-stats div { padding: 18px; background: rgba(9,14,19,.78); }
.hero-stats strong { display: block; font-size: 24px; }
.hero-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

section:not(.hero) {
  padding: clamp(76px, 10vw, 136px) clamp(20px, 5vw, 72px);
}

.product-section,
.split,
.quad-section {
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #dce6ef;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  background: var(--green);
}

.product-section { background: var(--bg); }

.live-section {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}

.live-section .section-copy {
  width: min(760px, 100%);
}

.live-section .angled-video {
  width: 100%;
  justify-self: stretch;
}

.product-section.reverse { grid-template-columns: minmax(0, 1fr) minmax(280px, 470px); }

.angled-video {
  position: relative;
  justify-self: end;
  width: min(70vw, 1148px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  transform: rotateY(-10deg) rotateX(2deg);
  perspective: 1200px;
}

.angled-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  box-shadow: none;
  transform-origin: center;
}

.badge {
  position: absolute;
  left: -14px;
  top: 20px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13,19,25,.92);
  font-size: 13px;
  font-weight: 850;
}

.badge.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

.epg-layout {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(300px, .8fr) minmax(260px, .95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.epg-layout.dark { background: var(--bg); }

.epg-layout .section-copy {
  text-align: left;
}

.guide-media {
  display: grid;
  gap: 14px;
}

.image-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050607;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.image-rotator.wide {
  aspect-ratio: 16 / 8;
}

.image-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: imageCycle 8s infinite;
}

.image-rotator img:nth-child(2) {
  animation-delay: 4s;
}

@keyframes imageCycle {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.guide-media video,
.guide-media img,
.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #050607;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.journal-section .image-panel img {
  aspect-ratio: 16 / 8;
}

.split.dark { background: var(--bg); }
.split.light { background: var(--bg); color: var(--ink); }
.split.light p { color: var(--muted); }

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

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

.streamlog-section {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(280px, .8fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.streamlog-section.dark { background: var(--bg); }

.audio-console-section {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(300px, .85fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.audio-console-section.dark { background: var(--bg); }

.audio-console-section .image-panel img {
  aspect-ratio: 16 / 7;
}

.audio-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #050607;
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
}

.streamlog-section .image-panel img { aspect-ratio: 16 / 10; }

.quad-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #050607;
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
}


.tilt-panel,
.journal-card,
.streamlog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #121b24, #070a0e);
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.tilt-panel {
  transform: perspective(1200px) rotateY(-14deg) rotateX(2deg);
  transform-origin: center;
}

.panel-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 850;
}

.panel-top small { color: var(--muted); }

.epg-grid {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.08);
}

.epg-grid div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 16px;
  padding: 18px;
  background: #0c131a;
}

.epg-grid b { color: #fff; }
.epg-grid span { color: #dce6ef; }
.epg-grid em {
  grid-column: 2;
  color: var(--green);
  font-style: normal;
  font-size: 13px;
}

.journal-card { background: #0b1118; color: #dce6ef; }
.journal-card pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
  color: #b8c6d2;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: #dce6ef;
  font-weight: 850;
}

.timeline i {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), rgba(255,255,255,.16));
}

.timeline b {
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(25,201,221,.14);
  color: var(--cyan);
}

.media-grid,
.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-grid video,
.quad-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.15);
  background: #050607;
}

.streamlog-card { padding-bottom: 18px; }
.meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: #dce6ef;
}

.meter-row b { color: var(--amber); }
.meter-row b.ok { color: var(--green); }
.transcript {
  margin: 18px;
  padding: 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(25,201,221,.08);
}

.quad-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--bg);
}

.deploy {
  text-align: center;
  background: var(--bg);
  color: var(--ink);
}

.deploy p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.contact-main {
  min-height: calc(100svh - 84px);
  padding: 132px clamp(20px, 5vw, 72px) 68px;
  background:
    radial-gradient(circle at 78% 18%, rgba(25,201,221,.2), transparent 30%),
    radial-gradient(circle at 12% 74%, rgba(110,163,255,.12), transparent 34%),
    var(--bg);
}

.contact-hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.contact-intro h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: .94;
}

.contact-intro p { max-width: 760px; }
.contact-intro .button { margin-top: 18px; }

.contact-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(13,19,25,.82);
  box-shadow: 0 28px 80px rgba(0,0,0,.44);
}

.contact-card h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.contact-card p {
  margin-bottom: 24px;
  font-size: 16px;
}

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

.contact-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #dce6ef;
  font-size: 14px;
  font-weight: 750;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(2,4,6,.72);
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 13px 14px;
  outline: none;
}

.contact-card textarea { resize: vertical; }

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: rgba(25,201,221,.7);
  box-shadow: 0 0 0 3px rgba(25,201,221,.14);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong { color: #fff; }

@media (max-width: 980px) {
  nav { display: none; }
  .contact-hero { grid-template-columns: 1fr; }
  .hero-video {
    right: clamp(20px, 5vw, 44px);
    top: 18vh;
    width: min(92vw, 1064px);
    opacity: .72;
  }
  .angled-video { width: min(92vw, 1064px); justify-self: end; }
  .product-section,
  .product-section.reverse,
  .split,
  .epg-layout,
  .journal-section,
  .rewind-section,
  .streamlog-section,
  .audio-console-section,
  .quad-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero { padding-top: 104px; }
  .hero-video {
    right: 20px;
    left: 20px;
    top: 18vh;
    width: auto;
  }
  .angled-video { width: 100%; justify-self: stretch; }
  .hero-stats,
  .media-grid,
  .quad-grid {
    grid-template-columns: 1fr;
  }
  .epg-grid div { grid-template-columns: 1fr; }
  .epg-grid em { grid-column: 1; }
  .site-header { gap: 14px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 15px; }
  .contact-button { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .field-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer span { display: block; margin-top: 8px; }
}
