:root {
  --ink: #0c0d10;
  --ink-2: #151820;
  --paper: #f2efe8;
  --mute: rgba(242, 239, 232, 0.62);
  --amber: #f0b429;
  --amber-deep: #c98412;
  --plate: #e4dccb;
  --plate-edge: #b8ad96;
  --slot: #1c1d22;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --site-max: 1120px;
  --site-pad: clamp(1.5rem, 4.5vw, 2.75rem);
  /* Inset content from the viewport edges; background stays full-bleed */
  --content-inline: max(var(--site-pad), calc((100% - var(--site-max)) / 2));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

main {
  width: 100%;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
  padding-block: 3.75rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 35%, rgba(240, 180, 41, 0.18), transparent 60%),
    linear-gradient(165deg, #1a2030 0%, #10131a 42%, #0a0b0e 100%);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  right: var(--content-inline);
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.28), transparent 68%);
  filter: blur(8px);
  animation: breathe 4.5s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes breathe {
  from { opacity: 0.45; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.06); }
}

.hero-switch {
  position: absolute;
  right: var(--content-inline);
  top: 50%;
  transform: translateY(-52%);
  width: min(42%, 260px);
  z-index: 1;
  animation: rise-in 1.1s var(--ease) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(-42%) scale(0.96); }
  to { opacity: 1; transform: translateY(-52%) scale(1); }
}

.plate {
  aspect-ratio: 3 / 5;
  border-radius: 1.65rem;
  background: linear-gradient(145deg, #efe7d6, var(--plate) 45%, #d4c9b2);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  border: 3px solid rgba(0, 0, 0, 0.12);
  position: relative;
  display: grid;
  place-items: center;
}

.screw {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c8c8ce, #6f6f76);
}

.screw:nth-child(1) { top: 0.85rem; left: 0.85rem; }
.screw:nth-child(2) { top: 0.85rem; right: 0.85rem; }
.screw:nth-child(3) { bottom: 0.85rem; left: 0.85rem; }
.screw:nth-child(4) { bottom: 0.85rem; right: 0.85rem; }

.slot {
  width: 42%;
  height: 58%;
  border-radius: 1rem;
  background: var(--slot);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  position: relative;
}

.paddle {
  width: 78%;
  height: 48%;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #fff7d6, var(--amber) 40%, var(--amber-deep));
  box-shadow: 0 8px 24px rgba(240, 180, 41, 0.45);
  transform: translateY(-18%) rotateX(-12deg);
  transform-origin: center;
  animation: flip-on 1.4s var(--ease) 0.55s both;
  position: relative;
}

.paddle::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48%;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes flip-on {
  0% {
    transform: translateY(18%) rotateX(14deg);
    background: linear-gradient(180deg, #f7f7fa, #c9c9d1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }
  55% {
    transform: translateY(4%) rotateX(4deg);
  }
  100% {
    transform: translateY(-18%) rotateX(-12deg);
    background: linear-gradient(180deg, #fff7d6, var(--amber) 40%, var(--amber-deep));
    box-shadow: 0 8px 24px rgba(240, 180, 41, 0.45);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(34rem, 54%);
  margin-left: var(--content-inline);
  padding: 0 1.25rem 0 0;
  animation: copy-in 1s var(--ease) 0.15s both;
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  margin: 0 0 1.25rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--amber);
  color: #1a1204;
}

.btn-primary:hover {
  background: #ffc44a;
}

.btn-ghost {
  border-color: rgba(242, 239, 232, 0.22);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(242, 239, 232, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding: 4.25rem var(--site-pad);
  border-top: 1px solid rgba(242, 239, 232, 0.08);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.section p {
  margin: 0;
  color: var(--mute);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 38ch;
}

.footer {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding: 2rem var(--site-pad) 2.75rem;
  color: rgba(242, 239, 232, 0.4);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid rgba(242, 239, 232, 0.08);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer a:hover {
  color: var(--paper);
}

.legal {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: 3.5rem var(--site-pad) 4rem;
}

.legal-back {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.legal-back a:hover {
  color: var(--paper);
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal dd {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal a:hover {
  color: #ffc44a;
}

.legal code {
  font-size: 0.92em;
  color: var(--paper);
}

.faq {
  margin: 0;
}

.faq dt {
  margin: 1.25rem 0 0.35rem;
  font-weight: 700;
  color: var(--paper);
}

.faq dd {
  margin-left: 0;
}

@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding-block: 1.5rem 2.5rem;
  }

  .hero-stage {
    position: absolute;
    inset: 0;
    order: 0;
  }

  .hero-switch {
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    transform: none;
    width: min(46vw, 168px);
    margin: 2.25rem auto 0.25rem;
    order: 1;
    animation: rise-in-mobile 1.1s var(--ease) both;
  }

  @keyframes rise-in-mobile {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .hero-glow {
    right: 50%;
    top: 12%;
    transform: translateX(50%);
    width: min(90vw, 320px);
    height: min(90vw, 320px);
  }

  .hero-copy {
    order: 2;
    width: auto;
    margin-left: 0;
    margin-inline: var(--site-pad);
    justify-self: stretch;
    padding: 1rem 0 0;
    animation: none;
  }

  .brand {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .headline {
    max-width: none;
  }

  .lede {
    max-width: 36ch;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-switch,
  .paddle,
  .hero-copy {
    animation: none !important;
  }
}
