/* ==========================================================================
   ModbusLab — design system
   Dark industrial UI, cyan signal accents, green bus-status lights.
   ========================================================================== */

:root {
  --bg: #04090d;
  --bg-2: #070f16;
  --surface: #0a141c;
  --surface-2: #0e1a24;
  --surface-3: #12222e;
  --line: #14232e;
  --line-2: #1b3040;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --amber: #fbbf24;
  --red: #f87171;
  --text: #dce8f0;
  --muted: #7e94a4;
  --muted-2: #56707f;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }

::selection { background: var(--cyan); color: #04121a; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #27455a; }

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

/* ---------- utilities ---------- */
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 48px); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.text-glow-cyan {
  color: var(--cyan);
  text-shadow: 0 0 26px var(--cyan-glow), 0 0 60px rgba(34, 211, 238, 0.18);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex: none;
  position: relative;
}
.pulse-dot--green { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }
.pulse-dot--cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
.pulse-dot--red { background: var(--red); box-shadow: 0 0 10px rgba(248, 113, 113, 0.6); }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; color: inherit; opacity: 0.5;
  animation: pulse-ring 1.8s var(--ease) infinite;
}
.pulse-dot--green::after { border-color: var(--green); }
.pulse-dot--cyan::after { border-color: var(--cyan); }
.pulse-dot--red::after { border-color: var(--red); }
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.dot-green, .dot-amber {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none;
}
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); margin-right: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 11px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap; user-select: none;
}
.btn--primary {
  background: linear-gradient(135deg, #2ee6ff 0%, #12b8d4 100%);
  color: #03222b;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 8px 28px -8px var(--cyan-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.6), 0 14px 36px -8px var(--cyan-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--text);
  background: rgba(14, 26, 36, 0.5);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 13px; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn__icon { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(4, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.nav__logo { width: 34px; height: 34px; border-radius: 8px; }
.nav__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--cyan); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 0;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  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%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.hero__glow--a { width: 560px; height: 560px; top: -220px; left: -120px; background: rgba(34, 211, 238, 0.09); }
.hero__glow--b { width: 480px; height: 480px; top: 100px; right: -160px; background: rgba(52, 211, 153, 0.06); }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 100px;
  padding: 7px 16px; background: rgba(10, 20, 28, 0.7);
}
.hero__badge-sep { width: 1px; height: 14px; background: var(--line-2); }
.hero__title { font-size: clamp(38px, 4.6vw, 62px); margin: 26px 0 20px; font-weight: 700; }
.hero__sub { font-size: 17.5px; color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.hero__trust svg { width: 14px; height: 14px; color: var(--green); flex: none; }

/* ---------- live app mockup ---------- */
.hero__mockup { position: relative; container-type: inline-size; container-name: mockup; }
.hero__mockup-glow {
  position: absolute; inset: 8% -4% -6% -4%; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(34, 211, 238, 0.12), transparent 65%);
  filter: blur(30px);
}
.mockup {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #0a141d 0%, #070f16 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(34, 211, 238, 0.12);
  overflow: hidden;
  font-size: 12px;
}
.mockup__titlebar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: #03070b;
  border-bottom: 1px solid var(--line);
}
.mockup__icon { width: 16px; height: 16px; border-radius: 4px; }
.mockup__title { font-size: 11px; color: var(--muted); font-weight: 500; }
.mockup__winbtns { margin-left: auto; display: flex; gap: 6px; }
.mockup__winbtns i { width: 10px; height: 10px; border-radius: 50%; background: #1a2b38; }
.mockup__winbtns i:last-child { background: rgba(248, 113, 113, 0.5); }

.mockup__toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 26, 36, 0.4);
}
.mockup__busstatus { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; }
.mockup__com { font-size: 10.5px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-2); }
.mockup__toolbar-actions { margin-left: auto; display: flex; gap: 8px; }
.mockup__btn {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  padding: 6px 14px; border-radius: 7px; transition: all 0.2s;
}
.mockup__btn--ghost { border: 1px solid var(--line-2); color: var(--muted); }
.mockup__btn--primary {
  background: linear-gradient(135deg, #2ee6ff, #12b8d4); color: #03222b;
  box-shadow: 0 4px 14px -4px var(--cyan-glow);
}
.mockup__btn--primary.is-stopped { background: linear-gradient(135deg, #5eead4, #10b981); box-shadow: 0 4px 14px -4px rgba(52, 211, 153, 0.4); }

.mockup__body {
  display: grid;
  grid-template-columns: 168px 1fr 264px;
  min-height: 380px;
}
.mockup__sidebar {
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  background: rgba(6, 12, 18, 0.6);
}
.mockup__sidebar-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; letter-spacing: 0.1em; color: var(--muted-2);
  padding: 0 4px 10px; font-weight: 600;
}
.mockup__slavelist li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 8px; border: 1px solid transparent;
  margin-bottom: 4px; transition: all 0.2s;
}
.mockup__slavelist li.is-active {
  background: var(--cyan-soft); border-color: rgba(34, 211, 238, 0.25);
}
.mockup__slavelist li b { display: block; font-size: 11px; font-weight: 600; line-height: 1.25; }
.mockup__slavelist li small { display: block; font-size: 9px; color: var(--muted); line-height: 1.2; }
.mockup__slavelist li i { margin-left: auto; }
.mockup__uid {
  font-size: 9.5px; color: var(--cyan);
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 3px 5px; border-radius: 5px;
}
.mockup__add {
  margin-top: 8px; padding: 8px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 8px;
  color: var(--cyan); font-size: 10.5px; font-weight: 500;
}

.mockup__main { padding: 14px; border-right: 1px solid var(--line); min-width: 0; }
.mockup__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; margin-bottom: 12px;
}
.mockup__stat { background: var(--surface); padding: 10px 12px; }
.mockup__stat label { display: block; font-size: 8px; letter-spacing: 0.12em; color: var(--muted-2); font-weight: 600; }
.mockup__stat b { display: block; font-family: var(--font-display); font-size: 16px; margin: 3px 0 1px; white-space: nowrap; }
.mockup__stat small { font-size: 8.5px; color: var(--muted-2); display: block; line-height: 1.3; }

