@charset "utf-8";

/* Override base .page constraints for landing */
.page {
  max-width: none;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --bg-card: #151b23;
  --bg-inset: #0a0e14;
  --border: #21262d;
  --text: #e6edf3;
  --text-sec: #8b949e;
  --text-dim: #484f58;
  --green: #3fb950;
  --green-border: rgba(63, 185, 80, 0.30);
  --green-soft: rgba(63, 185, 80, 0.10);
  --red: #f85149;
  --red-border: rgba(248, 81, 73, 0.30);
  --red-soft: rgba(248, 81, 73, 0.10);
  --blue: #58a6ff;
  --blue-border: rgba(88, 166, 255, 0.30);
  --blue-soft: rgba(88, 166, 255, 0.10);
  --purple: #bc8cff;
  --yellow: #d29922;
  --radius: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

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

.nav-links a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.88;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-sec);
}

/* ── Hero ── */
.hero {
  padding: 140px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-sec);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ── Hero search bar ── */
.hero-search {
  max-width: 520px;
  margin: 0 auto;
}

.search-row {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.search-region {
  background: var(--bg-inset);
  color: var(--text-sec);
  border: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-right: 1px solid var(--border);
  -webkit-appearance: none;
  appearance: none;
}

.search-input {
  flex: 1;
  background: var(--bg-inset);
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-btn {
  border-radius: 0;
  padding: 14px 24px;
}

/* ── Hero error ── */
.hero-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--red);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Recent searches ── */
.hero-recent {
  max-width: 520px;
  margin: 12px auto 0;
}

.hero-recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.hero-recent-item:hover {
  background: rgba(255,255,255,0.04);
}

.hero-recent-name {
  font-size: 13px;
  font-weight: 500;
}

.hero-recent-region {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Hero Showcase (phase analysis backdrop) ── */
.hero-showcase {
  position: relative;
  margin-top: 64px;
  perspective: 1600px;
  z-index: 1;
}

.showcase-window {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  transform: rotateX(6deg) scale(0.95);
  transform-origin: center top;
  transition: transform 0.6s ease;
}

.showcase-window:hover {
  transform: rotateX(2deg) scale(0.97);
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
}

.showcase-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.showcase-url {
  font-size: 12px;
  color: var(--text-dim);
  font-family: "SF Mono", "Fira Code", monospace;
}

.showcase-content {
  padding: 24px;
  position: relative;
}

.hero-showcase::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

/* ── Showcase: Tabs ── */
.showcase-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 18px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
}

.showcase-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.showcase-tab:hover {
  color: var(--text-sec);
  background: rgba(255,255,255,0.03);
}

.showcase-tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
}

/* ── Showcase: Slides ── */
.showcase-slides {
  position: relative;
}

.showcase-slide {
  display: none;
  animation: sc-fade-in 0.35s ease;
}

.showcase-slide.active {
  display: block;
}

@keyframes sc-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Showcase: Champion Pool slide ── */
.sc-champ-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sc-champ-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.sc-champ-heading--strong { color: var(--green); border-color: var(--green); }
.sc-champ-heading--weak   { color: var(--red);   border-color: var(--red); }

