/* Nordman Algorithms — Landing Styles */

:root {
  --bg: #06090F;
  --bg-soft: #0B1120;
  --surface: #0E1426;
  --surface-2: #131A2E;
  --surface-3: #1A2240;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #E8ECF4;
  --text-2: #B3BBCE;
  --text-dim: #6B7591;
  --text-mute: #4A5269;

  --blue: #3B82F6;
  --blue-bright: #60A5FA;
  --blue-deep: #1E40AF;
  --blue-glow: rgba(59, 130, 246, 0.18);

  --green: #34D399;
  --green-dim: #10B981;
  --red: #F87171;
  --amber: #FBBF24;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(59, 130, 246, 0.05), transparent 60%),
    var(--bg);
}

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

/* ─── Typography utilities ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 500;
}
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.5vw, 24px); }

p { color: var(--text-2); text-wrap: pretty; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.16) inset,
    0 0 0 1px rgba(59, 130, 246, 0.4),
    0 12px 32px -8px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.2) inset,
    0 0 0 1px rgba(96, 165, 250, 0.5),
    0 16px 40px -8px rgba(59, 130, 246, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background-image: url("logo-192.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px -4px rgba(59,130,246,0.4);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ─── Hero ─── */
.hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 {
  margin-top: 22px;
  margin-bottom: 22px;
}
.hero h1 .accent {
  color: var(--blue-bright);
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}
.hero-note::before {
  content: '◆ ';
  color: var(--green);
  margin-right: 6px;
}

/* ─── Hero visual (webhook flow) ─── */
.flow-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 80px -20px var(--blue-glow);
  overflow: hidden;
}
.flow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 50%, rgba(59,130,246,0.04) 100%);
  pointer-events: none;
}
.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.flow-dots {
  display: flex; gap: 6px;
}
.flow-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3);
}
.flow-dots span:nth-child(1) { background: #FF5F57; }
.flow-dots span:nth-child(2) { background: #FEBC2E; }
.flow-dots span:nth-child(3) { background: #28C840; }
.flow-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.flow-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}
.flow-status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.flow-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stage {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: all 0.4s ease;
}
.stage.active {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(90deg, rgba(59,130,246,0.08), var(--surface-2));
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3), 0 8px 24px -8px rgba(59,130,246,0.3);
}
.stage-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.stage-icon.tv { background: rgba(34, 211, 238, 0.12); color: #67E8F9; }
.stage-icon.cloud { background: rgba(168, 139, 250, 0.12); color: #C4B5FD; }
.stage-icon.mt { background: rgba(251, 191, 36, 0.12); color: #FCD34D; }
.stage-icon.exec { background: rgba(52, 211, 153, 0.12); color: #6EE7B7; }
.stage-body { flex: 1; min-width: 0; }
.stage-label {
  font-size: 13px; font-weight: 500; color: var(--text);
  margin-bottom: 2px;
}
.stage-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.stage-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.stage.active .stage-time { color: var(--green); }
.stage-arrow {
  position: absolute;
  left: 32px;
  bottom: -16px;
  width: 2px; height: 14px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
  z-index: 1;
}
.stage:last-child .stage-arrow { display: none; }

.flow-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.flow-footer .pill {
  background: var(--surface-3);
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.flow-footer .pill .latency-ok { color: var(--green); }

/* Ticker tape */
.ticker-tape {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 28px;
  animation: scroll 40s linear infinite;
  flex-shrink: 0;
}
@keyframes scroll {
  to { transform: translateX(calc(-50% - 14px)); }
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.tick .sym { color: var(--text-2); font-weight: 500; }
.tick .px { color: var(--text); }
.tick .chg { font-size: 11px; }
.tick .chg.up { color: var(--green); }
.tick .chg.down { color: var(--red); }

/* ─── Section general ─── */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head h2 { margin-bottom: 18px; }
.section-head p {
  font-size: clamp(15px, 1.1vw, 17px);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Problem cards ─── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.problem-card:hover { border-color: var(--border-strong); }
.problem-card .x {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  display: grid; place-items: center;
  color: var(--red);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}
.problem-card h3 { margin-bottom: 10px; font-size: 18px; }
.problem-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ─── Solution / bridges ─── */
.solution-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .solution-wrap { grid-template-columns: 1fr; gap: 36px; } }
.solution-text h2 { margin-bottom: 20px; }
.solution-text p { font-size: 17px; line-height: 1.6; margin-bottom: 28px; }

.bridges {
  display: grid;
  gap: 12px;
}
.bridge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.2s ease;
}
.bridge:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.bridge-from, .bridge-to {
  display: flex; flex-direction: column;
  font-family: var(--font-mono);
  font-size: 12px;
}
.bridge-from .label, .bridge-to .label { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.bridge-from .name, .bridge-to .name { color: var(--text); font-weight: 500; font-size: 14px; }
.bridge-arrow {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  position: relative;
}
.bridge-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--blue);
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  border-left: 0; border-bottom: 0;
}
.bridge-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.bridge.tv-mt4 .bridge-dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.bridge.tv-nt8 .bridge-dot { background: var(--blue-bright); box-shadow: 0 0 12px var(--blue-bright); }
.bridge.tv-mt5 .bridge-dot { background: var(--amber); }
.bridge.cross .bridge-dot { background: var(--text-dim); }
.bridge-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  padding-left: 4px;
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  position: relative;
  transition: all 0.2s ease;
}
.step:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-glow), transparent);
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); }
.feature.span-3 { grid-column: span 3; }
.feature.span-2 { grid-column: span 2; }
@media (max-width: 980px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature.span-3, .feature.span-2 { grid-column: span 1; }
  .feature.first { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature.first { grid-column: span 1; }
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border: 1px solid rgba(59,130,246,0.25);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* Risk feature: tag, list, settings panel flow */
.feat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3);
  padding: 3px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -2px;
}
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}
.feat-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.feat-list li b { color: var(--text); font-weight: 500; }
.feat-list .d { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; position: relative; top: 6px; }
.feat-list .d.green { background: var(--green); }

