﻿:root {
  color-scheme: dark;
  --night: #0a0a0f;
  --panel: rgba(13, 18, 28, 0.72);
  --panel-strong: rgba(18, 24, 38, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --muted: rgba(235, 247, 255, 0.72);
  --text: #f6fbff;
  --cyan: #00f0ff;
  --violet: #b347ff;
  --ember: #ff6b35;
  --green: #65ffbd;
  --red: #ff5577;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 240, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, rgba(0, 240, 255, 0.08), transparent 32%),
    linear-gradient(225deg, rgba(255, 107, 53, 0.08), transparent 34%),
    var(--night);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

code {
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 0.45rem;
  background: rgba(0, 240, 255, 0.08);
  color: #dffcff;
  padding: 0.12rem 0.34rem;
  font-size: 0.92em;
}

::selection {
  background: rgba(0, 240, 255, 0.32);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

main {
  position: relative;
  z-index: 1;
}

.content-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.66);
  padding: 0.74rem 0.9rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.brand-mark,
.site-header nav,
.site-header nav a {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.55rem;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.brand-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.72);
}

.site-header nav {
  gap: clamp(0.45rem, 2vw, 1.2rem);
}

.site-header nav a {
  min-height: 2.15rem;
  border-radius: 999px;
  color: rgba(246, 251, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0 0.74rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  padding: 7.5rem 0 4rem;
}

.hero-section-compact {
  min-height: auto;
  padding: 7.5rem 0 2.25rem;
}

.hero-lead {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-section-compact .hero-text {
  max-width: 48rem;
}

.hero-section-compact .stat-row {
  margin-top: 1.6rem;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 38%, rgba(0, 240, 255, 0.2), transparent 23rem),
    radial-gradient(circle at 88% 72%, rgba(255, 107, 53, 0.14), transparent 18rem),
    radial-gradient(circle at 50% 18%, rgba(179, 71, 255, 0.13), transparent 20rem),
    linear-gradient(90deg, rgba(10, 10, 15, 0.98), rgba(10, 10, 15, 0.52) 58%, rgba(10, 10, 15, 0.86));
  content: "";
  opacity: 0.78;
  animation: hero-light-drift 12s ease-in-out infinite alternate;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.2) contrast(1.08);
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.62) 48%, rgba(10, 10, 15, 0.84)),
    linear-gradient(180deg, rgba(10, 10, 15, 0.4), var(--night));
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(3.55rem, 6.5vw, 5.85rem);
  font-weight: 850;
  line-height: 0.94;
  white-space: nowrap;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.34);
}

h1::after {
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: -0.12em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 240, 255, 0.16));
  content: "";
  opacity: 0.86;
}

h1 span:last-child {
  color: #95f8ff;
}

.hero-subtitle {
  max-width: 42rem;
  margin: 1.05rem 0 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions,
.stat-row,
.trait-row,
.character-topline,
.footer-grid,
.waitlist-form,
.input-wrap,
.form-status {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid rgba(0, 240, 255, 0.74);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.86), rgba(72, 143, 255, 0.82) 48%, rgba(179, 71, 255, 0.88)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 0 1.35rem;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.26);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.38);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 1.18rem;
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(255, 107, 53, 0.62);
  background: rgba(255, 107, 53, 0.1);
}

.stat-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stat-row div {
  min-width: 9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.8rem 0.95rem;
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.stat-row span {
  margin-top: 0.3rem;
  color: rgba(246, 251, 255, 0.62);
  font-size: 0.82rem;
}

.hero-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-reel {
  position: relative;
  overflow: hidden;
  min-height: 10.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  animation: reel-float 5.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hero-reel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12), transparent 62%);
  content: "";
  transform: translateX(-120%);
  animation: reel-sheen 4.8s ease-in-out infinite;
  animation-delay: var(--delay);
  pointer-events: none;
}

.reel-screen {
  position: relative;
  height: 5.65rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 240, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(179, 71, 255, 0.08) 55%, rgba(255, 107, 53, 0.1));
}

.hero-reel-violet .reel-screen {
  background:
    radial-gradient(circle at 48% 48%, rgba(179, 71, 255, 0.28), transparent 38%),
    linear-gradient(135deg, rgba(179, 71, 255, 0.18), rgba(0, 240, 255, 0.1) 58%, rgba(255, 255, 255, 0.04));
}

.hero-reel-ember .reel-screen {
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 107, 53, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(0, 240, 255, 0.08) 58%, rgba(179, 71, 255, 0.1));
}

.reel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  animation: grid-pan 5.5s linear infinite;
}

.reel-scan {
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: scan-video 2.6s ease-in-out infinite;
}

.reel-orbit,
.reel-subject {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}

.reel-orbit {
  width: 4.1rem;
  height: 4.1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transform: translate(-50%, -50%);
  animation: orbit-roll 4.2s linear infinite;
}

.reel-orbit-b {
  width: 5.5rem;
  height: 2.3rem;
  transform: translate(-50%, -50%) rotate(38deg);
  animation-duration: 5.7s;
}

.reel-subject {
  width: 1.4rem;
  height: 1.4rem;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.9);
  transform: translate(-50%, -50%);
  animation: subject-pulse 1.8s ease-in-out infinite;
}

.hero-reel-violet .reel-subject {
  background: var(--violet);
  box-shadow: 0 0 26px rgba(179, 71, 255, 0.9);
}

.hero-reel-ember .reel-subject {
  background: var(--ember);
  box-shadow: 0 0 26px rgba(255, 107, 53, 0.9);
}

.reel-copy {
  padding: 0.85rem;
}

.reel-copy span,
.reel-copy strong,
.reel-copy p {
  display: block;
}

.reel-copy span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-reel-violet .reel-copy span {
  color: #d7a5ff;
}

.hero-reel-ember .reel-copy span {
  color: #ffb08f;
}

.reel-copy strong {
  margin-top: 0.18rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.08;
}

