/* Fahikari public landing — night sanctuary + cream surfaces.
 * Palette mirrors the app's guest-auth shell (gold / green / blue on deep night)
 * and its cream content surfaces.
 */

:root {
  color-scheme: dark;

  --night: #02060a;
  --night-2: #050d14;
  --night-3: #0a1620;
  --ink-on-night: #f8fafc;
  --muted-on-night: rgba(248, 250, 252, 0.72);
  --faint-on-night: rgba(248, 250, 252, 0.5);
  --line-on-night: rgba(248, 250, 252, 0.1);

  --gold: #facc15;
  --gold-soft: #e9cf8f;
  --green: #73e38b;
  --mint: #a7f3d0;
  --blue: #2563eb;

  --cream: #fcf8f0;
  --cream-2: #f3e8d8;
  --cream-ink: #1a2a3a;
  --cream-muted: rgba(26, 42, 58, 0.72);
  --cream-line: rgba(26, 42, 58, 0.1);

  --grad-cta: linear-gradient(120deg, #facc15 0%, #73e38b 55%, #3b82f6 100%);
  --grad-text: linear-gradient(100deg, #fde68a 0%, #a7f3d0 60%, #93c5fd 100%);

  --font-display: "Cinzel Decorative", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 1.25rem;
  --radius-sm: 0.9rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink-on-night);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0; }

em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #03100a;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

/* ---------- Shared pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.eyebrow--ink { color: #8a6a1f; }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.section-head .eyebrow::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
}
.section-head h2,
.feature__copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section-head p:not(.eyebrow) {
  margin-top: 1.1rem;
  color: var(--muted-on-night);
  font-size: 1.08rem;
}
.section-head--ink h2 { color: var(--cream-ink); }
.section-head--ink p:not(.eyebrow) { color: var(--cream-muted); }
.section-head--ink em {
  background: linear-gradient(100deg, #9a6b0b 0%, #2f7d4a 60%, #1e4e8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-cta);
  background-size: 140% 100%;
  color: #03100a;
  box-shadow: 0 10px 30px -10px rgba(115, 227, 139, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 40px -12px rgba(115, 227, 139, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  border-color: rgba(248, 250, 252, 0.24);
  background: rgba(248, 250, 252, 0.04);
  color: var(--ink-on-night);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(167, 243, 208, 0.6);
  background: rgba(167, 243, 208, 0.08);
}

.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.9rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 2.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.ticks {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted-on-night);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='%2303100a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat,
    var(--grad-cta);
}
.ticks--sm { gap: 0.6rem; font-size: 0.95rem; }

.fineprint {
  margin-top: 1.6rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid rgba(250, 204, 21, 0.5);
  border-radius: 0 0.6rem 0.6rem 0;
  background: rgba(250, 204, 21, 0.05);
  color: var(--faint-on-night);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(2, 6, 10, 0.78);
  border-bottom-color: var(--line-on-night);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.brand__word { width: auto; height: 26px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  color: var(--muted-on-night);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--ink-on-night); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav__login { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.link-login {
  color: var(--ink-on-night);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.link-login:hover { color: var(--mint); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-on-night);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.04);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: calc(50% - 4px); }
.nav-toggle span:last-child { top: calc(50% + 3px); }
.nav-toggle[aria-expanded="true"] span:first-child { top: 50%; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7.5rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -4% 0 0;
  z-index: -3;
  background: url("/assets/cosmic-hero.webp") 62% 40% / cover no-repeat;
  transform: scale(1.06);
  animation: hero-drift 28s ease-in-out infinite alternate;
}
.hero__stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 10, 0.92) 0%, rgba(2, 6, 10, 0.55) 48%, rgba(2, 6, 10, 0.15) 100%),
    linear-gradient(180deg, rgba(2, 6, 10, 0.45) 0%, transparent 30%, transparent 65%, var(--night) 100%);
}
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero__content { position: relative; }
.hero__title {
  max-width: 13ch;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(2, 6, 10, 0.6);
}
.hero__lead {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--muted-on-night);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem 0.38rem 0.42rem;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(115, 227, 139, 0.06));
  backdrop-filter: blur(6px);
  color: var(--ink-on-night);
  font-size: 0.85rem;
  font-weight: 600;
}
.hero__chips img { width: 22px; height: 22px; border-radius: 50%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid rgba(167, 243, 208, 0.3);
  border-radius: 999px;
  background: rgba(115, 227, 139, 0.08);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(115, 227, 139, 0.6);
  animation: badge-pulse 2.4s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(115, 227, 139, 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(115, 227, 139, 0); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  width: 1.6rem;
  height: 2.6rem;
  border: 1.5px solid rgba(248, 250, 252, 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 3px;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--mint);
  transform: translateX(-50%);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 0.8rem); }
  100% { opacity: 0; }
}

/* ---------- Pillars ---------- */

.pillars {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 var(--section-y);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  position: relative;
  padding: 2rem 1.8rem 2.1rem;
  border: 1px solid var(--line-on-night);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(250, 204, 21, 0.06), rgba(115, 227, 139, 0.03) 50%, rgba(37, 99, 235, 0.05)),
    var(--night-2);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.7), rgba(115, 227, 139, 0.7), transparent);
}
.pillar__glyph {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.25rem;
}
.pillar h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.pillar p {
  margin-top: 0.6rem;
  color: var(--muted-on-night);
}