.risk-flow {
  display: grid;
  grid-template-columns: auto 56px 1fr;
  align-items: center;
  gap: 0;
  margin-top: 22px;
}
@media (max-width: 480px) {
  .risk-flow { grid-template-columns: 1fr; gap: 12px; }
  .risk-connector { display: none !important; }
}
.risk-source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.risk-source-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}
.risk-source-label { font-size: 13px; font-weight: 500; color: var(--text); }
.risk-source-sig { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.risk-connector {
  height: 24px;
  display: grid;
  place-items: center;
}
.risk-connector svg { width: 100%; height: 24px; overflow: visible; }
.risk-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(52,211,153,0.05);
}
.risk-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.risk-panel-dots { display: flex; gap: 4px; }
.risk-panel-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.risk-panel-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.risk-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.risk-field:last-child { border-bottom: none; }
.risk-field .rf-label { font-size: 12.5px; color: var(--text-2); }
.risk-field .rf-input {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 92px;
  text-align: center;
}
.risk-field .rf-input.muted { color: var(--text-dim); }
.risk-field.hl {
  background: rgba(52,211,153,0.06);
}
.risk-field.hl .rf-input {
  color: var(--green);
  border-color: rgba(52,211,153,0.4);
  background: rgba(52,211,153,0.08);
  box-shadow: 0 0 0 1px rgba(52,211,153,0.15);
}
.risk-tagline {
  font-size: 14px !important;
  color: var(--text) !important;
  font-weight: 500;
  margin-top: 18px;
}
.risk-tagline-sub {
  font-size: 13.5px !important;
  line-height: 1.6;
  color: var(--text-2) !important;
  margin-top: 8px;
}

