@layer experience {
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eefcf9;
  background: #061416;
  --safe-top: max(14px, env(safe-area-inset-top));
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
  --mint: #74f4df;
  --cyan: #53dffc;
  --violet: #9d68ff;
  --ink: #061416;
  --glass: rgba(7, 24, 27, .72);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(58, 222, 200, .16), transparent 37%),
    radial-gradient(ellipse at 92% 68%, rgba(119, 80, 221, .12), transparent 34%),
    linear-gradient(160deg, #0b292a 0%, #07191b 44%, #050e11 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.landing {
  width: min(100%, 520px);
  height: 100dvh;
  margin: 0 auto;
  padding: var(--safe-top) clamp(18px, 5.5vw, 28px) var(--safe-bottom);
  display: grid;
  grid-template-rows: auto minmax(138px, 25dvh) auto auto auto auto;
  align-content: space-between;
  gap: clamp(8px, 1.5dvh, 15px);
  isolation: isolate;
}

.brand, .ar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .19em;
}

.brand { justify-content: center; color: rgba(230, 255, 250, .8); }

.brand-glyph {
  width: 14px;
  height: 18px;
  display: inline-block;
  border-radius: 68% 32% 60% 40%;
  transform: rotate(35deg);
  background: linear-gradient(150deg, #e4ffff 0%, #52efd7 48%, #6e58f4 100%);
  box-shadow: 0 0 14px rgba(94, 238, 221, .42);
}

.hero {
  position: relative;
  min-height: 138px;
  display: grid;
  place-items: center;
  perspective: 700px;
}

.hero-aura {
  position: absolute;
  width: min(58vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 246, 228, .22), rgba(72, 126, 206, .08) 42%, transparent 69%);
  filter: blur(5px);
  animation: breathe 3.2s ease-in-out infinite alternate;
}

.hero-ground {
  position: absolute;
  top: 71%;
  width: min(55vw, 235px);
  height: 28px;
  border-radius: 50%;
  transform: rotateX(66deg);
  background: radial-gradient(ellipse, rgba(63, 237, 213, .38), rgba(79, 103, 186, .14) 48%, transparent 72%);
  filter: blur(2px);
}

