@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1020;
  --ink: #f4efe7;
  --muted: #aab1c3;
  --faint: #78809a;
  --line: rgba(244, 239, 231, 0.1);
  --peach: #f3b892;
  --agent: #7cc8ff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

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

.wrap {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 16, 32, 0.74);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  margin-right: auto;
}

.brand img {
  width: 140px;
  height: auto;
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav a,
.nav button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav button:hover {
  color: var(--ink);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn-light {
  background: var(--ink);
  color: #0b1020;
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(244, 239, 231, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(244, 239, 231, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.btn-note {
  color: var(--faint);
  font-weight: 500;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  padding-top: clamp(112px, 14vh, 150px);
  overflow: hidden;
  background:
    radial-gradient(70% 46% at 50% 74%, rgba(243, 160, 118, 0.16), transparent 70%),
    radial-gradient(60% 40% at 50% 62%, rgba(92, 140, 230, 0.16), transparent 70%),
    linear-gradient(180deg, #0a0e1c 0%, #0d1429 52%, var(--bg) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin-inline: auto;
  font-size: clamp(2.6rem, 5.8vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--peach);
}

.lead {
  max-width: 40em;
  margin: 26px auto 0;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Office scene */

.scene {
  position: relative;
  width: min(100%, 1640px);
  margin: clamp(-56px, -3vw, -8px) auto 0;
  aspect-ratio: 1600 / 860;
}

.scene-view {
  position: absolute;
  inset: 0;
}

.scene-poster,
.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-poster {
  object-fit: cover;
  transition: opacity 0.9s ease;
}

.scene-canvas {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.scene.is-live .scene-canvas {
  opacity: 1;
}

.scene.is-live .scene-poster {
  opacity: 0;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-foot {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: clamp(10px, 2.2vw, 28px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 5px 5px 5px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-person {
  background: var(--peach);
}

.legend-agent {
  background: var(--agent);
  box-shadow: 0 0 10px rgba(124, 200, 255, 0.85);
}

.scene-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(244, 239, 231, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.scene-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.scene-toggle svg {
  width: 12px;
  height: 12px;
}

.scene-toggle .icon-play,
.scene.is-paused .scene-toggle .icon-pause {
  display: none;
}

.scene.is-paused .scene-toggle .icon-play {
  display: block;
}

/* Scene overlay: speech, approvals, and build chips */

.tag {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.tag > * {
  position: absolute;
  bottom: 12px;
  left: 0;
  opacity: 0;
  transform: translateX(var(--tx)) translateY(6px) scale(0.94);
  transform-origin: var(--origin) bottom;
  transition: opacity 0.22s ease, transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.tag--center > * {
  --tx: -50%;
  --origin: center;
}

.tag--left > * {
  --tx: calc(-100% + 22px);
  --origin: right;
}

.tag--right > * {
  --tx: -22px;
  --origin: left;
}

.tag.is-on > * {
  opacity: 1;
  transform: translateX(var(--tx)) translateY(0) scale(1);
}

.bubble {
  display: grid;
  gap: 1px;
  width: max-content;
  max-width: 228px;
  padding: 8px 12px 9px;
  border-radius: 14px;
  background: #fbf8f3;
  color: #171b26;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(3, 6, 16, 0.38);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}

.tag--center .bubble::after {
  left: calc(50% - 5px);
}

.tag--left .bubble::after {
  right: 17px;
}

.tag--right .bubble::after {
  left: 17px;
}

.bubble b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: #6b7080;
}

.bubble--agent {
  background: #111a2e;
  color: #eef3ff;
  box-shadow: 0 12px 30px rgba(3, 6, 16, 0.45), inset 0 0 0 1px rgba(124, 200, 255, 0.26);
}

.bubble--agent b {
  color: var(--accent, var(--agent));
}

.bubble--agent b em {
  padding: 0 4px;
  border: 1px solid rgba(238, 243, 255, 0.2);
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(238, 243, 255, 0.56);
}

.bubble--typing {
  display: flex;
  gap: 4px;
  padding: 11px 13px;
}

.bubble--typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fd8ff;
  animation: typing 1s ease-in-out infinite;
}

.bubble--typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.bubble--typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.bubble--ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: #eaf8ef;
  color: #0f4d31;
  font-weight: 650;
}

.bubble--ok svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: #22a35c;
  color: #ffffff;
}

.bubble--ok b {
  font-weight: 500;
  color: #4b7b61;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.92);
  color: #e7eefc;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(3, 6, 16, 0.4), inset 0 0 0 1px rgba(124, 200, 255, 0.26);
}

.chip-bar {
  width: 46px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.chip-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6fb6ff, #a6ecff);
  transform: scaleX(0);
  transform-origin: left;
}

.chip-state {
  font-weight: 500;
  color: rgba(231, 238, 252, 0.6);
}

.chip.is-done {
  box-shadow: 0 10px 24px rgba(3, 6, 16, 0.4), inset 0 0 0 1px rgba(95, 211, 141, 0.5);
}

.chip.is-done .chip-bar {
  display: none;
}

.chip.is-done .chip-state {
  color: #86e3ab;
}

.chip--brain i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 10px var(--agent);
}

/* Sections */

.section {
  padding-top: clamp(96px, 12vw, 168px);
}

.kicker {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 560;
  color: var(--peach);
}

h2 {
  max-width: 19em;
  font-size: clamp(2.05rem, 4.2vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.034em;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.problem-body {
  margin: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
  margin: clamp(52px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.step-n {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  font-style: italic;
  line-height: 1;
  color: var(--peach);
}

.steps h3,
.points h3 {
  margin: 22px 0 10px;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.steps p,
.points p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(52px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.points svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Closing */

.closing {
  position: relative;
  padding: clamp(120px, 14vw, 190px) 0 clamp(120px, 15vw, 200px);
  overflow: hidden;
  text-align: center;
}

.closing .wrap {
  position: relative;
  z-index: 1;
}

.closing h2 {
  max-width: 17em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.closing p {
  margin: 24px auto 36px;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  color: var(--muted);
}

.horizon {
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background:
    radial-gradient(50% 90% at 50% 100%, rgba(243, 166, 122, 0.24), transparent 72%),
    radial-gradient(80% 100% at 50% 100%, rgba(92, 140, 230, 0.12), transparent 70%);
  pointer-events: none;
}

.horizon::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 184, 146, 0.75), transparent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 30px 0;
  font-size: 14px;
  color: var(--faint);
}

.footer-inner img {
  width: 112px;
  height: auto;
  margin-right: auto;
  opacity: 0.85;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* Film */

.film {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.film::backdrop {
  background: rgba(5, 8, 16, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.film-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.film-head h2 {
  max-width: none;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--muted);
}

.film-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.film-close svg {
  width: 14px;
  height: 14px;
}

.film video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Responsive */

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .scene {
    aspect-ratio: 1 / 1.02;
  }

  .points {
    grid-template-columns: 1fr;
  }

  .bubble {
    max-width: 172px;
    padding: 6px 9px 7px;
    font-size: 11px;
  }

  .bubble b {
    font-size: 10px;
  }

  .chip {
    padding: 5px 9px;
    font-size: 10.5px;
  }

  .chip-bar {
    width: 32px;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 36px, 1180px);
  }

  .btn {
    height: 48px;
    padding: 0 20px;
  }

  .scene-foot {
    gap: 12px;
    padding-left: 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
