@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist@5.2.8/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist@5.2.8/latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist@5.2.8/latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-mono@5.2.7/latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #070706;
  --paper: #f4f1ea;
  --paper-2: rgba(244, 241, 234, 0.7);
  --paper-3: rgba(244, 241, 234, 0.46);
  --paper-4: rgba(244, 241, 234, 0.28);
  --line: rgba(244, 241, 234, 0.1);
  --line-2: rgba(244, 241, 234, 0.18);
  --green: #c6e2a4;
  --red: #f0a696;
  --warm: #d7c4a3;
  --ios-blue: #0a84ff;
  --ink: #12110f;
  --card: linear-gradient(180deg, #1f1d1a 0%, #141311 100%);
  --sans: "Geist", "Inter", "SF Pro Text", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --measure: 76rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(1000px 700px at 75% 18%, rgba(215, 196, 163, 0.13), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(150, 170, 130, 0.06), transparent 60%),
    var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

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

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

img,
svg {
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.08em 0.38em;
  border-radius: 6px;
  background: rgba(244, 241, 234, 0.08);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

body.has-webgl #field {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

main,
.foot {
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: calc(0.85rem + env(safe-area-inset-top)) var(--pad) 0.85rem;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 7, 6, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.42rem;
}

.nav-links {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--paper-3);
}

.nav-links a {
  transition: color 160ms;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav > .btn {
  margin-left: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 30px -12px rgba(244, 241, 234, 0.5);
}

.btn-ghost {
  color: var(--paper);
  border-color: var(--line-2);
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.3rem;
  font-size: 1rem;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #fff;
    transform: translateY(-1px);
  }
  .btn-primary:hover svg {
    transform: translateX(2px);
  }
  .btn-ghost:hover {
    border-color: var(--paper-3);
    background: rgba(244, 241, 234, 0.04);
  }
}

/* ---------- Type ---------- */

.eyebrow,
.kicker,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.kicker {
  color: var(--paper-3);
}

.live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 1rem + 5.6vw, 6.4rem);
  margin-top: 1.2rem;
}

h2 {
  font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem);
  margin-top: 1rem;
}

.lede,
.body {
  margin: 1.3rem 0 0;
  max-width: 34rem;
  color: var(--paper-2);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.24rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.body {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.fine {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--paper-4);
}

/* ---------- iPhone ---------- */

.iphone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  margin: 0;
  --u: calc(var(--pw) / 100);
  padding: calc(var(--u) * 3.4);
  border-radius: calc(var(--u) * 17.5);
  background:
    linear-gradient(145deg, #c9c3b8 0%, #6e6a63 18%, #2b2a27 46%, #57544e 74%, #b7b1a6 100%);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 0.45) rgba(255, 255, 255, 0.35),
    inset 0 0 0 calc(var(--u) * 1.1) #0b0b0a,
    0 1px 0 rgba(255, 255, 255, 0.15),
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 80px 140px -40px rgba(0, 0, 0, 0.6);
}

.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: calc(var(--u) * 1.1);
  border-radius: var(--u);
  background: linear-gradient(90deg, #8f8a81, #3a3834);
}

.iphone::before {
  left: calc(var(--u) * -0.9);
  top: 20%;
  height: 4.5%;
  box-shadow: 0 calc(var(--u) * 15) 0 #6d6962, 0 calc(var(--u) * 33) 0 #6d6962;
}

.iphone::after {
  right: calc(var(--u) * -0.9);
  top: 33%;
  height: 11%;
  background: linear-gradient(270deg, #8f8a81, #3a3834);
}

.iphone-screen {
  position: relative;
  aspect-ratio: 393 / 852;
  container-type: inline-size;
  border-radius: calc(var(--u) * 14.2);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05) 100%);
}

.island {
  position: absolute;
  top: 2.9cqw;
  left: 50%;
  width: 31cqw;
  height: 9.2cqw;
  transform: translateX(-50%);
  border-radius: 6cqw;
  background: #000;
  z-index: 3;
}

