:root {
  /* Color tokens — warm-toned dark with signal-green accent */
  --bg: oklch(0.135 0.012 80);
  --bg-2: oklch(0.165 0.012 80);
  --surface: oklch(0.19 0.012 80);
  --line: oklch(0.28 0.012 80);
  --line-soft: oklch(0.23 0.012 80);
  --fg: oklch(0.96 0.012 85);
  --fg-2: oklch(0.78 0.012 85);
  --fg-3: oklch(0.55 0.012 85);
  --fg-4: oklch(0.42 0.012 85);
  --accent: oklch(0.84 0.16 142);     /* signal green */
  --accent-dim: oklch(0.5 0.12 142);
  --warn: oklch(0.78 0.15 60);         /* amber risk */
  --warn-dim: oklch(0.5 0.13 60);
  --danger: oklch(0.7 0.18 25);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --max: 1240px;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

#bg-shader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.9 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#root { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Container */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Section base */
section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}
section:first-of-type { border-top: none; }

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display {
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.h-display em { font-style: italic; color: var(--accent); }
.h-section {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-section em { font-style: italic; color: var(--accent); }
.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: oklch(0.18 0.02 142);
}
.btn-primary:hover {
  background: oklch(0.9 0.17 142);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px oklch(0.84 0.16 142 / 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--fg-3);
  background: var(--surface);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: #d6d4d0;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.brand-mark::after {
  inset: 5px;
  background: var(--accent);
  border: none;
  animation: pulse 2.4s ease-in-out infinite;
}
.brand-name { color: var(--fg); }
.brand-tag { color: var(--fg-3); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0 100px;
  border-top: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero-subnote {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}

/* Live ops console (hero right) */
.console {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: oklch(0.135 0.012 80 / 0.85);
  backdrop-filter: blur(8px);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow:
    0 0 0 1px oklch(0.135 0.012 80 / 0.5),
    0 30px 80px -20px oklch(0.05 0 0 / 0.6);
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.console-title {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
}
.console-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.console-body {
  padding: 12px 14px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.log-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(6px);
  animation: log-in 0.4s ease forwards;
}
.log-row .t { color: var(--fg-4); }
.log-row .body { color: var(--fg-2); }
.log-row.ok .body { color: var(--accent); }
.log-row.warn .body { color: var(--warn); }
.log-row .tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.log-row.ok .tag { background: oklch(0.84 0.16 142 / 0.16); color: var(--accent); }
.log-row.warn .tag { background: oklch(0.78 0.15 60 / 0.18); color: var(--warn); }
.log-row.info .tag { background: var(--line-soft); color: var(--fg-2); }
@keyframes log-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Problem ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }

.p-card {
  position: relative;
  background: oklch(0.165 0.012 80 / 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 36px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.p-card:hover {
  border-color: var(--fg-3);
  transform: translateY(-2px);
}
.p-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warn), transparent);
  opacity: 0.5;
}
.p-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  position: relative;
}
.p-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.p-card p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.p-card .index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
}

/* ============ Solution ============ */
.solution-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .solution-head { grid-template-columns: 1fr; gap: 32px; } }

.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 100px 240px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
  position: relative;
  transition: background 0.3s ease;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step:hover { background: oklch(0.165 0.012 80 / 0.4); }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.step p {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}
@media (max-width: 900px) {
  .step { grid-template-columns: 60px 1fr; }
  .step h3 { grid-column: 2; margin-bottom: 8px; }
  .step p { grid-column: 2; }
  .step-num { padding-top: 12px; }
}

/* ============ How It Works (live SMS) ============ */
.hiw {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  margin-top: 80px;
  align-items: start;
}
@media (max-width: 980px) { .hiw { grid-template-columns: 1fr; gap: 56px; } }

