/* ============================================================
   Moodio landing page — styles
   Palette, fonts and keyframes copied from the approved design
   (design-source.dc.html). Standalone page: oklch values are
   kept literally; there is no shared token system.
   ============================================================ */

:root {
  --bg:        oklch(0.17 0.014 264);
  --panel:     oklch(0.225 0.016 264);
  --text:      oklch(0.97 0.005 264);
  --text-soft: oklch(0.74 0.015 264);
  --text-mute: oklch(0.72 0.015 264);
  --accent-cyan: oklch(0.80 0.12 210);
  --accent-blue: oklch(0.64 0.16 258);
  --border:    oklch(0.45 0.02 264 / 0.45);
  --focus:     oklch(0.84 0.13 200);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: oklch(0.80 0.12 210); color: #06121a; }

/* ---- keyframes (from design) ---- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes halo   { 0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.14; } 50% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.34; } }

/* ---- shared focus indicator ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- ambient background ---- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -12%, oklch(0.8 0.12 210 / 0.12), transparent 60%),
    radial-gradient(55vw 55vw at 100% 6%, oklch(0.64 0.16 258 / 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 50% 120%, oklch(0.72 0.15 320 / 0.10), transparent 60%);
}

.page { position: relative; min-height: 100vh; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--lg { padding: 14px 26px; border-radius: 13px; font-size: 16px; }
.btn--xl { padding: 16px 32px; border-radius: 14px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  color: #051019;
  background: linear-gradient(120deg, oklch(0.80 0.12 210), oklch(0.64 0.16 258));
  box-shadow: 0 8px 22px -10px oklch(0.64 0.16 258 / 0.7);
}
.btn--primary.btn--lg { box-shadow: 0 12px 30px -12px oklch(0.64 0.16 258 / 0.8); }

.btn--ghost {
  color: oklch(0.92 0.01 264);
  background: oklch(0.27 0.018 264 / 0.6);
  border: 1px solid oklch(0.5 0.025 264 / 0.5);
  backdrop-filter: blur(8px);
  font-weight: 600;
}

.btn--invert {
  color: #06121a;
  background: oklch(0.98 0.01 230);
  box-shadow: 0 16px 40px -16px #000a;
}

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

/* ============ brand ============ */
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, oklch(0.80 0.12 210), oklch(0.64 0.16 258));
  box-shadow: 0 6px 18px -6px oklch(0.64 0.16 258 / 0.8);
}
.brand__logo--sm { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; box-shadow: none; }
.brand__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 23px; letter-spacing: -0.03em;
  background: linear-gradient(120deg, oklch(0.84 0.12 205), oklch(0.66 0.16 262));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name--sm { font-size: 18px; }

.grad-text {
  background: linear-gradient(120deg, oklch(0.84 0.13 200), oklch(0.70 0.16 300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: oklch(0.17 0.014 264 / 0.6);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid oklch(0.45 0.02 264 / 0.28);
}
.nav__links { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); }
.nav__link {
  color: oklch(0.78 0.018 264);
  text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.nav__link:hover { color: var(--text); }

/* ============ hero ============ */
.hero {
  position: relative; z-index: 1;
  min-height: 86vh;
  display: grid; place-items: center; text-align: center;
  padding: clamp(40px, 7vh, 90px) clamp(20px, 5vw, 64px) clamp(60px, 9vh, 110px);
}
.hero__pins { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__inner {
  position: relative; z-index: 2; max-width: 880px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: oklch(0.86 0.07 205);
  background: oklch(0.225 0.016 264 / 0.7);
  border: 1px solid oklch(0.45 0.02 264 / 0.5);
  backdrop-filter: blur(8px);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.80 0.14 145);
  box-shadow: 0 0 10px oklch(0.80 0.14 145);
}
.badge__text { font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em; }

.hero__title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance;
}
.hero__lede {
  margin: 0; max-width: 580px;
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5;
  color: var(--text-soft); text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 6px;
}

/* ---- decorative mood pins (generated in JS) ---- */
.pin { position: absolute; animation: floaty var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
.pin__halo {
  position: absolute; left: 50%; top: 50%;
  width: var(--halo); height: var(--halo);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color) 0%, transparent 68%);
  animation: halo var(--haloDur) ease-in-out infinite;
  animation-delay: var(--delay);
}
.pin__face {
  position: relative;
  width: var(--size); height: var(--size);
  border-radius: 50%; display: grid; place-items: center;
  font-size: var(--font);
  background: oklch(0.225 0.016 264);
  border: 2px solid var(--color);
  box-shadow: 0 0 16px var(--color), 0 8px 20px -8px #000c;
}