.reel-copy p {
  margin: 0.3rem 0 0;
  color: rgba(246, 251, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.25;
}

.hero-visual {
  min-width: 0;
}

.live-mascot-scene {
  position: relative;
  min-height: clamp(28rem, 52vw, 42rem);
  overflow: visible;
  isolation: isolate;
}

.mascot-aura {
  position: absolute;
  inset: 8% 2% 8% 4%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 42%, rgba(0, 240, 255, 0.26), transparent 28%),
    radial-gradient(circle at 64% 64%, rgba(179, 71, 255, 0.2), transparent 30%),
    radial-gradient(circle at 72% 34%, rgba(255, 107, 53, 0.16), transparent 22%);
  filter: blur(10px);
  animation: aura-breathe 4.4s ease-in-out infinite;
}

.floating-mascot {
  position: absolute;
  left: 42%;
  top: 48%;
  z-index: 5;
  width: min(70%, 32rem);
  transform: translate(-50%, -50%);
  animation: mascot-fly 5.2s ease-in-out infinite;
  filter: drop-shadow(0 0 34px rgba(0, 240, 255, 0.52));
}

.floating-mascot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mascot-floor {
  position: absolute;
  left: 45%;
  bottom: 8%;
  z-index: 1;
  width: min(52%, 24rem);
  height: 6.2rem;
  transform: translateX(-50%) rotateX(62deg);
  border: 1px solid rgba(0, 240, 255, 0.48);
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.28), inset 0 0 32px rgba(0, 240, 255, 0.18);
}

.mascot-floor span {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: floor-pulse 2.8s ease-in-out infinite;
}

.mascot-floor span:nth-child(2) {
  inset: 28%;
  animation-delay: 0.28s;
}

.mascot-floor span:nth-child(3) {
  inset: 42%;
  animation-delay: 0.56s;
}

.mascot-beam {
  position: absolute;
  bottom: 16%;
  z-index: 2;
  width: 2px;
  height: 42%;
  transform-origin: bottom;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.7));
  opacity: 0.72;
  filter: blur(0.2px);
  animation: beam-sway 3.4s ease-in-out infinite;
}

.mascot-beam-left {
  left: 30%;
  transform: rotate(17deg);
}

.mascot-beam-right {
  right: 28%;
  transform: rotate(-16deg);
  animation-delay: 0.5s;
}

.mascot-orbit {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 50%;
  pointer-events: none;
}

.mascot-orbit-one {
  left: 12%;
  top: 22%;
  width: 6.8rem;
  height: 6.8rem;
  animation: orbit-drift 7s linear infinite;
}

.mascot-orbit-two {
  right: 8%;
  bottom: 22%;
  width: 9rem;
  height: 4rem;
  transform: rotate(-28deg);
  animation: orbit-drift 8.5s linear infinite reverse;
}

.laugh-burst {
  position: absolute;
  left: 62%;
  top: 16%;
  z-index: 6;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.laugh-burst span {
  display: block;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.32rem 0.58rem;
  animation: laugh-pop 3s ease-in-out infinite;
}

.laugh-burst span:nth-child(2) {
  margin-left: 2.8rem;
  color: var(--cyan);
  animation-delay: 0.3s;
}

.laugh-burst span:nth-child(3) {
  margin-left: 1rem;
  color: #ffb08f;
  animation-delay: 0.6s;
}

.mascot-bubble,
.gesture-chip {
  position: absolute;
  z-index: 7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 30, 0.7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.mascot-bubble {
  max-width: 13rem;
  border-radius: 999px;
  color: rgba(246, 251, 255, 0.86);
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  animation: bubble-float 4.6s ease-in-out infinite;
}

.mascot-bubble-one {
  right: 3%;
  top: 34%;
}

.mascot-bubble-two {
  left: 2%;
  bottom: 28%;
  animation-delay: 0.7s;
}

.gesture-chip {
  right: 11%;
  bottom: 10%;
  border-radius: 0.5rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.65rem 0.82rem;
  text-transform: uppercase;
  animation: chip-pulse 2.4s ease-in-out infinite;
}

.hologram-stage {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  perspective: 900px;
}

.hologram-ring {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 52%;
  height: 12%;
  transform: translateX(-50%) rotateX(65deg);
  border: 2px solid rgba(0, 240, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 52px rgba(0, 240, 255, 0.42), inset 0 0 32px rgba(0, 240, 255, 0.24);
}

.pyramid {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 52%;
  height: 54%;
  transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  transform-style: preserve-3d;
  animation: pyramid-spin 12s linear infinite;
}

.pyramid-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.54);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.2), rgba(179, 71, 255, 0.08));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 28px rgba(0, 240, 255, 0.18);
}

.pyramid-face-left {
  transform: rotateY(62deg);
}

.pyramid-face-right {
  transform: rotateX(62deg);
}

.hologram-avatar {
  position: absolute;
  left: 50%;
  top: 17%;
  width: 76%;
  border-radius: 0.7rem;
  overflow: hidden;
  transform: translateX(-50%);
  animation: float-avatar 4.8s ease-in-out infinite;
  filter: drop-shadow(0 0 34px rgba(0, 240, 255, 0.54));
}

.hologram-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.beam {
  position: absolute;
  bottom: 20%;
  width: 2px;
  height: 48%;
  transform-origin: bottom;
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.84));
  opacity: 0.82;
}

.beam-one {
  left: 31%;
  transform: rotate(15deg);
}

.beam-two {
  left: 50%;
}

.beam-three {
  right: 31%;
  transform: rotate(-15deg);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-tight {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.section-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.12);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.7rem, 4vw, 3rem);
}

.section-heading h2,
.waitlist-grid h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
}

.section-heading p:not(.eyebrow),
.waitlist-grid p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 5.3rem;
  z-index: 0;
  height: 0.45rem;
  pointer-events: none;
}

.flow-line {
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), rgba(179, 71, 255, 0.72), rgba(255, 107, 53, 0.72), transparent);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.28);
}

.flow-packet {
  position: absolute;
  top: 50%;
  width: 0.78rem;
  height: 0.78rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.9);
  animation: packet-run 4.2s linear infinite;
}

.flow-packet-two {
  animation-delay: 1.4s;
  background: var(--violet);
  box-shadow: 0 0 18px rgba(179, 71, 255, 0.9);
}

.flow-packet-three {
  animation-delay: 2.8s;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.9);
}

.step-card,
.character-card,
.use-card,
.tech-node,
.waitlist-shell,
.device-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.step-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 18rem;
  border-radius: 0.5rem;
  padding: 1.35rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.step-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(0, 240, 255, 0.15), transparent 10rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 48%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.step-card:hover,
