:root {
  --ink: #f4f7ff;
  --mute: rgba(220, 228, 255, 0.74);
  --faint: rgba(220, 228, 255, 0.5);
  --line: rgba(186, 170, 255, 0.28);
  --font: "Geist", Verdana, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: #07061a;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
.world {
  position: fixed; inset: -5%;
  background: url("/world.jpg") center / cover no-repeat;
  z-index: 0;
  will-change: transform;
}
#optics {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 1.15s ease;
}
body.optics #optics { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 7; pointer-events: none;
  opacity: 0.16; mix-blend-mode: overlay;
  background-repeat: repeat; background-size: 128px 128px;
}
.flash {
  position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background: #eef3ff; opacity: 0;
}
body.cut .flash { animation: exposure 0.46s ease forwards; }
@keyframes exposure {
  0% { opacity: 0.4; }
  100% { opacity: 0; }
}
button, input, textarea, a { font: inherit; color: inherit; }
button, a { cursor: pointer; }
button { border: 0; background: none; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(5, 6, 20, 0.28), transparent 22%, transparent 68%, rgba(5, 6, 20, 0.28));
}
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.05rem 1.4rem;
  animation: fade 0.9s ease both;
}
.brand { display: flex; align-items: flex-end; gap: 0.06rem; text-decoration: none; }
.od { width: 102px; height: 56px; display: block; }
.word { font-weight: 600; letter-spacing: -0.05em; font-size: 1.55rem; line-height: 1; padding-bottom: 0.22rem; }
.chrome nav { margin-left: auto; font-size: 0.84rem; }
.chrome nav a { text-decoration: none; color: var(--mute); }
.chrome nav a:hover, .chrome nav a.on { color: white; }
body.mode-listen .chrome nav { visibility: hidden; }

.panel {
  position: fixed; z-index: 4; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.is-on { opacity: 1; pointer-events: none; }
.panel.is-on > * { pointer-events: auto; }

.poster {
  position: absolute; left: 50%; top: 18vh;
  width: min(760px, calc(100% - 2rem)); text-align: center;
  animation: rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 28px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.poster .eyebrow { letter-spacing: 0.32em; font-size: 0.68rem; color: rgba(226, 232, 255, 0.78); }
.poster h1 {
  margin: 0; font-weight: 600;
  font-size: clamp(3.1rem, 6.2vw, 5.35rem);
  letter-spacing: -0.05em; line-height: 0.92;
}
.grad {
  background: linear-gradient(90deg, #e07cff 0%, #8d74ff 46%, #49b0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.poster .ask { margin-top: 1.7rem; text-align: left; }
.eyebrow {
  margin: 0 0 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--faint);
}
.lede, .id-sub, .hint, #interest-status, #sell-status { color: var(--mute); font-weight: 300; line-height: 1.45; }

.ask-glass {
  background: rgba(14, 16, 36, 0.42);
  border: 1px solid rgba(176, 156, 255, 0.55);
  border-radius: 26px;
  padding: 1.15rem 1.15rem 0.95rem;
  box-shadow:
    0 0 0 1px rgba(130, 90, 255, 0.22),
    0 0 46px rgba(120, 70, 255, 0.42),
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}
.ask-title { margin: 0 0 0.8rem; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; }
.ask-row {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(3, 5, 14, 0.55);
  border: 1px solid rgba(180, 200, 255, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.28rem 0.28rem 0.45rem;
  overflow: hidden;
}
.ask-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  padding: 0.55rem 0.35rem; font-size: 0.98rem;
}
.ask-row input::placeholder { color: rgba(214, 224, 255, 0.38); }
.mic { width: 34px; height: 34px; display: grid; place-items: center; color: rgba(226, 232, 255, 0.8); }
.lens { width: 18px; height: 18px; }
.bars { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { display: block; width: 2px; height: 8px; border-radius: 1px; background: linear-gradient(#7ec8ff, #b06bff); }
body.listening .lens { display: none; }
body.listening .bars { display: flex; }
body.listening .bars i { animation: eq 0.9s ease-in-out infinite; }
@keyframes eq { 50% { transform: scaleY(1.6); } }
.go {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5eb6ff, #746bff 55%, #d16cff);
  color: white; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(90, 80, 220, 0.45);
}
.go.wide {
  width: auto; height: auto; border-radius: 999px;
  padding: 0.85rem 1.25rem; display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 500; font-size: 0.95rem;
}
.heard { margin: 0.45rem 0 0; color: var(--mute); font-size: 0.88rem; }
.heard:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.pills.more { margin-top: 0.45rem; }
#more-row[hidden] { display: none; }
.pills button {
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--mute);
  padding: 0.32rem 0.7rem; font-size: 0.78rem;
}
.pills button:hover { color: white; border-color: rgba(186, 206, 255, 0.45); }

.choose-head {
  position: absolute; left: 50%; top: 16vh; transform: translateX(-50%);
  width: min(40rem, calc(100% - 2rem)); text-align: center;
}
#choose-q { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -0.04em; }
.cards {
  position: absolute; left: 0; right: 0; bottom: 10vh;
  display: flex; justify-content: center; gap: 0.9rem;
  width: min(980px, calc(100% - 8vw)); margin: 0 auto;
}
.card {
  width: min(19rem, 30vw); min-height: 8.5rem; text-align: left; color: white;
  padding: 1.1rem 1.15rem; border-radius: 22px;
  background: rgba(10, 12, 28, 0.62);
  border: 1px solid rgba(170, 150, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 0.28rem;
}
.card { animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.card:nth-child(2) { transform: translateY(-14px); animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; }
}
.card-kicker { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9ec6ff; }
.card-dom { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.045em; }
.card-why { color: var(--mute); font-size: 0.82rem; font-weight: 300; }
.card-price { margin-top: auto; font-size: 0.82rem; color: var(--faint); }
.card.sk { min-height: 8.5rem; opacity: 0.45; }

#panel-identity, #panel-sell { display: grid; place-items: center; }
.identity {
  width: min(34rem, calc(100% - 2rem));
  padding: 1.6rem 1.5rem 1.35rem; border-radius: 28px;
  background: rgba(10, 12, 28, 0.7);
  border: 1px solid rgba(170, 150, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
}
.identity h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.id-name { margin: 0.7rem 0 0; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.04em; }
.id-sub { margin: 0.7rem 0 1.1rem; }
#interest, .identity form { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
#interest[hidden] { display: none !important; }
#interest h2 { margin: 0; font-size: 1.05rem; font-weight: 500; }
#interest label, .identity form label {
  display: grid; gap: 0.2rem; text-align: left;
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
#interest input, #interest textarea, .identity form input, .identity form textarea {
  width: 100%; background: rgba(3, 5, 14, 0.55);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.65rem 0.75rem; outline: none; font-size: 0.95rem;
  text-transform: none; letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  .poster, .chrome, .card, .panel { animation: none; transition: none; }
  #optics { transition: none; }
  body.cut .flash { animation: none; }
}
@media (max-width: 860px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  .world { inset: 0; }
  .panel { position: relative; inset: auto; min-height: 100vh; }
  .poster { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 5.2rem 1rem 1.5rem; animation: none; }
  .poster h1 { font-size: 2.55rem; }
  .choose-head, .cards { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: auto; margin: 1rem; }
  .cards { overflow-x: auto; justify-content: flex-start; }
  .card, .card:nth-child(2) { width: 15rem; flex: none; transform: none; }
  body.mode-listen .chrome nav { visibility: visible; }
}
