/* ══════════════════════════════════════════════════════════
   SENSORY SPACE landing page
   navy #100d3a · blue #7ca4ff · purple #9889fd · cyan #00ffff
   ══════════════════════════════════════════════════════════ */
:root {
  --navy: #100d3a;
  --navy-deep: #0a0827;
  --blue: #7ca4ff;
  --purple: #9889fd;
  --cyan: #2ee6ff;
  --cyan-hot: #00ffff;
  --white: #ffffff;
  --text: #eef0ff;
  --text-dim: rgba(238, 240, 255, 0.72);
  --grad: linear-gradient(100deg, var(--purple) 0%, var(--blue) 50%, var(--cyan) 100%);
  --radius: 22px;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

::selection { background: var(--purple); color: var(--navy); }

/* ── gradient text helpers ── */
.g1 { background: linear-gradient(100deg, var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g2 { background: linear-gradient(100deg, var(--blue), var(--cyan-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ══════════ SCRUB STAGE (fixed canvas) ══════════ */
.scrub-stage {
  position: fixed; inset: 0; z-index: 0;
  background: var(--navy-deep);
}
#scrubCanvas { width: 100%; height: 100%; display: block; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 8, 39, 0.55) 100%);
}
.stage-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--navy-deep);
  opacity: 0; transition: opacity 0.25s linear;
}

/* ══════════ LOADER ══════════ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: min(190px, 44vw); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.92; } 50% { transform: scale(1.045); opacity: 1; } }
.loader-bar { width: min(260px, 60vw); height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader-fill { height: 100%; width: 0%; border-radius: 4px; background: var(--grad); transition: width 0.25s ease; }
.loader-text { font-size: 0.85rem; letter-spacing: 0.16em; color: var(--text-dim); }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 22px 90px;
}
.hero-inner {
  max-width: 860px; display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 30px 10px; border-radius: 40px;
}
.hero-inner::before {
  content: ''; position: absolute; inset: -8% -14%;
  background: radial-gradient(ellipse at center, rgba(10, 8, 39, 0.62) 0%, rgba(10, 8, 39, 0.34) 55%, transparent 75%);
  z-index: -1; pointer-events: none;
}
.hero-title, .hero-sub, .hero-kicker { text-shadow: 0 2px 24px rgba(5, 4, 20, 0.6); }
.hero-logo { width: min(240px, 52vw); margin-bottom: 30px; filter: drop-shadow(0 0 34px rgba(152, 137, 253, 0.45)); }
.hero-kicker {
  font-size: clamp(0.72rem, 1.6vw, 0.9rem); font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.1rem, 6.4vw, 4.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(0.98rem, 2.2vw, 1.18rem); font-weight: 300;
  color: var(--text-dim); max-width: 560px; line-height: 1.65; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 15px 32px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn-primary {
  background: var(--grad); color: var(--navy);
  box-shadow: 0 8px 30px rgba(124, 164, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px rgba(46, 230, 255, 0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.07); color: var(--text);
  border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-big { font-size: 1.08rem; padding: 18px 44px; width: 100%; max-width: 420px; margin: 8px auto 0; display: block; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; opacity: 0.9;
}
.cue-arrow { font-size: 1.15rem; animation: bob 1.6s ease-in-out infinite; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* sparkles */
.sparkle-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle {
  position: absolute; color: var(--cyan);
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  font-size: var(--size, 14px);
  opacity: 0;
}
.sparkle.p { color: var(--purple); }
.sparkle.b { color: var(--blue); }
.sparkle.w { color: var(--white); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.15) rotate(24deg); }
}

/* ══════════ JOURNEY (scrub track) ══════════ */
.journey { position: relative; z-index: 2; height: 560vh; }
.journey-steps { position: relative; height: 100%; }
.jstep {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 6vw 12vh;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  pointer-events: none;
}
.jstep.active { opacity: 1; visibility: visible; }
.jcard {
  max-width: 430px;
  background: rgba(16, 13, 58, 0.62);
  border: 1px solid rgba(152, 137, 253, 0.3);
  border-radius: var(--radius);
  padding: 28px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(5, 4, 20, 0.5);
  transform: translateY(14px);
  transition: transform 0.45s ease;
}
.jstep.active .jcard { transform: translateY(0); }
.jnum {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jcard h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; margin: 8px 0 10px; line-height: 1.2; }
.jcard p { font-size: 0.96rem; font-weight: 300; color: var(--text-dim); line-height: 1.6; }

/* ══════════ SECTIONS ══════════ */
main { position: relative; z-index: 2; }
.section {
  position: relative;
  background: var(--navy);
  padding: clamp(72px, 11vw, 130px) 22px;
}
.section.about { border-radius: 34px 34px 0 0; margin-top: -30px; box-shadow: 0 -30px 80px rgba(5,4,20,0.65); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 4.6vw, 2.9rem); font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 400; line-height: 1.65; max-width: 720px; margin-bottom: 16px; }
.lede strong { font-weight: 600; }
.lede-sub { font-size: 1rem; font-weight: 300; color: var(--text-dim); line-height: 1.7; max-width: 680px; margin-bottom: 30px; }
.lede-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.sessions .wrap, .register .wrap { text-align: center; }