/* ---- floating glass mood cards (only >= 1240px) ---- */
.moodcard {
  position: absolute; z-index: 3;
  width: 214px; padding: 14px 15px;
  border-radius: 16px; text-align: left;
  background: oklch(0.225 0.016 264 / 0.82);
  border: 1px solid oklch(0.45 0.02 264 / 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px -20px #000c;
  display: none; /* hidden by default; revealed >= 1240px */
}
.moodcard--tr { top: 96px; right: clamp(16px, 3.5vw, 64px); animation: floaty 9s ease-in-out infinite; }
.moodcard--bl { bottom: 7%; left: clamp(16px, 3.5vw, 64px); animation: floaty 11s ease-in-out infinite; animation-delay: 1.5s; }
.moodcard__head { display: flex; align-items: center; gap: 9px; }
.moodcard__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: oklch(0.27 0.018 264); border: 2px solid oklch(0.45 0.02 264);
}
.moodcard__name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.moodcard__loc { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: oklch(0.62 0.015 264); line-height: 1.2; }
.moodcard__body { margin: 9px 0 0; font-size: 13.5px; line-height: 1.4; color: oklch(0.86 0.01 264); }

@media (min-width: 1240px) {
  .moodcard { display: block; }
}

/* ============ sections ============ */
.section {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
}
.section--how { padding: clamp(50px, 9vh, 110px) clamp(20px, 5vw, 64px); }
.section--features { padding: clamp(40px, 6vh, 70px) clamp(20px, 5vw, 64px) clamp(60px, 10vh, 120px); }
.section--cta { padding: 0 clamp(20px, 5vw, 64px) clamp(40px, 6vh, 70px); max-width: none; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vh, 64px); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: oklch(0.80 0.10 205); margin-bottom: 14px;
}
.section__title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.05; letter-spacing: -0.03em;
}

/* ============ grids + cards ============ */
.grid { display: grid; gap: 20px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  border-radius: 20px;
  background: oklch(0.225 0.016 264 / 0.7);
  border: 1px solid oklch(0.45 0.02 264 / 0.45);
  backdrop-filter: blur(12px);
}
.card--step { padding: 28px 26px 30px; }
.card--feature { padding: 26px 24px 28px; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card__glyph {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: oklch(0.27 0.018 264); border: 1px solid var(--border);
}
.card__glyph--sm {
  width: 48px; height: 48px; border-radius: 14px; font-size: 24px; margin-bottom: 18px;
}
.card__num { font-family: 'JetBrains Mono', monospace; font-size: 38px; font-weight: 600; color: oklch(0.34 0.02 264); }
.card__title {
  margin: 0 0 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 21px; letter-spacing: -0.02em;
}
.card__title--sm { font-size: 19px; }
.card__body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-mute); }
.card--feature .card__body { font-size: 14.5px; }

/* ============ featured map card ============ */
.mapcard {
  position: relative; border-radius: 24px; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); margin-bottom: 20px;
  background: linear-gradient(135deg, oklch(0.21 0.018 264), oklch(0.19 0.02 264));
  border: 1px solid oklch(0.45 0.02 264 / 0.5);
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
.mapcard__copy { position: relative; z-index: 2; max-width: 440px; }
.mapcard__tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  color: oklch(0.86 0.07 205);
  background: oklch(0.27 0.018 264 / 0.7); border: 1px solid oklch(0.45 0.02 264 / 0.5);
  margin-bottom: 18px;
}
.mapcard__title {
  margin: 0 0 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05; letter-spacing: -0.025em;
}
.mapcard__body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-soft); max-width: 400px; }