.step-card:focus-within {
  transform: translateY(-0.35rem);
  border-color: rgba(0, 240, 255, 0.42);
  box-shadow: 0 28px 78px rgba(0, 240, 255, 0.12), 0 18px 60px rgba(0, 0, 0, 0.32);
}

.step-card:hover::before,
.step-card:focus-within::before {
  opacity: 1;
}

.icon-badge,
.character-avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
}

.icon-badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.45rem;
}

.step-card > span,
.use-content > span {
  display: block;
  margin-top: 1rem;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.step-card h3,
.use-card h3 {
  margin: 0.45rem 0 0;
  font-size: 1.45rem;
}

.step-card p,
.use-card p,
.character-intro {
  color: var(--muted);
}

.step-live-widget {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  width: 6.3rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 0.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    rgba(0, 240, 255, 0.06);
  background-size: 14px 14px;
  overflow: hidden;
}

.widget-ring,
.widget-core,
.widget-scan {
  position: absolute;
  pointer-events: none;
}

.widget-ring {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: orbit-roll 4s linear infinite;
}

.widget-ring::after {
  position: absolute;
  right: -0.15rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.8);
  content: "";
}

.widget-core {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.65);
  animation: subject-pulse 1.9s ease-in-out infinite;
}

.widget-scan {
  left: -10%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(0, 240, 255, 0.72);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
  animation: scan-x 2.7s ease-in-out infinite;
}

.widget-label {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.32rem;
  color: rgba(246, 251, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.step-signal {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: rgba(246, 251, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.step-signal span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(101, 255, 189, 0.64);
}

.pulse-line {
  position: absolute;
  top: 4.7rem;
  right: -1.05rem;
  z-index: 3;
  width: 2.1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}

.pulse-line::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.46rem;
  height: 0.46rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--cyan);
  content: "";
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.voice-mode-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(8, 12, 22, 0.72);
}

.voice-mode-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 251, 255, 0.72);
}

.voice-mode-segment {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.voice-mode-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(246, 251, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.voice-mode-btn:hover,
.voice-mode-btn:focus-visible {
  outline: none;
  color: var(--text);
}

.voice-mode-btn.is-active {
  border-color: rgba(0, 240, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(179, 71, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.voice-mode-btn[aria-pressed="true"] {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.adult-mode-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 107, 53, 0.28);
  background: rgba(18, 10, 12, 0.75);
}

.adult-mode-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 214, 200, 0.85);
}

.adult-mode-hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(246, 251, 255, 0.52);
  max-width: 42rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.character-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.character-card::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(0, 240, 255, 0.18), transparent 14rem);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.character-card:hover,
.character-card:focus-within {
  transform: translateY(-0.4rem);
  border-color: rgba(0, 240, 255, 0.42);
}

.character-card:hover::after,
.character-card:focus-within::after {
  opacity: 1;
}

.character-card-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 27rem;
  border: 0;
  background: transparent;
  padding: clamp(1.2rem, 3vw, 2rem);
  text-align: left;
  cursor: pointer;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 240, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(179, 71, 255, 0.08) 55%, rgba(255, 107, 53, 0.08)),
    rgba(8, 12, 22, 0.96);
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.32);
  transition: transform 360ms ease, box-shadow 360ms ease;
}

.character-card-ember .card-media {
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 107, 53, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(179, 71, 255, 0.08) 55%, rgba(0, 240, 255, 0.06)),
    rgba(12, 8, 16, 0.96);
}

.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
}

.card-media-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 110%, rgba(0, 240, 255, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(10, 10, 15, 0) 55%, rgba(10, 10, 15, 0.55));
  mix-blend-mode: screen;
  opacity: 0.85;
}

.character-card-ember .card-media-glow {
  background:
    radial-gradient(120% 100% at 50% 110%, rgba(255, 107, 53, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(10, 10, 15, 0) 55%, rgba(10, 10, 15, 0.55));
}

.card-media-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.78);
  color: #cffcff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.62rem;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-media-tag::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  content: "";
  animation: card-media-pulse 1.6s ease-in-out infinite;
}

.character-card-ember .card-media-tag {
  border-color: rgba(255, 107, 53, 0.46);
  color: #ffe7d5;
}

.character-card-ember .card-media-tag::before {
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.85);
}

.character-card:hover .card-media,
.character-card:focus-within .card-media {
  transform: translateY(-2px);
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.4), 0 14px 38px rgba(0, 0, 0, 0.32);
}

@keyframes card-media-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.character-card-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.character-card-cyan {
  box-shadow: 0 0 52px rgba(0, 240, 255, 0.15);
}

.character-card-ember {
  box-shadow: 0 0 52px rgba(255, 107, 53, 0.15);
}

.character-topline {
  gap: 1rem;
}

.character-avatar {
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
}

.character-card-ember .character-avatar {
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.1);
  color: var(--ember);
}

.character-topline h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.character-topline p {
  margin: 0.25rem 0 0;
  color: rgba(246, 251, 255, 0.64);
}

.character-intro {
  margin: 1.6rem 0;
  max-width: 34rem;
}

.character-live-widget {
  position: relative;
  display: grid;
  min-height: 8.4rem;
  align-items: center;
  margin: 0 0 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 22px 22px;
  padding: 1rem 1rem 1rem 8.6rem;
}

.character-holo {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  display: grid;
  width: 5.8rem;
  height: 5.8rem;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.18);
  animation: character-bob 3.8s ease-in-out infinite;
}

.character-card-ember .character-holo {
  border-color: rgba(255, 107, 53, 0.38);
  background: rgba(255, 107, 53, 0.08);
  color: var(--ember);
}

.character-wave {
  position: absolute;
  left: 4rem;
  top: 50%;
  width: 8rem;
  height: 8rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.character-wave span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 50%;
  opacity: 0;
  animation: wave-out 2.8s ease-out infinite;
}

.character-card-ember .character-wave span {
  border-color: rgba(255, 107, 53, 0.22);
}

.character-wave span:nth-child(2) {
  animation-delay: 0.55s;
}

.character-wave span:nth-child(3) {
  animation-delay: 1.1s;
}