.promise {
  margin: 44px auto; text-align: center;
}
.promise p {
  font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.35;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── our story ── */
.story { background: linear-gradient(180deg, var(--navy) 0%, #150f45 50%, var(--navy) 100%); }
.story .section-title { margin-bottom: 34px; }
.story-body p {
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  font-weight: 300; line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { font-weight: 600; color: var(--text); }
.story-pull {
  font-size: clamp(1.35rem, 3.6vw, 2rem); font-weight: 700; line-height: 1.35;
  text-align: center; margin: 44px auto;
  padding: 30px 26px; max-width: 560px;
  border-top: 1px solid rgba(152, 137, 253, 0.28);
  border-bottom: 1px solid rgba(152, 137, 253, 0.28);
  background: linear-gradient(100deg, var(--purple), var(--blue) 55%, var(--cyan-hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-sign {
  margin-top: 40px; text-align: right;
  font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text);
}
.story-sign span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: 6px;
}
@media (max-width: 640px) {
  .story-pull { padding: 24px 14px; margin: 32px auto; }
  .story-sign { text-align: left; }
}

/* cards */
.cards { display: grid; gap: 18px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.six { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(152, 137, 253, 0.22);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(46, 230, 255, 0.45); background: rgba(255,255,255,0.07); }
.card-ico { font-size: 1.9rem; margin-bottom: 12px; }
.card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 0.92rem; font-weight: 300; color: var(--text-dim); line-height: 1.6; }

/* stats */
.stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.stat {
  min-width: 170px; padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,0.045); border: 1px solid rgba(152,137,253,0.22);
}
.stat-n {
  display: block; font-size: 2.6rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-l { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* ── FAQ ── */
.faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(152, 137, 253, 0.22);
  border-radius: 18px;
  padding: 4px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item[open] { border-color: rgba(46, 230, 255, 0.35); background: rgba(255, 255, 255, 0.07); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 30px 18px 0; position: relative;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem); font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  font-size: 0.95rem; font-weight: 300; line-height: 1.7;
  color: var(--text-dim); padding: 0 0 20px;
}
.faq-item p strong { font-weight: 600; color: var(--text); }

/* ══════════ FORM ══════════ */
.register { background: linear-gradient(180deg, var(--navy) 0%, #171253 55%, var(--navy) 100%); }
.form { max-width: 640px; margin: 34px auto 0; text-align: left; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin-bottom: 16px; }
.field label, .field legend { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; }
.opt { color: var(--text-dim); font-weight: 300; font-size: 0.8rem; }
.field input {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(152,137,253,0.3);
  border-radius: 14px; padding: 15px 18px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(238,240,255,0.35); }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,255,0.15); }
.field.small { max-width: 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip {
  font-family: var(--font); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(152,137,253,0.32); border-radius: 999px; padding: 10px 18px;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--blue); }
.chip.on {
  background: var(--grad); color: var(--navy); font-weight: 600;
  border-color: transparent; box-shadow: 0 4px 18px rgba(124,164,255,0.35);
}
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; font-weight: 300; }
.form-msg { text-align: center; font-size: 0.92rem; margin-top: 12px; min-height: 1.4em; }
.form-msg.err { color: #ff9ab8; }
.form-success { text-align: center; padding: 60px 20px 30px; }
.success-star { font-size: 3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pulse 2s ease-in-out infinite; }
.form-success h3 { font-size: 2rem; font-weight: 700; margin: 14px 0 10px; }
.form-success p { color: var(--text-dim); font-weight: 300; max-width: 460px; margin: 0 auto; line-height: 1.7; }

/* ══════════ FOOTER ══════════ */
.footer {
  position: relative; z-index: 2;
  background: var(--navy-deep); text-align: center;
  padding: 60px 22px 46px;
}
.footer-logo { width: 150px; margin-bottom: 18px; opacity: 0.95; }
.footer p { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); margin-bottom: 6px; }
.footer-fine { font-size: 0.78rem; }
.footer-fine.dim { opacity: 0.55; }

/* made by Mensia */
.made-by {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px; padding: 9px 18px; border-radius: 999px;
  text-decoration: none; opacity: 0.8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.made-by span {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}
.made-by a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: #f1e6c8; text-decoration: none; }
.made-by:hover {
  opacity: 1;
  border-color: rgba(208, 169, 78, 0.45);
  background: rgba(208, 169, 78, 0.07);
}

/* ══════════ REVEAL ANIMS ══════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .cards.three, .cards.six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards.three, .cards.six { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .jstep { align-items: flex-end; justify-content: center; padding: 0 5vw 11vh; }
  .jcard { padding: 22px 22px; max-width: 100%; }
  .stat { flex: 1 1 40%; min-width: 130px; padding: 22px 16px; }
  .stat-n { font-size: 2rem; }
  .btn { padding: 14px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparkle, .cue-arrow, .loader-logo, .success-star { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
