/* Infos Telco API — product site
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop). */

:root {
  --bg: #0f1117;
  --bg-2: #13161e;
  --surface: #1a1d24;
  --panel: #2d2e32;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eaf0;
  --muted: #a3a8b5;
  --cyan: #02b0e6;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --teal: #1ab394;
  --pink: #ec4899;
  --gold: #f2b52c;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 50%, var(--violet));
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --gutter: 16px;
  --max: 1200px;
  --header-h: 68px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}


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

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

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


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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: #001018; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

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

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(2, 176, 230, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(59, 130, 246, 0.8); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(2, 176, 230, 0.08); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: 0.875rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { height: 30px; width: auto; }
.brand-sub {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 500; color: var(--muted);
  padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 1.2;
}

.nav { display: none; }
.nav a {
  position: relative; font-size: 0.92rem; color: var(--muted); padding: 8px 2px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }


.header-cta { display: none; }

.menu-btn {
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; display: grid; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  position: relative; transition: transform 0.25s ease, background 0.25s ease;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(15, 17, 23, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}
.menu-open .drawer { transform: none; opacity: 1; visibility: visible; }
.drawer a:not(.btn) {
  font-family: var(--font-head); font-size: 1.25rem; padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 20px; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(139, 92, 246, 0.18), transparent 70%),
    radial-gradient(50% 50% at 15% 70%, rgba(2, 176, 230, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg));
  pointer-events: none;
}
.hero-content { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero h1 { font-size: clamp(2.1rem, 6.5vw, 4rem); font-weight: 700; margin-bottom: 20px; }
.hero-lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-actions .btn { flex: 1 1 200px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.84rem;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text);
}
.chip svg { width: 16px; height: 16px; color: var(--cyan); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}

/* ---------------------------------------------------------------- flow diagram */

.flow {
  position: relative; display: grid; gap: 18px;
  grid-template-columns: 1fr;
  padding: 28px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
}
.flow-node {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.flow-node .ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(2, 176, 230, 0.12); color: var(--cyan);
}
.flow-node .ico svg { width: 24px; height: 24px; }
.flow-node h3 { font-size: 1rem; margin: 0 0 2px; }
.flow-node p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.flow-hub {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 0 rgba(2, 176, 230, 0.4);
  animation: hub-glow 3s ease-in-out infinite;
}
.flow-hub .ico { background: var(--grad); color: #fff; }
@keyframes hub-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 176, 230, 0); }
  50% { box-shadow: 0 0 40px -4px rgba(59, 130, 246, 0.55); }
}
.flow-ops { display: grid; gap: 12px; }
.flow-op-true .ico { background: rgba(236, 72, 153, 0.12); color: var(--pink); }
.flow-op-ais .ico { background: rgba(26, 179, 148, 0.14); color: var(--teal); }

/* connector: vertical on mobile, horizontal on desktop */
.flow-link {
  position: relative; height: 34px; width: 2px; margin: -6px auto;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.flow-link .packet {
  position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
  animation: packet-v 1.6s linear infinite;
}
.flow-link .packet.back { background: var(--teal); box-shadow: 0 0 12px var(--teal); animation-direction: reverse; animation-delay: 0.8s; }
@keyframes packet-v { from { top: -5px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 5px); opacity: 0; } }

