:root {
  --navy: #000b1e;
  --navy-mid: #0a1628;
  --navy-soft: #111f38;
  --blue-bright: #7dd3fc;
  --blue-mid: #3d8ec4;
  --blue-deep: #1e5f8a;
  --blue-glow: #5eb8e8;
  --ice: #e8f4fc;
  --ink: #e8f0f8;
  --ink-muted: #9eb4cc;
  --ink-dark: #0c1526;
  --white: #ffffff;
  --dough: #e8c89a;
  --dough-shadow: #c89452;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.5rem;

  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(94, 184, 232, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(61, 142, 196, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(94, 184, 232, 0.14), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 45%, #0d1a2e 100%);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--blue-mid);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-4);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.atmosphere__glow--one {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -8%;
  right: -6%;
  background: rgba(94, 184, 232, 0.28);
  animation: drift 16s ease-in-out infinite alternate;
}

.atmosphere__glow--two {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  bottom: 10%;
  left: -8%;
  background: rgba(30, 95, 138, 0.22);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.atmosphere__flour {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(125, 211, 252, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 55%, rgba(94, 184, 232, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 20%, rgba(125, 211, 252, 0.35) 0 1px, transparent 2px);
  background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px;
  animation: flour-drift 40s linear infinite;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: var(--space-4) var(--space-4) 0;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark__logo {
  width: auto;
  height: 2.75rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-bright);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--space-4) clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  min-height: min(88vh, 920px);
}

.hero__copy {
  animation: rise 0.9s var(--ease-out) both;
}

.site-nav {
  display: none;
  gap: var(--space-6);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-4);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(94, 184, 232, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming-soon__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue-glow);
  box-shadow: 0 0 0 0 rgba(94, 184, 232, 0.7);
  animation: pulse 2s ease-out infinite;
}

.hero__logo {
  width: min(100%, 18rem);
  height: auto;
  margin: 0 0 var(--space-4);
  filter: drop-shadow(var(--shadow-glow));
  animation: rise 0.9s var(--ease-out) both;
}

.hero__headline {
  margin: var(--space-4) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 22ch;
  letter-spacing: 0.01em;
}

.hero__lede {
  margin: var(--space-4) 0 0;
  max-width: 38ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.waitlist {
  margin-top: var(--space-8);
  max-width: 28rem;
}

.waitlist__row {
  display: grid;
  gap: var(--space-2);
}

.waitlist input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(125, 211, 252, 0.25);
  border-radius: var(--radius-md);
  background: rgba(10, 22, 40, 0.75);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist input::placeholder {
  color: var(--ink-muted);
}

.waitlist input:focus {
  border-color: var(--blue-glow);
  box-shadow: 0 0 0 4px rgba(94, 184, 232, 0.2);
}

.waitlist button,
.btn-secondary {
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(30, 95, 138, 0.45);
}

.waitlist button:hover,
.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.waitlist button:focus-visible,
.btn-secondary:focus-visible,
.site-nav a:focus-visible,
.brand-mark:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.waitlist__hint {
  margin: var(--space-3) 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.waitlist__status {
  margin: var(--space-3) 0 0;
  min-height: 1.4em;
  font-weight: 600;
  color: var(--blue-bright);
}

.waitlist__status.is-error {
  color: #f87171;
}

.hero__stage {
  animation: rise 1.05s var(--ease-out) 0.12s both;
}

.dough-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.dough-scene__board {
  position: absolute;
  inset: auto;
  width: min(100%, 420px);
  aspect-ratio: 1.15 / 1;
  border-radius: 42% 45% 40% 48% / 48% 40% 52% 44%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 248, 230, 0.5), transparent 40%),
    linear-gradient(145deg, #f3d4a0 0%, #e0b679 48%, #c89452 100%);
  box-shadow:
    inset 0 -18px 40px rgba(120, 78, 32, 0.28),
    0 28px 50px rgba(20, 40, 34, 0.2);
  transform: rotate(-4deg);
}

.dough-scene__slab {
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 65% 35%, rgba(255, 248, 230, 0.35), transparent 35%),
    linear-gradient(160deg, transparent, rgba(148, 102, 52, 0.12));
}

.dough-scene__cutout {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 11, 30, 0.15);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dough-scene__cutout--one {
  width: 18%;
  height: 18%;
  top: 22%;
  left: 18%;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.dough-scene__cutout--two {
  width: 14%;
  height: 14%;
  top: 58%;
  left: 62%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.dough-scene__cutout--three {
  width: 12%;
  height: 12%;
  top: 64%;
  left: 28%;
  border-radius: 40%;
}

.cutter-rig {
  position: relative;
  width: min(78%, 300px);
  z-index: 2;
  isolation: isolate;
}

.animated-cutter {
  width: 100%;
  height: auto;
  transform-origin: 50% 18%;
  animation: press-cut 3.6s var(--ease-out) infinite;
  filter: drop-shadow(0 14px 18px rgba(0, 11, 30, 0.45));
}

.cutter-rim {
  stroke: #6a5644;
}

.cutter-line {
  stroke: #efe6d4;
}

.cutter-body {
  transform-origin: 140px 40px;
}

.sparkles circle,
.sparkles path {
  fill: var(--blue-bright);
}

.spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkle 3.6s ease-in-out infinite;
}

.spark--a { animation-delay: 0.35s; }
.spark--b { animation-delay: 0.55s; }
.spark--c { animation-delay: 0.8s; }
.spark--d { animation-delay: 1s; }
.spark--e { animation-delay: 0.7s; }

.flour-burst {
  position: absolute;
  inset: 20% 10% 10%;
  pointer-events: none;
}

.flour-burst span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.85);
  opacity: 0;
  animation: burst 3.6s ease-out infinite;
}

.flour-burst span:nth-child(1) { left: 20%; top: 55%; animation-delay: 1.05s; }
.flour-burst span:nth-child(2) { left: 70%; top: 50%; animation-delay: 1.12s; }
.flour-burst span:nth-child(3) { left: 45%; top: 70%; animation-delay: 1.18s; }
.flour-burst span:nth-child(4) { left: 30%; top: 40%; animation-delay: 1.08s; }
.flour-burst span:nth-child(5) { left: 60%; top: 35%; animation-delay: 1.15s; }
.flour-burst span:nth-child(6) { left: 78%; top: 65%; animation-delay: 1.22s; }
.flour-burst span:nth-child(7) { left: 12%; top: 65%; animation-delay: 1.2s; }
.flour-burst span:nth-child(8) { left: 52%; top: 48%; animation-delay: 1.1s; }

.stage-caption {
  position: absolute;
  bottom: -0.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue-bright);
  letter-spacing: 0.01em;
  animation: rise 1.1s var(--ease-out) 0.35s both;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--space-4);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 var(--space-3);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-glow);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}

