:root {
  --bg: #09090a;
  --bg-2: #0f0f11;
  --surface: #131315;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ecebe6;
  --muted: #8d8c86;
  --faint: #5a5955;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: #111; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif { font-family: var(--serif); font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand .mark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--text);
  position: relative;
}
.brand .mark::after {
  content: "";
  position: absolute;
  right: 2px; bottom: 2px;
  width: 6px; height: 6px;
  background: var(--accent);
}
.brand .tld { color: var(--muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  overflow: hidden;
}
.hero > .wrap { width: 100%; position: relative; }
.hero.short { min-height: 0; padding: 180px 0 64px; align-items: flex-start; }

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -260px; top: -320px;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.025em; }

.display {
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.display em { letter-spacing: -0.01em; color: var(--text); }

.hero-foot {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.lede {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.lede strong { color: var(--text); font-weight: 400; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 13vw, 168px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.sec-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  max-width: 16ch;
}
.sec-head p { color: var(--muted); max-width: 540px; margin: 24px 0 0; font-size: 17px; }

/* capabilities */
.caps { border-top: 1px solid var(--line); }
.cap {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.cap h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.cap p { margin: 0; color: var(--muted); max-width: 440px; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* approach */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.step { padding: 36px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step h3 { font-size: 30px; margin: 22px 0 12px; }
.step p { color: var(--muted); margin: 0; }

/* solution teaser cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.6s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; }
.card h3 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; margin-top: auto; }
.card p { color: var(--muted); margin: 14px 0 0; max-width: 400px; }
.card .more { margin-top: 26px; display: inline-flex; gap: 8px; font-size: 14px; }
.card .more .arrow { transition: transform 0.3s var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }
.card-art {
  position: absolute;
  inset: 70px 0 auto 0;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* waveform */
.wave { display: flex; align-items: center; gap: 4px; height: 120px; }
.wave span {
  width: 4px;
  border-radius: 4px;
  background: var(--text);
  opacity: 0.85;
  height: 12px;
  animation: wave 1.6s var(--ease) infinite;
}
.wave span:nth-child(3n) { background: var(--accent); }
@keyframes wave {
  0%, 100% { height: 10px; }
  50% { height: var(--h, 60px); }
}

/* ---------- contact ---------- */
.contact { padding: clamp(110px, 15vw, 200px) 0; text-align: left; }
.contact h2 {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.contact .mail {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 48px;
  font-size: clamp(22px, 3vw, 36px);
  font-family: var(--serif);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color 0.3s, color 0.3s;
}
.contact .mail:hover { color: var(--accent); border-color: var(--accent); }
.contact .note { margin-top: 22px; color: var(--muted); max-width: 460px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav { display: flex; gap: 26px; }
footer nav a:hover { color: var(--text); }

/* ---------- solutions page ---------- */
.sol-index {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.sol { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.sol h2 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 22px 0 28px;
}
.sol .intro { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0; }
.sol .intro strong { color: var(--text); font-weight: 400; }

.panel {
  position: sticky;
  top: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

/* voice panel */
.call { padding: 28px 22px 24px; }
.call .wave { height: 90px; justify-content: center; margin: 4px 0 26px; }
.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.bubble.on { opacity: 1; transform: none; }
.bubble small { display: block; margin-bottom: 4px; }
.bubble.caller { background: var(--surface); border: 1px solid var(--line); }
.bubble.agent { margin-left: auto; background: var(--accent-soft); border: 1px solid rgba(255, 106, 61, 0.25); }
.bubble.tool {
  margin-left: auto;
  background: transparent;
  border: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* apex panel */
.track-wrap { padding: 18px 18px 6px; }
.track-wrap svg { width: 100%; height: auto; }
.timing { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.timing th, .timing td { padding: 9px 18px; text-align: left; border-top: 1px solid var(--line); }
.timing th { color: var(--faint); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; }
.timing td:last-child, .timing th:last-child { text-align: right; }
.timing tr.lead td { color: var(--text); }
.timing td { color: var(--muted); }
.timing .kn {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); font-size: 10px; margin-right: 8px;
}
.timing tr.lead .kn { background: var(--accent); border-color: var(--accent); color: #111; }

.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.feature { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: 26px; padding-right: 0; border-left: 1px solid var(--line); }
.feature h4 { margin: 12px 0 8px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.uses { margin-top: 44px; }
.uses ul { list-style: none; padding: 0; margin: 16px 0 0; }
.uses li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.uses li span:last-child { color: var(--muted); text-align: right; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 44px;
}
.stat { background: var(--bg); padding: 22px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 8px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wave span, .live::before { animation: none; }
  .wave span { height: calc(var(--h) * 0.6); }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sec-head, .cap { grid-template-columns: 1fr; gap: 14px; }
  .cap { padding: 30px 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 30px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step h3 { margin-top: 14px; }
  .cards { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
  .panel { position: relative; top: 0; }
  .hero-foot { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex;
    background: none; border: 1px solid var(--line-2); color: var(--text);
    border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer;
  }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 28px var(--gutter) 34px; background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 20px;
  }
  .hero { padding-bottom: 48px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 22px 0; border-left: 0; }
  .display br { display: none; }
  .stat { padding: 16px 14px; }
  .stat b { font-size: 30px; }
  .card { min-height: 420px; padding: 26px; }
  .timing th, .timing td { padding: 8px 12px; }
  .uses li { flex-direction: column; gap: 2px; }
  .uses li span:last-child { text-align: left; }
}