.sc-champ-card {
  background: var(--bg-inset);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.sc-champ-card:hover {
  border-color: rgba(255,255,255,0.10);
}

.sc-champ-card:last-child {
  margin-bottom: 0;
}

.sc-champ-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-champ-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

.sc-champ-id {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sc-champ-name {
  font-size: 13px;
  font-weight: 600;
}

.sc-champ-dash {
  color: var(--text-dim);
  font-size: 11px;
}

.sc-champ-wr {
  font-size: 13px;
  font-weight: 700;
}

.sc-champ-wr.pos { color: var(--green); }
.sc-champ-wr.neg { color: var(--red); }

.sc-champ-games {
  font-size: 11px;
  color: var(--text-dim);
}

.sc-champ-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.sc-champ-tag.core-pick {
  color: var(--green);
  background: var(--green-soft);
}

.sc-champ-tag.lp-leak {
  color: var(--red);
  background: var(--red-soft);
}

.sc-champ-summary {
  font-size: 11px;
  color: var(--text-sec);
  line-height: 1.5;
  margin-top: 8px;
}

.sc-champ-phases {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-champ-phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-champ-phase-label {
  font-size: 10px;
  color: var(--text-dim);
  width: 32px;
  text-align: right;
}

.sc-champ-phase-track {
  flex: 1;
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.sc-champ-phase-bar.behind {
  background: var(--red);
  opacity: 0.5;
}

.sc-champ-phase-bar.even {
  background: var(--text-dim);
  opacity: 0.35;
}

.sc-champ-phase-bar.ahead {
  background: var(--green);
  opacity: 0.5;
}

/* ── Showcase: Objective Control slide ── */
.sc-obj-grid {
  display: flex;
  gap: 12px;
}

.sc-obj-card {
  flex: 1;
  min-width: 0;
  background: var(--bg-inset);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sc-obj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.sc-obj-card--dragon::before  { background: rgba(210, 153, 34, 0.6); }
.sc-obj-card--tower::before   { background: rgba(63, 185, 80, 0.6); }
.sc-obj-card--topside::before { background: rgba(163, 113, 247, 0.6); }

.sc-obj-head {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sc-obj-icon {
  font-size: 14px;
}

.sc-obj-name {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.sc-obj-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.sc-obj-pill--pos  { color: var(--green); border-color: var(--green-border); }
.sc-obj-pill--neg  { color: var(--red);   border-color: var(--red-border); }
.sc-obj-pill--even { color: var(--yellow); border-color: rgba(210,153,34,0.3); }

.sc-obj-body {
  padding: 14px 14px 14px 18px;
  flex: 1;
}

.sc-obj-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 20px;
  padding-bottom: 16px;
}

.sc-obj-step:last-child {
  padding-bottom: 0;
}

.sc-obj-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid;
  background: var(--bg-inset);
  z-index: 2;
}

.sc-obj-dot--pos  { border-color: var(--green); }
.sc-obj-dot--even { border-color: var(--yellow); }
.sc-obj-dot--neg  { border-color: var(--red); }

.sc-obj-line {
  position: absolute;
  left: 4px;
  top: 14px;
  width: 2px;
  height: calc(100% - 10px);
  border-radius: 1px;
  z-index: 1;
}

.sc-obj-line--pos  { background: rgba(63, 185, 80, 0.35); }
.sc-obj-line--even { background: rgba(210, 153, 34, 0.35); }
.sc-obj-line--neg  { background: rgba(248, 81, 73, 0.35); }

.sc-obj-step-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.sc-obj-step-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

.sc-obj-step-rate {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.sc-obj-step-rate--pos  { color: var(--green); }
.sc-obj-step-rate--even { color: var(--yellow); }
.sc-obj-step-rate--neg  { color: var(--red); }

.sc-obj-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
}

.sc-obj-footer p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

.sc-obj-footer--pos { border-left: 2px solid var(--green-border); }
.sc-obj-footer--neg { border-left: 2px solid var(--red-border); }
.sc-obj-footer--even { border-left: 2px solid rgba(210,153,34,0.3); }

/* ── Showcase: Narrative card ── */
.sc-narrative {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-inset);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid var(--text-dim);
}

.sc-narrative.pos { border-left-color: var(--green); }
.sc-narrative.neg { border-left-color: var(--red); }

.sc-narrative-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sc-narrative.pos .sc-narrative-title { color: var(--green); }
.sc-narrative.neg .sc-narrative-title { color: var(--red); }

.sc-narrative-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sec);
}

.sc-enrichments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-enrichment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.5;
}

.sc-enr-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
}

.sc-enrichment.pos .sc-enr-dot { background: var(--green); }
.sc-enrichment.neg .sc-enr-dot { background: var(--red); }

/* ── Showcase: Phase grid ── */
.sc-phase-grid {
  display: flex;
  gap: 16px;
}

.sc-card {
  flex: 1;
  min-width: 0;
  background: var(--bg-inset);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: border-color 0.2s;
}

.sc-card:hover {
  border-color: rgba(255,255,255,0.10);
}

.sc-card-head {
  text-align: center;
  margin-bottom: 16px;
}

.sc-card-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.sc-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* Bar chart */
.sc-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-height: 110px;
  position: relative;
  padding: 0 4px;
}

