:root {
  --bg: #0b1020;
  --bg-alt: #121934;
  --panel: #11182e;
  --panel-soft: #182241;
  --text: #edf2ff;
  --muted: #b8c2e0;
  --line: rgba(255,255,255,0.09);
  --accent: #8fb3ff;
  --accent-strong: #c5d5ff;
  --max: 1120px;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(0,0,0,0.25);
}

* { 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: linear-gradient(180deg, var(--bg), #0d1328 38%, #0a1020 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.narrow { width: min(calc(100% - 2rem), 820px); }
.section { padding: 5rem 0; }
.alt { background: rgba(255,255,255,0.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.hero { padding-top: 6.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}
.subtitle {
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  color: var(--accent-strong);
  max-width: 40rem;
}
.hero-text { max-width: 44rem; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.button.primary {
  background: var(--accent);
  color: #08101f;
  border-color: transparent;
  font-weight: 700;
}
.button.secondary { background: rgba(255,255,255,0.03); }

.panel-card, .step-card, .output-card, .link-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-card { padding: 2rem; min-height: 320px; }
.panel-card--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-label { color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.panel-title { font-size: 1.35rem; color: var(--text); margin-bottom: 0.8rem; }

.section-heading { margin-bottom: 2rem; max-width: 860px; }
.viewer-block { margin-bottom: 2.5rem; }
.viewer-copy { margin-bottom: 1rem; max-width: 760px; }
.viewer-frame {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 16px;
  background: #050814;
  box-shadow: var(--shadow);
}
.section-note { max-width: 840px; }

.steps-grid, .outputs-grid, .links-grid {
  display: grid;
  gap: 1.2rem;
}
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.outputs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card, .output-card, .link-card { padding: 1.35rem; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(143,179,255,0.16);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 1rem;
}
.output-placeholder {
  min-height: 180px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.link-card { display: block; }
.link-card:hover, .link-card:focus-visible { border-color: rgba(255,255,255,0.18); }
.link-card.muted { opacity: 0.92; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  background: rgba(0,0,0,0.14);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner p { margin: 0.2rem 0 0; }

@media (max-width: 980px) {
  .hero-grid,
  .steps-grid,
  .outputs-grid,
  .links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 5rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: rgba(11,16,32,0.95);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .viewer-frame { height: 560px; }
  .footer-inner { flex-direction: column; }
}

.hero-slideshow {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero-slideshow img.is-fading {
  opacity: 0;
}