.hiw-steps {
  display: grid;
  gap: 14px;
}
.hiw-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px 24px;
  background: oklch(0.165 0.012 80 / 0.5);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  transition: all 0.4s ease;
  cursor: pointer;
}
.hiw-step.active {
  border-color: var(--accent);
  background: oklch(0.84 0.16 142 / 0.05);
  box-shadow: 0 0 0 1px oklch(0.84 0.16 142 / 0.2);
}
.hiw-step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  padding-top: 2px;
}
.hiw-step.active .hiw-step-num { color: var(--accent); }
.hiw-step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.hiw-step.active p { color: var(--fg); }

/* Phone mockup */
.phone {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 14px;
  background: var(--bg-2);
  box-shadow: 0 40px 80px -20px oklch(0.05 0 0 / 0.6);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 6px;
  background: var(--bg);
  border-radius: 4px;
  z-index: 2;
}
.phone-screen {
  background: oklch(0.105 0.012 80);
  border-radius: 22px;
  padding: 50px 16px 24px;
  height: 680px;
  position: relative;
  overflow: hidden;
}
.phone-header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.phone-header .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.phone-header .sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.msg.them {
  align-self: flex-start;
  background: var(--bg-2);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.msg.you {
  align-self: flex-end;
  background: var(--accent);
  color: oklch(0.18 0.02 142);
  border-bottom-right-radius: 4px;
}
.msg.system {
  align-self: center;
  background: transparent;
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px;
  border-radius: 8px;
}
.msg.warn {
  align-self: center;
  background: oklch(0.78 0.15 60 / 0.12);
  border: 1px solid oklch(0.78 0.15 60 / 0.4);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
}
.msg .time {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.5;
  margin-top: 2px;
}
.typing {
  align-self: flex-start;
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--fg-3);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Results ============ */
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .results { grid-template-columns: 1fr; gap: 40px; } }

.big-num {
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.big-num-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  display: block;
}
.results p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
}

.quote {
  margin-top: 80px;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: oklch(0.165 0.012 80 / 0.5);
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 28px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}
.quote-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--fg);
  max-width: 60ch;
  padding-left: 56px;
}
.quote-author {
  margin-top: 24px;
  padding-left: 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .quote { padding: 36px 24px; }
  .quote::before { left: 16px; }
  .quote-body, .quote-author { padding-left: 0; }
}

/* ============ Who For ============ */
.whofor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 64px;
}
@media (max-width: 800px) { .whofor-grid { grid-template-columns: 1fr; } }

.wfor-col {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 36px 40px;
  background: oklch(0.165 0.012 80 / 0.5);
}
.wfor-col.yes { border-color: oklch(0.84 0.16 142 / 0.35); }
.wfor-col h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.wfor-col.yes h3 { color: var(--accent); }
.wfor-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.wfor-col li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg-2);
}
.wfor-col li .mark {
  margin-top: 4px;
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ Services ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px 36px;
  background: oklch(0.165 0.012 80 / 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}
.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 110%, oklch(0.84 0.16 142 / 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }
.svc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.svc-name {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.svc-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.svc-note {
  margin-top: 56px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  border-top: 1px solid var(--line);
  padding-top: 40px;
  max-width: 72ch;
  font-weight: 400;
}
.svc-glyph {
  width: 100%;
  height: 130px;
  margin-bottom: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ============ Final CTA ============ */
.fcta {
  text-align: center;
  padding-bottom: 0;
}
.fcta .h-section {
  margin: 0 auto 24px;
  max-width: 18ch;
}
.fcta .lead {
  margin: 0 auto 40px;
  text-align: center;
}
.cal-embed-wrap {
  margin-top: 80px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.cal-embed-wrap iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
}
.cal-fallback {
  padding: 24px 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-soft);
}
.cal-fallback a { color: var(--accent); }

/* ============ Footer ============ */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.foot a:hover { color: var(--fg); }
@media (max-width: 700px) {
  .foot { flex-direction: column; gap: 8px; text-align: center; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Section markers */
.section-mark {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hide overflow on mobile-ish */
@media (max-width: 600px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
}
