:root {
  color-scheme: dark;
  --void: #07020f;
  --void-2: #10081c;
  --ink: #fff8ea;
  --muted: #cbb9a3;
  --bread: #f2b15c;
  --crust: #b8642f;
  --neon-pink: #ff3fb7;
  --neon-cyan: #28f7ff;
  --neon-violet: #7b4dff;
  --panel: rgba(12, 6, 24, 0.72);
  --panel-strong: rgba(18, 9, 34, 0.9);
  --line: rgba(255, 248, 234, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 63, 183, 0.22), transparent 28rem),
    radial-gradient(circle at 12% 20%, rgba(40, 247, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #05010b 0%, #10051c 45%, #170918 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 75%);
  z-index: -2;
}

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

a {
  color: inherit;
}

.spacefield {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.72;
  box-shadow:
    18vw 12vh 0 #fff,
    34vw 18vh 0 rgba(255,255,255,0.6),
    64vw 8vh 0 rgba(255,255,255,0.85),
    82vw 24vh 0 rgba(255,255,255,0.5),
    14vw 58vh 0 rgba(255,255,255,0.72),
    76vw 66vh 0 rgba(255,255,255,0.64),
    42vw 82vh 0 rgba(255,255,255,0.5),
    92vw 88vh 0 rgba(255,255,255,0.8);
}

.star--a { left: 3rem; top: 4rem; }
.star--b { left: 28rem; top: 19rem; transform: scale(1.4); opacity: 0.45; }
.star--c { right: 16rem; top: 42rem; transform: scale(0.8); opacity: 0.55; }

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.55;
}

.orb--pink {
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: 14rem;
  border: 1px solid rgba(255, 63, 183, 0.4);
  box-shadow: inset 0 0 60px rgba(255, 63, 183, 0.18), 0 0 90px rgba(255, 63, 183, 0.24);
}

.orb--cyan {
  width: 13rem;
  height: 13rem;
  left: -5rem;
  top: 54rem;
  border: 1px solid rgba(40, 247, 255, 0.36);
  box-shadow: inset 0 0 60px rgba(40, 247, 255, 0.12), 0 0 80px rgba(40, 247, 255, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 2, 15, 0.68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 248, 234, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(242, 177, 92, 0.55);
  border-radius: 50%;
  color: var(--bread);
  box-shadow: 0 0 24px rgba(242, 177, 92, 0.22);
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.hero,
.mission,
.make,
.notes {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.hero__copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--neon-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 37rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.btn:not(:disabled):hover,
.btn:not(:disabled):focus-visible {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--bread), #ffdf91);
  color: #1b0d12;
  box-shadow: 0 14px 38px rgba(242, 177, 92, 0.24);
}

.btn--primary:not(:disabled):hover {
  background: linear-gradient(135deg, #ffc06c, #fff0b9);
}

.btn--ghost {
  background: rgba(255, 248, 234, 0.06);
  color: var(--ink);
  border-color: rgba(255, 248, 234, 0.22);
}

.btn--ghost:not(:disabled):hover {
  background: rgba(255, 248, 234, 0.1);
  border-color: rgba(40, 247, 255, 0.42);
}

.hero__planet {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero__planet img {
  aspect-ratio: 1 / 1;
  width: min(34rem, 100%);
  margin-inline: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 234, 0.22);
  box-shadow:
    inset 0 0 70px rgba(0,0,0,0.6),
    0 0 0 1rem rgba(255, 63, 183, 0.035),
    0 30px 110px rgba(0, 0, 0, 0.68),
    0 0 80px rgba(242, 177, 92, 0.2);
}

.planet__halo {
  position: absolute;
  inset: 7%;
  z-index: -1;
  border: 1px solid rgba(40, 247, 255, 0.38);
  border-radius: 50%;
  transform: rotate(-18deg) scaleX(1.38);
  box-shadow: 0 0 60px rgba(40, 247, 255, 0.15);
}

.hero__planet figcaption {
  width: fit-content;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mission,
.make,
.notes {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.mission h2,
.section-heading h2,
.notes h2 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mission article,
.notes {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission article {
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.mission h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.mission p,
.notes p,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading p {
  max-width: 45rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.wizard {
  min-height: 33rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.wizard__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wizard__header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.wizard__progress {
  margin: 0;
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.wizard__card {
  flex: 1;
  background: rgba(255, 248, 234, 0.055);
  border: 1px solid rgba(255, 248, 234, 0.1);
  border-radius: 22px;
  padding: clamp(1.1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard__step-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.wizard__step-body {
  color: rgba(255, 248, 234, 0.9);
  font-size: 1rem;
  line-height: 1.68;
}

.wizard__step-body p { margin: 0; }
.wizard__step-body p + p,
.wizard__step-body p + ul,
.wizard__step-body ul + p { margin-top: 0.85rem; }

.wizard__step-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.wizard__step-body li + li { margin-top: 0.35rem; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field__control {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 248, 234, 0.22);
  background: rgba(7, 2, 15, 0.6);
  color: var(--ink);
  font: inherit;
}

.field__control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(40, 247, 255, 0.18);
}

select.field__control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff8ea' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.ingredients {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  border: 1px solid rgba(255, 248, 234, 0.12);
  border-radius: 18px;
  overflow: hidden;
}

.ingredients li {
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: rgba(255, 248, 234, 0.035);
}

.ingredients li + li {
  border-top: 1px solid rgba(255, 248, 234, 0.08);
  margin-top: 0;
}

.ingredients strong {
  min-width: 4.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--bread);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.65rem;
}

.nutrition {
  background: rgba(255, 248, 234, 0.97);
  color: #24100f;
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}

.nutrition__title {
  margin: 0 0 0.25rem;
  color: #24100f;
  font-size: 1.25rem;
  font-weight: 800;
}

.nutrition__caption {
  margin: 0 0 0.85rem;
  color: rgba(36, 16, 15, 0.72);
}

.nutrition__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.nutrition__table th,
.nutrition__table td {
  padding: 0.48rem 0;
  border-top: 1px solid rgba(36, 16, 15, 0.16);
  text-align: left;
  vertical-align: top;
}

.nutrition__table thead th {
  border-top: 2px solid #24100f;
  border-bottom: 1px solid #24100f;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nutrition__table td {
  text-align: right;
  white-space: nowrap;
}

.nutrition__indent th {
  padding-left: 0.75rem;
  font-weight: 500;
}

.nutrition__footnote {
  margin: 0.85rem 0 0;
  color: rgba(36, 16, 15, 0.65);
  font-size: 0.75rem;
}

.notes {
  padding: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 4rem;
}

.notes p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: rgba(255, 248, 234, 0.52);
  border-top: 1px solid rgba(255, 248, 234, 0.1);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero,
  .layout,
  .mission__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero__planet {
    order: -1;
    max-width: 28rem;
    margin: 0 auto;
  }

  .nutrition {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand__text { display: none; }
  .site-nav { font-size: 0.7rem; gap: 0.75rem; }
  .hero, .mission, .make, .notes { width: min(100% - 1rem, 1180px); }
  .hero__actions, .wizard__nav { flex-direction: column; }
  .btn { width: 100%; }
  .picker { grid-template-columns: 1fr; }
  .wizard__header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