.character-live-widget strong,
.character-live-widget small {
  position: relative;
  z-index: 2;
  display: block;
}

.character-live-widget strong {
  color: #ffffff;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.character-live-widget small {
  margin-top: 0.32rem;
  color: rgba(246, 251, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-card:hover .character-holo,
.character-card:focus-within .character-holo {
  animation-duration: 1.45s;
}

blockquote {
  min-height: 6.4rem;
  margin: 0;
  border-left: 3px solid var(--cyan);
  color: #ffffff;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  padding-left: 1rem;
}

.character-card-ember blockquote {
  border-color: var(--ember);
}

.trait-row {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.trait-row span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 251, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.36rem 0.64rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.device-frame {
  border-radius: 0.6rem;
  padding: 0.75rem;
  box-shadow:
    0 0 60px rgba(0, 240, 255, 0.18),
    0 0 90px rgba(179, 71, 255, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

.device-toolbar {
  display: flex;
  gap: 0.42rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.4rem 0.7rem;
}

.device-toolbar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

.device-toolbar span:nth-child(2) {
  background: var(--violet);
}

.device-toolbar span:nth-child(3) {
  background: var(--ember);
}

.device-screen {
  display: grid;
  min-height: clamp(18rem, 40vw, 30rem);
  place-items: center;
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.15), transparent 38%),
    linear-gradient(225deg, rgba(255, 107, 53, 0.14), transparent 42%),
    rgba(2, 5, 10, 0.86);
  color: var(--cyan);
  text-align: center;
}

.device-screen strong,
.device-screen span {
  display: block;
  color: #ffffff;
}

.device-screen strong {
  margin-top: 0.7rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.device-screen span {
  color: rgba(246, 251, 255, 0.62);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.use-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 0.5rem;
  padding: 0;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.use-card:hover,
.use-card:focus-within {
  transform: translateY(-0.35rem);
  border-color: rgba(0, 240, 255, 0.42);
  box-shadow: 0 22px 70px rgba(0, 240, 255, 0.1), 0 18px 60px rgba(0, 0, 0, 0.28);
}

.use-preview {
  position: relative;
  height: 8.6rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 55%, rgba(0, 240, 255, 0.17), transparent 4.8rem),
    linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(179, 71, 255, 0.08), rgba(255, 107, 53, 0.08));
}

.use-mini-mascot {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 3.4rem;
  height: 4.1rem;
  transform: translate(-50%, -50%);
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 35% 34%, #07283a 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 65% 34%, #07283a 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.85) 0 0.35rem, transparent 0.37rem),
    linear-gradient(135deg, rgba(0, 240, 255, 0.92), rgba(179, 71, 255, 0.64));
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.34);
  animation: use-genie 3.2s ease-in-out infinite;
}

.use-mini-mascot::before,
.use-mini-mascot::after {
  position: absolute;
  top: 1.45rem;
  width: 1.45rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.8);
  content: "";
}

.use-mini-mascot::before {
  left: -0.9rem;
  transform: rotate(-24deg);
}

.use-mini-mascot::after {
  right: -0.9rem;
  transform: rotate(24deg);
}

.use-hand-wave {
  position: absolute;
  left: 58%;
  top: 34%;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  transform-origin: 0.2rem 1.8rem;
  animation: hand-wave 1.7s ease-in-out infinite;
}

.use-preview small {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.65rem;
  color: rgba(246, 251, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.use-card:hover .use-preview small,
.use-card:focus-within .use-preview small {
  opacity: 1;
  transform: translateY(0);
}

.use-content {
  padding: 1rem;
}

.use-content svg {
  color: var(--cyan);
}

.tech-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.06), transparent 42%, rgba(255, 107, 53, 0.06)),
    rgba(255, 255, 255, 0.03);
  padding: clamp(1rem, 3vw, 2rem);
}

.tech-map::before {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 84%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--ember), transparent);
  content: "";
  opacity: 0.58;
}

.tech-node {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 12rem;
  align-content: center;
  justify-items: center;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transform: translateY(calc((var(--i) - 2) * 0.35rem));
}

.tech-node svg {
  color: var(--cyan);
}

.tech-node strong {
  margin-top: 0.8rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
}

.tech-node span {
  color: rgba(246, 251, 255, 0.62);
  font-size: 0.86rem;
}

.tech-core {
  position: absolute;
  left: 50%;
  bottom: -2.2rem;
  z-index: 4;
  width: min(20rem, calc(100% - 2rem));
  transform: translateX(-50%);
  border: 1px solid rgba(179, 71, 255, 0.38);
  border-radius: 0.5rem;
  background: rgba(22, 14, 34, 0.92);
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: 0 0 42px rgba(179, 71, 255, 0.22);
}

.tech-core span,
.tech-core strong {
  display: block;
}

.tech-core span {
  color: rgba(246, 251, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tech-core strong {
  color: #ffffff;
}

.waitlist-section {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.waitlist-shell {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.waitlist-form {
  gap: 0.75rem;
}

.input-wrap {
  min-height: 3.35rem;
  flex: 1 1 auto;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 251, 255, 0.64);
  padding: 0 1rem;
}

.input-wrap:focus-within {
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.12);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
}

.input-wrap input::placeholder {
  color: rgba(246, 251, 255, 0.42);
}

.form-button {
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.8rem;
  gap: 0.45rem;
  margin: 0.95rem 0 0;
  color: rgba(246, 251, 255, 0.64);
  font-size: 0.92rem;
}

.form-status-success {
  color: var(--green);
}

.form-status-error {
  color: #ffb29a;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 0.8rem;
  width: 0.42rem;
  height: 0.9rem;
  border-radius: 0.12rem;
  opacity: 0;
  animation: confetti-pop 1.15s ease-out forwards;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 1.35rem 0;
}

.footer-grid {
  justify-content: space-between;
  gap: 1rem;
  color: rgba(246, 251, 255, 0.68);
  font-size: 0.95rem;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-weight: 800;
}

@keyframes pyramid-spin {
  from {
    transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  }
  to {
    transform: translateX(-50%) rotateX(62deg) rotateZ(405deg);
  }
}

@keyframes hero-light-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  to {
    transform: translate3d(1.2rem, -0.7rem, 0) scale(1.04);
    opacity: 0.9;
  }
}

@keyframes aura-breathe {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.74;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes mascot-fly {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  30% {
    transform: translate(-47%, -55%) rotate(4deg);
  }
  62% {
    transform: translate(-53%, -47%) rotate(-5deg);
  }
}

@keyframes floor-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes beam-sway {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes orbit-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes laugh-pop {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
    opacity: 0.38;
  }
  45% {
    transform: translateY(-0.7rem) scale(1.08);
    opacity: 1;
  }
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes chip-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.18);
  }
}

