/* ==========================================================================
   GlassCode homepage
   Liquid-glass surfaces over a living aurora. Dark only, matching the app icon:
   pink -> lavender -> cyan on near-black.
   ========================================================================== */

:root {
  --bg: #04050a;
  --bg-raise: #0a0c15;
  --ink: #f4f6ff;
  --ink-2: rgba(232, 236, 255, 0.74);
  --ink-3: rgba(232, 236, 255, 0.58);
  --ink-4: rgba(232, 236, 255, 0.46);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);

  --pink: #f48bff;
  --lav: #a9b2ff;
  --cyan: #3ef0ff;
  --blue: #5b7cff;
  --purple: #b07cff;
  --orange: #ffa25c;
  --green: #5ee6a6;
  --yellow: #ffd66b;
  --red: #ff6b7d;
  --aurora: linear-gradient(100deg, #f48bff 0%, #a9b2ff 46%, #3ef0ff 100%);
  --aurora-wide: linear-gradient(100deg, #f48bff, #a9b2ff, #3ef0ff, #a9b2ff, #f48bff);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --page: min(1200px, calc(100vw - 48px));
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(169, 178, 255, 0.35);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: top 200ms var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

.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;
}

/* Film grain keeps the big gradients from banding. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.wrap {
  width: var(--page);
  margin: 0 auto;
}

.aurora-text {
  background: var(--aurora-wide);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora-pan 9s linear infinite;
}

@keyframes aurora-pan {
  to {
    background-position: -220% 0;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--aurora);
}

.section-title {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.section-lede {
  text-wrap: pretty;
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.section-head {
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head.is-center {
  text-align: center;
}

.section-head.is-center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.section-head.is-center .kicker {
  justify-content: center;
}

/* Liquid-glass surface */
.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 60%),
    rgba(12, 14, 24, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

/* Cursor spotlight: home.js feeds --mx/--my per card. */
.spotlight {
  isolation: isolate;
  overflow: hidden;
}

.spotlight::before,
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

.spotlight::before {
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 178, 255, 0.11), transparent 45%);
}

.spotlight::after {
  padding: 1px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(244, 139, 255, 0.7), rgba(62, 240, 255, 0.45) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.spotlight:hover::before,
.spotlight:hover::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 500ms var(--ease-spring),
    box-shadow 400ms var(--ease-out),
    background-color 300ms ease,
    color 300ms ease;
  will-change: transform;
}

.btn svg {
  flex: none;
}

.btn-primary {
  color: #05060b;
  background: linear-gradient(180deg, #ffffff 0%, #e9ecf8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 6px rgba(80, 90, 140, 0.18),
    0 10px 30px -8px rgba(169, 178, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* Aurora halo behind the primary button */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: var(--aurora);
  filter: blur(18px);
  opacity: 0.55;
  transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out);
}

/* Shine sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: skewX(-20deg) translateX(0);
  opacity: 0.0;
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btn-shine 900ms var(--ease-out);
}

@keyframes btn-shine {
  0% {
    opacity: 0.9;
    transform: skewX(-20deg) translateX(0);
  }
  100% {
    opacity: 0.9;
    transform: skewX(-20deg) translateX(420%);
  }
}

.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 6px rgba(80, 90, 140, 0.18),
    0 18px 48px -10px rgba(169, 178, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.btn-primary:hover::before {
  opacity: 0.95;
  filter: blur(24px);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(22, 24, 38, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(36, 38, 56, 0.86);
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 17px;
}

.btn .arrow {
  transition: transform 400ms var(--ease-spring);
}

.btn:hover .arrow {
  transform: translateY(2px);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  position: relative;
  pointer-events: auto;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 22, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 50px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  transition:
    width 600ms var(--ease-out),
    background-color 400ms ease,
    border-color 400ms ease,
    transform 600ms var(--ease-out);
}

.nav-wrap.is-scrolled .nav {
  width: min(980px, 100%);
  background: rgba(10, 12, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  transition: transform 700ms var(--ease-spring);
}

.nav-brand:hover img {
  transform: rotate(-12deg) scale(1.08);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav-links > a,
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}

.nav-links > a:hover,
.nav-drop-toggle:hover,
.nav-drop.is-open .nav-drop-toggle {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav-drop {
  position: relative;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 300ms var(--ease-out);
}

.nav-drop.is-open .nav-caret {
  transform: translateY(1px) rotate(-135deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(14, 16, 28, 0.86);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px) scale(0.97);
  transform-origin: top center;
  transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s linear 320ms;
}

.nav-drop.is-open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s;
}

.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 14px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-drop-menu a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.nav-cta::before {
  filter: blur(12px);
  opacity: 0.35;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 400ms var(--ease-out), background-color 200ms;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 400ms var(--ease-out);
}

.nav-toggle span::before {
  transform: translateY(-5px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.nav-wrap.is-menu-open .nav-toggle span {
  background: transparent;
}

.nav-wrap.is-menu-open .nav-toggle span::before {
  transform: rotate(45deg);
}

.nav-wrap.is-menu-open .nav-toggle span::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (only hidden when JS is running and motion is allowed)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal="scale"] {
  transform: translate3d(0, 40px, 0) scale(0.94);
}

.js [data-reveal="left"] {
  transform: translate3d(-40px, 0, 0);
}

.js [data-reveal="right"] {
  transform: translate3d(40px, 0, 0);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

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

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(128px, 17vh, 176px) 0 0;
  text-align: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: min(118svh, 1200px);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}

.hero-bg canvas.is-ready {
  opacity: 1;
}

.hero-glow {
  position: absolute;
  inset: 0;
  will-change: transform;
  background:
    radial-gradient(42% 38% at 18% 8%, rgba(244, 139, 255, 0.2), transparent 70%),
    radial-gradient(40% 36% at 84% 6%, rgba(62, 240, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 50% 34%, rgba(91, 124, 255, 0.14), transparent 75%);
  animation: glow-drift 18s var(--ease-in-out) infinite alternate;
}

@keyframes glow-drift {
  to {
    transform: translate3d(0, 3%, 0) scale(1.08);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 22, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.announce:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.announce-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--aurora);
  color: #090a12;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announce-arrow {
  color: var(--ink-3);
  transition: transform 400ms var(--ease-spring), color 300ms;
}

.announce:hover .announce-arrow {
  transform: translateX(3px);
  color: var(--ink);
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 10.2vw, 118px);
  line-height: 0.96;
  font-weight: 750;
  letter-spacing: -0.058em;
}

.hero-title .line {
  display: block;
  text-wrap: balance;
  padding: 0.04em 0 0.08em;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
}

.js .hero-title .word {
  transform: translate3d(0, 110%, 0) rotate(4deg);
  opacity: 0;
  animation: word-up 1.25s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 85ms + 150ms);
}

@keyframes word-up {
  to {
    transform: none;
    opacity: 1;
  }
}

.hero-sub {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-4);
  font-size: 13.5px;
  letter-spacing: -0.005em;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  color: var(--ink-3);
}

.js .fade-up {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: fade-up 1.1s var(--ease-out) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* The stage tilts flat as you scroll into it (home.js sets --tilt / --lift). */
.stage {
  position: relative;
  z-index: 1;
  margin: clamp(56px, 8vh, 88px) auto 0;
  width: min(1240px, calc(100vw - 32px));
  perspective: 2400px;
}

.stage-tilt {
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)) translate3d(0, var(--lift, 0px), 0);
  transform-origin: 50% 0%;
  will-change: transform;
}

.js .stage-tilt {
  --tilt: 26deg;
  --zoom: 0.9;
}

.stage-glow {
  position: absolute;
  inset: -8% -4% -14%;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 24% 50%, rgba(244, 139, 255, 0.5), transparent 70%),
    radial-gradient(38% 42% at 76% 50%, rgba(62, 240, 255, 0.42), transparent 70%),
    radial-gradient(45% 50% at 50% 45%, rgba(169, 178, 255, 0.45), transparent 72%);
  opacity: 0.55;
  animation: stage-breathe 7s var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