/* ---------- Experiences (cream) ---------- */

.experiences {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(233, 207, 143, 0.35), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(167, 243, 208, 0.25), transparent 60%),
    var(--cream);
  color: var(--cream-ink);
  border-radius: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) 0 0;
}
.experiences + .feature { border-radius: 0; }
.experiences::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(1.75rem, 4vw, 3rem);
  background: var(--night);
  border-radius: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3rem) 0 0;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.exp-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 30px -24px rgba(26, 42, 58, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.exp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 107, 11, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 22px 40px -24px rgba(26, 42, 58, 0.45);
}
.exp-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: 0 10px 20px -10px rgba(26, 42, 58, 0.45);
  transition: transform 0.5s var(--ease);
}
.exp-card:hover img { transform: rotate(-6deg) scale(1.06); }
.exp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--cream-ink);
}
.exp-card p {
  margin-top: 0.45rem;
  color: var(--cream-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Feature blocks ---------- */

.feature { padding: var(--section-y) 0; }
.feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.feature__grid--reverse { grid-template-columns: 1fr 1fr; }
.feature__copy > p:not(.eyebrow):not(.fineprint) {
  margin-top: 1.3rem;
  color: var(--muted-on-night);
  font-size: 1.06rem;
}

.feature__media { position: relative; }
.feature__photo {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 70% 50%;
  border-radius: calc(var(--radius) * 1.3);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.feature__media::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: calc(var(--radius) * 1.3);
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 10, 0.55));
  pointer-events: none;
}

