
:root {
  --bg: #0b0f14;
  --panel: #111821;
  --panel-2: #17212d;
  --text: #eaf2f8;
  --muted: #a8b7c5;
  --border: #263545;
  --accent: #75d5ff;
  --accent-2: #8ee3a1;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(117,213,255,.08), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(142,227,161,.06), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,20,.94);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 9px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--panel-2);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px 90px;
}

.hero {
  text-align: center;
  padding: 44px 18px 34px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.video-shell {
  max-width: 960px;
  margin: 30px auto 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #05080b;
  box-shadow: var(--shadow);
}

.video-ratio {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-ratio iframe,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(117,213,255,.05), rgba(142,227,161,.03)),
    #070b0f;
}

.video-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.25rem;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

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

.card .arrow {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.page-title {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.page-title h1 {
  margin: 4px 0 8px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -.04em;
}

.page-title p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: 0; }

.section h2 {
  margin: 0 0 10px;
}

.section p,
.section li {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}

.list-item h3 {
  margin: 0 0 5px;
}

.list-item p {
  margin: 0;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  vertical-align: middle;
}

.code {
  margin: 16px 0;
  border: 1px solid var(--border);
  background: #070b0f;
  border-radius: 14px;
  overflow: auto;
}

.code pre {
  margin: 0;
  padding: 16px;
  color: #dff4ff;
  font: .9rem/1.55 "SFMono-Regular", Consolas, monospace;
}

.notice {
  padding: 16px 18px;
  margin: 18px 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 26px 20px 40px;
  font-size: .88rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-links { width: 100%; }

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

  main { padding-top: 34px; }

  .hero { padding-top: 28px; }
}


/* ------------------------------------------------------------------
   Site-wide navigation normalization.
   Every page uses the same button order/labels and fixed layout rules.
   ------------------------------------------------------------------ */
.nav {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
  line-height: 1;
}

.nav-links a.active {
  font-weight: 700;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   Highlighted video carousel.
   Videos occupy the same stage and crossfade behind one another.
   ------------------------------------------------------------------ */
.video-carousel {
  position: relative;
  max-width: 960px;
  margin: 30px auto 0;
}

.video-carousel .video-shell {
  margin: 0;
}

.video-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: translateX(18px) scale(.985);
  pointer-events: none;
  transition:
    opacity .28s ease,
    transform .28s ease;
}

.video-slide.active {
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.video-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(17,24,33,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.video-nav:hover {
  color: var(--accent);
  background: var(--panel-2);
  border-color: var(--accent);
}

.video-nav:active {
  transform: translateY(-50%) scale(.94);
}

.video-nav:focus-visible {
  outline: 3px solid rgba(117,213,255,.38);
  outline-offset: 3px;
}

.video-nav-prev {
  left: -66px;
}

.video-nav-next {
  right: -66px;
}

@media (max-width: 1100px) {
  .video-nav-prev {
    left: 12px;
  }

  .video-nav-next {
    right: 12px;
  }

  .video-nav {
    width: 44px;
    height: 44px;
    background: rgba(11,15,20,.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-slide,
  .video-nav {
    transition: none;
  }
}
