/* ============================================================
   HOOTIES — soft abstract art world
   Built on the official HOOTIES brand tokens.
   ============================================================ */

:root {
  /* palette (from hooties_brand_assets/03_palette) */
  --cream:      #FFF0D4;
  --cream-card: #FFF7E7;
  --charcoal:   #171717;
  --purple:     #7560C8;
  --lavender:   #9887D9;
  --blue:       #5F8DDB;
  --deep-blue:  #1555C9;
  --teal:       #0E6570;
  --mint:       #8EC7A1;
  --green-soft: #BFE2C4;
  --orange:     #F86E1E;
  --yellow:     #FDBE35;
  --red:        #C92926;
  --pink:       #EA8EB5;

  --ink-soft: #5b5468;

  --radius-soft: 24px;
  --radius-card: 34px;
  --radius-pill: 999px;
  --radius-xl: 46px;

  --shadow-soft: 0 18px 44px rgba(23, 23, 23, 0.10);
  --shadow-card: 0 22px 48px -22px rgba(23, 23, 23, 0.28);

  --font-display: "Baloo 2", "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .nav__cta, .btn, .footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* ---------- ambient background blobs ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-blob {
  position: absolute;
  border-radius: 50% 46% 54% 48% / 50% 52% 48% 50%;
  filter: blur(6px);
  opacity: 0.32;
  animation: breathe 16s var(--ease) infinite;
}
.bg-blob--purple { width: 46vw; height: 46vw; top: -12vw; left: -8vw;  background: var(--lavender); }
.bg-blob--orange { width: 34vw; height: 34vw; top: 28vh;  right: -12vw; background: var(--orange); animation-delay: -4s; }
.bg-blob--mint   { width: 40vw; height: 40vw; bottom: 8vh; left: -12vw; background: var(--mint); animation-delay: -8s; }
.bg-blob--pink   { width: 28vw; height: 28vw; bottom: -8vw; right: 6vw; background: var(--pink); animation-delay: -11s; }

/* ---------- floating dots ---------- */
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dots span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: float var(--dur, 9s) ease-in-out infinite;
}

/* ---------- layout shell ---------- */
.section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 40px);
}
.section__head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.section__head h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 6px; }
.section__head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.pill {
  display: inline-block;
  background: var(--mint);
  color: #0c4a2e;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill--purple { background: var(--lavender); color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  will-change: transform;
}
.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(117, 96, 200, 0.9);
}
.btn--primary:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 22px 34px -14px rgba(117, 96, 200, 0.95); }
.btn--ghost {
  background: var(--cream-card);
  color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--lavender);
}
.btn--ghost:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--purple); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none; }
.is-hidden { display: none !important; }

/* ============================================================
   NAV + HERO
   ============================================================ */
.hero { position: relative; padding-bottom: 30px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 40px) 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; color: var(--charcoal); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.nav__cta {
  background: var(--charcoal); color: var(--cream); text-decoration: none;
  padding: 11px 22px; border-radius: var(--radius-pill); font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-3px); }

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 60px) clamp(20px, 5vw, 40px) 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.hero__copy { text-align: center; }
.hero__title {
  font-size: clamp(3.6rem, 17vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  margin: 18px 0 12px;
  color: var(--charcoal);
}
.hero__sub { font-size: clamp(1.1rem, 3vw, 1.45rem); color: var(--ink-soft); max-width: 28ch; margin: 0 auto 28px; }

/* hero art / character / orbits */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(82vw, 460px);
  justify-self: center;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 6px solid color-mix(in srgb, var(--purple) 60%, transparent);
  animation: spin 22s linear infinite;
}
.orbit--a { width: 100%; height: 64%; transform: rotate(-18deg); }
.orbit--b { width: 70%; height: 100%; border-color: color-mix(in srgb, var(--teal) 55%, transparent); animation-duration: 30s; animation-direction: reverse; }