.chat {
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  left: 22%;
  z-index: 2;
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem;
  border: 1px solid rgba(248, 250, 252, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 13, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.chat__bubble {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat__bubble--user {
  justify-self: end;
  border-bottom-right-radius: 0.3rem;
  background: rgba(248, 250, 252, 0.1);
}
.chat__bubble--guide {
  border-bottom-left-radius: 0.3rem;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(115, 227, 139, 0.16));
  border: 1px solid rgba(167, 243, 208, 0.18);
}
.chat__typing {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.55rem 0.8rem;
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.06);
  justify-self: start;
}
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: typing 1.3s infinite ease-in-out;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Mi Hexágono ---------- */

.hex {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line-on-night);
  border-radius: calc(var(--radius) * 1.2);
  background:
    radial-gradient(circle at 50% 45%, rgba(115, 227, 139, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(250, 204, 21, 0.05), rgba(37, 99, 235, 0.06)),
    var(--night-2);
  box-shadow: 0 40px 80px -50px rgba(250, 204, 21, 0.35);
}
.hex__svg { width: 100%; height: auto; overflow: visible; }
.hex__ring,
.hex__spoke {
  fill: none;
  stroke: rgba(248, 250, 252, 0.08);
  stroke-width: 1;
}
.hex__outline {
  fill: none;
  stroke: rgba(248, 250, 252, 0.45);
  stroke-width: 1.5;
}
.hex__tri {
  fill: none;
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.hex__tri--one { stroke: rgba(250, 204, 21, 0.55); }
.hex__tri--two { stroke: rgba(167, 243, 208, 0.55); }
.hex__shape {
  fill: url(#hex-fill);
  stroke: rgba(253, 230, 138, 0.9);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-origin: 210px 200px;
}
.hex__dot { stroke: var(--cream); stroke-width: 2; }
.hex__dot--consciencia,
.hex__dot--proteccion { fill: #4f7a5c; }
.hex__dot--expresion,
.hex__dot--impulso { fill: #c47a4a; }
.hex__dot--forma { fill: #c4a15a; }
.hex__dot--proposito { fill: #8d6a8b; }
.hex__label {
  fill: var(--ink-on-night);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hex__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 0.75rem;
  color: var(--muted-on-night);
  font-size: 0.85rem;
  font-weight: 600;
}
.hex__energy { display: inline-flex; align-items: center; gap: 0.5rem; }
.hex__energy::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.hex__energy--move::before { background: linear-gradient(135deg, #c47a4a, #facc15); }
.hex__energy--mind::before { background: linear-gradient(135deg, #4f7a5c, #60a5fa); }

/* Drawn in when the figure scrolls into view */
.js .hex .hex__outline,
.js .hex .hex__tri {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.js .hex .hex__tri--one { transition-delay: 0.35s; }
.js .hex .hex__tri--two { transition-delay: 0.6s; }
.js .hex .hex__shape {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 1s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s;
}
.js .hex.is-visible .hex__outline,
.js .hex.is-visible .hex__tri { stroke-dashoffset: 0; }
.js .hex.is-visible .hex__shape { opacity: 1; transform: none; }

/* ---------- Oracle ---------- */

.oracle {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(40rem 26rem at 50% 55%, rgba(115, 227, 139, 0.12), transparent 70%),
    url("/assets/starfield.webp") center / cover no-repeat,
    var(--night-2);
  border-block: 1px solid var(--line-on-night);
  overflow: hidden;
}

.deck {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  perspective: 1400px;
}
.card {
  position: relative;
  width: clamp(9.5rem, 22vw, 13.5rem);
  aspect-ratio: 2 / 3.2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}
.card:nth-child(1) { transform: rotate(-7deg) translateY(14px); }
.card:nth-child(3) { transform: rotate(7deg) translateY(14px); }
.deck:not(.is-chosen) .card:hover { transform: translateY(-14px) rotate(0); }
.deck.is-chosen .card:not(.is-flipped) { opacity: 0.28; transform: scale(0.94); cursor: default; }
.deck.is-chosen .card.is-flipped { transform: translateY(-10px) scale(1.04); }

.card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.card.is-flipped .card__inner { transform: rotateY(180deg); }

.card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.9);
}
.card__face--back {
  border: 1px solid rgba(250, 204, 21, 0.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(115, 227, 139, 0.25), transparent 55%),
    repeating-linear-gradient(45deg, rgba(250, 204, 21, 0.07) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(250, 204, 21, 0.07) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #0b1d1a 0%, #050d14 55%, #0b1430 100%);
}
.card__face--back::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 0.65rem;
}
.card__emblem {
  width: 46%;
  aspect-ratio: 1;
  background: url("/assets/lotus.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.45));
  animation: emblem-pulse 4s ease-in-out infinite;
}
@keyframes emblem-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.card__face--front {
  gap: 0.9rem;
  padding: 1.4rem 1.1rem;
  border: 1px solid rgba(154, 107, 11, 0.35);
  background:
    radial-gradient(circle at 50% 20%, rgba(250, 204, 21, 0.25), transparent 60%),
    var(--cream);
  color: var(--cream-ink);
  transform: rotateY(180deg);
  text-align: center;
}
.card__face--front::before {
  content: "✧";
  color: #9a6b0b;
  font-size: 1.3rem;
}
.card__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card__msg {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--cream-muted);
}

.oracle__after {
  max-width: 34rem;
  margin: 3rem auto 0;
  text-align: center;
  animation: fade-up 0.7s var(--ease) both;
}
.oracle__after p { color: var(--muted-on-night); }
.oracle__after-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Streak ---------- */

.streak {
  padding: 1.6rem;
  border: 1px solid var(--line-on-night);
  border-radius: calc(var(--radius) * 1.2);
  background:
    linear-gradient(160deg, rgba(250, 204, 21, 0.07), rgba(115, 227, 139, 0.04) 50%, rgba(37, 99, 235, 0.07)),
    var(--night-2);
  box-shadow: 0 40px 80px -50px rgba(115, 227, 139, 0.45);
}
.streak__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.streak__head img { width: 52px; height: 52px; border-radius: 50%; }
.streak__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.streak__sub { color: var(--faint-on-night); font-size: 0.88rem; }
.streak__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.streak__grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line-on-night);
  border-radius: 0.7rem;
  color: var(--faint-on-night);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.streak__grid li.is-done {
  border-color: rgba(167, 243, 208, 0.35);
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.28), rgba(115, 227, 139, 0.32));
  color: var(--ink-on-night);
  transform: scale(1.04);
}
.streak__grid li.is-saved {
  border-color: rgba(250, 204, 21, 0.6);
  border-style: dashed;
  color: var(--gold);
}
.streak__grid li.is-today {
  border-color: var(--mint);
  color: var(--mint);
  box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.15);
}
.streak__bar {
  height: 6px;
  margin-top: 1.3rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  overflow: hidden;
}
.streak__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-cta);
  transition: width 0.4s var(--ease);
}

/* ---------- Steps ---------- */

.steps { padding: var(--section-y) 0; }
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.45rem;
  right: -0.6rem;
  width: calc(50% - 2.6rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.45), transparent);
}
.step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 3.45rem;
  left: -0.6rem;
  width: calc(50% - 2.6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115, 227, 139, 0.45));
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.step p {
  margin-top: 0.55rem;
  color: var(--muted-on-night);
}

/* ---------- Plans ---------- */

.plans {
  padding: var(--section-y) 0;
  background: radial-gradient(50rem 28rem at 50% 30%, rgba(37, 99, 235, 0.1), transparent 70%);
}
.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem;
  border: 1px solid var(--line-on-night);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--night-2);
}
.plan .ticks { flex: 1; align-content: start; margin-bottom: 2rem; }
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    var(--grad-cta) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -50px rgba(115, 227, 139, 0.6);
}
.plan__tag {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(115, 227, 139, 0.14);
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan__tag--muted { background: rgba(250, 204, 21, 0.1); color: var(--gold); }
.plan h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}
.plan__price {
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
}
.plan__price span {
  color: var(--faint-on-night);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
}
.plan__price--soon {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--muted-on-night);
}
.plan--soon .ticks { margin-bottom: 0; }
.plans__note {
  max-width: 40rem;
  margin: 2.25rem auto 0;
  color: var(--faint-on-night);
  font-size: 0.92rem;
  text-align: center;
}
.plans__note strong { color: var(--gold-soft); }
.plan--soon { opacity: 0.92; }