@keyframes packet-run {
  0% {
    left: 0;
    opacity: 0;
  }
  8%,
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes scan-x {
  0% {
    left: -10%;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

@keyframes character-bob {
  0%,
  100% {
    transform: translateY(-50%) rotate(-4deg);
  }
  50% {
    transform: translateY(-62%) rotate(5deg);
  }
}

@keyframes wave-out {
  0% {
    transform: scale(0.22);
    opacity: 0.82;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes use-genie {
  0%,
  100% {
    transform: translate(-50%, -48%) rotate(-3deg);
  }
  45% {
    transform: translate(-50%, -62%) rotate(4deg);
  }
}

@keyframes hand-wave {
  0%,
  100% {
    transform: rotate(-16deg) translateY(0);
  }
  50% {
    transform: rotate(22deg) translateY(-0.2rem);
  }
}

@keyframes reel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.42rem);
  }
}

@keyframes reel-sheen {
  0%,
  38% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes grid-pan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 36px 18px;
  }
}

@keyframes scan-video {
  0% {
    top: -30%;
  }
  100% {
    top: 100%;
  }
}

@keyframes orbit-roll {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes subject-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.82;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.22);
    opacity: 1;
  }
}

@keyframes float-avatar {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-0.9rem);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.7);
    opacity: 0.45;
  }
}

@keyframes confetti-pop {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(8rem) rotate(280deg);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 1rem;
  }

  .site-header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero-grid,
  .demo-grid,
  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-section::before {
    background:
      radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.18), transparent 19rem),
      linear-gradient(180deg, rgba(10, 10, 15, 0.94), rgba(10, 10, 15, 0.66), rgba(10, 10, 15, 0.95));
  }

  .hologram-stage {
    margin: 0 auto;
    max-width: 30rem;
  }

  .live-mascot-scene {
    min-height: 30rem;
    max-width: 38rem;
    margin: 0 auto;
  }

  .floating-mascot {
    left: 50%;
    width: min(72%, 26rem);
  }

  .mascot-bubble-one {
    right: 0;
  }

  .mascot-bubble-two {
    left: 0;
  }

  .hero-reels {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .characters-grid {
    grid-template-columns: 1fr;
  }

  .flow-track {
    display: none;
  }

  .use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-line {
    display: none;
  }

  .tech-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 4.4rem;
  }

  .tech-map::before {
    display: none;
  }

  .tech-node {
    transform: none;
  }
}

@media (max-height: 560px) and (min-width: 820px) {
  .site-header {
    top: 0.65rem;
    padding: 0.56rem 0.78rem;
  }

  .hero-section {
    min-height: 100svh;
    padding: 5.6rem 0 2.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(310px, 0.9fr);
    gap: 1.6rem;
  }

  h1 {
    font-size: clamp(3.15rem, 5.5vw, 4.25rem);
  }

  .hero-subtitle {
    margin-top: 0.75rem;
    font-size: clamp(1.12rem, 2.25vw, 1.55rem);
  }

  .hero-text {
    margin-top: 0.75rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .stat-row {
    margin-top: 1rem;
  }

  .hero-reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.9rem;
  }

  .hero-reel {
    min-height: 8.2rem;
  }

  .use-case-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .use-card {
    min-height: 18rem;
  }

  .use-preview {
    height: 6.8rem;
  }

  .reel-screen {
    height: 4.2rem;
  }

  .reel-copy {
    padding: 0.62rem;
  }

  .live-mascot-scene {
    min-height: 22rem;
  }

  .floating-mascot {
    width: min(82%, 24rem);
  }

  .mascot-bubble {
    font-size: 0.78rem;
    padding: 0.55rem 0.7rem;
  }
}

@media (max-width: 640px) {
  .content-wrap {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    top: 0.5rem;
    width: min(100% - 1rem, 1180px);
  }

  .brand-mark {
    min-height: 2rem;
  }

  .site-header nav a {
    font-size: 0.78rem;
    padding: 0 0.5rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .waitlist-form {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .form-button {
    width: 100%;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .stat-row div {
    flex: 1 1 100%;
  }

  .character-card-button {
    min-height: 0;
  }

  blockquote {
    min-height: 0;
  }

  .tech-map {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* =========================================================================
   HoloMate avatar-frontend additions on top of landing design system.
   ========================================================================= */

body {
  min-height: 100vh;
}

body.view-call {
  height: 100vh;
  overflow: hidden;
}

body.view-picker #picker-view {
  display: block;
}

body.view-picker #call-view {
  display: none;
}

body.view-call #picker-view {
  display: none;
}

body.view-call #call-view {
  display: flex;
}

#picker-view {
  display: block;
  position: relative;
  z-index: 1;
}

#call-view {
  display: none;
}

.site-header nav .nav-back {
  border: 1px solid rgba(0, 240, 255, 0.32);
  background: rgba(0, 240, 255, 0.08);
  color: #cdf5ff;
}

.site-header nav .nav-back:hover,
.site-header nav .nav-back:focus-visible {
  background: rgba(0, 240, 255, 0.18);
  color: #ffffff;
}

.particle-field {
  overflow: hidden;
}

.particle-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.95), rgba(0, 240, 255, 0));
  filter: blur(0.4px);
  opacity: 0;
  animation: particle-float 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.particle-dot:nth-child(3n) {
  background: radial-gradient(circle, rgba(179, 71, 255, 0.9), rgba(179, 71, 255, 0));
}

.particle-dot:nth-child(5n) {
  background: radial-gradient(circle, rgba(255, 107, 53, 0.85), rgba(255, 107, 53, 0));
}

