/* ==========================================================================
   Vollo — marketing site
   Voice infrastructure aesthetic: engineered dark surfaces, one gradient.
   ========================================================================== */

:root {
  --red: #E53935;
  --deep-red: #B71C1C;
  --coral: #FF7043;
  --amber: #FFB300;
  --black: #111315;
  --graphite: #1B1E21;
  --cloud: #F7F8FA;
  --white: #FFFFFF;
  --success: #22C55E;
  --ai: #8B5CF6;
  --text: #111315;
  --text-2: #62676B;
  --border: #E5E7EB;
  --gradient: linear-gradient(90deg, #E53935, #FF7043, #FFB300);

  --d-text: #F4F5F6;
  --d-text-2: #9BA1A6;
  --d-border: rgba(255, 255, 255, 0.08);
  --d-surface: #17191C;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Menlo", "Consolas", monospace;

  --container: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: rgba(229, 57, 53, 0.24); }

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

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 104px; }
.section--dark { background: var(--black); color: var(--d-text); }
.section--cloud { background: var(--cloud); }
.section--white { background: var(--white); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.section--dark .kicker { color: var(--coral); }

.h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}
.section--dark .section-lede { color: var(--d-text-2); }
.section-head { margin-bottom: 56px; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.2), 0 8px 24px -8px rgba(229, 57, 53, 0.55);
}
.btn--primary:hover {
  background: var(--deep-red);
  box-shadow: 0 1px 2px rgba(17, 19, 21, 0.2), 0 10px 28px -8px rgba(229, 57, 53, 0.7);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--d-text);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--ghost-light {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost-light:hover { border-color: #c8ccd1; background: var(--cloud); }

.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

.btn--on-gradient {
  background: var(--black);
  color: var(--white);
}
.btn--on-gradient:hover { background: #24272b; }

.arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow, .link-more:hover .arrow { transform: translateX(3px); }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(17, 19, 21, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(17, 19, 21, 0.86);
  border-bottom-color: var(--d-border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo svg { height: 22px; width: auto; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--d-text-2);
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav__links a:hover { color: var(--d-text); background: rgba(255, 255, 255, 0.06); }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--d-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle-bars { position: relative; width: 16px; height: 12px; }
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), top 0.22s var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 5.2px; }
.nav__toggle-bars span:nth-child(3) { top: 10.4px; }
.nav.is-open .nav__toggle-bars span:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bars span:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px 28px;
  background: rgba(17, 19, 21, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--d-border);
}
.nav__mobile a {
  display: block;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--d-text);
  text-decoration: none;
  border-bottom: 1px solid var(--d-border);
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: 14px; width: 100%; }
.nav.is-open + .nav__mobile { display: block; }

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

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 0;
  background: var(--black);
  color: var(--d-text);
  overflow: hidden;
}
.hero::before {
  /* faint engineered grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  /* warm glow behind headline */
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(229, 57, 53, 0.16), rgba(255, 112, 67, 0.05) 55%, transparent);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--d-text-2);
}
.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero__title {
  margin: 26px auto 0;
  max-width: 15.5ch;
  font-size: clamp(40px, 7.2vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 58ch;
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.65;
  color: var(--d-text-2);
  text-wrap: pretty;
}
.hero__sub strong { color: var(--d-text); font-weight: 500; }

.hero__cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-text-2);
}
.hero__trust .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

/* Waveform */

.wave {
  position: relative;
  height: 190px;
  margin-top: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding-inline: 24px;
}
.wave::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.wave__bar {
  width: 6px;
  flex: 0 1 6px;
  height: 100%;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transform: scaleY(var(--h, 0.3));
  animation: wave-pulse var(--dur, 1.4s) var(--delay, 0s) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes wave-pulse {
  from { transform: scaleY(var(--h, 0.3)); }
  to { transform: scaleY(var(--h2, 0.8)); }
}

/* Static no-JS fallback */
.wave--fallback {
  background: var(--gradient);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 11px),
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 11px);
  border-radius: 3px;
  height: 64px;
  align-self: flex-end;
  width: min(680px, 100%);
  opacity: 0.9;
}

/* ---------- Metrics strip ---------- */

.metrics {
  background: var(--black);
  color: var(--d-text);
  border-top: 1px solid var(--d-border);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: 40px 28px;
  border-left: 1px solid var(--d-border);
}
.metric:first-child { border-left: 0; padding-left: 0; }
.metric__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metric__label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--d-text-2);
  text-wrap: pretty;
}