.status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 15cqw;
  padding: 0 7.5cqw 0 10cqw;
  color: #fff;
  font-size: 4.3cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: -apple-system, "SF Pro Text", var(--sans);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.status-icons svg {
  height: 3.2cqw;
  width: auto;
  fill: currentColor;
}

.status-icons svg:last-child {
  height: 3.4cqw;
}

/* ---------- Floating cards ---------- */

.fcard {
  position: relative;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 60px -24px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  color: var(--paper);
  font-size: 0.86rem;
}

.fcard header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fcard h3 {
  margin: 0.7rem 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.muted {
  color: var(--paper-3);
}

.doc-ico {
  position: relative;
  flex: none;
  width: 22px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f4f1ea, #d9d2c3);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.doc-ico::before {
  content: "";
  position: absolute;
  inset: 8px 5px auto;
  height: 10px;
  background: repeating-linear-gradient(180deg, rgba(18, 17, 15, 0.45) 0 1.5px, transparent 1.5px 4px);
}

.plan-card {
  width: 300px;
  padding: 1rem 1.1rem 1.05rem;
  background: linear-gradient(180deg, #23211d 0%, #161512 100%);
}

.plan-card .tag {
  color: var(--warm);
  font-size: 0.66rem;
}

.file {
  margin-left: auto;
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checks li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--paper-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 5px;
  border: 1.5px solid var(--paper-4);
}

.checks li.done {
  color: var(--paper-3);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 241, 234, 0.25);
}

.checks li.done::before {
  border-color: var(--green);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%2312110f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 82% no-repeat,
    var(--green);
}

.checks li.doing {
  color: var(--paper);
}

.checks li.doing::before {
  border-color: var(--warm);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.checks.compact {
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.plan-card footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--paper-3);
  font-size: 0.74rem;
}

.bar {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(244, 241, 234, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #9fbf7c, var(--green));
  animation: grow 6s var(--ease) infinite alternate;
}

.agent-card {
  width: 268px;
  padding: 0.95rem 1rem;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9b48e 60%, #8a7756);
  box-shadow: 0 0 14px rgba(215, 196, 163, 0.5);
}

.status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(198, 226, 164, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 500;
}

.spin {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.steps {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper-2);
}

.steps li::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%2312110f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.steps li.doing {
  color: var(--paper);
}

.steps li.doing::before {
  background: none;
  border: 1.6px solid var(--warm);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.steps time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--paper-4);
}

.diff-card {
  width: 292px;
  padding: 0.85rem 0 0.5rem;
  overflow: hidden;
}

.diff-card header {
  padding: 0 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.diff-card .file {
  margin-left: 0;
  color: var(--paper);
  font-size: 0.8rem;
}

.counts {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
}

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

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

.diff {
  margin: 0;
  padding: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.85;
  color: var(--paper-2);
  white-space: pre;
}

.diff > span:not(.ln) {
  display: inline-block;
  width: calc(100% - 2.6rem);
  padding-left: 0.4rem;
}

.diff .ln {
  display: inline-block;
  width: 2.2rem;
  text-align: right;
  color: var(--paper-4);
  padding-right: 0.2rem;
}

.diff span.add {
  background: rgba(198, 226, 164, 0.09);
  box-shadow: inset 2px 0 0 var(--green);
}

.diff span.del {
  background: rgba(240, 166, 150, 0.09);
  box-shadow: inset 2px 0 0 var(--red);
}

.notif {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 320px;
  padding: 0.7rem 0.85rem;
  border-radius: 22px;
  background: rgba(40, 38, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.75);
  font-size: 0.82rem;
  font-family: -apple-system, "SF Pro Text", var(--sans);
}

.notif img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.notif p {
  margin: 0;
  color: var(--paper-2);
}

.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.notif-top b {
  color: var(--paper);
  font-weight: 600;
}

.notif-top span {
  color: var(--paper-4);
  font-size: 0.74rem;
}

.voice {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  border-radius: 999px;
}

.mic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.mic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.wave i {
  width: 3px;
  height: 30%;
  border-radius: 3px;
  background: var(--warm);
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(2n) { animation-delay: -0.25s; }
.wave i:nth-child(3n) { animation-delay: -0.5s; }
.wave i:nth-child(4n) { animation-delay: -0.75s; }

.voice-text {
  color: var(--paper-2);
  font-size: 0.8rem;
}

.chip-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  min-width: 230px;
}

.chip-card div {
  display: grid;
}

.chip-card b {
  font-weight: 500;
  font-size: 0.88rem;
}

.chip-card span:not(.pulse):not(.g-dot) {
  color: var(--paper-3);
  font-size: 0.76rem;
}

.pulse {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

.paper {
  padding: 0.95rem 1.05rem;
  width: 210px;
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 330px;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: #1c1b19;
}

.composer .plus {
  color: var(--paper-3);
  font-size: 1.3rem;
  line-height: 1;
}

.typed {
  flex: 1;
  color: var(--paper);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
}

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

.send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.send svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  min-height: 100svh;
  padding: calc(6rem + env(safe-area-inset-top)) var(--pad) 3rem;
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.stage {
  position: relative;
  height: 720px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -10deg));
  transition: transform 600ms var(--ease);
}

.layer {
  position: absolute;
  transform-style: preserve-3d;
}

.layer > * {
  animation: bob 9s ease-in-out infinite;
}

.l-phone {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(40px);
}

.l-phone .iphone {
  --pw: clamp(240px, 26vw, 316px);
  animation-duration: 11s;
}

.l-notif {
  left: 50%;
  top: 3%;
  transform: translateX(-38%) translateZ(170px);
}

.l-notif > * {
  animation: notif 9s var(--ease) infinite;
}

.l-plan {
  left: 3%;
  top: 30%;
  transform: translateZ(90px) rotateY(14deg);
}

.l-plan > * {
  animation-delay: -2s;
}

.l-agent {
  right: -2%;
  top: 19%;
  transform: translateZ(120px) rotateY(-8deg);
}

.l-agent > * {
  animation-delay: -4s;
}

.l-diff {
  right: -12%;
  bottom: 9%;
  transform: translateZ(100px) rotateY(-14deg);
}

.l-diff > * {
  animation-delay: -6s;
}

.l-voice {
  left: 2%;
  bottom: 8%;
  transform: translateZ(150px);
}

.l-voice > * {
  animation-delay: -3s;
}

/* ---------- Feature sections ---------- */

.feature {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}

.feature-visual {
  display: grid;
  place-items: center;
}

.mini-stage {
  position: relative;
  padding: 2rem 0;
  perspective: 1400px;
}

.mini-stage .iphone {
  --pw: clamp(250px, 24vw, 300px);
  transform: rotateY(-8deg) rotateX(3deg);
  transform-style: preserve-3d;
}

.reverse .mini-stage .iphone {
  transform: rotateY(8deg) rotateX(3deg);
}

.mini-stage .fcard {
  position: absolute;
  z-index: 2;
}

.float-a {
  right: -34%;
  top: 22%;
  animation: bob 8s ease-in-out infinite;
}

.float-b {
  left: -36%;
  bottom: 18%;
  animation: bob 9s ease-in-out -3s infinite;
}

.reverse .float-a {
  right: auto;
  left: -42%;
  top: 12%;
}

.duo {
  padding-left: 5rem;
}

.duo .iphone.back {
  --pw: clamp(220px, 20vw, 250px);
  position: absolute;
  left: -14%;
  top: 9%;
  transform: rotateY(18deg) rotateX(3deg);
  filter: brightness(0.62) saturate(0.9);
}

.duo .iphone:not(.back) {
  z-index: 1;
}

.duo .composer {
  left: 50%;
  bottom: 9.5%;
  translate: -38% 0;
  animation: lift 7s var(--ease) infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(10, 132, 255, 0.35),
    0 24px 60px -12px rgba(0, 0, 0, 0.9);
}

.legend {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--paper-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.g-spark {
  width: 1rem;
  text-align: center;
  color: var(--paper);
  font-size: 0.85rem;
}

.g-dot,
.g-idle {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.22rem;
  border-radius: 50%;
  background: var(--ios-blue);
  flex: none;
}

.g-idle {
  background: rgba(244, 241, 234, 0.3);
}

.doc-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 0.85rem 1.1rem 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(244, 241, 234, 0.03);
}

.doc-strip div {
  display: grid;
}

.doc-strip b {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 400;
}

.doc-strip span {
  color: var(--paper-3);
  font-size: 0.8rem;
}

.tabs-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(244, 241, 234, 0.05);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.tabs-row span {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  color: var(--paper-2);
}

.tabs-row .on {
  background: rgba(244, 241, 234, 0.16);
  color: var(--paper);
  font-weight: 500;
}

/* ---------- Bands ---------- */

.band {
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}

.band-head h2 {
  max-width: 16ch;
}

.pair-steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pair-steps li {
  position: relative;
  padding: 1.6rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(31, 29, 26, 0.85), rgba(16, 15, 13, 0.85));
  border: 1px solid var(--line);
  overflow: hidden;
}