@keyframes particle-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  20%, 80% {
    opacity: 0.85;
  }
  50% {
    transform: translate3d(0, -2.4rem, 0) scale(1.1);
    opacity: 1;
  }
}

.character-card-button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform 220ms ease;
}

.character-card-button:hover,
.character-card-button:focus-visible {
  transform: translateY(-0.2rem);
}

.character-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  color: var(--cyan);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.character-card-ember .card-cta {
  color: var(--ember);
}

.character-card .card-cta svg {
  transition: transform 220ms ease;
}

.character-card:hover .card-cta svg,
.character-card:focus-within .card-cta svg {
  transform: translateX(0.4rem);
}

/* ---- Call view ---- */

.call-view {
  position: fixed;
  inset: 0;
  z-index: 4;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100vh;
  gap: 1rem;
  padding: 5rem 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 240, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 90%, rgba(255, 107, 53, 0.1), transparent 26rem),
    var(--night);
}

.call-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 0.65rem 0.9rem 0.65rem 1rem;
}

.call-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.call-identity strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.call-status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(101, 255, 189, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.call-status-dot[data-status="connecting"] {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

.call-status-dot[data-status="error"] {
  background: var(--ember);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.8);
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mood-pill {
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  text-transform: uppercase;
}

.conn-text {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: #ffd0bd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
  text-transform: uppercase;
}

.end-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 85, 119, 0.6);
  border-radius: 999px;
  background: rgba(255, 85, 119, 0.12);
  color: #ffd5dd;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.end-call-btn:hover,
.end-call-btn:focus-visible {
  background: rgba(255, 85, 119, 0.25);
  border-color: rgba(255, 85, 119, 0.85);
  outline: none;
  transform: translateY(-1px);
}

.end-call-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 85, 119, 0.6);
}

.end-call-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(135deg);
  clip-path: inset(46% 0 46% 0);
}

.call-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.06), transparent 14rem),
    radial-gradient(circle at 70% 80%, rgba(179, 71, 255, 0.06), transparent 14rem),
    rgba(4, 6, 12, 0.8);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.avatar-frame {
  position: absolute;
  inset: 1.2rem;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.avatar-frame img,
.avatar-frame video#avatar-video,
.avatar-frame video#avatar-video-next {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-frame video#avatar-video-next {
  opacity: 0;
}

.avatar-glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 240, 255, 0.3), transparent 60%),
    radial-gradient(circle at 60% 30%, rgba(179, 71, 255, 0.2), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  animation: avatar-aura 5s ease-in-out infinite alternate;
}

@keyframes avatar-aura {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04); }
}

.self-pip {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  z-index: 5;
  transition: opacity 200ms ease, transform 200ms ease;
}

.self-pip[data-disabled="true"] .self-pip-overlay {
  opacity: 1;
}

.self-pip[data-disabled="true"] video {
  opacity: 0;
}

.self-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.self-pip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 85, 119, 0.25), rgba(0, 0, 0, 0.85));
  color: #ffd5dd;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.self-pip-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 213, 221, 0.7);
  position: relative;
}

.self-pip-icon::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 2px;
  background: rgba(255, 213, 221, 0.85);
  transform: rotate(45deg);
  transform-origin: center;
}

.self-pip-label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 7.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.control-btn:hover,
.control-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  outline: none;
  transform: translateY(-1px);
}

.control-btn[aria-pressed="false"] {
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.1);
  color: #ffd0bd;
}

.control-btn-danger {
  border-color: rgba(255, 85, 119, 0.5);
  color: #ffd5dd;
}

.control-btn-danger:hover,
.control-btn-danger:focus-visible {
  background: rgba(255, 85, 119, 0.18);
  border-color: rgba(255, 85, 119, 0.75);
}

.control-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.2rem;
  background: currentColor;
  position: relative;
  flex: none;
  opacity: 0.95;
}

.control-icon-camera {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0.18rem;
}

.control-icon-camera::before {
  content: "";
  position: absolute;
  right: -0.45rem;
  top: 0.18rem;
  width: 0.45rem;
  height: 0.5rem;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 0.12rem 0.12rem 0;
}

.control-btn[aria-pressed="false"] .control-icon-camera::after {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-bottom: 2px solid currentColor;
  transform: rotate(-30deg);
  transform-origin: 0 100%;
}

.control-icon-exit {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0.18rem;
}

.control-icon-exit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.control-icon-exit::after {
  content: "";
  position: absolute;
  right: -0.45rem;
  top: 50%;
  width: 0;
  height: 0;
  border: 0.3rem solid transparent;
  border-left-color: currentColor;
  transform: translateY(-50%);
}

.ptt-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 14rem;
  border: 1px solid rgba(0, 240, 255, 0.7);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(179, 71, 255, 0.18)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem 0.85rem 1.2rem;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ptt-btn:hover,
.ptt-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0, 240, 255, 0.32);
}

.ptt-btn.is-recording {
  border-color: rgba(255, 85, 119, 0.85);
  background:
    linear-gradient(135deg, rgba(255, 85, 119, 0.32), rgba(255, 107, 53, 0.28)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 52px rgba(255, 85, 119, 0.4);
}

.ptt-btn.is-muted {
  border-color: rgba(255, 255, 255, 0.38);
  opacity: 0.78;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.ptt-btn.voice-mic-continuous {
  touch-action: manipulation;
}

.ptt-ring {
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  position: relative;
}

.ptt-core {
  position: absolute;
  left: calc(1.2rem + 0.3rem);
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.85);
  transform: translateY(-50%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.ptt-btn.is-recording .ptt-core {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 85, 119, 0.85);
  animation: ptt-pulse 0.8s ease-in-out infinite;
}

@keyframes ptt-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.4); }
}

.ptt-text {
  position: relative;
}

.call-hint {
  margin: 0;
  text-align: center;
  color: rgba(246, 251, 255, 0.55);
  font-size: 0.85rem;
}

#achievement-popup {
  position: fixed;
  bottom: 7rem;
  left: 50%;
  z-index: 50;
  color: var(--cyan);
  font: 700 28px/1 "Space Grotesk", sans-serif;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 24px rgba(0, 240, 255, 0.25);
  transform: translateX(-50%);
  visibility: hidden;
}

#achievement-popup.show {
  animation: hologram-pulse 0.4s ease-out forwards;
  visibility: visible;
}