/* ---------- Features ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: #d9dde2;
  box-shadow: 0 18px 40px -18px rgba(17, 19, 21, 0.16);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--red);
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.14);
  margin-bottom: 20px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feature p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cloud);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.step:nth-child(1) .step__num { background: var(--red); }
.step:nth-child(2) .step__num { background: var(--coral); }
.step:nth-child(3) .step__num { background: var(--amber); color: var(--black); }
.step h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 9px; font-size: 15px; line-height: 1.62; color: var(--text-2); }

/* Workflow canvas mock */

.canvas-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--black);
  box-shadow: 0 40px 80px -40px rgba(17, 19, 21, 0.45);
  overflow: hidden;
}
.canvas-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--d-border);
  background: var(--graphite);
}
.canvas-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.canvas-chrome .dot:nth-child(1) { background: #FF5F57; }
.canvas-chrome .dot:nth-child(2) { background: #FEBC2E; }
.canvas-chrome .dot:nth-child(3) { background: #28C840; }
.canvas-chrome .title {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--d-text-2);
  letter-spacing: 0.01em;
}
.canvas-chrome .pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}

.canvas {
  position: relative;
  aspect-ratio: 16 / 8.4;
  min-height: 380px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}
.canvas__edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas__edges path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.6;
  stroke-dasharray: 6 6;
  animation: edge-flow 1.1s linear infinite;
}
.canvas__edges path.edge--hot { stroke: var(--coral); opacity: 0.85; }
@keyframes edge-flow { to { stroke-dashoffset: -12; } }

.node {
  position: absolute;
  width: 178px;
  padding: 11px 13px 12px;
  border-radius: 12px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.node:hover { border-color: rgba(255, 255, 255, 0.3); transform: translate(-50%, -52%); }
.node--active {
  border-color: rgba(229, 57, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14), 0 12px 28px -12px rgba(0, 0, 0, 0.6);
}
.node__type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-text-2);
}
.node__type::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--d-text-2); }
.node--trigger .node__type { color: var(--coral); }
.node--trigger .node__type::before { background: var(--coral); }
.node--ai .node__type { color: var(--ai); }
.node--ai .node__type::before { background: var(--ai); }
.node--ok .node__type { color: var(--success); }
.node--ok .node__type::before { background: var(--success); }
.node--amber .node__type { color: var(--amber); }
.node--amber .node__type::before { background: var(--amber); }
.node__label {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--d-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node__meta { margin-top: 3px; font-size: 11.5px; color: var(--d-text-2); }
.node__port {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--black);
  border: 1.6px solid rgba(255, 255, 255, 0.35);
}
.node__port--out { right: -5px; top: 50%; transform: translateY(-50%); }
.node__port--in { left: -5px; top: 50%; transform: translateY(-50%); }

/* node positions (percent of canvas) */
.node--n1 { left: 13%; top: 30%; }
.node--n2 { left: 38%; top: 30%; }
.node--n3 { left: 62%; top: 30%; }
.node--n4 { left: 84%; top: 16%; }
.node--n5 { left: 84%; top: 56%; }
.node--n6 { left: 62%; top: 76%; }

/* ---------- Telephony band ---------- */

.telephony { border-top: 1px solid var(--d-border); }
.telephony__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.checklist li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--d-border);
  font-size: 15.5px;
  color: var(--d-text-2);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li strong { color: var(--d-text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.phone-card {
  position: relative;
  border: 1px solid var(--d-border);
  border-radius: var(--radius-lg);
  background: var(--d-surface);
  padding: 28px;
  overflow: hidden;
}
.phone-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
}
.phone-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--d-border);
  font-size: 14.5px;
}
.phone-card__row:last-child { border-bottom: 0; }
.phone-card__row .num { font-family: var(--mono); font-size: 14px; color: var(--d-text); letter-spacing: 0.02em; }
.phone-card__row .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--live { color: var(--success); background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.tag--sip { color: var(--amber); background: rgba(255, 179, 0, 0.1); border: 1px solid rgba(255, 179, 0, 0.3); }
.tag--web { color: var(--ai); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35); }
.phone-card__row .to { color: var(--d-text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Developers ---------- */

.dev { border-top: 1px solid var(--d-border); }
.dev__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.dev__points { margin-top: 30px; display: grid; gap: 0; }
.dev__points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--d-border);
  font-size: 15.5px;
  color: var(--d-text-2);
}
.dev__points li:last-child { border-bottom: 0; }
.dev__points strong { color: var(--d-text); font-weight: 600; }
.dev__points .mark {
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--gradient);
  opacity: 0.9;
}
.dev .link-more { margin-top: 26px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}
.link-more:hover { color: var(--amber); }

