/* ── Shared Design Tokens ── */

:root,
[data-theme="dark"] {
  --bg-primary: #05070d;
  --bg-secondary: #0b121b;
  --bg-card: rgba(11, 18, 27, 0.82);
  --bg-card-solid: #0f1823;
  --bg-card-hover: rgba(16, 25, 37, 0.96);
  --bg-glass: rgba(7, 12, 18, 0.72);
  --bg-glass-border: rgba(200, 170, 110, 0.18);
  --text-primary: #f4efe4;
  --text-secondary: #c7cedc;
  --text-muted: #8b95a7;
  --accent-blue: #4b86ff;
  --accent-cyan: #7ed7ff;
  --accent-purple: #7d7aff;
  --accent-red: #ff6d62;
  --accent-green: #27cda7;
  --accent-gold: #c8aa6e;
  --gradient-main: linear-gradient(135deg, #f3d796 0%, #c8aa6e 50%, #896123 100%);
  --gradient-warm: linear-gradient(135deg, rgba(126, 215, 255, 0.8), rgba(200, 170, 110, 0.95));
  --border-subtle: rgba(200, 170, 110, 0.12);
  --shadow-card: 0 18px 46px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 18px 48px rgba(75, 134, 255, 0.18);
  --hero-glow-1: rgba(75, 134, 255, 0.22);
  --hero-glow-2: rgba(200, 170, 110, 0.16);
  --hero-glow-3: rgba(126, 215, 255, 0.14);
  --navbar-bg: rgba(5, 7, 13, 0.78);
  --badge-bg: rgba(200, 170, 110, 0.12);
  --badge-text: #f3d796;
  --step-num-bg: rgba(200, 170, 110, 0.14);
  --step-line: rgba(200, 170, 110, 0.12);
  --vs-bg: rgba(200, 170, 110, 0.14);
  --vs-text: #f3d796;
  --footer-tagline: #9eabc0;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f6f1e6;
  --bg-secondary: #ede4d3;
  --bg-card: rgba(255, 251, 243, 0.82);
  --bg-card-solid: #fffaf2;
  --bg-card-hover: rgba(255, 253, 248, 0.96);
  --bg-glass: rgba(255, 249, 238, 0.7);
  --bg-glass-border: rgba(151, 123, 69, 0.18);
  --text-primary: #1e2430;
  --text-secondary: #536073;
  --text-muted: #7c8796;
  --border-subtle: rgba(151, 123, 69, 0.14);
  --shadow-card: 0 18px 40px rgba(60, 46, 19, 0.08);
  --shadow-glow: 0 18px 44px rgba(151, 123, 69, 0.12);
  --hero-glow-1: rgba(75, 134, 255, 0.12);
  --hero-glow-2: rgba(200, 170, 110, 0.14);
  --hero-glow-3: rgba(126, 215, 255, 0.1);
  --navbar-bg: rgba(246, 241, 230, 0.82);
  --badge-bg: rgba(200, 170, 110, 0.12);
  --badge-text: #7c622c;
  --step-num-bg: rgba(200, 170, 110, 0.12);
  --step-line: rgba(151, 123, 69, 0.14);
  --vs-bg: rgba(200, 170, 110, 0.12);
  --vs-text: #7c622c;
  --footer-tagline: #5f697b;
}

/* ── Reset ── */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color 0.35s ease, color 0.35s ease;
}

img {
  display: block;
  max-width: 100%;
}

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

.home-page {
  background:
    radial-gradient(circle at 15% 16%, rgba(75, 134, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(200, 170, 110, 0.18), transparent 24%),
    linear-gradient(180deg, #05070d 0%, #09101a 45%, #05070d 100%);
}

[data-theme="light"] .home-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(75, 134, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(200, 170, 110, 0.16), transparent 24%),
    linear-gradient(180deg, #f6f1e6 0%, #f0e7d6 48%, #f8f4eb 100%);
}

.home-page #app {
  position: relative;
  isolation: isolate;
}

.home-page #app::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .home-page #app::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(200, 170, 110, 0.08);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(7, 12, 18, 0.78);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 251, 243, 0.78);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 170, 110, 0.34);
  background: rgba(200, 170, 110, 0.1);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(200, 170, 110, 0.42);
  outline-offset: 2px;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 88px 24px 18px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: 72px;
  left: -120px;
  background: var(--hero-glow-1);
}