/* Prop-firm protection panel: shield header + toggle rows */
.risk-panel-shield { font-size: 14px; }
.risk-panel-secure {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  padding: 3px 7px;
  border-radius: 100px;
}
.toggle-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.toggle-field:last-child { border-bottom: none; }
.toggle-field .tf-label { font-size: 12.5px; color: var(--text-2); flex: 1; }
.toggle-field .tf-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.tf-switch {
  width: 34px; height: 19px;
  border-radius: 100px;
  background: rgba(52,211,153,0.25);
  border: 1px solid rgba(52,211,153,0.4);
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.tf-switch i {
  position: absolute;
  top: 2px; right: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
}

/* Symbol mapping visual */
.mapping-viz {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mapping-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mapping-row .src { color: var(--text-dim); flex: 1; }
.mapping-row .mid {
  color: var(--blue-bright);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
  font-size: 11px;
}
.mapping-row .arr { color: var(--blue-bright); }
.mapping-row .dst { color: var(--text); flex: 1; text-align: right; }
.mapping-row .dst.plain { color: var(--text-2); }
.mapping-row.ok { border-color: rgba(52, 211, 153, 0.2); background: rgba(52,211,153,0.04); }
.mapping-row.ok .src { color: var(--green); flex: 2; }
.mapping-row.ok .dst { color: var(--text-dim); }
@media (max-width: 520px) {
  .mapping-row { flex-wrap: wrap; }
  .mapping-row .dst { text-align: left; }
}

/* Bad/Good compare */
.feat-tag.blue {
  color: var(--blue-bright);
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.3);
}
.feat-tag.green {
  color: var(--green);
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.3);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.compare-col.bad { border-color: rgba(248,113,113,0.2); }
.compare-col.good { border-color: rgba(52,211,153,0.25); background: rgba(52,211,153,0.04); }
.compare-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.compare-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.compare-mark.x { background: rgba(248,113,113,0.14); color: var(--red); }
.compare-mark.v { background: rgba(52,211,153,0.16); color: var(--green); }
.compare-sub { font-size: 11.5px; color: var(--text-dim); margin-bottom: 12px; }
.compare-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-all;
}
.compare-code.ok { color: var(--green); border-color: rgba(52,211,153,0.2); }

/* ─── Ping optimization ─── */
.ping-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.ping-toggle {
  position: relative;
  display: inline-flex;
  margin: 0 auto 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px;
}
.ping-toggle-btn {
  position: relative;
  z-index: 2;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 100px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.ping-toggle-btn.active { color: #fff; }
.ping-toggle-thumb {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  background: var(--blue);
  border-radius: 100px;
  box-shadow: 0 6px 18px -6px rgba(59,130,246,0.7);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.ping-toggle-thumb.right { transform: translateX(100%); }

.ping-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .ping-cards { grid-template-columns: 1fr; } }
.ping-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.28s ease;
  opacity: 0.55;
}
.ping-card.active {
  opacity: 1;
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.ping-card.turbo.active {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 0 1px rgba(52,211,153,0.2), 0 20px 50px -20px rgba(52,211,153,0.25);
}
.ping-card.active:not(.turbo) {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 20px 50px -20px rgba(59,130,246,0.25);
}
.ping-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ping-card-name { font-size: 15px; font-weight: 500; color: var(--text); }
.ping-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.ping-card-tag.custom { color: var(--green); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.ping-card-value {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue-bright);
  margin-bottom: 20px;
  line-height: 1;
}
.ping-card-value.turbo { color: var(--green); }
.ping-card-value .unit { font-size: 18px; color: var(--text-dim); margin-left: 4px; }
.ping-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}
.ping-card-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text-2);
}
.ping-card-list .d {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ping-card-list .d.blue { background: var(--blue-bright); }
.ping-card-list .d.green { background: var(--green); }
.ping-card-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ping-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
}

