@font-face {
  font-family: ChroomHeavy;
  src: url("../assets/fonts/heavy.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: ChroomMedium;
  src: url("../assets/fonts/medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: ChroomSemi;
  src: url("../assets/fonts/semibold.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #03040b;
  --surface: rgba(12, 13, 27, 0.86);
  --surface-strong: #0c0d19;
  --line: rgba(160, 164, 218, 0.2);
  --line-strong: rgba(190, 112, 255, 0.52);
  --text: #f7f8ff;
  --muted: #aaaec2;
  --violet: #a641e7;
  --violet-bright: #c94cff;
  --cyan: #35e6f2;
  --green: #5df27a;
  --red: #d71925;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: ChroomMedium, Arial, sans-serif;
  background:
    radial-gradient(78% 96% at 72% 15%, rgba(76, 33, 146, 0.13), transparent 62%),
    radial-gradient(46% 60% at 98% 56%, rgba(10, 143, 178, 0.08), transparent 68%),
    linear-gradient(180deg, #05060e 0%, #020309 72%, #04050c 100%);
}

body::before,
body::after { content: ""; position: fixed; pointer-events: none; }

body::before {
  inset: 0;
  z-index: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 78% at 65% 35%, #000, transparent 82%);
  mask-image: radial-gradient(70% 78% at 65% 35%, #000, transparent 82%);
}

body::after {
  z-index: 0;
  width: 48vw;
  height: 48vw;
  top: -25vw;
  right: -8vw;
  border-radius: 50%;
  background: rgba(120, 48, 210, .12);
  filter: blur(90px);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.site-header,
.landing {
  position: relative;
  z-index: 2;
  width: min(1540px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  z-index: 100;
  isolation: isolate;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  animation: headerIn 720ms var(--expo) both;
}

.brand { display: inline-flex; width: 194px; flex: 0 0 auto; }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); }

.site-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef0fb;
  font-size: 1.02rem;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.site-nav a[href*="twitter.com"] {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.site-nav a svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .96;
}

.site-nav a:hover { color: var(--cyan); transform: translate3d(0, -2px, 0); }
.site-nav a:focus-visible,
.button:focus-visible { outline: 3px solid rgba(53, 230, 242, .7); outline-offset: 4px; }
.landing { padding: 12px 0 34px; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(410px, .8fr) minmax(650px, 1.2fr);
  gap: clamp(28px, 4vw, 74px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 5; max-width: 630px; padding-left: 20px; }

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -15% -18% -20% -25%;
  background: radial-gradient(56% 54% at 45% 50%, rgba(3, 4, 11, .96), rgba(3, 4, 11, .7) 62%, transparent 100%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 24px;
  color: #bb53ef;
  font-family: ChroomSemi, Arial, sans-serif;
  font-size: clamp(.86rem, 1vw, 1.05rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  animation: riseIn 680ms var(--expo) 120ms both;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: ChroomHeavy, Arial, sans-serif;
  font-size: clamp(3.2rem, 4.35vw, 5.05rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  animation: riseIn 780ms var(--expo) 180ms both;
}

.hero-text {
  max-width: 520px;
  margin: 27px 0 0;
  color: #b7bacb;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.52;
  animation: riseIn 680ms var(--expo) 260ms both;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; animation: riseIn 680ms var(--expo) 330ms both; }

.button {
  min-width: 218px;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: ChroomSemi, Arial, sans-serif;
  font-size: 1.07rem;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
  touch-action: manipulation;
}

.button::after { content: "→"; margin-left: 34px; font-size: 1.45rem; line-height: 1; transition: transform 200ms var(--ease); }
.button:hover { transform: translate3d(0, -3px, 0); }
.button:hover::after { transform: translate3d(5px, 0, 0); }
.button:active { transform: scale(.965); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b2cc2, #c233f0);
  border-color: rgba(237, 165, 255, .42);
  box-shadow: 0 18px 54px rgba(161, 48, 218, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.button-primary:hover { box-shadow: 0 24px 70px rgba(161, 48, 218, .4), inset 0 1px 0 rgba(255, 255, 255, .26); }

.button-secondary {
  color: #f7f8ff;
  border-color: rgba(53, 230, 242, .7);
  background: rgba(6, 8, 18, .76);
  box-shadow: inset 0 0 0 1px rgba(93, 53, 180, .18);
}

.button-secondary::after { content: "▤"; color: #dfe3f2; font-size: 1.25rem; }
.button-secondary:hover { border-color: var(--violet-bright); background: rgba(20, 13, 37, .92); }

.hero-visual {
  position: relative;
  z-index: 0;
  min-height: 650px;
  isolation: isolate;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 52% 48%;
  animation: visualIn 980ms var(--expo) 120ms both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -5;
  width: 96%;
  aspect-ratio: 1;
  left: 7%;
  top: -27%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(93, 34, 167, .1), rgba(5, 6, 16, .86) 56%, rgba(3, 4, 11, .06) 70%);
  box-shadow: inset 0 0 90px rgba(118, 56, 211, .06);
}

.orbit-grid {
  position: absolute;
  z-index: -3;
  width: min(770px, 100%);
  aspect-ratio: 1;
  left: 52%;
  top: 47%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: .75;
  background:
    linear-gradient(rgba(131, 83, 208, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 83, 208, .1) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle, #000 0 52%, transparent 74%);
  mask-image: radial-gradient(circle, #000 0 52%, transparent 74%);
}

.orbit-grid span { position: absolute; inset: calc(var(--i, 0) * 7%); border: 1px solid rgba(159, 63, 222, .24); border-radius: 50%; }
.orbit-grid span:nth-child(1) { --i: 1; }
.orbit-grid span:nth-child(2) { --i: 2; }
.orbit-grid span:nth-child(3) { --i: 3; }
.orbit-grid span:nth-child(4) { --i: 4; }
.orbit-grid span:nth-child(5) { --i: 5; }

.orbit-path {
  position: absolute;
  z-index: -2;
  left: 51%;
  top: 48%;
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid rgba(171, 63, 232, .55);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(115, 45, 190, .14);
  pointer-events: none;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.orbit-path-one {
  width: 73%;
  animation: orbitSphereOne 16s linear infinite;
}

.orbit-path-two {
  width: 68%;
  animation: orbitSphereTwo 21s linear -7s infinite reverse;
}

.orbit-path-three {
  width: 62%;
  border-color: rgba(46, 213, 235, .38);
  animation: orbitSphereThree 27s linear -13s infinite;
}

.orbit-signal {
  position: absolute;
  z-index: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(53, 230, 242, .12), 0 0 25px rgba(53, 230, 242, .95);
  animation: signalPulse 2.2s var(--ease) infinite;
}

.signal-one { left: 14%; top: 44%; }
.signal-two { right: 12%; top: 44%; animation-delay: -1.1s; }
.signal-three { left: 53%; top: 13%; animation-delay: -.55s; }

.participant-card {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  overflow: hidden;
  border: 2px solid rgba(174, 80, 225, .72);
  border-radius: 13px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #151721;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .54), 0 0 24px rgba(151, 59, 220, .15), inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: translateZ(0);
  transition: transform 420ms var(--expo), border-color 300ms var(--ease), opacity 300ms var(--ease);
}

.participant-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(2, 3, 8, .58)); pointer-events: none; }
.participant-card:hover { z-index: 8; transform: translate3d(0, -5px, 0) scale(1.025); border-color: var(--cyan); }

.participant-main {
  width: 50%;
  aspect-ratio: 1.82;
  left: 29%;
  top: 28%;
  z-index: 4;
  background-image: url("../assets/images/participant-sophie.webp");
  background-position: center 42%;
  border-color: rgba(198, 109, 255, .9);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58), 0 0 0 3px rgba(112, 45, 180, .18), 0 0 40px rgba(165, 61, 230, .24);
  animation: mainFloat 6s ease-in-out infinite;
}

.participant-top,
.participant-left,
.participant-right,
.participant-bottom-left,
.participant-bottom-right { width: 19%; aspect-ratio: 1.82; }

.participant-top { left: 47%; top: 3%; background-image: url("../assets/images/participant-chris.webp"); }
.participant-left { left: 4%; top: 25%; background-image: url("../assets/images/participant-mark.webp"); }
.participant-right { right: 0; top: 25%; background-image: url("../assets/images/participant-tom.webp"); }
.participant-bottom-left { left: 5%; bottom: 12%; background-image: url("../assets/images/participant-jessie.webp"); background-position: center 44%; }
.participant-bottom-right { right: 2%; bottom: 12%; background-image: url("../assets/images/participant-ethan.webp"); }

.participant-name {
  position: absolute;
  z-index: 3;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(15, 16, 24, .82);
  color: #fff;
  font-size: clamp(.58rem, .7vw, .76rem);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.connection-bars { position: absolute; z-index: 3; right: 7px; bottom: 7px; height: 20px; display: flex; align-items: flex-end; gap: 2px; padding: 4px; border-radius: 4px; background: rgba(15, 16, 24, .82); }
.connection-bars i { width: 3px; border-radius: 2px; background: var(--green); box-shadow: 0 0 8px rgba(93, 242, 122, .7); }
.connection-bars i:nth-child(1) { height: 5px; }
.connection-bars i:nth-child(2) { height: 8px; }
.connection-bars i:nth-child(3) { height: 12px; }

.preview-controls {
  position: absolute;
  z-index: 10;
  width: min(97%, 900px);
  min-height: 78px;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 151, 193, .22);
  border-radius: 14px;
  background: rgba(8, 9, 20, .88);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.preview-controls > span {
  min-height: 52px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(128, 132, 175, .18);
  border-radius: 8px;
  background: rgba(27, 28, 48, .74);
  color: #eff0fa;
  font-size: clamp(.74rem, .9vw, .92rem);
  white-space: nowrap;
}

.preview-controls .control-end { flex: 0 1 126px; border-color: rgba(255, 70, 77, .56); background: linear-gradient(180deg, #c51d27, #9f0812); box-shadow: 0 12px 28px rgba(183, 12, 24, .2); }
.preview-controls .control-audio { flex: 0 1 165px; border-color: rgba(192, 101, 255, .48); background: linear-gradient(135deg, #8125b5, #a43bd4); }

.control-icon { position: relative; width: 17px; height: 14px; display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .95; }
.camera-icon::after { content: ""; position: absolute; right: -6px; top: 3px; border: 4px solid transparent; border-right: 0; border-left-color: currentColor; }
.mic-icon { width: 9px; height: 16px; border-radius: 8px; }
.screen-icon { width: 19px; height: 13px; }
.chat-icon::after { content: ""; position: absolute; left: 2px; bottom: -4px; border: 3px solid transparent; border-top-color: currentColor; }
.end-icon { width: 18px; height: 9px; border-width: 2px 0 0; border-radius: 50%; transform: rotate(180deg); }
.audio-icon { border: 0; background: linear-gradient(90deg, transparent 0 12%, currentColor 12% 22%, transparent 22% 38%, currentColor 38% 50%, transparent 50% 67%, currentColor 67% 78%, transparent 78%); }

.experience-rail {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 0;
  min-height: 92px;
  margin-top: 25px;
  border: 1px solid transparent;
  border-radius: 13px;
  background:
    linear-gradient(rgba(7, 8, 17, .94), rgba(7, 8, 17, .94)) padding-box,
    linear-gradient(90deg, rgba(53, 230, 242, .9), rgba(155, 65, 223, .56), rgba(53, 230, 242, .15)) border-box;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: hidden;
  animation: riseIn 760ms var(--expo) 420ms both;
}

.hero-signals,
.feature-band { display: grid; align-items: center; }
.hero-signals { grid-template-columns: repeat(3, 1fr); border-right: 1px solid var(--line); }
.hero-signals > div,
.feature-band > div { min-width: 0; display: flex; align-items: center; }
.hero-signals > div { gap: 13px; padding: 18px clamp(12px, 1.4vw, 24px); }

.hero-signals strong,
.feature-band strong { display: block; color: #f5f6ff; font-family: ChroomSemi, Arial, sans-serif; font-size: .96rem; }

.hero-signals small,
.feature-band small { display: block; margin-top: 4px; color: #83879e; font-size: clamp(.67rem, .68vw, .76rem); line-height: 1.25; }

.signal-icon { width: 36px; height: 36px; flex: 0 0 auto; display: inline-block; border: 1px solid rgba(186, 84, 236, .72); border-radius: 50%; box-shadow: inset 0 0 14px rgba(157, 55, 220, .12); }
.globe-icon { background: radial-gradient(circle, transparent 43%, rgba(188, 78, 240, .7) 45% 48%, transparent 50%), linear-gradient(90deg, transparent 46%, #b94fe8 47% 53%, transparent 54%); }
.nodes-icon { background: radial-gradient(circle at 50% 26%, #b64fe6 0 3px, transparent 4px), radial-gradient(circle at 25% 72%, #b64fe6 0 3px, transparent 4px), radial-gradient(circle at 75% 72%, #b64fe6 0 3px, transparent 4px); }
.voice-icon { border-radius: 8px; background: linear-gradient(90deg, transparent 12%, #ba4ee9 12% 17%, transparent 17% 29%, #ba4ee9 29% 36%, transparent 36% 47%, #ba4ee9 47% 57%, transparent 57% 69%, #ba4ee9 69% 76%, transparent 76%); }

.feature-band { grid-template-columns: repeat(3, 1fr); }
.feature-band > div { position: relative; gap: 12px; padding: 17px clamp(12px, 1.35vw, 22px); }
.feature-band > div:not(:last-child)::after { content: "····"; position: absolute; right: -8px; color: #b95ae8; letter-spacing: 4px; }

.feature-band > div > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #a143d2;
  border-radius: 50%;
  color: #df9dff;
  font-family: ChroomSemi, Arial, sans-serif;
  font-size: 1.02rem;
}

.feature-band p { margin: 0; }

@keyframes headerIn { from { opacity: 0; transform: translate3d(0, -18px, 0); } }
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes visualIn { from { opacity: 0; transform: translate3d(28px, 10px, 0) scale(.96); } }
@keyframes ambientDrift { to { transform: translate3d(-8vw, 5vw, 0) scale(1.12); } }
@keyframes mainFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }
@keyframes signalPulse { 0%, 100% { transform: scale(.9); opacity: .68; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes orbitSphereOne {
  from { transform: translate3d(-50%, -50%, 0) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate3d(-50%, -50%, 0) rotateX(68deg) rotateZ(360deg); }
}
@keyframes orbitSphereTwo {
  from { transform: translate3d(-50%, -50%, 0) rotateY(66deg) rotateZ(0deg); }
  to { transform: translate3d(-50%, -50%, 0) rotateY(66deg) rotateZ(360deg); }
}
@keyframes orbitSphereThree {
  from { transform: translate3d(-50%, -50%, 0) rotateX(52deg) rotateY(34deg) rotateZ(0deg); }
  to { transform: translate3d(-50%, -50%, 0) rotateX(52deg) rotateY(34deg) rotateZ(360deg); }
}

@media (max-width: 1250px) {
  .site-header,
  .landing { width: min(100% - 40px, 1540px); }
  .hero { grid-template-columns: minmax(360px, .78fr) minmax(570px, 1.22fr); gap: 24px; }
  .hero-visual { min-height: 600px; }
  .preview-controls > span { padding-inline: 9px; }
  .preview-controls .control-audio { display: none; }
  .experience-rail { grid-template-columns: 1fr; }
  .hero-signals { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-copy { max-width: 760px; padding-left: 0; }
  h1 { max-width: 760px; }
  .hero-visual { min-height: 620px; }
  .participant-main { left: 26%; width: 52%; }
}

@media (max-width: 700px) {
  .site-header,
  .landing { width: min(100% - 24px, 1540px); }
  .site-header { min-height: 78px; align-items: flex-start; padding-top: 14px; }
  .brand { width: 145px; }
  .site-nav { gap: 4px; }
  .site-nav a { min-width: 44px; min-height: 44px; justify-content: center; font-size: 0; }
  .site-nav a svg { width: 22px; height: 22px; }
  .landing { padding-top: 0; }
  .hero { min-height: auto; padding-top: 28px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero-text { margin-top: 22px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; min-width: 0; min-height: 58px; }
  .hero-visual { min-height: 510px; margin-top: 12px; }
  .hero-visual { overflow: hidden; }
  .participant-main { left: 20%; top: 31%; width: 62%; }
  .participant-top { left: 42%; top: 4%; width: 25%; }
  .participant-left { left: 0; top: 27%; width: 25%; }
  .participant-right { right: 0; top: 27%; width: 25%; }
  .participant-bottom-left { left: 0; bottom: 15%; width: 25%; }
  .participant-bottom-right { right: 0; bottom: 15%; width: 25%; }
  .orbit-grid { width: 100%; }
  .preview-controls { min-height: 64px; bottom: 0; gap: 6px; padding: 8px; }
  .preview-controls > span { min-width: 46px; min-height: 46px; flex: 1; font-size: 0; padding: 0; }
  .preview-controls .control-end { flex: 1; }
  .preview-controls .control-audio { display: inline-flex; flex: 1; }
  .experience-rail { margin-top: 16px; }
  .hero-signals,
  .feature-band { grid-template-columns: 1fr; }
  .hero-signals > div,
  .feature-band > div { min-height: 70px; }
  .hero-signals > div:not(:last-child),
  .feature-band > div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .hero-signals > div,
  .feature-band > div { padding-inline: 18px; }
  .feature-band > div:not(:last-child)::after { content: ""; }
}

@media (max-width: 420px) {
  .hero-visual { min-height: 430px; }
  .participant-main { left: 16%; width: 68%; }
  .participant-top,
  .participant-left,
  .participant-right,
  .participant-bottom-left,
  .participant-bottom-right { width: 27%; }
}

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