@keyframes stage-breathe {
  to {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* --------------------------------------------------------------------------
   App mockup: a faithful, live recreation of the GlassCode window.
   Every size is expressed in design pixels (--px) so it scales crisply.
   -------------------------------------------------------------------------- */

.app {
  --app-size: clamp(8.4px, 1.06vw, 13px);
  --px: calc(var(--app-size) / 13);
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(760 * var(--px));
  border-radius: calc(26 * var(--px));
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  font-size: var(--app-size);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgba(240, 242, 255, 0.92);
  background: #0b0d18;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 0 0 calc(1 * var(--px)) rgba(0, 0, 0, 0.8),
    0 50px 140px -30px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(120, 110, 255, 0.45);
  user-select: none;
  -webkit-user-select: none;
}

/* Desktop wallpaper seen through the translucent window */
.app-wall {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 12% 105%, rgba(244, 110, 190, 0.5), transparent 70%),
    radial-gradient(55% 60% at 88% -10%, rgba(40, 200, 255, 0.4), transparent 70%),
    radial-gradient(70% 60% at 55% 55%, rgba(80, 70, 220, 0.36), transparent 75%),
    linear-gradient(160deg, #141a3a 0%, #0c0f22 45%, #1a0f2a 100%);
}

.app-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.58);
}

.app-ico {
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
  flex: none;
  color: rgba(240, 242, 255, 0.72);
}

.app-traffic {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}

.app-traffic i {
  width: calc(12 * var(--px));
  height: calc(12 * var(--px));
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}

.app-traffic i:nth-child(2) {
  background: #febc2e;
}

.app-traffic i:nth-child(3) {
  background: #28c840;
}

.app-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(64 * var(--px));
  flex: none;
}

.app-top .app-traffic {
  position: absolute;
  left: calc(20 * var(--px));
  top: calc(22 * var(--px));
}