/* ---------- FAQ ---------- */

.faq { padding: var(--section-y) 0; }
.faq__list { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line-on-night);
  border-radius: var(--radius-sm);
  background: var(--night-2);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] {
  border-color: rgba(250, 204, 21, 0.3);
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.05), transparent), var(--night-2);
}
.faq summary {
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted-on-night);
}
.faq details a { color: var(--mint); }

/* ---------- Final CTA ---------- */

.cta-final {
  position: relative;
  padding: calc(var(--section-y) * 1.2) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(2, 6, 10, 0.4) 35%, rgba(2, 6, 10, 0.5) 70%, var(--night) 100%),
    url("/assets/cosmic-hero.webp") 70% 60% / cover no-repeat;
}
.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-final__inner img {
  width: 72px;
  height: 72px;
  margin-bottom: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 0 60px rgba(250, 204, 21, 0.35);
}
.cta-final h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
}
.cta-final__inner > p:not(.cta-final__login) {
  margin: 1.1rem 0 2.2rem;
  color: var(--muted-on-night);
  font-size: 1.1rem;
}
.cta-final__login {
  margin-top: 1.3rem;
  color: var(--faint-on-night);
  font-size: 0.92rem;
}
.cta-final__login a { color: var(--mint); font-weight: 600; }

.notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}
.notfound h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-on-night);
  background: #010305;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
}
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__brand p { margin-top: 0.9rem; color: var(--faint-on-night); }
.social {
  display: flex;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-on-night);
  border-radius: 50%;
  color: var(--muted-on-night);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social a:hover { color: var(--gold); border-color: rgba(250, 204, 21, 0.45); background: rgba(250, 204, 21, 0.06); }
.social svg { width: 1.05rem; height: 1.05rem; }
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.site-footer__title {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer__col a {
  color: var(--muted-on-night);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__col a:hover { color: var(--ink-on-night); }
.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-night);
  color: var(--faint-on-night);
  font-size: 0.82rem;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .exp-grid { grid-template-columns: repeat(3, 1fr); }
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 1.3rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .link-login { display: none; }
  .site-nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line-on-night);
    background: rgba(2, 6, 10, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-on-night);
    font-size: 1.05rem;
  }
  .site-nav a::after { display: none; }
  .site-nav__login { display: block; color: var(--mint) !important; border-bottom: 0 !important; }
  .site-header__actions { margin-left: auto; }

  .pillars__grid,
  .steps__list { grid-template-columns: 1fr; }
  .step::before,
  .step::after { display: none; }
  .step { padding: 1.4rem 1rem; }

  .feature__grid,
  .feature__grid--reverse { grid-template-columns: 1fr; }
  .feature--therapist .feature__media { margin-bottom: 2.5rem; }
  .chat { right: -0.5rem; left: 12%; }
  .feature--streak .streak { order: -1; }
  .feature--hexagon .hex { order: -1; max-width: 32rem; margin-inline: auto; width: 100%; }
}

@media (max-width: 720px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .exp-card { padding: 1.2rem 1rem 1.3rem; }
  .exp-card img { width: 52px; height: 52px; }
  .exp-card h3 { font-size: 1.25rem; }
  .exp-card p { font-size: 0.87rem; }
  .plans__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(2, 6, 10, 0.55) 0%, rgba(2, 6, 10, 0.7) 50%, var(--night) 100%);
  }
  .hero__bg { background-position: 72% 40%; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .brand__word { display: none; }
  .btn--sm { padding-inline: 0.95rem; }
  .hero { padding-top: 6.5rem; }
  .hero__ctas .btn { width: 100%; }
  .deck { gap: 0.5rem; }
  .card { width: 30vw; }
  .card__face--front { padding: 0.9rem 0.6rem; gap: 0.5rem; }
  .card__name { font-size: 0.85rem; }
  .card__msg { font-size: 0.95rem; }
  .chat { position: relative; inset: auto; margin: -2.5rem 0.6rem 0; }
  .chat__bubble { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