.minimap {
  position: relative; height: clamp(220px, 30vw, 300px);
  border-radius: 18px;
  background: radial-gradient(80% 80% at 50% 40%, oklch(0.20 0.02 264), oklch(0.155 0.015 264));
  border: 1px solid oklch(0.4 0.02 264 / 0.4); overflow: hidden;
}
.minimap__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.45 0.02 264 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.45 0.02 264 / 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
}
.minimap__pins { position: absolute; inset: 0; }
.mappin { position: absolute; }
.mappin__halo {
  position: absolute; left: 50%; top: 50%;
  width: var(--halo); height: var(--halo);
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, var(--color) 0%, transparent 66%);
  animation: halo var(--haloDur) ease-in-out infinite; animation-delay: var(--delay);
}
.mappin__face {
  position: relative; width: var(--size); height: var(--size);
  border-radius: 50%; display: grid; place-items: center; font-size: var(--font);
  background: oklch(0.225 0.016 264); border: 2px solid var(--color);
  box-shadow: 0 0 12px var(--color);
}

@media (min-width: 880px) {
  .mapcard { grid-template-columns: 1fr 1fr; }
}

/* ============ footer CTA band ============ */
.ctaband {
  position: relative; overflow: hidden;
  max-width: 1100px; margin: 0 auto; border-radius: 28px;
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 60px); text-align: center;
  background: linear-gradient(135deg, oklch(0.30 0.07 215), oklch(0.34 0.10 270));
}
.ctaband__glow {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(40% 60% at 20% 0%, oklch(0.85 0.14 200 / 0.5), transparent 60%),
    radial-gradient(40% 60% at 90% 100%, oklch(0.70 0.18 310 / 0.5), transparent 60%);
}
.ctaband__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ctaband__title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: oklch(0.99 0.01 230); max-width: 640px; text-wrap: balance;
}
.ctaband__lede {
  margin: 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.5;
  color: oklch(0.95 0.02 230 / 0.85); max-width: 460px;
}

/* ============ footer ============ */
.footer {
  position: relative; z-index: 1;
  padding: clamp(28px, 4vh, 44px) clamp(20px, 5vw, 64px);
  border-top: 1px solid oklch(0.45 0.02 264 / 0.22);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer__tag {
  margin: 0; font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: oklch(0.66 0.018 264);
}

/* ============ reveal-on-scroll (additive — JS adds the hidden state) ============ */
[data-reveal].pre-reveal {
  opacity: 0;
  transform: translateY(24px);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
}

/* ============ waitlist modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: oklch(0.12 0.014 264 / 0.72);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: oklch(0.21 0.016 264);
  border: 1px solid oklch(0.45 0.02 264 / 0.55);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 30px 80px -30px #000e;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid oklch(0.45 0.02 264 / 0.45);
  background: oklch(0.27 0.018 264 / 0.6);
  color: oklch(0.82 0.015 264);
  font-size: 14px; cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { color: var(--text); }
.modal__title {
  margin: 0 0 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.025em;
}
.modal__desc { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.modal__body--success { text-align: center; }
.success__emoji { font-size: 44px; margin-bottom: 12px; }

.waitlist-form { display: flex; flex-direction: column; gap: 10px; }
.waitlist-form__label {
  font-size: 13px; font-weight: 600;
  color: oklch(0.80 0.015 264);
  font-family: 'JetBrains Mono', monospace;
}
.waitlist-form__input {
  width: 100%; padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid oklch(0.45 0.02 264 / 0.55);
  background: oklch(0.27 0.018 264 / 0.5);
  color: var(--text); font-size: 16px; font-family: inherit;
}
.waitlist-form__input::placeholder { color: oklch(0.55 0.015 264); }
.waitlist-form__error {
  margin: 2px 0 0; font-size: 13.5px; line-height: 1.4;
  color: oklch(0.78 0.15 25);
}
.waitlist-form__error[hidden] { display: none; }
.waitlist-form .btn { margin-top: 8px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ============ reduced motion: suppress non-essential motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin, .pin__halo, .mappin__halo, .moodcard { animation: none !important; }
  [data-reveal].reveal-in { transition: none !important; }
}