.hero::after {
  width: 340px;
  height: 340px;
  right: -90px;
  bottom: 120px;
  background: var(--hero-glow-2);
}

.hero-bg-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 52%;
  top: 20%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--hero-glow-3);
  filter: blur(90px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 90%);
  pointer-events: none;
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  grid-template-areas:
    'copy visual'
    'highlights highlights';
  align-items: center;
  gap: 18px clamp(24px, 3vw, 44px);
}

.hero-content {
  grid-area: copy;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(200, 170, 110, 0.22);
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.gradient-text {
  display: inline-block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 1.3vw, 1.04rem);
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.hero-supporting {
  max-width: 600px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--gradient-main);
  color: #140f06;
  box-shadow: 0 16px 30px rgba(137, 97, 35, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(137, 97, 35, 0.28);
}

.btn-secondary {
  border-color: rgba(200, 170, 110, 0.26);
  background: rgba(8, 13, 20, 0.58);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(255, 251, 243, 0.66);
}

.btn-secondary:hover {
  border-color: rgba(200, 170, 110, 0.42);
  background: rgba(200, 170, 110, 0.08);
}

.hero-visual {
  grid-area: visual;
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
  padding: 0;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.9;
  border-radius: 28px;
  border: 1px solid rgba(200, 170, 110, 0.18);
  background: linear-gradient(180deg, rgba(12, 18, 27, 0.9), rgba(7, 12, 18, 1));
  box-shadow: var(--shadow-card);
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.12) 0%, rgba(7, 12, 18, 0.08) 28%, rgba(7, 12, 18, 0.86) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.09), transparent 42%);
  pointer-events: none;
}

.hero-frame-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-frame-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 12, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-frame-tag-gold {
  color: #140f06;
  background: rgba(243, 215, 150, 0.92);
  border-color: transparent;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.04) brightness(0.68);
}

.hero-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 92px 18px 18px;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.02) 0%, rgba(7, 12, 18, 0.9) 24%, rgba(7, 12, 18, 0.98) 100%);
}

.hero-panel-header,
.hero-panel-row,
.hero-panel-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.hero-panel-header {
  grid-template-columns: 1fr auto;
  margin-bottom: 2px;
}

.hero-panel-kicker {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-score,
.hero-panel-delta,
.hero-meter-value,
.hero-chip strong {
  font-weight: 700;
}

.positive,
.hero-panel-delta,
.hero-panel-score {
  color: var(--accent-green);
}

.hero-panel-row {
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(7, 12, 18, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.hero-panel-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(200, 170, 110, 0.14);
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-panel-copy {
  min-width: 0;
}

.hero-panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-panel-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.hero-panel-name {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-panel-note {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.hero-panel-meter {
  margin-top: 4px;
}

.hero-meter-side,
.hero-meter-value {
  font-size: 0.88rem;
}

.hero-meter-side-blue {
  color: var(--accent-blue);
}

.hero-meter-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 53.6%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(228px, calc(100% - 28px));
  padding: 14px 15px;
  border-radius: 22px;
  border: 1px solid rgba(200, 170, 110, 0.18);
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.92), rgba(7, 12, 18, 0.84));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-chip-top {
  top: 16px;
  left: 16px;
}

.hero-chip-bottom {
  right: 16px;
  bottom: 164px;
}

.hero-chip-label {
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-chip-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-chip-portrait {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.hero-chip strong {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-chip-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-chip-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-chip-team {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-chip-team-blue {
  color: var(--accent-blue);
}

.hero-chip-team-red {
  color: #ff8f77;
}

.hero-chip-versus {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-highlights {
  grid-area: highlights;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 17px 16px 18px;
  border: 1px solid rgba(200, 170, 110, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.86), rgba(10, 16, 24, 0.68));
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .highlight-card {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.9), rgba(255, 249, 238, 0.74));
}

.highlight-index {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-gold);
}

.highlight-copy h3 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.highlight-copy p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ── Section Shared ── */

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-header p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Demos ── */

.demos {
  padding: 24px 24px 92px;
  max-width: 1240px;
  margin: 0 auto;
  scroll-margin-top: 88px;
}

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

.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(200, 170, 110, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.9), rgba(10, 16, 24, 0.74));
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

[data-theme="light"] .demo-card {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(255, 249, 238, 0.76));
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 170, 110, 0.34);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.18);
}

.demo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), transparent 45%);
  pointer-events: none;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200, 170, 110, 0.12);
}