.code-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--d-border);
  background: #0C0E10;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.code-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--d-border);
  background: rgba(255, 255, 255, 0.02);
}
.code-card__bar .file { font-family: var(--mono); font-size: 12.5px; color: var(--d-text-2); }
.code-card__bar .method {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.code-card pre {
  margin: 0;
  padding: 22px 24px 26px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.2px;
  line-height: 1.75;
  color: #C7CCD1;
  tab-size: 2;
}
.code-card code { font-family: inherit; }
.tok-c { color: #5C6570; }
.tok-k { color: #FF7043; }
.tok-s { color: #FFB300; }
.tok-n { color: #8B5CF6; }
.tok-p { color: #7B848D; }
.tok-g { color: #22C55E; }

/* ---------- Pricing ---------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(17, 19, 21, 0.16); }
.plan__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.plan__desc { margin-top: 5px; font-size: 13.5px; color: var(--text-2); min-height: 42px; }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 7px; }
.plan__price .amount { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan__price .period { font-size: 14px; color: var(--text-2); }
.plan__cta { margin-top: 24px; width: 100%; }
.plan__features { margin-top: 26px; display: grid; gap: 0; }
.plan__features li {
  position: relative;
  padding: 9.5px 0 9.5px 28px;
  font-size: 14.5px;
  color: var(--text-2);
  border-bottom: 1px solid #F0F1F3;
}
.plan__features li:last-child { border-bottom: 0; }
.plan__features li strong { color: var(--text); font-weight: 600; }
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53935' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.plan--popular {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 24px 56px -24px rgba(229, 57, 53, 0.35);
}
.plan--popular:hover { box-shadow: 0 28px 60px -22px rgba(229, 57, 53, 0.42); }
.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing__note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362676B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body {
  padding: 0 4px 24px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-2);
  text-wrap: pretty;
}
.faq .faq__body a { color: var(--red); font-weight: 500; text-decoration-color: rgba(229, 57, 53, 0.35); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--gradient);
  color: var(--white);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(115deg, transparent 35%, #000);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  padding-block: 88px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta-band p {
  margin: 16px auto 0;
  max-width: 48ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-band__actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }

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

.footer {
  background: var(--black);
  color: var(--d-text-2);
  padding: 72px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand svg { height: 20px; width: auto; }
.footer__brand p {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.65;
}
.footer h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--d-text);
  margin-bottom: 18px;
}
.footer ul { display: grid; gap: 11px; }
.footer ul a {
  font-size: 14.5px;
  color: var(--d-text-2);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer ul a:hover { color: var(--d-text); }
.footer__bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--d-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--d-text-2);
}
.footer__status:hover { color: var(--d-text); }
.footer__status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

/* ---------- Legal / 404 pages ---------- */

.page {
  background: var(--white);
  padding: calc(var(--nav-h) + 72px) 0 104px;
  min-height: 60vh;
}
.page .container { max-width: 760px; }
.page h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page .updated { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.page h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page p, .page li { font-size: 15.5px; line-height: 1.7; color: #3A3F44; }
.page p + p { margin-top: 14px; }
.page ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.page a { color: var(--red); text-decoration-color: rgba(229, 57, 53, 0.35); }

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--d-text);
  padding: 24px;
}
.error-page .code {
  font-size: clamp(88px, 18vw, 160px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { margin-top: 10px; font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.error-page p { margin-top: 12px; color: var(--d-text-2); max-width: 44ch; }
.error-page .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

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

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

@media (max-width: 1020px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .dev__grid, .telephony__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding-block: 76px; }
  .nav__links { display: none; }
  .nav__cta .btn--docs { display: none; }
  .nav__toggle { display: inline-flex; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 28px 20px; }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--d-border); }
  .steps, .pricing__grid { grid-template-columns: 1fr; }
  .plan--popular { order: -1; }
  .canvas { aspect-ratio: auto; height: 460px; }
  .node { width: 150px; }
  .hero { padding-top: calc(var(--nav-h) + 68px); }
  .wave { height: 140px; margin-top: 56px; gap: 4px; }
  .wave__bar { width: 5px; flex-basis: 5px; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__cta .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .canvas { height: 520px; }
  .node { width: 136px; padding: 9px 11px 10px; }
  .node__meta { display: none; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--d-border); }
  .metric:last-child { border-bottom: 0; }
  .container { padding-inline: 20px; }
}