.ping-banner {
  position: relative;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
@media (max-width: 760px) {
  .ping-banner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
}
.ping-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 120% at 0% 0%, rgba(59,130,246,0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.ping-banner > *:not(.ping-banner-glow) { position: relative; z-index: 1; }
.ping-banner-icon {
  font-size: 28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 14px;
  flex-shrink: 0;
}
@media (max-width: 760px) { .ping-banner-icon { margin: 0 auto; } }
.ping-banner-body h3 { font-size: 19px; margin-bottom: 8px; }
.ping-banner-body p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.ping-banner-cta { flex-shrink: 0; }
@media (max-width: 760px) { .ping-banner-cta { justify-content: center; } }

/* Telegram preview */
.tg-preview {
  margin-top: 20px;
  background: linear-gradient(180deg, #1A2333 0%, #0E1626 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-sans);
}
.tg-msg {
  background: #182333;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 6px;
  border-bottom-right-radius: 4px;
  max-width: 90%;
  margin-left: auto;
}
.tg-msg .tg-head {
  font-weight: 600;
  color: var(--blue-bright);
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tg-msg.alert { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); }
.tg-msg.alert .tg-head { color: var(--red); }
.tg-msg.alert.critical {
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 0 1px rgba(248,113,113,0.15), 0 10px 30px -12px rgba(248,113,113,0.45);
  animation: alertPulse 1.8s ease-in-out infinite;
}
.tg-msg.alert.critical .tg-head { color: #FCA5A5; font-size: 12px; }
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(248,113,113,0.15), 0 10px 30px -12px rgba(248,113,113,0.45); }
  50% { box-shadow: 0 0 0 1px rgba(248,113,113,0.4), 0 10px 36px -10px rgba(248,113,113,0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .tg-msg.alert.critical { animation: none; }
}
.tg-msg.exec .tg-head { color: var(--green); }
.tg-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); display: block; margin-top: 4px; }

/* ─── Pricing ─── */
.pricing-wrap {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.pricing-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.1),
    0 30px 80px -20px rgba(0,0,0,0.5),
    0 0 100px -30px var(--blue-glow);
}
.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.4), transparent 30%, transparent 70%, rgba(59,130,246,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pricing-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 100px;
}
.pricing-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pricing-price .amount {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #B3BBCE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-price .period {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}
.pricing-tagline { color: var(--text-2); margin-bottom: 28px; font-size: 14px; }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.pricing-features li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
  display: grid; place-items: center;
  margin-top: 2px;
}
.pricing-features li .check::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg) translate(1px, -1px);
}
.pricing-features li .highlight {
  color: var(--blue-bright);
  font-weight: 500;
}
.pricing-cta {
  width: 100%;
  justify-content: center;
}
.pricing-foot {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ─── FAQ ─── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgba(59,130,246,0.3); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--blue-bright); }
.faq-icon {
  width: 22px; height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-2);
  border-radius: 1px;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; transition: transform 0.2s ease; }
.faq-item.open .faq-icon { background: var(--blue); border-color: var(--blue); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ─── Final CTA ─── */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59,130,246,0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(56px, 8vw, 96px) 32px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 70%);
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { font-size: 17px; max-width: 540px; margin: 0 auto 32px; }
.final-cta .since {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 24px;
  letter-spacing: 0.08em;
}

/* ─── Footer ─── */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.55;
}
.footer-site {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue-bright);
  transition: color 0.15s ease;
}
.footer-site:hover { color: var(--text); }
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.18s ease;
}
.footer-socials a:hover {
  color: #fff;
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.12);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }

/* Company block */
.footer-company p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.footer-company .footer-company-name {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-company a {
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-company a:hover { color: var(--text); }

/* Legal block */
.footer-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) { .footer-legal { grid-template-columns: 1fr; gap: 28px; } }
.footer-legal-block h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-legal-block p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.footer-legal-block p:last-child { margin-bottom: 0; }
.footer-legal-block a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-block a:hover { color: var(--blue-bright); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.footer-bottom .risk {
  max-width: 720px;
  line-height: 1.55;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.footer-bottom-links a:hover { color: var(--blue-bright); }

/* ─── Grid bg overlay (subtle) ─── */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* selection */
::selection { background: rgba(59,130,246,0.4); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