.mockup__panel {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface);
}
.mockup__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line); gap: 10px;
}
.mockup__panel-head b { font-size: 12px; font-family: var(--font-display); display: block; }
.mockup__panel-head small { font-size: 9px; color: var(--muted-2); display: block; }
.mockup__tabs { display: flex; gap: 4px; font-size: 9px; }
.mockup__tabs span { padding: 3px 8px; border-radius: 5px; color: var(--muted); border: 1px solid transparent; }
.mockup__tabs .is-on { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(34, 211, 238, 0.25); }

.mockup__table { width: 100%; border-collapse: collapse; font-size: 10px; }
.mockup__table th {
  text-align: left; font-size: 8px; letter-spacing: 0.1em; color: var(--muted-2);
  padding: 7px 12px; border-bottom: 1px solid var(--line); font-weight: 600;
}
.mockup__table td { padding: 6px 12px; border-bottom: 1px solid rgba(20, 35, 46, 0.5); color: var(--muted); white-space: nowrap; }
.mockup__table tr:last-child td { border-bottom: 0; }
.mockup__table td:nth-child(2) { color: var(--text); font-family: var(--font-body); font-size: 10.5px; }
.mockup__table td:last-child .dot-amber { vertical-align: -1px; }
.reg-val { color: var(--text); transition: color 0.3s, text-shadow 0.3s; min-width: 34px; display: inline-block; }
.reg-val.is-ticked { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.reg-val.is-written { color: var(--green); text-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }

.mockup__traffic { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(6, 12, 18, 0.4); }
.mockup__idle { font-size: 9px; color: var(--green); letter-spacing: 0.08em; }
.mockup__idle.is-paused { color: var(--amber); }
.mockup__frames {
  flex: 1; min-height: 0; overflow: hidden; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 9.5px; line-height: 1.5;
  mask-image: linear-gradient(180deg, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.frame { display: flex; gap: 7px; white-space: nowrap; animation: frame-in 0.3s var(--ease); }
@keyframes frame-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.frame__arrow { flex: none; width: 12px; }
.frame--req { color: #7fd4e8; }
.frame--req .frame__arrow { color: var(--cyan); }
.frame--res { color: #6ee7b7; opacity: 0.85; }
.frame--res .frame__arrow { color: var(--green); }
.frame--err { color: var(--red); }
.frame__crc { opacity: 0.45; }
.frame__tag { margin-left: auto; opacity: 0.4; font-size: 8.5px; }
.mockup__legend {
  display: flex; gap: 14px; align-items: center;
  padding: 9px 12px; border-top: 1px solid var(--line);
  font-size: 9px; color: var(--muted);
}
.sw { width: 12px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.sw--req { background: var(--cyan); }
.sw--res { background: var(--green); }
.sw--err { background: var(--red); }
.mockup__legend-count { margin-left: auto; }

/* mockup adapts its columns to the space it actually gets */
@container mockup (max-width: 800px) {
  .mockup__table th:nth-child(4), .mockup__table td:nth-child(4) { display: none; }
  .mockup__tabs span:nth-child(3) { display: none; }
}
@container mockup (max-width: 730px) {
  .mockup__table th:nth-child(5), .mockup__table td:nth-child(5) { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  margin-top: 84px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(7, 15, 22, 0.7);
  overflow: hidden; padding: 15px 0;
}
.marquee__track {
  display: flex; gap: 42px; align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--muted); white-space: nowrap;
}
.marquee__track i { color: var(--cyan); font-style: normal; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
#pricing { padding-top: 56px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 14px; }
.section__head p { color: var(--muted); font-size: 16.5px; }
.section__kicker { font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); }

/* ---------- features ---------- */
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.fcard {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 20, 28, 0.4) 100%);
  padding: 28px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.fcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.fcard:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.35); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7), 0 0 40px -12px rgba(34, 211, 238, 0.15); }
.fcard:hover::before { opacity: 1; }
.fcard__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--cyan); margin-bottom: 20px;
}
.fcard__icon svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 19px; margin-bottom: 10px; }
.fcard p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.fcard__tag {
  display: inline-block; margin-top: 18px;
  font-size: 10px; letter-spacing: 0.12em; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 5px;
  padding: 4px 9px; background: rgba(34, 211, 238, 0.06);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 30px 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: rgba(34, 211, 238, 0.3); transform: translateY(-3px); }