.pair-steps .num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--warm);
}

.pair-steps h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.pair-steps p {
  margin: 0;
  color: var(--paper-2);
  max-width: 30ch;
}

.qr {
  position: absolute;
  right: 1.4rem;
  top: 1.4rem;
  width: 66px;
  height: 66px;
  padding: 6px;
  border-radius: 12px;
  background: var(--paper);
}

.local .body {
  max-width: 40rem;
}

.facts {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.facts li {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem;
  background: #0d0c0b;
}

.facts b {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.facts span {
  color: var(--paper-3);
  font-size: 0.9rem;
}

.final {
  padding: clamp(6rem, 13vw, 11rem) var(--pad);
  text-align: center;
}

.final-inner {
  display: grid;
  justify-items: center;
}

.final .lede {
  margin-bottom: 2rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin: 0 auto;
  padding: 1.5rem var(--pad) calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--paper-4);
  font-size: 0.85rem;
}

.foot .brand {
  color: var(--paper-2);
}

.foot a:hover {
  color: var(--paper);
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
  .nav > .btn {
    margin-left: 0;
  }
  .pair-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1rem;
  }
  .stage {
    height: min(760px, 86svh);
  }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .feature.reverse .feature-copy {
    order: 2;
  }
}

@media (max-width: 999px) {
  .hero {
    padding-top: calc(7rem + env(safe-area-inset-top));
  }
  .stage {
    height: 640px;
    margin-inline: auto;
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .stage {
    height: 600px;
    perspective: none;
  }
  .stage-inner {
    transform: none;
  }
  .l-phone {
    top: 52%;
    transform: translate(-50%, -50%);
  }
  .l-phone .iphone {
    --pw: 238px;
  }
  .l-plan {
    left: -2%;
    top: 47%;
    transform: scale(0.64);
    transform-origin: left top;
  }
  .l-agent {
    right: -2%;
    top: 16%;
    transform: scale(0.66);
    transform-origin: right top;
  }
  .l-diff {
    display: none;
  }
  .l-voice {
    right: 0;
    left: auto;
    bottom: 7%;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
  .l-notif {
    top: 0;
    transform: translateX(-50%) scale(0.86);
    transform-origin: center top;
  }
  .float-a {
    right: -12%;
    top: 8%;
    transform: scale(0.82);
    transform-origin: right top;
  }
  .float-b {
    left: -14%;
    bottom: 6%;
    transform: scale(0.82);
    transform-origin: left bottom;
  }
  .reverse .float-a {
    left: -12%;
    transform-origin: left top;
  }
  .composer {
    width: 290px;
  }
  .tabs-row {
    flex-wrap: nowrap;
    font-size: 0.8rem;
  }
  .tabs-row span {
    padding: 0.45rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Keyframes ---------- */

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes notif {
  0%, 8% { opacity: 0; translate: 0 -18px; scale: 0.96; }
  14%, 70% { opacity: 1; translate: 0 0; scale: 1; }
  78%, 100% { opacity: 0; translate: 0 -18px; scale: 0.96; }
}

@keyframes lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 226, 164, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(198, 226, 164, 0); }
}

@keyframes wave {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

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

@keyframes grow {
  from { width: calc(var(--p) * 80%); }
  to { width: calc(var(--p) * 130%); }
}