/* ---- The Notch: title pill + live chat circles ---- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin-var {
  to {
    --spin: 360deg;
  }
}

.notch {
  --px: inherit;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
}

.notch-circles,
.notch-spacer {
  display: flex;
  justify-content: flex-end;
  gap: calc(8 * var(--px));
  width: calc(130 * var(--px));
}

.nc {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
  flex: none;
  border-radius: 50%;
  font-size: calc(13.4 * var(--px));
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.86);
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 500ms var(--ease-spring);
}

.nc em {
  position: absolute;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  transition: transform 450ms var(--ease-spring), opacity 300ms ease;
}

.nc[data-status="completed"] em {
  top: calc(1 * var(--px));
  right: calc(1 * var(--px));
  width: calc(8 * var(--px));
  height: calc(8 * var(--px));
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.nc[data-status="approval"] em,
.nc[data-status="response"] em {
  top: calc(-3 * var(--px));
  right: calc(-3 * var(--px));
  width: calc(15 * var(--px));
  height: calc(15 * var(--px));
  border-radius: 50%;
  font-size: calc(9 * var(--px));
  background: #ffd60a;
  color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nc[data-status="response"] em {
  background: #ff9f0a;
  color: #fff;
}

.nc[data-status="working"] em {
  display: none;
}

/* Energy ring: blue while working, purple at Max. */
.nc[data-status="working"]::after,
.energy::before {
  content: "";
  position: absolute;
  inset: calc(-1.5 * var(--px));
  border-radius: inherit;
  padding: calc(var(--ew, 1.8) * var(--px));
  background: conic-gradient(from var(--spin, 210deg), var(--e-dim), var(--e-hi), rgba(255, 255, 255, 0.88), var(--e-mid), var(--e-dim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Circles look identical rotated, so they spin with a cheap transform. */
.nc[data-status="working"]::after {
  animation: spin 3.2s linear infinite;
  will-change: transform;
}

/* The one capsule that animates its sweep: the hero title pill while it works. */
.energy.is-spinning::before {
  animation: spin-var 3.2s linear infinite;
}

.nc,
.energy {
  --e-dim: rgba(10, 132, 255, 0.28);
  --e-mid: rgba(10, 132, 255, 0.82);
  --e-hi: rgba(100, 210, 255, 0.95);
  --e-glow: rgba(10, 132, 255, 0.55);
}

.energy.is-max,
.nc.is-max {
  --e-dim: rgba(191, 90, 242, 0.28);
  --e-mid: rgba(191, 90, 242, 0.82);
  --e-hi: rgba(255, 55, 95, 0.95);
  --e-glow: rgba(191, 90, 242, 0.6);
}

.nc[data-status="working"] {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 calc(10 * var(--px)) var(--e-glow);
}

.energy {
  position: relative;
}

.energy::after {
  content: "";
  position: absolute;
  inset: calc(-3 * var(--px));
  border-radius: inherit;
  box-shadow: 0 0 calc(10 * var(--px)) calc(1 * var(--px)) var(--e-glow);
  opacity: 0.7;
  animation: energy-pulse 2.24s ease-in-out infinite;
  pointer-events: none;
}

.energy.is-off::before,
.energy.is-off::after {
  opacity: 0;
  animation-play-state: paused;
}

.energy::before,
.energy::after {
  transition: opacity 450ms ease;
}

@keyframes energy-pulse {
  50% {
    opacity: 0.25;
    transform: scale(1.02, 1.05);
  }
}

.notch-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(7 * var(--px));
  height: calc(38 * var(--px));
  padding: 0 calc(15 * var(--px));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 3px 9px rgba(0, 0, 0, 0.12);
}

.notch-title {
  display: inline-grid;
  font-size: calc(12.5 * var(--px));
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.notch-title .nt {
  grid-area: 1 / 1;
  transition:
    opacity 380ms ease,
    transform 500ms var(--ease-out),
    filter 380ms ease;
}

.notch-title .nt.is-leaving {
  opacity: 0;
  transform: translate3d(0, calc(-8 * var(--px)), 0);
  filter: blur(calc(5 * var(--px)));
}

.notch-title .nt.is-entering {
  opacity: 0;
  transform: translate3d(0, calc(8 * var(--px)), 0);
  filter: blur(calc(5 * var(--px)));
}

.notch-chev,
.notch-zoom {
  width: calc(10 * var(--px));
  height: calc(10 * var(--px));
  flex: none;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 260ms var(--ease-out), color 200ms ease;
}

.notch-zoom {
  display: none;
}

.is-panel .notch-chev,
.is-open .notch-chev {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.6);
}

/* Recent chats: hangs from the pill, 400pt wide like the app */
.npanel {
  position: absolute;
  z-index: 6;
  top: calc(56 * var(--px));
  left: 50%;
  width: calc(400 * var(--px));
  max-width: calc(100% - 24 * var(--px));
  padding: calc(10 * var(--px));
  border-radius: calc(26 * var(--px));
  background: linear-gradient(180deg, rgba(56, 58, 74, 0.94), rgba(34, 36, 48, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 calc(4 * var(--px)) calc(10 * var(--px)) rgba(0, 0, 0, 0.2),
    0 calc(18 * var(--px)) calc(34 * var(--px)) rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translate(-50%, calc(-10 * var(--px))) scale(0.94);
  transform-origin: 50% 0;
  transition:
    opacity 280ms ease,
    transform 520ms var(--ease-spring);
  pointer-events: none;
}

.npanel.is-open,
.is-panel .npanel {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.npanel-bar {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin-bottom: calc(10 * var(--px));
}

.nround {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(34 * var(--px));
  height: calc(34 * var(--px));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.nround svg {
  width: calc(13 * var(--px));
  height: calc(13 * var(--px));
  color: rgba(255, 255, 255, 0.72);
}

.nchips {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: calc(6 * var(--px));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}

.nchip {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: calc(28 * var(--px));
  padding: 0 calc(10 * var(--px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: calc(10.5 * var(--px));
  font-weight: 500;
  white-space: nowrap;
}

.nchip.is-on {
  background: rgba(158, 158, 170, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 600;
}

/* Cards: near-black, lit from the top edge, centred text */
.ncard {
  position: relative;
  padding: calc(22 * var(--px)) calc(14 * var(--px));
  border: 1px solid transparent;
  border-radius: calc(18 * var(--px));
  background:
    linear-gradient(180deg, #202020, #101010) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)) border-box;
  box-shadow: 0 calc(4 * var(--px)) calc(10 * var(--px)) rgba(0, 0, 0, 0.18);
  text-align: center;
  overflow: hidden;
}

.ncard + .ncard {
  margin-top: calc(8 * var(--px));
}

.ncard.is-current {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)) padding-box,
    linear-gradient(180deg, #202020, #101010) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.06)) border-box;
}

.ncard small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(5 * var(--px));
  color: rgba(255, 255, 255, 0.42);
  font-size: calc(10.5 * var(--px));
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ncard small span {
  color: rgba(255, 255, 255, 0.24);
}

.ncard b {
  display: block;
  margin-top: calc(6 * var(--px));
  color: rgba(255, 255, 255, 0.93);
  font-size: calc(14.5 * var(--px));
  font-weight: 600;
  line-height: 1.25;
}

.ndot {
  width: calc(6 * var(--px));
  height: calc(6 * var(--px));
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 calc(3 * var(--px)) var(--c);
}

.nring {
  position: relative;
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  border-radius: 50%;
  background: conic-gradient(rgba(10, 132, 255, 0.28), rgba(100, 210, 255, 0.95), rgba(255, 255, 255, 0.88), rgba(10, 132, 255, 0.82), rgba(10, 132, 255, 0.28));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.8px), #000 calc(100% - 1.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.8px), #000 calc(100% - 1.6px));
  animation: spin 3.2s linear infinite;
}

/* Image peek: the latest screenshots fan out past the card's bottom edge */
.ncard.has-peek {
  padding-bottom: 0;
}

.npeek {
  display: flex;
  justify-content: center;
  gap: calc(6 * var(--px));
  margin: calc(16 * var(--px)) 0 calc(-24 * var(--px));
  height: calc(76 * var(--px));
}

.npeek i {
  width: calc(84 * var(--px));
  height: calc(76 * var(--px));
  border-radius: calc(9 * var(--px));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 calc(8 * var(--px)) calc(16 * var(--px)) rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0 14%, transparent 14%),
    radial-gradient(60% 50% at 30% 60%, #ff8a5c, transparent 70%),
    linear-gradient(135deg, #2b2f4a, #151826);
}

.npeek i:nth-child(1) {
  transform: rotate(-6deg) translateY(4px);
}

.npeek i:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0 14%, transparent 14%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 4px, transparent 4px 10px) 12px 20px / 60% 60% no-repeat,
    linear-gradient(135deg, #1d3b5c, #0f1828);
}

.npeek i:nth-child(3) {
  transform: rotate(6deg) translateY(4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0 14%, transparent 14%),
    radial-gradient(50% 50% at 60% 55%, #b07cff, transparent 70%),
    linear-gradient(135deg, #2a1f44, #141022);
}

/* New chat: "Let's build" over a starfield, exactly like the app */
.app-newchat {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(55% 55% at 50% 40%, rgba(91, 80, 255, 0.16), transparent 70%);
  transition: opacity 1s ease;
}

.newchat-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.newchat-stage {
  position: absolute;
  left: 50%;
  top: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(14 * var(--px));
  transform: translate(-50%, -50%);
  transition:
    transform 1s var(--ease-out),
    opacity 700ms ease,
    filter 700ms ease;
}

.newchat-stage img {
  width: calc(58 * var(--px));
  height: calc(58 * var(--px));
  border-radius: calc(15 * var(--px));
  box-shadow: 0 calc(10 * var(--px)) calc(40 * var(--px)) rgba(120, 110, 255, 0.5);
}

.newchat-stage span {
  font-size: calc(48 * var(--px));
  font-weight: 650;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, #c9cfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 calc(6 * var(--px)) calc(22 * var(--px)) rgba(0, 0, 0, 0.35)) drop-shadow(0 0 calc(34 * var(--px)) rgba(92, 77, 255, 0.45));
}

.app.is-launched .app-newchat {
  opacity: 0;
}

.app.is-launched .newchat-stage {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 0;
  filter: blur(calc(10 * var(--px)));
}

.app-body {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 calc(40 * var(--px)) calc(18 * var(--px));
}

.app-feed {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
  max-width: calc(760 * var(--px));
  width: 100%;
  margin: 0 auto;
  padding-top: calc(10 * var(--px));
  overflow: hidden;
  font-size: calc(13.5 * var(--px));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(22 * var(--px)), #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(22 * var(--px)), #000 100%);
  transition: opacity 600ms ease;
}

.app-feed.is-clearing {
  opacity: 0;
}

.app-feed > * {
  flex: none;
}

.msg-user {
  align-self: flex-end;
  max-width: 74%;
  margin: calc(8 * var(--px)) 0 calc(6 * var(--px));
  padding: calc(9 * var(--px)) calc(15 * var(--px));
  border-radius: calc(19 * var(--px));
  background: linear-gradient(135deg, #1870f6, #25b4f6);
  box-shadow: 0 calc(8 * var(--px)) calc(24 * var(--px)) calc(-10 * var(--px)) rgba(37, 140, 246, 0.6);
  color: #fff;
}

.msg-user.is-max {
  background: linear-gradient(135deg, #6f43df, #dc41db);
  box-shadow: 0 calc(8 * var(--px)) calc(24 * var(--px)) calc(-10 * var(--px)) rgba(200, 70, 230, 0.6);
}

.msg-tool {
  color: rgba(240, 242, 255, 0.55);
}

.msg-tool b {
  font-weight: 600;
}

.msg-tool .dim {
  color: rgba(240, 242, 255, 0.45);
}

.msg-text {
  color: rgba(244, 246, 255, 0.9);
  line-height: 1.6;
}

.msg-text strong {
  color: #fff;
  font-weight: 600;
}

.msg-text ol {
  margin: calc(4 * var(--px)) 0 0;
  padding-left: calc(20 * var(--px));
}

.msg-text li + li {
  margin-top: calc(3 * var(--px));
}

/* "Summarizing", "Thinking": text with a light sweep */
.shimmer {
  background: linear-gradient(90deg, rgba(240, 242, 255, 0.4) 0%, rgba(240, 242, 255, 0.4) 40%, #fff 50%, rgba(240, 242, 255, 0.4) 60%, rgba(240, 242, 255, 0.4) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -50% 0;
  }
}

.pop {
  animation: pop-in 700ms var(--ease-out) both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate3d(0, calc(10 * var(--px, 1px)), 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--lav);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Inline chart card (GlassCode renders charts and dashboards right in the thread) */
.viz {
  margin-top: calc(4 * var(--px));
  padding: calc(14 * var(--px)) calc(16 * var(--px)) calc(12 * var(--px));
  border-radius: calc(16 * var(--px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.viz-title {
  font-size: calc(14 * var(--px));
  font-weight: 650;
  color: #fff;
}

.viz-sub {
  margin-bottom: calc(10 * var(--px));
  color: rgba(240, 242, 255, 0.5);
  font-size: calc(11.5 * var(--px));
}

.viz-row {
  display: grid;
  grid-template-columns: calc(96 * var(--px)) 1fr calc(64 * var(--px));
  align-items: center;
  gap: calc(10 * var(--px));
  height: calc(24 * var(--px));
  font-size: calc(12 * var(--px));
}

.viz-row span:first-child {
  color: rgba(240, 242, 255, 0.7);
}

.viz-track {
  position: relative;
  height: calc(8 * var(--px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.viz-before,
.viz-after {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
  transform: scaleX(0);
}

.viz-before {
  width: var(--before);
  background: rgba(255, 255, 255, 0.22);
  transition-duration: 900ms;
}

/* The "after" bar grows out of the "before" bar so the gain reads at a glance. */
.viz-after {
  width: var(--after);
  background: var(--aurora);
  opacity: 0;
  transform: scaleX(var(--from, 0));
  transition:
    transform 1.3s var(--ease-out) 950ms,
    opacity 200ms ease 900ms;
}

.viz.is-live .viz-before,
.viz.is-live .viz-after {
  transform: scaleX(1);
}

.viz.is-live .viz-after {
  opacity: 1;
}

.viz-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 242, 255, 0.55);
}

.viz-num b {
  color: #fff;
  font-weight: 600;
}

/* Background agents tray */
.agents {
  max-width: calc(740 * var(--px));
  width: 100%;
  margin: calc(10 * var(--px)) auto 0;
  padding: calc(10 * var(--px)) calc(14 * var(--px));
  border-radius: calc(14 * var(--px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: calc(13 * var(--px));
  opacity: 0;
  transform: translate3d(0, calc(12 * var(--px)), 0);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}

.agents.is-shown {
  opacity: 1;
  transform: none;
}

.agents-head {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--px));
  margin-bottom: calc(5 * var(--px));
  color: rgba(240, 242, 255, 0.8);
  font-weight: 500;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--px));
  height: calc(22 * var(--px));
}

.agent-row .dim {
  color: rgba(240, 242, 255, 0.5);
}

.agent-row .open {
  margin-left: auto;
  color: rgba(240, 242, 255, 0.55);
}

.agent-row .done {
  color: var(--green);
}

/* Composer */
/* The composer: a round +, a glass capsule, and the model orb (stop while running) */
.composer {
  display: flex;
  align-items: flex-end;
  gap: calc(8 * var(--px));
  max-width: calc(760 * var(--px));
  width: 100%;
  margin: calc(12 * var(--px)) auto 0;
}

.cbtn,
.corb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(38 * var(--px));
  height: calc(38 * var(--px));
  border-radius: 999px;
  border: 0;
  padding: 0;
  font: inherit;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 calc(4 * var(--px)) calc(10 * var(--px)) rgba(0, 0, 0, 0.2);
}

.cbtn .app-ico,
.cbtn > svg {
  width: calc(16 * var(--px));
  height: calc(16 * var(--px));
  color: rgba(255, 255, 255, 0.9);
  transition: transform 300ms var(--ease-out);
}

.cfield {
  flex: 1;
  min-width: 0;
  min-height: calc(38 * var(--px));
  padding: calc(9 * var(--px)) calc(16 * var(--px));
  border-radius: calc(19 * var(--px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 calc(5 * var(--px)) calc(12 * var(--px)) rgba(0, 0, 0, 0.18);
  transition: box-shadow 300ms ease;
}

.composer-input {
  color: #fff;
  font-size: calc(13.5 * var(--px));
  line-height: calc(20 * var(--px));
}

.composer-input .ph {
  color: rgba(240, 242, 255, 0.45);
}

.corb-icon {
  width: calc(19 * var(--px));
  height: calc(19 * var(--px));
  flex: none;
  color: #fff;
  transition: opacity 250ms ease, transform 450ms var(--ease-spring);
}

.corb-stop {
  position: absolute;
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  border-radius: calc(2.5 * var(--px));
  background: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 250ms ease, transform 450ms var(--ease-spring);
}

/* While a run is going, the orb gives way to a plain stop button */
.corb.is-busy .corb-icon {
  opacity: 0;
  transform: scale(0.5);
}

.corb.is-busy .corb-stop {
  opacity: 1;
  transform: none;
}

.corb.is-busy::before,
.corb.is-busy::after {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0;
}

.section + .section {
  padding-top: 0;
}

/* Anchor jumps land below the floating nav */
main [id] {
  scroll-margin-top: 88px;
}

/* Marquee of capabilities */
.marquee {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 60s linear infinite;
}

.marquee-row.is-reverse {
  animation-direction: reverse;
  animation-duration: 70s;
}

.marquee:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip-pill i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--tint, rgba(169, 178, 255, 0.16));
  color: var(--tint-ink, var(--lav));
  font-style: normal;
}

.chip-pill i svg {
  width: 14px;
  height: 14px;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 30px 30px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card.span-2 {
  grid-column: span 2;
}

.card.span-3 {
  grid-column: span 3;
}

.card.span-4 {
  grid-column: span 4;
}

.card.span-6 {
  grid-column: span 6;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--tint, rgba(169, 178, 255, 0.14));
  color: var(--tint-ink, var(--lav));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.card p {
  max-width: 460px;
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.55;
}

.card-visual {
  position: relative;
  flex: 1;
  min-height: 210px;
  margin: 28px -30px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.new-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Mini glass panel used inside visuals */
.panel {
  --px: 1px;
  position: relative;
  width: calc(100% - 60px);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(14, 16, 28, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -20px 60px -30px rgba(169, 178, 255, 0.4);
  font-size: 13px;
  color: rgba(240, 242, 255, 0.9);
  overflow: hidden;
}

.panel-pad {
  padding: 16px 18px;
}

/* Feature rows (alternating) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.feature + .feature {
  margin-top: clamp(110px, 14vw, 180px);
}

.feature.is-flipped .feature-copy {
  order: 2;
}

.feature-copy h3 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.042em;
}

.feature-copy > p:not(.kicker) {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.ticks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(94, 230, 166, 0.14);
  color: var(--green);
}

.feature-visual {
  position: relative;
  border-radius: var(--r-xl);
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  place-items: center;
  padding: 34px;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at var(--gx, 30%) var(--gy, 20%), var(--glow-a, rgba(244, 139, 255, 0.22)), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, var(--glow-b, rgba(62, 240, 255, 0.16)), transparent 70%);
}

/* --------------------------------------------------------------------------
   Usage dashboard
   -------------------------------------------------------------------------- */

.usage {
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-xl);
}

.usage-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
}

.stat span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--lav));
}

.usage-mid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.meter {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.meter-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meter-head small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.meter-pct {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meter-bar {
  height: 10px;
  margin: 22px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter-bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--aurora);
  box-shadow: 0 0 18px rgba(169, 178, 255, 0.6);
  transform-origin: left;
  transition: transform 1.8s var(--ease-out) 300ms;
}

.meter-foot {
  display: flex;
  justify-content: space-between;
  color: var(--ink-4);
  font-size: 13px;
}

.heat {
  margin-top: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.heat-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.heat-head h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.heat-head small {
  color: var(--ink-3);
  font-size: 13px;
}

.heat-totals {
  display: flex;
  gap: 28px;
  text-align: right;
}

.heat-totals small {
  display: block;
}

.heat-totals b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.heat-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}

.heat-grid i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 600ms ease, transform 600ms var(--ease-spring);
  transition-delay: var(--d, 0ms);
}

.heat-grid i[data-l="1"] {
  background: rgba(91, 124, 255, 0.35);
}

.heat-grid i[data-l="2"] {
  background: rgba(110, 150, 255, 0.6);
}

.heat-grid i[data-l="3"] {
  background: rgba(120, 200, 255, 0.82);
}

.heat-grid i[data-l="4"] {
  background: #7ef3ff;
  box-shadow: 0 0 10px rgba(126, 243, 255, 0.55);
}

.js .heat-grid:not(.is-lit) i {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */

.privacy {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
  border-radius: 40px;
  text-align: center;
  overflow: hidden;
}

.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(91, 124, 255, 0.22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(244, 139, 255, 0.12), transparent 70%),
    radial-gradient(40% 50% at 90% 100%, rgba(62, 240, 255, 0.12), transparent 70%);
}

.orb {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.02) 70%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -8px 24px rgba(91, 124, 255, 0.3),
    0 20px 60px -10px rgba(91, 124, 255, 0.55);
}

.orb::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 30%, rgba(244, 139, 255, 0.9), rgba(62, 240, 255, 0.9), transparent 70% 100%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
  animation: spin 6s linear infinite;
}

.orb svg {
  width: 44px;
  height: 44px;
  color: #fff;
  filter: drop-shadow(0 4px 14px rgba(169, 178, 255, 0.8));
}

.privacy h2 {
  max-width: 820px;
  margin: 0 auto;
}

.privacy .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 46px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.privacy-points li {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.privacy-points b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.privacy-points span {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Everything-else grid
   -------------------------------------------------------------------------- */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

.mini {
  padding: 26px 24px 28px;
  background: var(--bg);
  transition: background-color 400ms ease;
}

.mini:hover {
  background: #090b14;
}

.mini svg {
  width: 22px;
  height: 22px;
  margin-bottom: 16px;
  color: var(--lav);
}

.mini b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.mini span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

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

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: 120px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 500ms var(--ease-spring), background-color 300ms;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus {
  transform: rotate(135deg);
  background: rgba(169, 178, 255, 0.22);
}

.faq-item.is-closing .faq-plus {
  transform: none;
  background: rgba(255, 255, 255, 0.07);
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

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

.cta {
  position: relative;
  padding: clamp(110px, 14vw, 190px) 0 clamp(120px, 14vw, 180px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 10% -10% -20%;
  z-index: -2;
  background:
    radial-gradient(min(560px, 80vw) min(460px, 70vw) at 50% 32%, rgba(169, 178, 255, 0.26), transparent 70%),
    radial-gradient(min(480px, 70vw) min(420px, 60vw) at 30% 62%, rgba(244, 139, 255, 0.18), transparent 70%),
    radial-gradient(min(480px, 70vw) min(420px, 60vw) at 70% 62%, rgba(62, 240, 255, 0.16), transparent 70%);
}

.donut {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto -30px;
}

.donut canvas,
.donut img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.donut img {
  inset: 18%;
  width: 64%;
  height: 64%;
  border-radius: 22%;
  animation: float 7s var(--ease-in-out) infinite alternate;
}

.donut.has-gl img {
  display: none;
}

@keyframes float {
  to {
    transform: translate3d(0, -14px, 0) rotate(-4deg);
  }
}

.cta h2 {
  text-wrap: balance;
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.cta .cta-lede {
  margin: 24px auto 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.cta .hero-ctas {
  margin-top: 40px;
}

.cta-version {
  display: block;
  margin: 26px auto 0;
  text-wrap: balance;
  color: var(--ink-4);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.cta-version::before {
  content: "";
  display: inline-block;
  margin-right: 10px;
  vertical-align: 0.1em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(94, 230, 166, 0.15);
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-tag {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 14.5px;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 96px);
}

.footer-col h5 {
  margin: 0 0 14px;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: color 200ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Small shared atoms
   -------------------------------------------------------------------------- */

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.6em;
  padding: 0 0.42em;
  border-radius: 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1;
  vertical-align: 0.08em;
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(169, 178, 255, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}

.link:hover {
  text-decoration-color: var(--lav);
}

.dim-title {
  color: var(--ink-4);
}

/* --------------------------------------------------------------------------
   Bento visuals
   -------------------------------------------------------------------------- */

/* Claude + Codex: model drum and thread handoff */
.vis-models {
  gap: 22px;
  align-items: center;
  padding: 0 30px 30px;
}

.drum-panel {
  flex: none;
  width: 236px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(12, 14, 24, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.drum-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11.5px;
  font-weight: 600;
}

.drum-tabs span {
  flex: 1;
  padding: 5px 0;
  border-radius: 999px;
  text-align: center;
  color: var(--ink-4);
  white-space: nowrap;
  transition: background-color 400ms ease, color 400ms ease;
}

.drum-tabs span.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.drum {
  position: relative;
  height: 164px;
  margin-top: 8px;
  perspective: 520px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.drum-lens {
  --px: 1px;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 34px;
  margin-top: -17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.drum-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
}

html:not(.js) .drum-list li:not(:nth-child(2)) {
  display: none;
}

.drum-list li {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 30px;
  margin-top: -15px;
  line-height: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  backface-visibility: hidden;
  transition:
    transform 800ms var(--ease-out),
    opacity 800ms var(--ease-out),
    color 400ms ease;
}

.handoff {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.js .handoff > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(6px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out);
}

.js .handoff > .is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.ho-user {
  align-self: flex-end;
  padding: 8px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1870f6, #25b4f6);
  color: #fff;
}

.ho-line {
  color: var(--ink-2);
  line-height: 1.5;
}

.ho-prov {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

.ho-prov.is-claude {
  background: rgba(217, 119, 87, 0.2);
  color: #f3a68b;
}

.ho-prov.is-codex {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ho-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
}

.ho-chip::before,
.ho-chip::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.ho-chip svg {
  width: 14px;
  height: 14px;
  margin-right: -4px;
}

/* CLI update offers (Claude terracotta, Codex blue — the app's provider palettes) */
.vis-updates {
  --px: 1px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px 34px;
}

.upd {
  --p-start: #c25938;
  --p-end: #f7a17a;
  --e-dim: rgba(217, 119, 87, 0.28);
  --e-mid: rgba(217, 119, 87, 0.82);
  --e-hi: rgba(255, 255, 255, 0.95);
  --e-glow: rgba(217, 119, 87, 0.45);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--p-end) 12%, transparent), transparent 60%),
    rgba(24, 25, 34, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.upd.is-codex {
  --p-start: #005cf0;
  --p-end: #5cccff;
  --e-dim: rgba(31, 143, 255, 0.28);
  --e-mid: rgba(31, 143, 255, 0.82);
  --e-glow: rgba(31, 143, 255, 0.45);
}

.upd-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.upd-icon svg {
  width: 17px;
  height: 17px;
  color: #fff;
}

.upd.is-claude .upd-icon svg {
  color: #f3a68b;
}

.upd-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--p-start);
  box-shadow: 0 0 0 2px #181922;
}

.upd-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(45deg);
}

.upd-main {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.upd-main b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.upd-main em {
  font-style: normal;
  background: linear-gradient(90deg, var(--p-start), var(--p-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.upd-main small {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upd-bar {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
}

.upd-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--p-start), var(--p-end));
  transform: scaleX(0);
  transform-origin: left;
}

.upd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  transition: opacity 250ms ease;
}

.upd-later {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
}

.upd-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(45deg, var(--p-start), var(--p-end));
  box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.22), 0 2px 6px color-mix(in srgb, var(--p-start) 35%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 200ms var(--ease-spring);
}

.upd-btn.is-press {
  transform: scale(0.92);
}

.upd-check {
  position: absolute;
  right: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #30d158;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 250ms ease, transform 500ms var(--ease-spring);
}

.upd-check svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.upd.is-updating .upd-actions,
.upd.is-done .upd-actions {
  opacity: 0;
}

.upd.is-updating .upd-bar {
  opacity: 1;
}

.upd.is-updating .upd-bar i {
  transform: scaleX(1);
  transition: transform 2.2s var(--ease-in-out);
}

.upd.is-done .upd-check {
  opacity: 1;
  transform: none;
}

/* Accounts that switch on their own */
.vis-accounts {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 22px 26px;
}

.accts {
  display: grid;
  gap: 8px;
}

.acct {
  --px: 1px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 500ms ease, border-color 500ms ease, opacity 500ms ease;
}

.acct.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.acct .av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--c);
  font-size: 13px;
  font-weight: 700;
}

.acct-main {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.acct-main b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.acct-main small {
  color: var(--ink-4);
  font-size: 12px;
}

.acct-meter {
  position: relative;
  width: 62px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.acct-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 20%);
  border-radius: inherit;
  background: var(--green);
  transition: width 1.6s var(--ease-in-out), background-color 400ms ease;
}

.acct.is-spent .acct-meter i {
  background: var(--red);
}

.acct.is-spent .acct-main small {
  color: #ff9aa6;
}

.acct-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(94, 230, 166, 0.3);
  background: rgba(16, 40, 32, 0.85);
  color: #c9f7e2;
  font-size: 13px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.96);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-spring);
}

.acct-toast.is-in {
  opacity: 1;
  transform: none;
}

.acct-toast svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* Notch + Chat Deck demo */
.vis-notch {
  flex-direction: column;
  align-items: center;
  padding: 0 30px 24px;
}

.nd-window {
  --px: 1px;
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 15% 110%, rgba(244, 110, 190, 0.32), transparent 70%),
    radial-gradient(60% 70% at 90% -10%, rgba(40, 200, 255, 0.28), transparent 70%),
    #0b0e1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.nd-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.nd-top .app-traffic {
  --px: 0.9px;
  position: absolute;
  left: 16px;
  top: 25px;
}

.nd-top .notch-circles,
.nd-top .notch-spacer {
  width: 130px;
}

.nd-chat {
  position: absolute;
  inset: 64px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 56px;
  transition: transform 700ms var(--ease-out), opacity 500ms ease, filter 600ms ease;
  transform-origin: 50% 0%;
}

.nd-bubble {
  align-self: flex-end;
  width: 42%;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1870f6, #25b4f6);
}

.nd-line {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.w90 {
  width: 90%;
}

.w80 {
  width: 80%;
}

.w70 {
  width: 70%;
}

.w60 {
  width: 60%;
}

.chart-legend i,
.us-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}

.nd-deck {
  position: absolute;
  inset: 64px 26px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  pointer-events: none;
}

.nd-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 400ms ease, transform 600ms var(--ease-spring), box-shadow 300ms ease;
  transition-delay: calc(var(--i, 0) * 50ms);
}

.nd-mini b {
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-mini span {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.11);
}

.nd-mini.is-pick {
  box-shadow: inset 0 0 0 1.5px var(--lav), 0 0 24px rgba(169, 178, 255, 0.35);
}

.vis-notch.is-panel .notch-pill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 3px 9px rgba(0, 0, 0, 0.12);
}

.vis-notch.is-deck .nd-chat {
  opacity: 0;
  transform: scale(0.4);
  filter: blur(4px);
}

.vis-notch.is-deck .nd-mini {
  opacity: 1;
  transform: none;
}

.vis-notch.is-deck .notch-chev {
  display: none;
}

.vis-notch.is-deck .notch-zoom {
  display: block;
  color: rgba(255, 255, 255, 0.6);
}

.vis-notch .npanel {
  top: 58px;
}

.vis-notch.is-deck .notch-circles .nc {
  transform: scale(0.6);
  opacity: 0;
}

.vis-notch .notch-circles .nc {
  transition: transform 500ms var(--ease-spring), opacity 300ms ease;
}

.nd-caption {
  margin-top: 16px;
  height: 20px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}

.nd-caption span {
  display: inline-block;
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}

.nd-caption span.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

/* Live chart */
.vis-chart {
  align-items: flex-end;
  padding: 0 30px 0;
}

.chart-card {
  width: 100%;
  padding: 16px 18px 14px;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(12, 14, 24, 0.7);
}

.chart-head b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.chart-head small {
  color: var(--ink-4);
  font-size: 12px;
}

.chart {
  width: 100%;
  height: 150px;
  margin-top: 10px;
  overflow: visible;
  cursor: crosshair;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line.a {
  stroke: var(--lav);
  filter: drop-shadow(0 0 6px rgba(169, 178, 255, 0.6));
}

.chart-line.b {
  stroke: var(--pink);
  filter: drop-shadow(0 0 6px rgba(244, 139, 255, 0.5));
}

.chart-area {
  fill: url(#chart-fill);
  opacity: 0;
  transition: opacity 1.2s ease 1s;
}

.vis-chart.is-drawn .chart-area {
  opacity: 1;
}

.chart-dot {
  fill: #fff;
  stroke: var(--lav);
  stroke-width: 3;
  transition: cx 120ms linear, cy 120ms linear, opacity 200ms ease;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend .chart-tip {
  margin-left: auto;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Let's build: hyperspace starfield */
.vis-warp {
  min-height: 300px;
  margin-bottom: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(60% 70% at 50% 45%, rgba(91, 80, 255, 0.18), transparent 70%), #03040a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.warp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.warp-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: transform 700ms var(--ease-out), opacity 500ms ease;
}

.warp-stage img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(120, 110, 255, 0.5);
}

.warp-stage span {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, #c9cfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 30px rgba(92, 77, 255, 0.4));
}

.vis-warp.is-jumping .warp-stage {
  transform: scale(0.92);
  opacity: 0.4;
}

.warp-presets {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.warp-presets button {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}

.warp-presets button:hover {
  color: #fff;
}

.warp-presets button[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* --------------------------------------------------------------------------
   The composer showcase: an interactive copy of the app's new composer
   -------------------------------------------------------------------------- */

.cshow {
  position: relative;
  padding: clamp(110px, 13vw, 170px) 0;
  overflow: hidden;
  isolation: isolate;
}

.cshow-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 55% at 74% 52%, rgba(91, 124, 255, 0.24), transparent 70%),
    radial-gradient(32% 40% at 88% 84%, rgba(244, 139, 255, 0.14), transparent 70%),
    radial-gradient(40% 45% at 12% 20%, rgba(62, 240, 255, 0.08), transparent 70%);
}

.cshow-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg), transparent 16%, transparent 84%, var(--bg));
}

.cshow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.cshow-copy .ticks {
  margin-top: 30px;
}

.cshow-stage {
  position: relative;
}

.cwin {
  --px: 1px;
  --orb-w: 210px;
  --inset: 18px;
  position: relative;
  height: 480px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 110px -40px rgba(120, 110, 255, 0.5);
}

.cwin-wall {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 18% 110%, rgba(214, 110, 180, 0.45), transparent 70%),
    radial-gradient(60% 60% at 92% -10%, rgba(80, 140, 255, 0.35), transparent 70%),
    radial-gradient(60% 50% at 60% 60%, rgba(120, 90, 220, 0.3), transparent 75%),
    linear-gradient(165deg, #1b1f3d 0%, #11132a 50%, #241631 100%);
}

.cwin-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 22, 0.45);
}

/* A new chat behind the composer: "Let's build" over the starfield */
.cwin-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.cwin-stage {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 700ms var(--ease-out), opacity 500ms ease, filter 500ms ease;
}

.cwin-stage img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 8px 30px rgba(120, 110, 255, 0.5);
}

.cwin-stage span {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, #c9cfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 30px rgba(92, 77, 255, 0.45));
}

.cwin.is-warping .cwin-stage {
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.35;
  filter: blur(2px);
}

/* Composer row, pinned to the bottom like the app */
.crow {
  position: absolute;
  left: var(--inset);
  right: var(--inset);
  bottom: var(--inset);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 3;
}

.crow .cbtn,
.crow .corb {
  cursor: pointer;
  transition: transform 300ms var(--ease-spring), width 420ms var(--ease-out), box-shadow 300ms ease;
}

.crow .cbtn:hover,
.crow .corb:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.crow .cbtn:active,
.crow .corb:active {
  transform: scale(0.94);
}

.cplus.is-open > svg {
  transform: rotate(45deg);
}

.crow .cfield {
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: text;
}

.cfield input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: -0.005em;
}

.cfield input::placeholder {
  color: rgba(240, 242, 255, 0.45);
}

.crow .cfield:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(169, 178, 255, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.crow .cfield.is-sending {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 26px rgba(169, 178, 255, 0.4);
}

/* The orb: a circle that grows into "Opus 5.5 High" while its popover is open */
.crow .corb {
  gap: 7px;
  overflow: visible;
}

.crow .corb.is-open {
  width: var(--orb-w);
  padding: 0 10px;
}

.corb-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  white-space: nowrap;
  transition: max-width 420ms var(--ease-out), opacity 250ms ease;
}

.corb.is-open .corb-label {
  max-width: 170px;
  opacity: 1;
}

.corb-label b {
  font-weight: 500;
  color: #3d9bff;
  transition: color 300ms ease;
}

.corb.is-max .corb-label b {
  color: #c77dff;
}

/* Popover: model well over the effort well, with a tail pointing at the orb */
.cpop {
  position: absolute;
  right: var(--inset);
  bottom: calc(var(--inset) + 52px);
  z-index: 4;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100% - 2 * var(--inset)));
  padding: 20px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(76, 78, 96, 0.92), rgba(54, 56, 72, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 50px -12px rgba(0, 0, 0, 0.7);
  transform-origin: calc(100% - var(--orb-w) / 2) 100%;
  transition: opacity 260ms ease, transform 480ms var(--ease-spring), visibility 0s linear 480ms;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
}

.cpop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms ease, transform 480ms var(--ease-spring), visibility 0s;
}

.cpop::after {
  content: "";
  position: absolute;
  right: calc(var(--orb-w) / 2 - 9px);
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(54, 56, 72, 0.94);
  box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.cwell {
  position: relative;
  height: 60px;
  border: 0;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.06);
}

.cmodel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, transform 150ms ease;
}

.cmodel:hover {
  background: rgba(0, 0, 0, 0.42) linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
}

.cmodel:active {
  transform: scale(0.98);
}

.cmodel-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.cmodel-chev {
  width: 11px;
  height: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* Model names tick like a little drum */
.cmodel-name {
  position: relative;
  display: inline-grid;
  height: 22px;
  overflow: hidden;
}

.cmodel-name > span {
  grid-area: 1 / 1;
  line-height: 22px;
  transition: transform 420ms var(--ease-out), opacity 300ms ease;
}

.cmodel-name > .is-out {
  transform: translateY(-100%);
  opacity: 0;
}

.cmodel-name > .is-in {
  transform: translateY(100%);
  opacity: 0;
}

/* Effort well = the app's energy track (fill is a WebGL port of its Metal shader) */
.ctrack {
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.ctrack:focus-visible {
  box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.06), 0 0 0 2px var(--lav);
}

.effort-fillwrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(60px + (100% - 60px) * 0.5);
  border-radius: 999px;
  overflow: hidden;
  transition: width 220ms var(--ease-out);
}

.ctrack.is-dragging .effort-fillwrap,
.ctrack.is-dragging .effort-thumb {
  transition-duration: 120ms;
}

.effort-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0a84ff 0%, #0a84ff 52%, rgba(100, 210, 255, 0.92) 100%);
}

.effort.is-max .effort-fill {
  background: linear-gradient(90deg, #4f33de 0%, #8542f2 52%, #d659f0 100%);
}

.effort-dots i {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: opacity 200ms ease;
}

.effort-thumb {
  position: absolute;
  left: calc(5px + (100% - 60px) * 0.5);
  top: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: left 220ms var(--ease-out), transform 200ms var(--ease-spring);
  cursor: grab;
}

.ctrack.is-dragging .effort-thumb {
  transform: scale(1.04);
  cursor: grabbing;
}

/* The + menu, with the app's own icons */
.cmenu {
  position: absolute;
  left: var(--inset);
  bottom: calc(var(--inset) + 52px);
  z-index: 4;
  width: min(268px, calc(100% - 2 * var(--inset)));
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(76, 78, 96, 0.94), rgba(54, 56, 72, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 50px -12px rgba(0, 0, 0, 0.7);
  transform-origin: 19px 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
  transition: opacity 260ms ease, transform 480ms var(--ease-spring), visibility 0s linear 480ms;
}

.cmenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms ease, transform 480ms var(--ease-spring), visibility 0s;
}

.cmenu::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(54, 56, 72, 0.96);
  transform: rotate(45deg);
}

.cmenu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px;
  border-radius: 11px;
  transition: background-color 160ms ease;
}

