/*
  Pywa Cloud — design system
  --------------------------------------------------------------
  This file is the shared visual language for Pywa Cloud: the marketing
  site today, the dashboard eventually. Dark foundation, restrained
  WhatsApp-green accent, monospace used as a design material (labels,
  status, diagrams) rather than only for code. No framework, no build
  step — plain CSS custom properties so any of this can be lifted into
  the dashboard's own stylesheet later without translation.
*/

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;

  /* ---- surfaces ---- */
  --bg: #0a0a0b;
  --bg-raised: #0e0f11;
  --surface: #131418;
  --surface-2: #191b1f;
  --surface-3: #202329;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(47, 214, 107, 0.35);

  /* ---- text ---- */
  --text-1: #f3f2ee;
  --text-2: #9a9ea5;
  --text-3: #676b72;

  /* ---- accent: WhatsApp green, deliberately restrained ---- */
  --accent: #2fd66b;
  --accent-strong: #48e37f;
  --accent-dim: #1f9950;
  --accent-soft: rgba(47, 214, 107, 0.12);
  --accent-soft-strong: rgba(47, 214, 107, 0.22);
  --accent-line: rgba(47, 214, 107, 0.4);

  /* ---- signal colors, used sparingly ---- */
  --danger: #f2555a;
  --danger-soft: rgba(242, 85, 90, 0.12);
  --warning: #e2a33d;

  /* ---- type ---- */
  --font-display: "Space Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ---- spacing scale ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 140px;

  /* ---- radius: small and consistent, not pill-shaped ---- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --content-width: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: var(--sp-4);
  }
}

section {
  padding-block: var(--sp-9);
  position: relative;
}

@media (max-width: 900px) {
  section {
    padding-block: var(--sp-8);
  }
}

@media (max-width: 560px) {
  section {
    padding-block: var(--sp-7);
  }
}

.section-seam {
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- */
/* Typography                                                        */
/* ---------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-1);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-7);
}

.section-head h2 {
  margin-bottom: var(--sp-3);
}

.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 54ch;
}

code,
.mono {
  font-family: var(--font-mono);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #08130c;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-2);
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 8px 4px;
}

.btn-ghost:hover {
  color: var(--text-1);
}

.btn-ghost::after {
  content: "→";
  transition: transform 0.15s var(--ease);
}

.btn-ghost:hover::after {
  transform: translateX(3px);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand svg {
  width: 20px;
  height: 20px;
  color: var(--text-1);
}

.brand .dim {
  color: var(--text-2);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.nav-links a:not(.btn):hover {
  color: var(--text-1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-1);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------- */
/* Badge / status chips                                              */
/* ---------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  background: var(--surface);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chip.live {
  color: var(--accent-strong);
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.chip.live .dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-soft-strong);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

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

.hero {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-9);
}

.hero-top {
  max-width: 680px;
}

.hero h1 {
  margin-bottom: var(--sp-4);
}

.hero .lede {
  max-width: 54ch;
  margin-bottom: var(--sp-6);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.hero-note {
  color: var(--text-3);
  font-size: 0.85rem;
}

.hero-stage {
  margin-top: var(--sp-8);
}

/* ---------------------------------------------------------------- */
/* Terminal window                                                   */
/* ---------------------------------------------------------------- */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.terminal-dots span:nth-child(1) {
  background: #ff5f56;
}
.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}
.terminal-dots span:nth-child(3) {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

.terminal-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.75;
  min-height: 300px;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .terminal-body {
    font-size: 0.8rem;
    padding: var(--sp-4);
    min-height: 260px;
  }
}

.term-line {
  opacity: 0;
  transform: translateY(4px);
  white-space: pre-wrap;
}

.term-line.shown {
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.term-prompt {
  color: var(--text-2);
}

.term-cmd {
  color: var(--text-1);
}

.term-ok {
  color: var(--accent);
}

.term-dim {
  color: var(--text-3);
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

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

.term-status {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.term-status.shown {
  opacity: 1;
}

.term-status-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.term-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.term-status-name {
  color: var(--text-1);
}

.term-status-badge {
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--sp-3);
}

.term-status {
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ---------------------------------------------------------------- */
/* Code panel (non-terminal, for source display)                     */
/* ---------------------------------------------------------------- */

.code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.code-panel .terminal-bar {
  background: var(--surface-2);
}

.code-body {
  padding: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-2);
}

.code-body .kw,
.seq-step .kw {
  color: #ef8fd0;
}
.code-body .fn,
.seq-step .fn {
  color: #7cc6ff;
}
.code-body .str,
.seq-step .str {
  color: var(--accent-strong);
}
.code-body .cm,
.seq-step .cm {
  color: var(--text-3);
}
.code-body .nm,
.seq-step .nm {
  color: #f0b25b;
}
.seq-step .tp {
  color: #5fd0c0;
}

/* ---------------------------------------------------------------- */
/* Magic moment — three step sequence                                 */
/* ---------------------------------------------------------------- */

.sequence {
  display: grid;
  grid-template-columns: 1.8fr auto 1fr auto 0.8fr;
  align-items: stretch;
  gap: var(--sp-4);
}

@media (max-width: 980px) {
  .sequence {
    grid-template-columns: 1fr;
  }
  .sequence .seq-arrow {
    transform: rotate(90deg);
    margin-block: -4px;
  }
}

.seq-step {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.seq-step.active {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent) inset, 0 20px 50px -30px var(--accent-soft-strong);
}

.seq-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.seq-step.active .seq-label {
  color: var(--accent);
}

.seq-step pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre;
  overflow-x: auto;
}

.seq-step.active pre {
  color: var(--text-1);
}

.seq-arrow {
  align-self: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.seq-reply {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent-strong);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- */
/* Architecture diagram                                              */
/* ---------------------------------------------------------------- */

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-1);
  text-align: center;
}

