/* ---------- Brand tokens ---------- */
:root {
  --blue:   #2563EB;
  --green:  #84CC16;
  --purple: #8B5CF6;
  --ink:    #0B1020;
  --cream:  #F7FAF4;

  --font-heading: "Russo One", system-ui, sans-serif;
  --font-body:    "Chakra Petch", system-ui, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 24px;
  --shadow-chunk: 0 6px 0 rgba(0, 0, 0, 0.35);
  --shadow-card: 0 12px 32px rgba(11, 16, 32, 0.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font-family: inherit; cursor: pointer; border: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Honeypot */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  color: var(--ink);
}
.wordmark__accent { color: var(--green); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(247, 250, 244, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid rgba(11, 16, 32, 0.08);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.topbar__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  min-height: 32px;
}

.pill--made {
  background: var(--purple);
  color: #FFFFFF;
}

@media (min-width: 640px) {
  .topbar { padding: 14px 32px; }
  .pill { font-size: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  min-height: calc(100vh - 64px);
  padding: 48px 20px 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  width: 100%;
  max-width: 780px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__logo {
  width: min(420px, 72vw);
  height: auto;
  margin: 0 auto 28px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(11, 16, 32, 0.75);
  margin: 0;
}

.hero__sub--accent { color: var(--purple); }

/* Shurikens */
.shuriken {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(11, 16, 32, 0.18));
  animation: spin 8s linear infinite;
  z-index: 1;
}
.shuriken--1 { top: 10%;  left: 6%;   width: 44px; animation-duration: 9s; }
.shuriken--2 { top: 18%;  right: 8%;  width: 58px; animation-duration: 11s; }
.shuriken--3 { bottom: 28%; left: 12%; width: 40px; animation-duration: 7s; }
.shuriken--4 { bottom: 18%; right: 10%; width: 52px; animation-duration: 10s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Wave */
.wave {
  display: block;
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  bottom: -1px;
}
.wave--bottom { bottom: -1px; }

@media (min-width: 768px) {
  .wave { height: 120px; }
  .shuriken--1 { width: 54px; }
  .shuriken--2 { width: 72px; }
  .shuriken--3 { width: 48px; }
  .shuriken--4 { width: 64px; }
}

/* ---------- Countdown ---------- */
.countdown {
  position: relative;
  background: var(--purple);
  padding: 80px 20px 140px;
  color: var(--cream);
  text-align: center;
}

.countdown__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.countdown__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .countdown__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.cd-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 20px 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.cd-card__num {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.cd-card__label {
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.countdown__fallback {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 24px 0 0;
}

/* ---------- Signup ---------- */
.signup {
  position: relative;
  background: var(--cream);
  padding: 80px 20px 140px;
  text-align: center;
}

.signup__inner {
  max-width: 620px;
  margin: 0 auto;
}

.signup__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  color: var(--ink);
  margin: 0 0 12px;
}

.signup__lede {
  font-weight: 500;
  color: rgba(11, 16, 32, 0.72);
  margin: 0 0 28px;
  font-size: 1rem;
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .signup__form {
    flex-direction: row;
    align-items: center;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    padding: 6px;
  }
}

.signup__input {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.signup__input::placeholder { color: rgba(11, 16, 32, 0.5); }

.signup__input:focus {
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.4);
  border-color: var(--green);
}

@media (min-width: 640px) {
  .signup__input {
    border: 0;
    flex: 1;
    box-shadow: none !important;
  }
}

.signup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  font-size: 1rem;
  box-shadow: var(--shadow-chunk);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.signup__btn:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.signup__btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.signup__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup__btn-spark {
  width: 16px;
  height: 16px;
  animation: spin 6s linear infinite;
}

.form-error {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  padding-left: 16px;
}

@media (min-width: 640px) {
  .form-error {
    width: 100%;
    text-align: center;
    padding: 4px 0 0;
  }
}

.signup__privacy {
  margin: 20px auto 0;
  max-width: 520px;
  color: rgba(11, 16, 32, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Feature peek ---------- */
.peek {
  background: var(--cream);
  color: var(--ink);
  padding: 80px 20px 80px;
}

.peek__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.peek__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 32px;
  text-align: center;
}

.peek__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .peek__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.peek-card {
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.2;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 96px;
}

.peek-card:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.peek-card--blue   { background: var(--blue); color: var(--cream); }
.peek-card--green  { background: var(--green); color: var(--ink); }
.peek-card--purple { background: var(--purple); color: var(--cream); }

.peek-card--blue .peek-card__icon path,
.peek-card--purple .peek-card__icon path {
  fill: var(--cream);
}

.peek-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.1) rotate(12deg); }
}

.peek-card__text { margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 20px 48px;
  border-top: 2px solid rgba(247, 250, 244, 0.08);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.footer__wordmark {
  color: var(--cream);
  font-size: 1.1rem;
  margin: 0;
}

.footer__line {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(247, 250, 244, 0.6);
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 250, 244, 0.08);
  color: var(--cream);
  transition: background 0.2s ease, transform 0.15s ease;
}

.social:hover { background: var(--green); color: var(--ink); transform: translateY(-2px); }
.social:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  border: 2px solid var(--green);
}

.toast[hidden] { display: none; }

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg { width: 20px; height: 20px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .shuriken, .signup__btn-spark, .peek-card__icon {
    animation: none !important;
  }
}