.cmenu-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.cmenu-row img,
.cmenu-gauge {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
}

.cmenu-gauge {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2d3042, #1b1d29);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cmenu-gauge svg {
  width: 20px;
  height: 20px;
  color: #e6e8ff;
}

.cmenu-row b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.cmenu-row small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.cmenu-row small.is-warn {
  color: #ff9f0a;
}

/* Sent messages rise out of the capsule in the bubble colour of their effort */
.cbubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cbub {
  position: absolute;
  right: calc(var(--inset) + 46px);
  bottom: calc(var(--inset) + 4px);
  max-width: 72%;
  padding: 9px 15px;
  border-radius: 19px;
  background: linear-gradient(135deg, #1870f6, #25b4f6);
  box-shadow: 0 10px 28px -10px rgba(37, 140, 246, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  animation: bub-rise 2.8s var(--ease-out) forwards;
}

.cbub.is-max {
  background: linear-gradient(135deg, #6f43df, #dc41db);
  box-shadow: 0 10px 28px -10px rgba(200, 70, 230, 0.75);
}

@keyframes bub-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
    filter: blur(0);
  }
  14% {
    opacity: 1;
    transform: translate3d(0, -64px, 0) scale(1);
    filter: blur(0);
  }
  72% {
    opacity: 1;
    transform: translate3d(0, -150px, 0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -230px, 0);
    filter: blur(6px);
  }
}

.cshow-hint {
  margin: 18px 0 0;
  color: var(--ink-4);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Feature visuals
   -------------------------------------------------------------------------- */

/* Subagent constellation */
.squad {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

.squad-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 60px rgba(169, 178, 255, 0.35);
  z-index: 2;
}

.squad-core::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: spin 40s linear infinite;
}

.squad-core img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}

