:root {
  --bg: #08054a;
  --bg-soft: #120a55;
  --card: rgba(11, 10, 46, 0.96);
  --card-strong: rgba(18, 16, 68, 0.985);
  --card-elevated: rgba(25, 21, 88, 0.98);
  --text: #fbf8ff;
  --muted: #b4acd8;
  --line: rgba(255, 255, 255, 0.18);
  --gold: #d3a652;
  --gold-soft: #f0d28d;
  --accent: #f8f4ff;
  --shadow: 0 28px 90px rgba(1, 1, 16, 0.52);
  --shadow-soft: 0 18px 36px rgba(0, 0, 0, 0.24);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background-color: #08054a;
  background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%23513086' fill-opacity='0.72' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(5, 4, 31, 0.58), rgba(4, 3, 23, 0.78));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 16px auto 32px;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 24, 98, 0.92), rgba(14, 11, 62, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.brand-logo {
  width: min(250px, 48vw);
  height: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-tagline {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d9d5;
  opacity: 0.92;
  white-space: nowrap;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill,
.preview-label,
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.status-pill {
  background: linear-gradient(135deg, #f0d28d, #c8922f);
  color: #281702;
}

main {
  display: grid;
  gap: 28px;
  margin-top: 20px;
}

.hero,
.preview-card,
.feature-card,
.closing-panel,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--card-strong), var(--card));
  box-shadow: var(--shadow);
}

.hero,
.preview-card,
.closing-panel,
.contact-panel {
  border-radius: var(--radius-xl);
}

.feature-card {
  border-radius: var(--radius-lg);
}

.hero {
  padding: 82px 32px 64px;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(240, 210, 141, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--card-strong), var(--card));
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  color: var(--accent);
}

h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5.9vw, 4.8rem);
  line-height: 0.98;
  color: var(--gold-soft);
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 1;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.05;
}

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

.hero-lead {
  max-width: 720px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.hero-lead-primary {
  color: var(--text);
  font-weight: 600;
}

.hero-lead-secondary {
  color: var(--muted);
  font-style: italic;
  opacity: 0.95;
}

.preview-shell {
  padding: 0 36px;
}

.preview-card {
  padding: 32px;
  margin-top: 0;
}

.preview-top,
.preview-insights {
  display: grid;
  gap: 24px;
}

.preview-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.preview-top > :last-child {
  justify-self: center;
}

.preview-label {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  min-width: 140px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0d28d, #c8922f);
  color: #251601;
  text-align: center;
}

.score-badge strong {
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.preview-grid,
.feature-band {
  display: grid;
  gap: 18px;
}

.feature-card p:not(.eyebrow),
.closing-panel p:not(.eyebrow),
.contact-panel p:not(.eyebrow),
.metric-card span,
.preview-label,
.mana-bar label {
  color: var(--muted);
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.metric-card,
.mana-curve-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.04);
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.metric-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  color: var(--text);
}

.preview-insights {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  margin-top: 22px;
}

.decklist-card,
.mana-curve-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.04);
}

.decklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.decklist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text);
}

.decklist li span {
  flex: 0 0 auto;
  min-width: 1.25rem;
  color: var(--gold-soft);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.mana-curve-card {
  display: flex;
  flex-direction: column;
}

.mana-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  margin-top: auto;
  padding-top: 18px;
}

.mana-bar {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 180px;
}

.mana-bar-fill {
  display: block;
  width: 100%;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #f0d28d, #c8922f);
  box-shadow: 0 10px 24px rgba(211, 166, 82, 0.22);
}

.mana-zero {
  height: 0%;
  min-height: 4px;
  opacity: 0.28;
}

.mana-one {
  height: 64%;
}

.mana-two {
  height: 100%;
}

.mana-three {
  height: 64%;
}

.mana-four {
  height: 28%;
}

.mana-five {
  height: 72%;
}

.mana-six {
  height: 0%;
  min-height: 4px;
  opacity: 0.28;
}

.mana-seven {
  height: 0%;
  min-height: 4px;
  opacity: 0.28;
}

.mana-bar label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(20, 17, 74, 0.98), rgba(10, 9, 44, 0.98));
}

.feature-card h3 {
  margin: 12px 0 14px;
}

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at right center, rgba(240, 210, 141, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--card-elevated), var(--card));
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d28d, #c8922f);
  color: #251601;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(211, 166, 82, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(211, 166, 82, 0.32);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal="left"] {
  transform: translateX(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .preview-grid,
  .preview-insights,
  .feature-band,
  .closing-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    padding: 0;
  }

  .preview-card {
    margin-top: 0;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    margin: 8px auto 18px;
    padding: 10px;
  }

  .topbar,
  .hero,
  .preview-card,
  .feature-card,
  .closing-panel,
  .contact-panel {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero,
  .preview-card,
  .feature-card,
  .closing-panel,
  .contact-panel {
    padding: 22px;
  }

  .hero {
    text-align: left;
  }

  h1 {
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .hero-lead {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

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