.step__num {
  font-size: 13px; color: var(--cyan); letter-spacing: 0.1em;
  display: inline-block; margin-bottom: 18px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.3); padding-bottom: 6px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step__chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--text); background: var(--surface-3);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 12px;
}
.step__arrow { align-self: center; color: var(--cyan); opacity: 0.5; }
.step__arrow svg { width: 38px; height: 15px; }

/* ---------- roadmap ---------- */
.roadmap {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
  padding-top: 34px;
}
.roadmap__line {
  position: absolute; top: 8px; left: 2%; right: 2%; height: 2px;
  background: var(--line-2); border-radius: 2px; overflow: hidden;
}
.roadmap__line-fill {
  display: block; height: 100%; width: 10%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px var(--cyan-glow);
}
.rnode { position: relative; padding-top: 26px; }
.rnode__dot {
  position: absolute; top: -32px; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
}
.rnode--done .rnode__dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 14px rgba(52, 211, 153, 0.6); }
.rnode--wip .rnode__dot { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 14px rgba(251, 191, 36, 0.5); animation: wip-blink 1.6s ease-in-out infinite; }
@keyframes wip-blink { 50% { box-shadow: 0 0 4px rgba(251, 191, 36, 0.2); } }
.rnode__status { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted-2); }
.rnode--done .rnode__status { color: var(--green); }
.rnode--wip .rnode__status { color: var(--amber); }
.rnode h3 { font-size: 19px; margin: 10px 0 8px; }
.rnode h3 small { font-size: 13px; color: var(--muted); font-weight: 500; }
.rnode p { font-size: 13.5px; color: var(--muted); }

/* ---------- pricing ---------- */
.pricing__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 460px));
  gap: 24px; justify-content: center;
}
.pcard {
  position: relative;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 20, 28, 0.5) 100%);
  padding: 36px 34px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pcard--featured {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, #0c1822 0%, rgba(10, 20, 28, 0.6) 100%);
  box-shadow: 0 0 60px -18px var(--cyan-glow), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.pcard--featured:hover { border-color: rgba(34, 211, 238, 0.65); box-shadow: 0 0 80px -14px var(--cyan-glow), 0 34px 70px -30px rgba(0, 0, 0, 0.85); }
.pcard__badge {
  position: absolute; top: -11px; left: 34px;
  font-size: 9.5px; letter-spacing: 0.14em; color: #03222b;
  background: linear-gradient(135deg, #2ee6ff, #12b8d4);
  padding: 4px 12px; border-radius: 100px; font-weight: 700;
  box-shadow: 0 4px 16px -4px var(--cyan-glow);
}
.pcard__head h3 { font-size: 23px; }
.pcard__head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.pcard__price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 4px; }
.pcard__currency { font-family: var(--font-display); font-size: 24px; color: var(--muted); }
.pcard__amount { font-family: var(--font-display); font-size: 62px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pcard__per { color: var(--muted); font-size: 15px; margin-left: 6px; }
.pcard__trial-note {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted); margin: 12px 0 24px;
}
.pcard__list { margin-bottom: 30px; display: grid; gap: 11px; }
.pcard__list li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; color: var(--muted);
}
.pcard__list li b { color: var(--text); font-weight: 600; }
.pcard__list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 8.5l2.5 2.5L12 5" fill="none" stroke="%2334d399" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/10px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.pcard__fine { display: block; text-align: center; margin-top: 14px; color: var(--muted-2); font-size: 12px; }