.squad-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.squad-links line {
  stroke: var(--c);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
  animation: dash-flow 1.2s linear infinite;
}

.squad-links line.is-done {
  stroke-dasharray: none;
  opacity: 0.2;
  animation: none;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -18;
  }
}

.agent {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: rgba(10, 12, 22, 0.86);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9), 0 0 24px -8px var(--c);
  font-size: 13px;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 700ms var(--ease-spring), opacity 400ms ease;
  z-index: 3;
}

.agent.is-in {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.agent b {
  color: var(--c);
  font-weight: 650;
}

.agent small {
  color: var(--ink-3);
  font-size: 12px;
}

.agent .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 0 var(--c);
  animation: pulse-ring 1.6s ease-out infinite;
}

.agent.is-done .pulse {
  animation: none;
  background: var(--green);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

/* Plan mode + approval cards */
.approve {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 340px;
}

.ap-plan,
.ap-card {
  position: absolute;
  inset: 0 0 auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(12, 14, 24, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  font-size: 14px;
  transition: opacity 500ms ease, transform 700ms var(--ease-out), filter 500ms ease;
}

.ap-card {
  top: 30px;
}

.js .ap-card {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.96);
  filter: blur(6px);
}

html:not(.js) .ap-plan {
  display: none;
}

.approve.is-approval .ap-plan {
  opacity: 0;
  transform: translate3d(0, -30px, 0) scale(0.94);
  filter: blur(6px);
}

.approve.is-approval .ap-card {
  opacity: 1;
  transform: none;
  filter: none;
}

.ap-q {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.ap-opt {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.ap-opt span {
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.ap-opt.is-pick {
  color: #fff;
  background: rgba(10, 132, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.55);
}

.ap-foot {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.ap-submit,
.ap-btn {
  transition: transform 200ms var(--ease-spring), background-color 300ms ease, color 300ms ease;
}

.ap-submit.is-press,
.ap-btn.is-press {
  transform: scale(0.94);
}

.ap-submit.is-press {
  color: #fff;
}

.ap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.ap-head b {
  font-family: var(--font);
  color: #fff;
}

.add {
  color: var(--green);
  font-style: normal;
}

.del {
  color: var(--red);
  font-style: normal;
}

.ap-diff {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
  white-space: normal;
}

.ap-diff > span {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-add {
  display: block;
  color: #9ff0c6;
  background: rgba(94, 230, 166, 0.09);
}

.d-del {
  display: block;
  color: #ffb3bc;
  background: rgba(255, 107, 125, 0.09);
}

.d-ctx {
  display: block;
  color: var(--ink-3);
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.ap-btn.is-primary {
  background: #fff;
  color: #0b0d18;
}

.ap-btn.is-primary kbd {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.06);
  color: #0b0d18;
}

.ap-done {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 40, 32, 0.92);
  border: 1px solid rgba(94, 230, 166, 0.35);
  color: #c9f7e2;
  font-size: 13.5px;
  white-space: nowrap;
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity 400ms ease, transform 600ms var(--ease-spring);
}

.ap-done svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.approve.is-done .ap-done {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Git panel */
.gitp {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(12, 14, 24, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
}

.gitp-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.gitp-tab {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.gitp-tab.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.gitp-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
}

.gitp-meta svg {
  width: 14px;
  height: 14px;
}

.gitp-files {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.gf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  transition: background-color 300ms ease;
}

.gf span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf em {
  font-style: normal;
}

.gf:first-child {
  background: rgba(255, 255, 255, 0.06);
}

.gitp-lines {
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  overflow: hidden;
}

.gl {
  position: relative;
  padding: 0 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 400ms ease, opacity 400ms ease;
}

.gl i {
  display: inline-block;
  width: 26px;
  color: var(--ink-4);
  font-style: normal;
}

.gl.d-add,
.gl.d-del {
  display: block;
}

.gitp.is-staged .gl.d-add,
.gitp.is-staged .gl.d-del {
  background: rgba(91, 124, 255, 0.14);
}

.gitp.is-staged .gl.d-add::after,
.gitp.is-staged .gl.d-del::after {
  content: "staged";
  position: absolute;
  right: 12px;
  color: var(--lav);
  font-size: 10.5px;
}

.gitp-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.gb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 200ms var(--ease-spring), background-color 300ms ease;
}

.gb svg {
  width: 12px;
  height: 12px;
}

.gb.is-primary {
  background: #fff;
  color: #0b0d18;
}

.gb.is-press {
  transform: scale(0.93);
}

.gitp-menu {
  position: absolute;
  right: 16px;
  bottom: 62px;
  width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(24, 26, 40, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -10px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.96);
  transform-origin: 100% 100%;
  transition: opacity 250ms ease, transform 400ms var(--ease-spring);
  pointer-events: none;
}

.gitp-menu div {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  transition: background-color 250ms ease, color 250ms ease;
}

.gitp.is-menu .gitp-menu {
  opacity: 1;
  transform: none;
}

.gitp.is-pick .gitp-menu .is-pick {
  background: #0a84ff;
  color: #fff;
}

.gitp-toast {
  position: absolute;
  left: 50%;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 40, 32, 0.95);
  border: 1px solid rgba(94, 230, 166, 0.35);
  color: #c9f7e2;
  font-size: 13px;
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity 400ms ease, transform 600ms var(--ease-spring);
}

.gitp-toast svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.gitp.is-shipped .gitp-toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Usage mini dashboard */
.usage-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px 26px;
  width: min(100%, 520px);
  align-items: center;
}

.rings {
  position: relative;
  width: 168px;
  height: 168px;
}

.rings svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 13;
}

.ring-val {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--v));
  transition: stroke-dashoffset 2s var(--ease-out) 200ms, opacity 300ms ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}

.js .usage-mini:not(.is-live) .ring-val {
  stroke-dashoffset: 1;
  opacity: 0;
}

.rings-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.rings-label b {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rings-label small {
  max-width: 80px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.3;
}

.usage-side {
  min-width: 0;
}

.us-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-2);
  font-size: 13.5px;
}

