:root {
  color-scheme: dark;
  --bg: #071013;
  --panel: #0c171b;
  --panel-raised: #101e23;
  --line: rgba(143, 211, 226, 0.18);
  --muted: #8fa4a9;
  --text: #eef8f8;
  --cyan: #35cce7;
  --cyan-soft: #8cecff;
  --green: #4ce586;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(40, 180, 209, 0.18), transparent 38rem),
    linear-gradient(180deg, #071013 0%, #061012 63%, #050d0f 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(136, 232, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(136, 232, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

main {
  overflow: hidden;
}

.hero,
.capabilities,
.config-section,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 106px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.brand,
.repo-link,
.button,
.inline-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--cyan-soft);
  font-size: 0.88rem;
  background: linear-gradient(145deg, #193139, #091519);
  border: 1px solid rgba(141, 236, 255, 0.4);
  border-radius: 8px;
  box-shadow: inset 0 0 16px rgba(54, 203, 232, 0.15);
}

.repo-link {
  color: #bdd1d5;
  font-size: 0.81rem;
  font-weight: 650;
}

.repo-link:hover,
.inline-link:hover {
  color: var(--cyan-soft);
}

.hero-copy {
  max-width: 760px;
  margin: 90px auto 36px;
  text-align: center;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  color: var(--cyan-soft);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(76, 229, 134, 0.1), 0 0 12px rgba(76, 229, 134, 0.85);
}

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

h1,
h2 {
  font-weight: 760;
  letter-spacing: -0.048em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.85rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.lead {
  max-width: 620px;
  margin: 0 auto;
  color: #d5e7e9;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.lead-en,
.card-en {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.lead-en {
  max-width: 580px;
  margin: 10px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  background: #020708;
  border: 1px solid rgba(131, 226, 244, 0.32);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(45, 197, 225, 0.035), 0 0 56px rgba(50, 210, 235, 0.14);
}

.player-topline {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  color: #8db5bd;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  border-bottom: 1px solid var(--line);
}

.product-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020708;
}

.video-status {
  min-height: 23px;
  padding: 5px 14px 7px;
  color: #a4c1c5;
  font-size: 0.76rem;
  border-top: 1px solid rgba(143, 211, 226, 0.1);
}

.player-shell.is-unavailable .video-status {
  color: #f2ca83;
}

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

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  font-size: 0.86rem;
  font-weight: 720;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #03262e;
  background: var(--cyan-soft);
  box-shadow: 0 8px 22px rgba(53, 204, 231, 0.18);
}

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

.button-secondary {
  color: #d5ebee;
  background: rgba(16, 30, 35, 0.7);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: rgba(140, 236, 255, 0.65);
  background: rgba(22, 47, 54, 0.85);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 128px;
}

.capability-card {
  min-height: 235px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(17, 33, 38, 0.92), rgba(8, 18, 21, 0.94));
  border: 1px solid var(--line);
  border-radius: 13px;
}

.card-index {
  display: block;
  margin-bottom: 42px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.capability-card h2 {
  margin-bottom: 10px;
  font-size: 1.38rem;
}

.capability-card p:not(.card-en) {
  margin-bottom: 12px;
  color: #c8dadd;
  font-size: 0.91rem;
  line-height: 1.7;
}

.card-en {
  margin-bottom: 0;
}

.config-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  padding-bottom: 128px;
}

.config-copy .eyebrow {
  justify-content: flex-start;
}

.config-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.config-copy > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: #b9ced2;
  line-height: 1.8;
}

.inline-link {
  color: var(--cyan-soft);
  font-size: 0.9rem;
  font-weight: 740;
}

.config-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.config-figure img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 34px;
  color: #61777c;
  font-size: 0.65rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 3px solid var(--cyan-soft);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .hero,
  .capabilities,
  .config-section,
  footer {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero-copy {
    margin-top: 70px;
  }

  .capabilities,
  .config-section {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .capability-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 28px;
  }

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

  footer {
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .topbar {
    align-items: flex-start;
  }

  .repo-link {
    padding-top: 6px;
    font-size: 0.72rem;
  }

  .hero-copy {
    margin-top: 54px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .player-topline {
    font-size: 0.56rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