.arch-node-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.arch-link {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--border-strong), var(--border-strong)) center/1px 6px repeat-y;
  position: relative;
}

.arch-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-3);
}

.arch-cloud {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--border-accent);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.arch-cloud-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  text-align: center;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 640px) {
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.arch-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 16px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-2);
  text-align: center;
}

.arch-chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- */
/* Security pipeline                                                 */
/* ---------------------------------------------------------------- */

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--sp-3);
}

@media (max-width: 1100px) {
  .pipeline {
    mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
  }
}

.pipe-stage {
  flex: 0 0 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
}

.pipe-box {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-3);
}

.pipe-stage.pass .pipe-box {
  border-color: var(--border-accent);
}

.pipe-icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.pipe-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.pipe-detail {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}

.pipe-connector {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  padding-top: 44px;
}

.pipe-reject-slot {
  min-height: 30px;
  display: flex;
  align-items: flex-start;
}

.pipe-reject {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(242, 85, 90, 0.3);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  white-space: nowrap;
}

.security-facts {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-6);
}

@media (max-width: 700px) {
  .security-facts {
    grid-template-columns: 1fr;
  }
}

.security-facts li {
  list-style: none;
  padding-left: var(--sp-5);
  position: relative;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.5;
}

.security-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.security-facts {
  margin-left: 0;
  padding-left: 0;
}

.security-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border);
  border-left: 2px solid var(--warning);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  background: var(--surface);
}

.security-note a {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- */
/* Two-column layout helper                                          */
/* ---------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-8);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.split.reverse .split-media {
  order: 2;
}

@media (max-width: 900px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .split.reverse .split-media {
    order: 0;
  }
}

.split-text,
.split-media {
  min-width: 0;
}

.split-text h2 {
  margin-bottom: var(--sp-3);
}

.split-text p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: var(--sp-5);
}

/* ---------------------------------------------------------------- */
/* Tunnel diagram                                                    */
/* ---------------------------------------------------------------- */

.tunnel-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.tunnel-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.tunnel-node {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1);
  white-space: nowrap;
}

.tunnel-node.active {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tunnel-node.muted {
  color: var(--text-3);
  border-style: dashed;
  opacity: 0.6;
}

.tunnel-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
  position: relative;
}

.tunnel-line.on {
  background: repeating-linear-gradient(to right, var(--accent-line) 0 6px, transparent 6px 12px);
}

.tunnel-line::after {
  content: "→";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  background: var(--surface);
  font-size: 0.8rem;
}

.tunnel-branch {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-left: 46px;
  position: relative;
}

.tunnel-branch::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -8px;
  bottom: 50%;
  width: 1px;
  background: var(--border-strong);
}

/* ---------------------------------------------------------------- */
/* Onboarding relationship diagram                                    */
/* ---------------------------------------------------------------- */

.relation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.relation-node {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  text-align: center;
}

.relation-node.you {
  color: var(--text-1);
}

.relation-node.mid {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.relation-arrow {
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------- */
/* Product / dashboard showcase                                       */
/* ---------------------------------------------------------------- */

.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.shot-wrap {
  position: relative;
  overflow: hidden;
}

.browser-frame img {
  display: block;
  width: 100%;
  filter: brightness(0.96) saturate(0.94);
}

.shot-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 -50px 40px -30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

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

.showcase-caption {
  margin-top: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------- */
/* Why section — removal list                                        */
/* ---------------------------------------------------------------- */

.removal-list {
  list-style: none;
  margin: 0 0 var(--sp-7);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.removal-list li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text-3);
}

.removal-list li:first-child {
  border-top: 1px solid var(--border);
}

.removal-list .no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  width: 20px;
  flex-shrink: 0;
}

.removal-list s {
  text-decoration-color: var(--text-3);
}

.removal-final {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  font-size: 1.15rem;
  color: var(--text-1);
}

.removal-final .no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  width: 20px;
  flex-shrink: 0;
}

.removal-final code {
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
}

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

.final-cta {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-block: var(--sp-10);
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: var(--sp-6);
  position: relative;
}

.final-cta .hero-ctas {
  justify-content: center;
  position: relative;
}

/* ---------------------------------------------------------------- */
/* Waitlist form                                                     */
/* ---------------------------------------------------------------- */

.waitlist-lede {
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.waitlist-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-2);
}

.form-row .optional {
  color: var(--text-3);
  font-weight: 400;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 72px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form button[type="submit"] {
  align-self: flex-start;
}

.form-msg {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--text-3);
}

.form-msg.success {
  color: var(--accent-strong);
}

.form-msg.error {
  color: var(--danger);
}

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

footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.footer-brand svg {
  width: 18px;
  height: 18px;
}

.footer-tagline {
  color: var(--text-3);
  font-size: 0.88rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
}

.footer-col a:hover {
  color: var(--text-1);
}

.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: var(--text-3);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- */
/* Scroll reveal                                                     */
/* ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}
