:root {
  --lavender: #8a70d6;
  --lavender-deep: #6b54b8;
  --sage: #7bc6a5;
  --coral: #ff8c66;
  --bg: #f9f9fb;
  --ink: #1c1633;
  --muted: #5c5670;
  --line: rgba(28, 22, 51, 0.08);
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(86, 64, 140, 0.12);
  --radius: 28px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(138, 112, 214, 0.22), transparent 60%),
    radial-gradient(800px 480px at 100% 8%, rgba(123, 198, 165, 0.2), transparent 55%),
    radial-gradient(700px 400px at 50% 100%, rgba(255, 140, 102, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  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 baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.nav, main, .foot { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 7vw;
  backdrop-filter: blur(16px);
  background: rgba(249, 249, 251, 0.78);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 40%),
    linear-gradient(135deg, var(--lavender), var(--sage));
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lavender); color: #fff; box-shadow: 0 10px 24px rgba(138, 112, 214, 0.28); }
.btn-primary:hover { background: var(--lavender-deep); }
.btn-secondary, .btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-lg { padding: 14px 22px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,0.4); color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 7vw 40px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(138, 112, 214, 0.12);
  color: var(--lavender-deep);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(123, 198, 165, 0.25);
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 650; margin: 0 0 18px; }
h1 em { font-style: italic; color: var(--lavender-deep); }
.lede, .lede-second { font-size: 1.05rem; color: var(--muted); max-width: 36rem; }
.lede-second { margin-top: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.trust-row li { position: relative; padding-left: 14px; }
.trust-row li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.mascot {
  width: min(420px, 100%);
  filter: drop-shadow(0 30px 40px rgba(108, 82, 180, 0.25));
  animation: float 5.5s ease-in-out infinite;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
}
.orb-a { width: 280px; height: 280px; background: rgba(138, 112, 214, 0.35); top: 40px; right: 40px; }
.orb-b { width: 180px; height: 180px; background: rgba(123, 198, 165, 0.35); bottom: 80px; left: 30px; }
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 14px 16px;
  min-width: 170px;
  animation: rise 6s ease-in-out infinite;
}
.float-card span, .float-card small { display: block; color: var(--muted); font-size: 12px; }
.float-card strong { display: block; font-size: 1.15rem; margin: 4px 0; }
.card-stress { top: 36px; left: 0; }
.card-archetype { right: 0; top: 46%; }
.card-streak { left: 8%; bottom: 28px; animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.panel { padding: 88px 7vw; }
.tint { background: rgba(255,255,255,0.45); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender-deep);
  margin: 0 0 10px;
}
.eyebrow.light { color: #efe8ff; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0 0 12px; }
.section-head p, .soft-card p, .science-card p, .bento-card p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-label { margin: 0 0 14px; font-size: 0.95rem; }
.problem-label { color: var(--coral); }
.solution-label { color: #2f8f6c; }
.card-col { display: grid; gap: 14px; }
.soft-card, .science-card, .bento-card, .inquiry {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 22, 51, 0.04);
}
.soft-card.lift { border-color: rgba(123, 198, 165, 0.35); }
.soft-card h4, .science-card h3, .bento-card h3 { margin: 10px 0 8px; }
.icon {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.icon-coral { background: rgba(255, 140, 102, 0.16); color: #c4532f; }
.icon-sage { background: rgba(123, 198, 165, 0.2); color: #2f8f6c; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.steps img { height: 150px; width: 100%; object-fit: cover; }
.steps h3, .steps p, .step-kicker { padding: 0 18px; }
.step-kicker { color: var(--lavender); font-size: 12px; font-weight: 700; margin: 16px 0 0; }
.steps h3 { margin: 6px 0; font-size: 1.15rem; }
.steps p:last-child { padding-bottom: 20px; color: var(--muted); font-size: 0.95rem; }

.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.science-card ul { margin: 0; padding-left: 18px; color: var(--ink); }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-large { grid-row: span 2; display: grid; gap: 16px; }
.bento-large img, .bento-medium img { border-radius: 18px; }
.bento-medium img { height: 180px; object-fit: cover; width: 100%; }
.companion-card img { width: 120px; margin-top: 8px; }
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin: 0;
}

.tech-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.tech-list { display: grid; gap: 10px; }
.tech-list article {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.tech-list span { display: block; color: var(--muted); font-size: 12px; }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.timeline li {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  border-top: 4px solid var(--lavender);
}
.timeline p { margin: 0; color: var(--muted); font-size: 13px; }
.timeline h3 { margin: 8px 0; }

.cta-band {
  margin: 0 7vw 80px;
  border-radius: 36px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background:
    linear-gradient(145deg, #6b54b8, #8a70d6 45%, #5ea886);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-copy h2 { color: #fff; }
.cta-copy p { color: rgba(255,255,255,0.86); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.inquiry { color: var(--ink); }
.inquiry h3 { margin: 0 0 12px; }
.inquiry label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0; }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 12px;
  background: #fbfbfe;
}
.inquiry button { width: 100%; margin-top: 8px; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.ok { color: #2f8f6c; }
.form-status.err { color: #b42318; }

.foot {
  padding: 24px 7vw 40px;
  color: var(--muted);
  font-size: 14px;
}

.demo {
  width: min(760px, calc(100vw - 24px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  box-shadow: var(--shadow);
}
.demo::backdrop { background: rgba(28, 22, 51, 0.45); }
.demo-shell { padding: 28px; }
.demo-shell header { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.demo-shell h2 { margin: 0; }
.demo-close {
  border: 0;
  background: #f3f1f8;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.mood-grid, .quest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.choice:hover, .choice:focus { border-color: var(--lavender); }
.breath-wrap { text-align: center; padding: 20px 0 8px; }
.breath-orb {
  width: 160px;
  height: 160px;
  margin: 12px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--lavender));
  animation: breathe 8s ease-in-out infinite;
}
.breath-orb.paused { animation-play-state: paused; }
@keyframes breathe {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.08); }
}
.demo-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-stats span {
  background: #f4f1fb;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero, .split, .bento, .tech-wrap, .cta-band, .science-grid { grid-template-columns: 1fr; }
  .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .hero-stage { min-height: 480px; }
  .bento-large { grid-row: auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 16px; right: 16px; background: #fff; padding: 16px; border-radius: 16px; flex-direction: column; box-shadow: var(--shadow); }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .nav .btn-ghost { display: none; }
  .steps, .timeline, .mood-grid, .quest-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .cta-band, .panel { padding-left: 20px; padding-right: 20px; }
  .cta-band { margin: 0 16px 48px; padding: 24px; }
  .float-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; margin: 8px auto; }
  .hero-stage { min-height: 0; }
}