.section__lede {
  margin: var(--space-4) 0 0;
  max-width: 42ch;
  color: var(--ink-muted);
}

.craft {
  background:
    linear-gradient(180deg, transparent, rgba(94, 184, 232, 0.04) 20%, rgba(94, 184, 232, 0.06) 80%, transparent);
}

.craft-list {
  list-style: none;
  margin: var(--space-12) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

.craft-list h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.craft-list p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-muted);
}

.shape-gallery {
  list-style: none;
  margin: var(--space-12) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.shape-card {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.15);
  color: var(--blue-bright);
  transition: transform 0.35s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}

.shape-card svg {
  width: 4.5rem;
  height: 4.5rem;
}

.shape-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

.shape-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 22, 40, 0.85);
  border-color: rgba(125, 211, 252, 0.35);
}

.notify__panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: calc(var(--radius-lg) + 0.35rem);
  background:
    radial-gradient(ellipse at top, rgba(94, 184, 232, 0.2), transparent 55%),
    linear-gradient(145deg, var(--navy-soft) 0%, var(--navy-mid) 55%, var(--navy) 100%);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--ice);
  box-shadow: var(--shadow-soft);
}

.notify__panel .section__eyebrow {
  color: var(--blue-bright);
}

.notify__panel h2 {
  margin-inline: auto;
  color: var(--white);
}

.notify__panel .section__lede {
  margin-inline: auto;
  color: var(--ink-muted);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-8);
  background: linear-gradient(135deg, var(--blue-glow) 0%, var(--blue-mid) 100%);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(94, 184, 232, 0.35);
}

.btn-secondary:hover {
  filter: brightness(1.08);
  color: var(--navy);
}

.site-footer {
  padding: var(--space-12) var(--space-4) var(--space-8);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  padding-top: var(--space-8);
}

.site-footer__logo {
  width: auto;
  height: 5.5rem;
  object-fit: contain;
  opacity: 0.9;
}

.site-footer__note,
.site-footer__copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 184, 232, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(94, 184, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 184, 232, 0);
  }
}

@keyframes press-cut {
  0%,
  10% {
    transform: translateY(-18px) rotate(-8deg) scale(1);
  }
  28% {
    transform: translateY(18px) rotate(-2deg) scale(0.97);
  }
  38% {
    transform: translateY(12px) rotate(0deg) scale(1);
  }
  55% {
    transform: translateY(-8px) rotate(6deg) scale(1.02);
  }
  75%,
  100% {
    transform: translateY(-18px) rotate(-8deg) scale(1);
  }
}

@keyframes sparkle {
  0%,
  25% {
    opacity: 0;
    transform: scale(0.4);
  }
  40%,
  55% {
    opacity: 1;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes burst {
  0%,
  28% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  38% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translate(var(--dx, 18px), var(--dy, -28px)) scale(1);
  }
  100% {
    opacity: 0;
  }
}

.flour-burst span:nth-child(odd) {
  --dx: -22px;
  --dy: -30px;
}

.flour-burst span:nth-child(even) {
  --dx: 24px;
  --dy: -26px;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, 18px);
  }
}

@keyframes flour-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 180px 120px, -80px 160px, 60px -100px, -120px 40px;
  }
}

@media (min-width: 640px) {
  .waitlist__row {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .craft-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .shape-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
  }

  .dough-scene {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animated-cutter {
    transform: none;
  }
}