.demo-team {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.demo-team-blue {
  color: var(--accent-blue);
}

.demo-team-red {
  color: var(--accent-red);
}

.demo-vs {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--vs-bg);
  color: var(--vs-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.demo-card-body {
  display: grid;
  gap: 6px;
}

.demo-label {
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-meta {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ── How It Works ── */

.how-it-works {
  padding: 0 24px 96px;
  max-width: 1240px;
  margin: 0 auto;
}

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

.step-item {
  padding: 28px 24px 30px;
  border: 1px solid rgba(200, 170, 110, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.86), rgba(10, 16, 24, 0.68));
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .step-item {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(255, 249, 238, 0.76));
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--step-num-bg);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 170, 110, 0.2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.step-item p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Footer ── */

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 42px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-tagline {
  color: var(--footer-tagline);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.disclaimer {
  margin: 0 auto 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* ── Fade-in ── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-grid .fade-in:nth-child(2) {
  transition-delay: 0.08s;
}

.demo-grid .fade-in:nth-child(3) {
  transition-delay: 0.16s;
}

/* ── Responsive ── */

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 24px 30px;
  }

  .hero-visual {
    width: min(100%, 470px);
  }

  .hero-chip-top {
    left: 14px;
  }

  .hero-chip-bottom {
    right: 14px;
    bottom: 152px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'visual'
      'highlights';
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 560px);
  }

  .hero-highlights,
  .demo-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding-top: 8px;
  }
}

@media (max-width: 820px) {
  .navbar {
    padding: 14px 16px;
  }

  .nav-logo {
    font-size: 1.6rem;
  }

  .hero {
    padding: 92px 16px 40px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .hero-subtitle {
    white-space: normal;
    max-width: 560px;
  }

  .hero-supporting {
    font-size: 0.96rem;
  }

  .hero-visual {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-chip {
    width: min(228px, calc(100% - 20px));
  }

  .hero-chip-top {
    left: 10px;
  }

  .hero-chip-bottom {
    right: 10px;
    bottom: 146px;
  }

  .section-header h2 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .demos,
  .how-it-works,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .nav-actions {
    gap: 10px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-supporting {
    margin-top: 16px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-chip {
    position: relative;
    width: 100%;
    inset: auto;
  }

  .hero-chip-top {
    margin-bottom: 14px;
  }

  .hero-chip-bottom {
    margin-top: 14px;
  }

  .hero-frame-top {
    top: 12px;
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
  }

  .hero-panel {
    padding: 78px 14px 16px;
  }

  .hero-panel-row {
    grid-template-columns: auto 1fr;
  }

  .hero-panel-delta {
    grid-column: 2;
    justify-self: end;
  }

  .hero-panel-meter {
    grid-template-columns: 1fr;
  }

  .hero-meter-value {
    justify-self: end;
  }

  .highlight-card,
  .demo-card,
  .step-item {
    padding: 18px;
  }

  .demo-card-header {
    gap: 10px;
  }

  .demo-team {
    font-size: 1.7rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .btn,
  .demo-card,
  .theme-toggle {
    transition: none;
  }
}
