:root {
  --bg: #050816;
  --bg-2: #060a1e;
  --card: #0c1230;
  --text: #eaf0ff;
  --muted: #9aa8d9;
  --border: #283569;
  --primary: #67e8f9;
  --accent: #7aa2ff;
  --pink: #ff6b9a;
  --ok: #34d399;

  --radius: 16px;
  --shadow: 0 24px 60px rgba(3, 7, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 650px at 10% -10%, rgba(122, 162, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(103, 232, 249, 0.14), transparent 55%),
    linear-gradient(180deg, #040611 0%, #050816 45%, #060a1e 100%);
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(122, 162, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  z-index: -2;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.33;
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 320px;
  height: 320px;
  left: -100px;
  top: 100px;
  background: #7aa2ff;
}

.orb-2 {
  width: 280px;
  height: 280px;
  right: -100px;
  top: 380px;
  background: #67e8f9;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.stack-40 {
  display: grid;
  gap: 40px;
  padding-bottom: 64px;
}

.stack-20 {
  display: grid;
  gap: 20px;
}

.topbar {
  position: sticky;
  top: 10px;
  margin-top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(7, 12, 32, 0.6);
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary);
}

.topnav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.topnav a:hover {
  color: var(--text);
}

.pill-link {
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
}

.pill-link:hover {
  color: var(--primary);
  border-color: rgba(103, 232, 249, 0.4);
}

.card {
  background: linear-gradient(180deg, rgba(12, 18, 48, 0.92), rgba(12, 18, 48, 0.78));
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-hero {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(103, 232, 249, 0.1);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(19, 27, 69, 0.8);
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  color: var(--text);
  border-color: rgba(122, 162, 255, 0.45);
}

.btn-primary {
  color: #02121a;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

.btn-sm {
  font-size: 0.82rem;
  padding: 8px 11px;
}

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

.kpi {
  border: 1px solid rgba(122, 162, 255, 0.24);
  border-radius: 12px;
  padding: 11px;
  background: rgba(10, 16, 40, 0.66);
}

.kpi strong {
  font-size: 1.16rem;
  color: var(--text);
  display: block;
}

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

.section-head {
  display: grid;
  gap: 6px;
}

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

.arch-item {
  background: rgba(8, 14, 36, 0.55);
  border: 1px solid rgba(122, 162, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.arch-item .tag {
  width: fit-content;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid rgba(122, 162, 255, 0.32);
  border-radius: 999px;
  padding: 5px 8px;
}

.arch-item h4 {
  margin: 0;
  font-size: 1rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pipeline-node {
  background: rgba(6, 12, 30, 0.9);
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 12px;
  padding: 10px;
  position: relative;
}

.pipeline-node::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(168, 184, 255, 0.6);
}

.pipeline-node:last-child::after {
  display: none;
}

.pipeline-node strong {
  display: block;
  margin-bottom: 4px;
}

.replay-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.inline-actions {
  display: flex;
  gap: 6px;
}

.timeline {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 9px;
}

.timeline li {
  color: var(--muted);
}

.timeline b {
  color: var(--text);
}

.terminal-card {
  min-height: 330px;
}

.event-stream {
  border: 1px solid rgba(40, 53, 105, 0.8);
  border-radius: 12px;
  background: rgba(3, 8, 22, 0.9);
  min-height: 270px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.stream-line {
  margin: 0 0 8px;
  color: #b9c5ee;
}

.stream-line span {
  color: #69d9f7;
}

.tour-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(19, 27, 69, 0.6);
  color: var(--muted);
  padding: 8px 14px;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--primary);
  border-color: rgba(103, 232, 249, 0.45);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.shot {
  border: 1px solid rgba(122, 162, 255, 0.25);
  border-radius: 14px;
  background: rgba(4, 10, 26, 0.75);
  overflow: hidden;
}

.shot button {
  all: unset;
  cursor: zoom-in;
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-content {
  padding: 12px;
  display: grid;
  gap: 5px;
}

.shot-content h4 {
  margin: 0;
  font-size: 0.98rem;
}

.video-wrap {
  display: grid;
  gap: 10px;
}

video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(122, 162, 255, 0.3);
  background: #040916;
}

.muted {
  font-size: 0.85rem;
}

.muted code {
  background: rgba(19, 27, 69, 0.85);
  border: 1px solid rgba(122, 162, 255, 0.3);
  border-radius: 8px;
  padding: 3px 6px;
  color: #d8e4ff;
}

.artifact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.artifact-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.artifact-item {
  border: 1px solid rgba(122, 162, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 12, 31, 0.72);
  cursor: pointer;
}

.artifact-item.active {
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(103, 232, 249, 0.08);
}

.artifact-item strong {
  display: block;
  margin-bottom: 5px;
}

.code-card {
  display: grid;
  gap: 10px;
}

.codeblock {
  margin: 0;
  border: 1px solid rgba(40, 53, 105, 0.8);
  border-radius: 12px;
  background: rgba(3, 8, 22, 0.9);
  color: #b9c5ee;
  min-height: 330px;
  max-height: 460px;
  overflow: auto;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.82rem;
}

.access-card {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.lightbox {
  border: none;
  padding: 0;
  width: min(1100px, calc(100% - 40px));
  background: rgba(5, 8, 22, 0.98);
  border-radius: 14px;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(1, 3, 10, 0.8);
}

.lightbox img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.lightbox p {
  margin: 8px 14px 14px;
}

.lightbox-close {
  all: unset;
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(168, 184, 255, 0.35);
  text-align: center;
  line-height: 34px;
  cursor: pointer;
  background: rgba(7, 12, 31, 0.8);
}

@media (max-width: 980px) {
  .kpi-grid,
  .pipeline,
  .arch-grid,
  .replay-layout,
  .artifact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .topnav {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1120px, calc(100% - 20px));
  }

  .card {
    padding: 16px;
  }

  .kpi-grid,
  .pipeline,
  .arch-grid,
  .replay-layout,
  .artifact-layout,
  .gallery {
    grid-template-columns: 1fr;
  }

  .inline-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 8px;
    padding: 10px;
  }

  .pill-link {
    display: none;
  }
}