@keyframes hologram-pulse {
  0% { opacity: 0; transform: translateX(-50%) scale(0.9); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

#permission-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1000;
}

#permission-overlay .overlay-card {
  background: var(--panel-strong);
  border: 1px solid var(--cyan);
  border-radius: 0.8rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font: 18px/1.4 system-ui, sans-serif;
  gap: 18px;
  max-width: 480px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 240, 255, 0.18);
}

#permission-overlay .overlay-text {
  margin: 0;
  white-space: pre-line;
}

#permission-overlay .overlay-retry {
  align-self: center;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  color: #001216;
  cursor: pointer;
  font: 700 16px/1 "Space Grotesk", Inter, sans-serif;
  padding: 12px 28px;
}

#permission-overlay .overlay-retry:hover {
  filter: brightness(1.1);
}

#rotate-hint {
  align-items: center;
  background: #000;
  color: var(--cyan);
  display: none;
  font: 700 28px sans-serif;
  inset: 0;
  justify-content: center;
  position: fixed;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  z-index: 999;
}

body.mode-hologram {
  background: #000 !important;
}

body.mode-hologram .particle-field,
body.mode-hologram .site-header,
body.mode-hologram .call-topbar,
body.mode-hologram .call-controls,
body.mode-hologram .call-hint,
body.mode-hologram .self-pip {
  display: none !important;
}

body.mode-hologram .call-stage {
  border: 0;
  background: #000;
  box-shadow: none;
}

body.mode-hologram.view-call .call-view {
  padding: 0;
  gap: 0;
}

body.mode-hologram .avatar-frame {
  position: relative;
  inset: auto;
  width: min(80vh, 90vw);
  aspect-ratio: 3 / 4;
}

@media (max-width: 720px) {
  .call-view {
    padding: 4.6rem 0.8rem 1rem;
  }

  .call-controls {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .control-btn {
    min-width: 6rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
  }

  .ptt-btn {
    min-width: 100%;
    order: -1;
  }

  .self-pip {
    width: 38vw;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .avatar-frame {
    inset: 0.8rem;
  }
}

@media (orientation: portrait) and (max-width: 600px) {
  body.mode-hologram #rotate-hint {
    display: flex;
  }

  body.mode-hologram .call-view,
  body.mode-hologram main {
    display: none;
  }
}

/* ============================================================
   Pyramid mode (Pepper's Ghost quad-mirror)
   ============================================================
   Renders the live avatar four times in a cross around an empty
   black centre so that, when a clear-plastic pyramid is placed
   over the screen, each face reflects "its" copy and the four
   reflections converge in the apex - giving the appearance of a
   3D hologram inside the pyramid.

   Default geometry matches a hand-built pyramid with:
     base of each face   B = 100 mm
     apex (top of face)  T = 30 mm
     vertical height     h = 50 mm
   This makes the on-screen depth of each "petal" = (B-T)/2 = 35 mm.

   To target a different pyramid open the page with
   ``?pyramid=<B>-<T>`` in millimetres, e.g. ``?pyramid=80-20`` -
   js/app.js applies the values to the CSS custom properties
   below at runtime, no rebuild required.
   ============================================================ */
:root {
  --pyramid-base-mm: 100;
  --pyramid-apex-mm: 30;
}

#pyramid-stage {
  display: none;
}

body.mode-pyramid {
  background: #000 !important;
  overflow: hidden;
}

body.mode-pyramid .particle-field,
body.mode-pyramid .site-header,
body.mode-pyramid .call-topbar,
body.mode-pyramid .call-controls,
body.mode-pyramid .call-hint,
body.mode-pyramid .self-pip,
body.mode-pyramid #achievement-popup,
body.mode-pyramid .avatar-frame {
  display: none !important;
}

body.mode-pyramid .call-stage {
  border: 0;
  background: #000;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

body.mode-pyramid.view-call .call-view {
  padding: 0;
  gap: 0;
  background: #000;
}

body.mode-pyramid #pyramid-stage {
  /* All four faces are equal-sized squares arranged in a cross around an
     empty central apex. Doing it this way (instead of deriving petal
     dimensions from the physical pyramid's B/T mm values) keeps every
     copy of the avatar identical on screen and lets the user just slide
     the physical pyramid until it lines up; CSS ``mm`` units are not
     physical millimetres anyway (1mm = 96/25.4 CSS px regardless of DPI)
     so the geometric derivation never reflected reality.

     ``--pyramid-face`` is the side length of each square face. The cross
     extends across ``--pyramid-base`` total (3 * face = base when the
     apex column equals one face; we keep apex slightly smaller so the
     centre stays nicely empty). ``--pyramid-zoom`` scales the avatar
     inside its face; >1 makes Marco bigger (parts that fall outside the
     face are clipped by ``overflow: hidden`` so the central apex zone
     stays clean). ``position: fixed`` lifts the stage out of every
     ancestor's flex/grid so centring is unconditional. */
  --pyramid-base: 90vmin;
  --pyramid-face: 30vmin;
  --pyramid-depth: var(--pyramid-face);
  --pyramid-zoom: 1.6;
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--pyramid-base);
  height: var(--pyramid-base);
  z-index: 5;
  background: #000;
}