.sc-bars::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  top: 20px;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.sc-bar-side {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.sc-bar-side.left {
  justify-content: flex-end;
  gap: 6px;
  padding-right: 4px;
}

.sc-bar-side.right {
  justify-content: flex-start;
  gap: 6px;
  padding-left: 4px;
}

.sc-bar-divider {
  width: 1px;
  flex-shrink: 0;
}

.sc-bar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.sc-bar-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.sc-bar-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sc-state {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.sc-state.behind { color: var(--red); }
.sc-state.ahead  { color: var(--green); }

.sc-vbar {
  width: 40px;
  border-radius: 4px 4px 0 0;
  flex-shrink: 0;
}

.sc-vbar.behind {
  background: rgba(248, 81, 73, 0.18);
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-bottom: none;
}

.sc-vbar.ahead {
  background: rgba(63, 185, 80, 0.18);
  border: 1px solid rgba(63, 185, 80, 0.25);
  border-bottom: none;
}

.sc-baseline {
  height: 1px;
  background: var(--border);
  margin-bottom: 8px;
}

.sc-wr-label {
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.sc-wr-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sc-wr-side {
  flex: 1;
  text-align: center;
}

.sc-wr-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: block;
  letter-spacing: -0.5px;
}

.sc-wr-val.behind { color: var(--red); }
.sc-wr-val.ahead  { color: var(--green); }

.sc-wr-ctx {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sc-insight {
  font-size: 11px;
  padding: 7px 10px;
  border-radius: var(--radius);
  line-height: 1.4;
}

.sc-insight.neg {
  color: var(--red);
  background: var(--red-soft);
}

.sc-insight.pos {
  color: var(--green);
  background: var(--green-soft);
}

.sc-insight.neutral {
  color: var(--text-sec);
  background: rgba(255,255,255,0.04);
}

/* ── Section shared ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-hint {
  font-size: 14px;
  color: var(--text-dim);
}

/* ── Features ── */
.features {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, opacity 0.5s ease, border-color 0.3s;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--text-dim);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
}

.feature-preview {
  margin-top: 20px;
  background: var(--bg-inset);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.04);
}

.feature-chart {
  width: 100%;
  height: 50px;
  display: block;
}

/* Phase preview */
.phase-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.phase-demo:last-child {
  margin-bottom: 0;
}

.phase-label {
  font-size: 11px;
  color: var(--text-dim);
  width: 36px;
  text-align: right;
}

.phase-bar-track {
  flex: 1;
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.phase-bar-fill.behind {
  background: var(--red);
  opacity: 0.55;
}

.phase-bar-fill.even {
  background: var(--text-dim);
  opacity: 0.4;
}

.phase-bar-fill.ahead {
  background: var(--green);
  opacity: 0.55;
}

/* Moments preview */
.moment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
}

.moment-item + .moment-item {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.moment-time {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 36px;
}

.moment-icon {
  font-size: 13px;
}

.moment-icon.kill-blue {
  color: var(--blue);
}

.moment-icon.kill-red {
  color: var(--red);
}

.moment-desc {
  flex: 1;
  color: var(--text-sec);
}

.moment-desc strong {
  color: var(--text);
}

.moment-delta {
  font-weight: 600;
  font-size: 11px;
}

.moment-delta.up {
  color: var(--green);
}

.moment-delta.down {
  color: var(--red);
}

/* Champion preview */
.champ-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}

.champ-row + .champ-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.champ-name {
  flex: 1;
  font-weight: 500;
}

.champ-wr {
  font-weight: 700;
  font-size: 13px;
}

.champ-wr.pos {
  color: var(--green);
}

.champ-wr.neg {
  color: var(--red);
}

.champ-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}

/* Objective preview */
.obj-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.obj-row:last-child {
  margin-bottom: 0;
}

.obj-name {
  font-size: 11px;
  color: var(--text-sec);
  width: 80px;
}

.obj-bar {
  flex: 1;
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.obj-fill.you {
  background: rgba(88, 166, 255, 0.50);
}

.obj-fill.enemy {
  background: rgba(248, 81, 73, 0.30);
}

/* Narrative preview */
.narrative-demo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.narrative-demo.neg {
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

.narrative-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
}

.narrative-text {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ── How It Works ── */
.how-it-works {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
}

.step-arrow {
  color: var(--text-dim);
  font-size: 28px;
  margin-top: 70px;
  flex-shrink: 0;
}

/* ── CTA ── */
.cta-section {
  padding: 100px 24px 120px;
  border-top: 1px solid var(--border);
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-card p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 32px;
}

.search-form {
  max-width: 480px;
  margin: 0 auto;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-sec);
  white-space: nowrap;
}

.footer-logo svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.footer-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .nav-links {
    display: none;
  }

  .sc-phase-grid {
    flex-direction: column;
  }

  .sc-obj-grid {
    flex-direction: column;
  }

  .sc-champ-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
  }

  .search-region {
    padding: 12px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .search-btn {
    border-radius: 0;
  }

  .showcase-window {
    transform: rotateX(0) scale(1);
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .showcase-window:hover {
    transform: none;
  }

  .sc-phase-grid {
    flex-direction: column;
  }

  .sc-obj-grid {
    flex-direction: column;
  }

  .sc-champ-split {
    grid-template-columns: 1fr;
  }

  .showcase-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ── Stagger animation delays ── */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.07s; }
.feature-card:nth-child(3) { transition-delay: 0.14s; }
.feature-card:nth-child(4) { transition-delay: 0.21s; }
.feature-card:nth-child(5) { transition-delay: 0.28s; }
.feature-card:nth-child(6) { transition-delay: 0.35s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.12s; }
.step:nth-child(5) { transition-delay: 0.24s; }

/* ── Demo Gallery ── */
.demo-gallery {
  margin-top: 2.5rem;
  text-align: center;
}

.demo-gallery-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.demo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.demo-profile-card {
  position: relative;
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 0 12px rgba(88, 166, 255, 0.1);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.demo-profile-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.25);
}

.demo-profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.demo-profile-name .tag {
  font-weight: 400;
  opacity: 0.5;
  margin-left: 0.1em;
}

.demo-profile-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-profile-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--blue);
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.demo-profile-card:hover .demo-profile-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

@media (max-width: 600px) {
  .demo-gallery-grid {
    grid-template-columns: 1fr;
  }
}