/* dots that ride the orbit */
.orbit-dots { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.orbit-dots span { position: absolute; border-radius: 50%; }
.orbit-dots span:nth-child(1) { width: 26px; height: 26px; background: var(--pink);  top: 40%; left: -4%; }
.orbit-dots span:nth-child(2) { width: 24px; height: 24px; background: var(--yellow); bottom: 18%; right: 2%; }
.orbit-dots span:nth-child(3) { width: 20px; height: 20px; background: var(--deep-blue); top: 22%; right: 6%; }

.hero__character {
  position: relative;
  width: 80%;
  z-index: 2;
  filter: drop-shadow(0 24px 30px rgba(23,23,23,0.18));
}

/* ---------- drifting wave ---------- */
.wave {
  width: 100%;
  height: clamp(70px, 11vw, 150px);
  background: url("hooties_brand_assets/06_decorations/wavy_line.svg") center/cover no-repeat;
  margin-top: 8px;
  animation: drift 12s ease-in-out infinite;
}

/* ============================================================
   MEET — cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.card {
  background: var(--cream-card);
  border-radius: var(--radius-card);
  padding: 26px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-12px) rotate(-1deg); box-shadow: 0 32px 52px -24px rgba(23,23,23,0.4); }
.card__art {
  border-radius: var(--radius-soft);
  padding: 16px;
  margin-bottom: 18px;
}
.card__art .hootie { width: 64%; margin: 0 auto; animation: bob 6s ease-in-out infinite; }
.card h3 { font-size: 1.6rem; margin: 0 0 4px; }
.card p { margin: 0; color: var(--ink-soft); }
.card--lavender .card__art { background: #ece6fa; }
.card--orange   .card__art { background: #fde6d6; }
.card--mint     .card__art { background: #ddf0e2; }

/* ============================================================
   ABOUT — lore
   ============================================================ */
.lore {
  position: relative;
  background: linear-gradient(135deg, #ece6fa, #fde6d6);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 6vw, 64px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.lore__body { max-width: 48ch; position: relative; z-index: 1; }
.lore__body h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 14px 0; }
.lore__body p { font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--ink-soft); margin: 0; }
.lore__peek {
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: clamp(140px, 28vw, 240px);
  opacity: 0.95;
  transform: rotate(8deg);
  animation: bob 7s ease-in-out infinite;
}

/* ============================================================
   TASKBOARD
   ============================================================ */
.progress { height: 10px; background: var(--cream-card); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 30px; box-shadow: inset 0 0 0 1px rgba(23,23,23,0.06); }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange)); border-radius: inherit; transition: width 0.6s var(--ease); }

.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.task {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--cream-card);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.4s, filter 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.task.is-locked { opacity: 0.5; filter: grayscale(0.55); pointer-events: none; }
.task.is-locked .task__lock { display: grid; }
.task.is-active { box-shadow: 0 0 0 3px var(--lavender), var(--shadow-card); }
.task.is-done { background: #eef8f0; }
.task.is-done .task__check { display: grid; }

.task__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lavender);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
}
.task.is-done .task__num { background: var(--mint); color: #0c4a2e; }
.task__main h3 { font-size: 1.4rem; margin: 4px 0 4px; }
.task__main > p { margin: 0 0 16px; color: var(--ink-soft); }
.task__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.task__lock, .task__check {
  position: absolute;
  top: 18px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 1rem;
}
.task__lock { background: rgba(23,23,23,0.08); }
.task__lock::after { content: "🔒"; }
.task__check { background: var(--mint); }
.task__check::after { content: "✓"; color: #0c4a2e; font-weight: 900; }

/* wallet input */
.input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--lavender);
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.3s;
}
.input:focus { outline: none; border-color: var(--purple); }
.input.is-valid { border-color: var(--mint); }
.input.is-invalid { border-color: var(--red); }
.hint { margin: 10px 2px 0; font-size: 0.92rem; min-height: 1.2em; }
.hint.is-error { color: var(--red); }
.hint.is-ok { color: #0c4a2e; }

/* choices */
.choices { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.choice {
  flex: 1 1 140px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px;
  border-radius: var(--radius-soft);
  border: 2px solid var(--lavender);
  background: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.choice:hover { transform: translateY(-4px); }
.choice__emoji { font-size: 1.9rem; }
.choice.is-selected { border-color: var(--purple); background: #ece6fa; }

/* success */
.success {
  margin-top: 18px;
  display: flex; align-items: center; gap: 16px;
  background: var(--mint);
  border-radius: var(--radius-soft);
  padding: 16px 22px;
  animation: pop 0.5s var(--ease);
}
.success__hootie { width: 56px; height: 56px; flex: none; animation: bob 5s ease-in-out infinite; }
.success p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #0c4a2e; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: 60px 20px 72px; }
.footer__icon { width: 66px; height: 66px; margin: 0 auto 14px; animation: bob 6s ease-in-out infinite; }
.footer__brand { font-size: 2.2rem; font-weight: 800; letter-spacing: 0.02em; }
.footer__tag { margin: 4px 0 0; color: var(--purple); font-weight: 700; letter-spacing: 0.06em; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(5deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(8px); }
}
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3%); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}
@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   RESPONSIVE (desktop)
   ============================================================ */
@media (min-width: 760px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__copy { text-align: left; }
  .hero__sub { margin-left: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* reCAPTCHA widget spacing */
#recaptcha { margin: 14px 0 4px; }