.pyramid-face {
  /* IMPORTANT: reset properties leaked from the legacy decorative
     ``.pyramid-face`` rule earlier in this file (used by the landing
     page's HologramPyramid component, lines ~780). That rule sets
     ``inset: 0``, a triangular ``clip-path``, a cyan border, and a
     gradient background - all of which would corrupt the avatar's
     pyramid layout. Same selector specificity, so the later rule (this
     one) wins on the cascade. NO ``!important`` here - the
     face-specific rules below need to set ``top: 0`` / ``left: 50%`` /
     ``bottom: 0`` / ``right: 0`` and an !important on this base would
     beat them. */
  inset: auto;
  clip-path: none;
  border: 0;
  box-shadow: none;
  background: #000;
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pyramid-face video,
.pyramid-face img,
.pyramid-face .pyramid-face-media {
  display: block;
  /* ``contain`` keeps the whole avatar visible in every petal (no cropped
     legs, no clipped chef hat). The avatar video is portrait while each
     petal is a wide rectangle, so ``cover`` would zoom in and cut Marco
     to the middle slice. With ``contain`` Marco is scaled to fit the
     petal's short dimension; all four copies end up identical size and
     fully visible, with black letterbox bars on the long sides. That
     also matches the physical pyramid: only the trapezoid area of each
     face actually reflects, the surrounding screen stays dark anyway.
     ``!important`` here so an upstream stylesheet can never accidentally
     break the geometry by setting object-fit: cover/fill on a generic
     ``video`` rule. */
  object-fit: contain !important;
  background: #000;
}

/* All four faces are identical squares (--pyramid-face on each side).
   Each is anchored to its respective edge of the stage and the media
   inside is rotated so Marco's feet point toward the central apex.
   Square containers + ``object-fit: contain`` give every copy the same
   visible size with no cropping. The user lines the physical pyramid
   up with the on-screen square - no per-device geometry maths. */
.pyramid-face-top,
.pyramid-face-bottom,
.pyramid-face-left,
.pyramid-face-right {
  width: var(--pyramid-face);
  height: var(--pyramid-face);
}

/* Top: anchored to the top of the stage, Marco upright so his feet
   point DOWN toward the central apex. ``scale(--pyramid-zoom)`` blows
   the avatar up inside the face; the face's ``overflow: hidden``
   clips anything that escapes, so the central apex stays empty. */
.pyramid-face-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.pyramid-face-top > * {
  width: 100%;
  height: 100%;
  transform: scale(var(--pyramid-zoom));
}

/* Bottom: anchored to the bottom of the stage, Marco rotated 180 deg
   so his feet point UP toward the central apex. */
.pyramid-face-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.pyramid-face-bottom > * {
  width: 100%;
  height: 100%;
  transform: rotate(180deg) scale(var(--pyramid-zoom));
}

/* Left: anchored to the left edge, Marco rotated -90 deg so his head is
   off the left edge and his feet point toward the central apex. */
.pyramid-face-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.pyramid-face-left > * {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg) scale(var(--pyramid-zoom));
}

/* Right: anchored to the right edge, Marco rotated 90 deg so his head is
   off the right edge and his feet point toward the central apex. */
.pyramid-face-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.pyramid-face-right > * {
  width: 100%;
  height: 100%;
  transform: rotate(90deg) scale(var(--pyramid-zoom));
}

/* Hide the inactive media element per face. Both <video> and <img> stay in
   the DOM so the JS sync only toggles the ``hidden`` attribute on each
   emotion change instead of mounting/unmounting nodes. */
.pyramid-face-media[hidden] {
  display: none !important;
}

/* Portrait warning re-uses the existing #rotate-hint, but in pyramid mode
   we also want to nuke the picker view so accidental scrolls do not reveal
   stray UI behind the pyramid. */
@media (orientation: portrait) and (max-width: 600px) {
  body.mode-pyramid #rotate-hint {
    display: flex;
  }
  body.mode-pyramid #picker-view {
    display: none;
  }
}

/* ============================================================
   Display mode (passive phone mirror attached to a producer)
   ============================================================
   Activated when ``js/app.js`` enters ``startDisplayCall``. The phone
   has no microphone, no camera, and no UI affordances; everything that
   could distract from the pyramid hologram is hidden. The class is
   independent from mode-pyramid so a future "single-face hologram on
   phone" preview can also use display mode without four faces.
   ============================================================ */
body.mode-display .picker-view,
body.mode-display #picker-view,
body.mode-display .call-topbar,
body.mode-display .call-controls,
body.mode-display .call-hint,
body.mode-display .self-pip,
body.mode-display #achievement-popup,
body.mode-display .cast-popover,
body.mode-display .site-header {
  display: none !important;
}

/* The Cast button only matters on the producer side; display clients hide it
   even if mode-display is not yet applied (e.g. brief flash during bootstrap). */
body.mode-display #cast-toggle {
  display: none !important;
}

/* ============================================================
   Cast-to-phone popover (producer side)
   ============================================================ */
.cast-popover {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 1200;
  padding: 1.5rem;
}

.cast-popover[hidden] {
  display: none !important;
}

.cast-popover-card {
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.96), rgba(8, 10, 24, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-radius: 18px;
  padding: 1.4rem 1.6rem 1.6rem;
  max-width: 28rem;
  width: 100%;
  color: #f4f7ff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.cast-popover-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.cast-popover-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(244, 247, 255, 0.78);
  line-height: 1.4;
}

.cast-popover-qr {
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

.cast-popover-qr canvas {
  display: block;
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
}

.cast-popover-fallback {
  margin: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: #1a1a1a;
  text-align: center;
}

.cast-popover-url-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.6);
  margin-bottom: 0.3rem;
}

.cast-popover-url-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cast-popover-url {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f4f7ff;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  overflow: hidden;
}

.cast-popover-copy {
  background: linear-gradient(135deg, #00f0ff, #b347ff);
  border: 0;
  border-radius: 10px;
  color: #00111a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cast-popover-copy:hover {
  transform: translateY(-1px);
}

.cast-popover-warning {
  margin: 0.9rem 0 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #ffb38a;
  line-height: 1.45;
}

.cast-popover-warning > p {
  margin: 0 0 0.55rem;
}

.cast-popover-warning code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.cast-popover-lan-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin: 0.4rem 0 0.45rem;
}

.cast-popover-lan-row input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f4f7ff;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  outline: none;
}

.cast-popover-lan-row input:focus {
  border-color: rgba(0, 240, 255, 0.6);
}

.cast-popover-lan-apply {
  background: linear-gradient(135deg, #00f0ff, #b347ff);
  border: 0;
  border-radius: 8px;
  color: #00111a;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.cast-popover-lan-apply:hover {
  transform: translateY(-1px);
}

.cast-popover-lan-hint {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 232, 215, 0.8);
  line-height: 1.4;
}

.cast-popover-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #f4f7ff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  transition: background 0.15s ease;
}

.cast-popover-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* The Cast icon - inline so we don't need an extra asset. */
.control-icon-cast {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6'/><path d='M2 12a9 9 0 0 1 8 8'/><path d='M2 16a5 5 0 0 1 4 4'/><path d='M2 20h.01'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