.pricing__strip {
  margin: 56px auto 0; max-width: 944px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.pricing__strip div {
  padding: 20px 24px; text-align: center;
  border-right: 1px solid var(--line);
}
.pricing__strip div:last-child { border-right: 0; }
.pricing__strip b { display: block; font-family: var(--font-display); font-size: 16px; }
.pricing__strip span { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(34, 211, 238, 0.3); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--cyan); }
.faq__chev {
  flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
  margin-right: 4px;
}
.faq__item[open] .faq__chev { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--cyan); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body p {
  overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.7;
  padding: 0 22px;
}
.faq__item[open] .faq__body p { padding-bottom: 20px; }

/* ---------- download ---------- */
.dl {
  position: relative; text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.25); border-radius: 24px;
  background: linear-gradient(180deg, #0b1620 0%, #070f16 100%);
  padding: 76px 32px; overflow: hidden;
}
.dl__glow {
  position: absolute; inset: -40% 20% auto; height: 420px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.14), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.dl__logo {
  width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 28px;
  box-shadow: 0 0 50px -8px var(--cyan-glow), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}
.dl h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; }
.dl p { color: var(--muted); font-size: 16.5px; }
.dl__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; }
.dl__meta { font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }
.dl__os { margin-top: 26px; font-size: 13.5px; color: var(--muted-2); }
.dl__os a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, 0.35); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #03070b; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 0 48px;
}
.footer__brand p { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 300px; }
.footer__col h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500;
}
.footer__col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-2);
}
.footer__proto { font-size: 10.5px; letter-spacing: 0.1em; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 9, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal__card {
  position: relative; width: min(480px, 100%);
  background: linear-gradient(180deg, #0c1620, #080f16);
  border: 1px solid var(--line-2); border-radius: 20px;
  padding: 34px 32px;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(34, 211, 238, 0.15);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line);
  transition: all 0.2s;
}
.modal__close:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.modal__close svg { width: 13px; height: 13px; }
.modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.modal__logo { width: 46px; height: 46px; border-radius: 12px; }
.modal__head h3 { font-size: 21px; }
.modal__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: 0.12em; color: var(--green); margin-top: 3px; }
.modal__secure svg { width: 12px; height: 12px; }
.modal__summary {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden; margin-bottom: 20px;
}
.modal__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.modal__row:last-child { border-bottom: 0; }
.modal__row--total { background: rgba(34, 211, 238, 0.05); }
.modal__row--total b { font-family: var(--font-display); font-size: 19px; color: var(--cyan); }
.modal__row .text-muted { font-size: 12.5px; }
.modal__perks { display: grid; gap: 9px; margin-bottom: 26px; }
.modal__perks li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; color: var(--muted);
}
.modal__perks li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 8.5l2.5 2.5L12 5" fill="none" stroke="%2334d399" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/9px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.modal__email { margin-bottom: 20px; }
.modal__email label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.modal__email input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.modal__email input:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft);
}
.modal__email input::placeholder { color: var(--muted-2); }
.modal__email input.is-invalid { border-color: var(--red); }
.modal__fine { margin-top: 16px; font-size: 12px; color: var(--muted-2); text-align: center; line-height: 1.6; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 80px);
  z-index: 300;
  background: #0d1a24; color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 11px;
  padding: 13px 22px; font-size: 14px; font-weight: 500;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px -8px var(--cyan-glow);
  opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none; max-width: min(520px, calc(100vw - 40px));
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.45s; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__copy { text-align: center; max-width: 680px; margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__mockup { max-width: 940px; margin-inline: auto; width: 100%; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(4, 9, 13, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all 0.3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(20, 35, 46, 0.5); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__burger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .step__arrow { transform: rotate(90deg); justify-self: center; }
  .roadmap { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; }
  .roadmap__line { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .mockup__body { grid-template-columns: 150px 1fr; }
  .mockup__traffic { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: minmax(0, 460px); }
  .pricing__strip { grid-template-columns: repeat(2, 1fr); }
  .pricing__strip div:nth-child(2) { border-right: 0; }
  .pricing__strip div:nth-child(1), .pricing__strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .roadmap { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__sidebar { display: none; }
  .mockup__stats { grid-template-columns: repeat(2, 1fr); }
  .pcard { padding: 30px 24px; }
  .pcard__amount { font-size: 52px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .dl { padding: 56px 22px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