.hero-seed {
  position: relative;
  z-index: 2;
  width: clamp(70px, 18dvh, 118px);
  aspect-ratio: .78;
  border-radius: 56% 44% 61% 39% / 66% 39% 61% 34%;
  transform: rotate(42deg);
  background:
    linear-gradient(128deg, rgba(255,255,255,.24), transparent 27%),
    linear-gradient(145deg, #143949 5%, #244277 43%, #402b73 76%, #171b3d 100%);
  box-shadow:
    inset -15px -16px 28px rgba(4, 8, 27, .62),
    inset 8px 7px 20px rgba(87, 239, 227, .2),
    0 0 22px rgba(70, 229, 219, .35),
    0 26px 45px rgba(0, 0, 0, .38);
  animation: seed-float 3.8s ease-in-out infinite;
}

.hero-seed::before, .hero-seed::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-seed::before {
  inset: 22%;
  background: radial-gradient(circle at 38% 30%, #fff1c4, #ffb65d 24%, #45e4e1 50%, #5360e2 72%, transparent 74%);
  box-shadow: 0 0 22px #49e8df, 0 0 48px rgba(105, 86, 244, .65);
}
.hero-seed::after {
  inset: -8%;
  border: 1px solid rgba(101, 234, 222, .28);
  animation: breathe 1.7s ease-in-out infinite alternate;
}
.hero-seed span { position: absolute; inset: 0; }

.hero-orbit {
  position: absolute;
  z-index: 3;
  width: min(52vw, 220px);
  aspect-ratio: 2.25;
  border: 1px solid rgba(143, 102, 255, .56);
  border-radius: 50%;
  transform: rotateX(63deg) rotateZ(-12deg);
  box-shadow: 0 0 18px rgba(123, 90, 255, .2);
  animation: orbit-tilt 5s linear infinite;
}

.hero-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bffef8;
  box-shadow: 0 0 13px #52e8e1;
}
.hero-orbit i:nth-child(1) { left: 5%; top: 45%; }
.hero-orbit i:nth-child(2) { right: 16%; top: 8%; background: #ac6bff; box-shadow: 0 0 13px #915cff; }
.hero-orbit i:nth-child(3) { right: 3%; bottom: 24%; width: 5px; height: 5px; background: #ffb55c; box-shadow: 0 0 11px #ff9e50; }

.intro { text-align: center; }
.eyebrow {
  margin: 0 0 5px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .24em;
}
h1 {
  margin: 0;
  font: 500 clamp(34px, 9.4vw, 52px)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.lede {
  max-width: 370px;
  margin: 8px auto 0;
  color: #a9c5c1;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.4;
}

.steps {
  margin: 0;
  padding: 10px 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-block: 1px solid rgba(177, 238, 229, .1);
}
.steps li { position: relative; display: grid; gap: 1px; text-align: center; }
.steps li + li::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: rgba(181, 235, 227, .1); }
.steps span { color: var(--mint); font: 750 8px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.steps b { font-size: 11px; }
.steps small { color: #728f8b; font-size: 9px; }

.primary {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(196, 255, 246, .24);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #061817;
  background: linear-gradient(120deg, #a2fff0 0%, #55e6d2 46%, #71cddf 100%);
  box-shadow: 0 17px 44px rgba(24, 200, 174, .22), inset 0 1px rgba(255,255,255,.6);
  font-weight: 850;
  cursor: pointer;
}
.primary b { font-size: 18px; }
.primary:disabled { opacity: .55; cursor: wait; }
.primary.compact { min-height: 48px; justify-content: center; gap: 12px; }

.landing footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #58736f; font-size: 8px; }
.landing footer a { color: #8caaa5; text-decoration: none; font-weight: 750; letter-spacing: .08em; }

.ar-ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.ar-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--safe-top) 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(rgba(3, 13, 15, .62), transparent);
}
.ar-brand { color: rgba(235, 255, 251, .88); font-size: 9px; }
.ar-brand .brand-glyph { width: 11px; height: 14px; }
.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(220, 255, 249, .18);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 5px;
  color: white;
  background: rgba(5, 21, 23, .48);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.icon-button span { width: 15px; height: 1px; background: currentColor; }

.reticle {
  position: absolute;
  left: 50%;
  top: 58%;
  width: clamp(108px, 31vw, 138px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(66deg);
  border: 1px solid rgba(119, 245, 224, .72);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(77, 239, 217, .32));
  transition: opacity .4s ease, transform .5s ease;
}
.reticle::before, .reticle::after, .reticle-halo {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.reticle::before { inset: 11%; border: 1px dashed rgba(132, 103, 255, .66); animation: reticle-spin 8s linear infinite; }
.reticle::after { inset: 42%; background: var(--mint); box-shadow: 0 0 17px var(--mint), 0 0 35px rgba(131, 93, 255, .72); }
.reticle-halo { inset: -16%; border: 1px solid rgba(89, 213, 224, .18); animation: reticle-breathe 1.8s ease-in-out infinite; }
.reticle-seed { position: absolute; left: 50%; top: 50%; width: 16%; height: 24%; border-radius: 60% 40%; transform: translate(-50%,-50%) rotate(42deg); background: #cafff7; box-shadow: 0 0 16px #68e9d7; }
[data-placement="placed"] .reticle, [data-placement="dissolving"] .reticle { opacity: 0; transform: translate(-50%, -50%) rotateX(66deg) scale(.5); }

.coaching {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 18px);
  width: min(calc(100% - 28px), 390px);
  min-height: 62px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(211, 255, 247, .16);
  border-radius: 19px;
  background: var(--glass);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: opacity .35s ease, transform .35s ease;
}
.coaching-icon { width: 31px; height: 31px; flex: 0 0 auto; border: 1px solid rgba(111, 244, 223, .42); border-radius: 50%; box-shadow: inset 0 0 15px rgba(89, 228, 208, .12); }
.coaching-icon::after { content: ""; display: block; width: 7px; height: 11px; margin: 8px auto; border-radius: 60% 40%; transform: rotate(38deg); background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.coaching b, .coaching small { display: block; }
.coaching b { font-size: 12px; }
.coaching small { margin-top: 2px; color: #9dbab5; font-size: 10px; }
[data-placement="placed"] .coaching { opacity: 0; transform: translate(-50%, 12px); }

.stage-hud {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 16px);
  width: min(calc(100% - 32px), 360px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 255, 250, .12);
  border-radius: 16px;
  background: rgba(4, 18, 21, .63);
  backdrop-filter: blur(14px);
}
.stage-line { width: 54px; display: flex; gap: 5px; }
.stage-line i { width: 14px; height: 3px; border-radius: 4px; background: rgba(175, 220, 213, .18); transition: background .5s, box-shadow .5s; }
[data-stage="1"] .stage-line i:nth-child(-n+1),
[data-stage="2"] .stage-line i:nth-child(-n+2),
[data-stage="3"] .stage-line i:nth-child(-n+3) { background: var(--mint); box-shadow: 0 0 8px rgba(85, 239, 216, .5); }
.stage-hud > div:last-child { display: grid; gap: 1px; }
.stage-hud span { color: #78a8a1; font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.stage-hud b { font-size: 11px; font-weight: 750; }

.menu, .completion, .system-state { position: fixed; inset: 0; pointer-events: auto; }
.menu { z-index: 30; }
.menu-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(2, 9, 11, .62); backdrop-filter: blur(6px); }
.menu-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px calc(var(--safe-bottom) + 6px);
  border: 1px solid rgba(185, 245, 236, .12);
  border-radius: 27px 27px 0 0;
  background: #0a2022;
  box-shadow: 0 -24px 70px rgba(0,0,0,.38);
}
.menu-handle { width: 38px; height: 4px; margin: 0 auto 19px; border-radius: 4px; background: rgba(190, 231, 224, .18); }
.menu-sheet > p { margin: 0 0 9px 3px; color: #64827d; font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.menu-sheet button { width: 100%; min-height: 60px; padding: 10px 4px; border: 0; border-top: 1px solid rgba(177, 226, 218, .08); display: flex; align-items: center; justify-content: space-between; color: #e8f7f4; background: transparent; text-align: left; }
.menu-sheet button span { display: grid; gap: 3px; }
.menu-sheet button b { font-size: 13px; }
.menu-sheet button small { color: #72918c; font-size: 10px; }
.menu-sheet button em { font-style: normal; font-size: 19px; color: #8aa7a2; }
.menu-sheet button:disabled { opacity: .35; }
.menu-sheet button i { position: relative; width: 39px; height: 22px; border-radius: 22px; background: var(--mint); }
.menu-sheet button i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #061615; transition: transform .25s; }
[data-muted="true"] .menu-sheet button i { background: #3a514e; }
[data-muted="true"] .menu-sheet button i::after { transform: translateX(-17px); }
.menu-sheet .exit-action b { color: #d5c4c3; }

.completion, .system-state {
  z-index: 40;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(2, 10, 12, .54);
  backdrop-filter: blur(15px) saturate(1.1);
}
.completion-card, .system-card {
  position: relative;
  width: min(100%, 370px);
  padding: 29px 23px 22px;
  overflow: hidden;
  border: 1px solid rgba(173, 244, 233, .16);
  border-radius: 27px;
  background: linear-gradient(150deg, rgba(17, 50, 52, .96), rgba(7, 22, 25, .98));
  box-shadow: 0 28px 90px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.06);
  text-align: center;
}
.completion-card::before { content: ""; position: absolute; width: 250px; height: 250px; left: 50%; top: -165px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(88, 234, 217, .3), rgba(113, 81, 232, .11) 52%, transparent 70%); }
.modal-close { position: absolute; z-index: 2; right: 11px; top: 11px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #a9c1bd; background: rgba(255,255,255,.05); font-size: 21px; }
.completion-mark { position: relative; width: 46px; height: 58px; margin: 0 auto 13px; display: block; border-radius: 58% 42%; transform: rotate(40deg); background: linear-gradient(145deg, #dffffb, #52dfd5 42%, #7458f1 78%); box-shadow: 0 0 25px rgba(76, 235, 218, .52), 0 0 58px rgba(116, 79, 234, .38); }
.completion-card p, .system-card p { margin: 0 0 7px; color: var(--mint); font-size: 8px; font-weight: 850; letter-spacing: .22em; }
.completion-card h2, .system-card h2 { margin: 0; font: 500 30px/1.04 Georgia, serif; letter-spacing: -.025em; }
.completion-card > span:not(.completion-mark), .system-card > span { display: block; margin: 10px 0 20px; color: #9eb9b4; font-size: 12px; line-height: 1.5; }
.text-button { margin-top: 12px; border: 0; color: #8da9a4; background: transparent; font-size: 11px; }

.system-state { background: rgba(3, 13, 15, .78); }
.loader-mark { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; }
.loader-mark i { position: absolute; left: 50%; top: 50%; width: 13px; height: 20px; border-radius: 60% 40%; transform-origin: 0 0; background: linear-gradient(#d9fffa, #50e6d2); box-shadow: 0 0 16px rgba(79, 236, 214, .46); }
.loader-mark i:nth-child(1) { transform: rotate(0deg) translate(-50%, -125%); }
.loader-mark i:nth-child(2) { transform: rotate(120deg) translate(-50%, -125%); opacity: .66; }
.loader-mark i:nth-child(3) { transform: rotate(240deg) translate(-50%, -125%); opacity: .36; }
.loader-mark { animation: loader-spin 1.8s linear infinite; }

[hidden] { display: none !important; }

@keyframes seed-float { 0%, 100% { translate: 0 3px; } 50% { translate: 0 -5px; } }
@keyframes breathe { to { transform: scale(1.12); opacity: .72; } }
@keyframes orbit-tilt { to { transform: rotateX(63deg) rotateZ(348deg); } }
@keyframes reticle-spin { to { transform: rotate(360deg); } }
@keyframes reticle-breathe { 50% { transform: scale(1.13); opacity: .3; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }

@media (max-height: 700px) {
  .landing { grid-template-rows: auto minmax(105px, 20dvh) auto auto auto auto; gap: 6px; }
  .hero-seed { width: clamp(62px, 15dvh, 88px); }
  .hero-aura { width: 190px; }
  .hero-orbit { width: 172px; }
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .lede { margin-top: 5px; font-size: 11px; }
  .steps { padding-block: 7px; }
  .primary { min-height: 48px; }
}

@media (max-height: 590px) {
  .landing { grid-template-rows: auto 92px auto auto auto auto; gap: 4px; }
  .hero { min-height: 92px; }
  .hero-seed { width: 58px; }
  .hero-ground { top: 76%; height: 18px; }
  h1 { font-size: 29px; }
  .eyebrow { margin-bottom: 3px; }
  .lede { max-width: 320px; font-size: 10px; line-height: 1.3; }
  .steps small { display: none; }
  .steps { padding-block: 5px; }
  .primary { min-height: 44px; border-radius: 14px; }
  .landing footer span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aura, .hero-seed, .hero-orbit, .reticle::before, .reticle-halo, .loader-mark { animation-duration: 10s; }
}

}