.flow-steps {
  margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr;
  counter-reset: step;
}
.flow-step {
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.flow-step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.06); color: var(--text); transition: background 0.3s ease, color 0.3s ease;
}
.flow-step.is-on { border-color: rgba(2, 176, 230, 0.5); background: rgba(2, 176, 230, 0.06); color: var(--text); }
.flow-step.is-on::before { background: var(--cyan); color: #001018; }

/* ---------------------------------------------------------------- API cards */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  transition: all 0.2s ease;
}
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.api-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.api-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  transform-style: preserve-3d; overflow: hidden;
}
.api-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(2, 176, 230, 0.14), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.api-card:hover { border-color: rgba(2, 176, 230, 0.45); box-shadow: var(--shadow); }
.api-card:hover::before { opacity: 1; }
.api-card.is-hidden { display: none; }
.api-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(2, 176, 230, 0.1); color: var(--cyan);
}
.api-card .ico svg { width: 26px; height: 26px; }
.api-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.api-card .q { color: var(--text); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.api-card .desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.api-card .returns {
  font-size: 0.84rem; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 12px; margin: 6px 0 14px;
}
.api-card .returns strong { color: var(--text); font-weight: 700; }
.ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.op {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid;
}
.op-true { color: var(--pink); border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.08); }
.op-ais { color: var(--teal); border-color: rgba(26, 179, 148, 0.45); background: rgba(26, 179, 148, 0.08); }
.op-soon { color: var(--muted); border-color: var(--line-strong); border-style: dashed; background: transparent; font-weight: 700; }
.api-card.featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
}
.ribbon {
  position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- coverage */

.coverage { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.coverage table { width: 100%; border-collapse: collapse; }
.coverage th, .coverage td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.coverage thead th {
  font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, 0.02);
}
.coverage tbody tr { transition: background 0.2s ease; }
.coverage tbody tr:hover { background: rgba(2, 176, 230, 0.05); }
.coverage tbody tr:last-child td, .coverage tbody tr:last-child th { border-bottom: 0; }
.coverage tbody th { font-weight: 700; }
.coverage td.c { text-align: center; }
.coverage thead th.c { text-align: center; }
.yes, .no {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
}
.yes { background: rgba(26, 179, 148, 0.16); color: var(--teal); }
.yes svg { width: 16px; height: 16px; }
.no { color: var(--muted); opacity: 0.5; }
.soon {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--gold); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(242, 181, 44, 0.45); background: rgba(242, 181, 44, 0.06);
}
.coverage-note { color: var(--muted); font-size: 0.88rem; margin-top: 16px; }

/* stacked rows on phones */
@media (max-width: 639px) {
  .coverage thead { display: none; }
  .coverage tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .coverage tbody tr:last-child { border-bottom: 0; }
  .coverage th, .coverage td { padding: 0; border: 0; }
  .coverage td.c { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.64rem; color: var(--muted); font-weight: 700; }
  .coverage td.c::after { content: attr(data-label); }
}

/* ---------------------------------------------------------------- how it works */