.us-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.us-row b {
  font-variant-numeric: tabular-nums;
}

.us-bar {
  height: 8px;
  margin: 8px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.us-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #c25938, #f7a17a);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 300ms;
}

.js .usage-mini:not(.is-live) .us-bar i {
  transform: scaleX(0);
}

.us-bar.is-b i {
  background: linear-gradient(90deg, #005cf0, #5cccff);
}


.us-stats {
  display: flex;
  gap: 26px;
}

.us-stats b {
  display: block;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.us-stats small {
  color: var(--ink-4);
  font-size: 12px;
}

html:not(.js) .usage-mini .heat {
  display: none;
}

.usage-mini .heat {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin: 0;
  padding: 14px;
}

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */

.dl-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 116px 20px 72px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.dl-hero .hero-bg {
  height: 100%;
}

.dl-inner {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.dl-donut {
  width: min(300px, 62vw);
  margin: 0 auto -14px;
}

.dl-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.dl-sub {
  margin: 18px 0 34px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.dl-meta {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.dl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.dl-steps li {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.dl-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--aurora);
  color: #090a12;
  font-size: 13px;
  font-weight: 750;
}

.dl-steps b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dl-steps small {
  color: var(--ink-3);
  font-size: 13.5px;
}

.dl-req {
  margin: 22px 0 0;
  color: var(--ink-4);
  font-size: 13px;
}

@media (max-width: 640px) {
  .dl-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media (max-width: 1080px) {
  .card.span-4,
  .card.span-3,
  .card.span-2 {
    grid-column: span 3;
  }

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

  .card.span-4 {
    grid-column: span 6;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid var(--line-2);
    background: #0c0e18;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 250ms ease, transform 400ms var(--ease-out), visibility 0s linear 400ms;
  }

  .nav-wrap.is-menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 250ms ease, transform 400ms var(--ease-out), visibility 0s;
  }

  .nav-links > a,
  .nav-drop-toggle {
    height: 46px;
    justify-content: flex-start;
    font-size: 16px;
  }

  .nav-drop-menu {
    position: static;
    min-width: 0;
    margin: 4px 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
  }

  .nav-drop.is-open .nav-drop-menu {
    display: block;
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature,
  .cshow-grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature.is-flipped .feature-copy {
    order: 0;
  }

  .feature-visual {
    min-height: 380px;
    padding: 24px;
  }

  .faq .section-head {
    position: static;
  }

  .privacy-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.span-4,
  .card.span-3,
  .card.span-2 {
    grid-column: span 6;
  }

  .stage {
    width: calc(100vw - 20px);
  }
}

@media (max-width: 640px) {
  /* Phones: the orb stays a circle so the capsule keeps its room */
  .cwin {
    --orb-w: 38px;
    --inset: 12px;
    height: 450px;
  }

  .crow .corb.is-open {
    padding: 0;
  }

  .corb.is-open .corb-label {
    max-width: 0;
    opacity: 0;
  }

  .cpop::after {
    right: 10px;
  }

  .upd-later {
    display: none;
  }

  .cpop {
    padding: 16px;
  }

  .corb-label {
    font-size: 12px;
  }

  .app {
    --app-size: clamp(7px, 2.05vw, 13px);
  }

  .notch-circles,
  .notch-spacer {
    width: calc(84 * var(--px));
  }

  .app .notch-circles .nc:first-child {
    display: none;
  }

  .app-body {
    padding: 0 calc(18 * var(--px)) calc(14 * var(--px));
  }

  .vis-models {
    flex-direction: column;
    align-items: stretch;
  }

  .drum-panel {
    width: 100%;
  }

  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-mini {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .usage-side {
    width: 100%;
  }

  .card {
    padding: 26px 22px 0;
    min-height: 0;
  }

  .card-visual {
    margin: 24px -22px 0;
  }

  .hero-meta {
    gap: 8px 16px;
  }

  .footer-cols {
    gap: 48px;
  }

  .nd-top .notch-circles,
  .nd-top .notch-spacer {
    width: 48px;
  }

  .nd-top .notch-circles .nc:not(:last-child) {
    display: none;
  }

  .nd-chat {
    padding: 10px 26px;
  }

  .nd-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .nd-mini:nth-child(n + 5) {
    display: none;
  }

  .ap-actions .ap-btn:nth-child(2) {
    display: none;
  }

  .nd-top .app-traffic {
    display: none;
  }

  .announce {
    gap: 10px;
    padding-right: 12px;
    font-size: 13px;
  }

  .cta-version {
    font-size: 12.5px;
  }
}

/* Offscreen sections pause their CSS animations (set by home.js). */
.is-paused,
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

.agents:not(.is-shown) .shimmer {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Reduced motion: everything is shown, nothing loops.
   -------------------------------------------------------------------------- */

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

  .js .hero-title .word,
  .js .fade-up {
    opacity: 1;
    transform: none;
  }

  .marquee-row {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
  }

  .marquee-row [aria-hidden="true"] {
    display: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