.how { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.steps { display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: var(--grad); color: #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.demo {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; min-width: 0;
}
.demo-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.demo-tag {
  margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px;
}
.demo-input {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
}
.demo-input > svg { width: 18px; height: 18px; color: var(--cyan); }
.demo-num { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; }
.demo-net {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--teal);
  opacity: 0; transition: opacity 0.4s ease;
}
.demo-net svg { width: 14px; height: 14px; }
.demo.is-net .demo-net { opacity: 1; }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-list li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  font-size: 0.9rem; color: var(--muted); transition: border-color 0.3s ease, color 0.3s ease;
}
.demo-list b { font-weight: 700; color: var(--teal); opacity: 0; transform: translateX(6px); transition: opacity 0.3s ease, transform 0.3s ease; text-align: right; }
.demo-list .st { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.demo-list li.is-run .st { border-color: var(--cyan); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.demo-list li.is-done { border-color: rgba(26, 179, 148, 0.4); color: var(--text); }
.demo-list li.is-done .st {
  border-color: transparent;
  background: rgba(26, 179, 148, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ab394' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.demo-list li.is-done b { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo.is-result .demo-result { opacity: 1; transform: none; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(26, 179, 148, 0.16); color: var(--teal); font-weight: 700; font-size: 0.9rem;
}
.demo-badge svg { width: 16px; height: 16px; }
.demo-result small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; }
.demo-result small svg { width: 14px; height: 14px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- use cases */

.cases { display: grid; gap: 18px; grid-template-columns: 1fr; }
.case {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(2, 176, 230, 0.06), transparent 50%), var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); }
.case .ico { width: 52px; height: 52px; color: var(--violet); margin-bottom: 18px; }
.case h3 { font-size: 1.25rem; }
.case > p { color: var(--muted); font-size: 0.94rem; }
.case ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.case li { display: flex; gap: 10px; font-size: 0.9rem; }
.case li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(26, 179, 148, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ab394' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.case li span { color: var(--muted); }
.case li b { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------------- why */

.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.why {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.why .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.14); color: var(--violet); margin-bottom: 16px; }
.why .ico svg { width: 22px; height: 22px; }
.why h3 { font-size: 1.05rem; }
.why p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.callout {
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(2, 176, 230, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: grid; gap: 14px;
}
.callout h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 0; }
.callout p { margin: 0; color: var(--text); opacity: 0.85; }

.isnot { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 40px; }
.isnot > div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.isnot h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.isnot ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; display: grid; gap: 6px; }
.isnot .is h3 { color: var(--teal); }
.isnot .not h3 { color: var(--pink); }

/* ---------------------------------------------------------------- about */

.about { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.about p { color: var(--muted); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat {
  padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center;
}
.stat b {
  display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 0.84rem; color: var(--muted); }
.about-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.about-products .chip { font-size: 0.8rem; }

/* ---------------------------------------------------------------- contact */

.contact-wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { border-color: var(--cyan); transform: translateX(4px); }
.contact-card .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
}
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card.phone .ico { color: var(--cyan); }
.contact-card.office .ico { color: var(--pink); }
.contact-card.mail .ico {
  color: var(--violet);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--pink), var(--cyan)) border-box;
  border-color: transparent;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p, .contact-card address { margin: 0; color: var(--muted); font-style: normal; font-size: 0.95rem; }

.form {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.form h3 { font-size: 1.25rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 0.85rem; font-weight: 700; color: var(--muted); padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2, 176, 230, 0.2); }
.field input:user-invalid { border-color: var(--pink); }
.row-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.84rem; color: var(--muted); cursor: pointer; transition: all 0.2s ease;
}
.check input:checked + span { background: rgba(2, 176, 230, 0.14); border-color: var(--cyan); color: var(--text); }
.check input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form-status { font-size: 0.88rem; color: var(--teal); margin: 0; min-height: 1.4em; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #0b0d12; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-grid h4 { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 380px; margin-top: 14px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
}

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(26, 29, 36, 0.9); display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero-content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3) { animation-delay: 0.2s; }
.hero-content > :nth-child(4) { animation-delay: 0.3s; }
.hero-content > :nth-child(5) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.typed-word { display: inline-block; min-width: 1ch; }
.typed-word::after { content: ""; display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--cyan); animation: blink 1s steps(1) infinite; }

/* ---------------------------------------------------------------- tablet */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .api-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases .case:last-child { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .isnot { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .flow-ops { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------------------------------------------------------------- desktop */

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .section { padding: 120px 0; }
  .nav { display: flex; gap: 26px; }
  .header-cta { display: inline-flex; }
  .menu-btn, .drawer { display: none; }

  .api-grid { grid-template-columns: repeat(4, 1fr); }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .cases .case:last-child { grid-column: auto; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .about { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .flow {
    grid-template-columns: 1fr 70px 1.1fr 70px 1fr;
    align-items: center; padding: 44px 36px; gap: 0;
  }
  .flow-ops { grid-template-columns: 1fr; gap: 16px; }
  .flow-link {
    width: 100%; height: 2px; margin: 0;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }
  .flow-link .packet { top: 50%; left: 0; margin: -5px 0 0; animation-name: packet-h; }
  .flow-steps { grid-template-columns: repeat(4, 1fr); }
}
@keyframes packet-h { from { left: -5px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 5px); opacity: 0; } }

/* ---------------------------------------------------------------- reduced motion */

@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; }
  .reveal { opacity: 1; transform: none; }
  .flow-link .packet, .scroll-hint { display: none; }
  .demo-net, .demo-list b, .demo-result { opacity: 1; transform: none; }
}
