/* Landing page */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav-links { display: none; gap: 28px; margin-left: auto; font-size: 0.9rem; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-right { margin-left: 12px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
@media (min-width: 860px) { .hero { padding: 104px 0 88px; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent);
}
.glow { position: absolute; border-radius: 50%; }
.glow-1 { width: 620px; height: 620px; top: -160px; left: -160px; background: radial-gradient(circle, var(--glow-1), transparent 70%); }
.glow-2 { width: 520px; height: 520px; bottom: -180px; right: -140px; background: radial-gradient(circle, var(--glow-2), transparent 70%); }
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border-2); font-size: 0.78rem; font-weight: 500; color: var(--text-2); background: var(--card);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-dim); }
.badge.down .dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-dim); }
.hero h1 {
  margin: 22px 0 18px; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; font-weight: 900;
  letter-spacing: -0.035em; color: var(--strong); text-wrap: balance;
}
.hero-sub { font-size: 1.08rem; color: var(--text-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Signal-flow visual */
.flow { padding: 22px; position: relative; box-shadow: var(--shadow); }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flow-title { font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.flow-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.node {
  border: 1px solid var(--border); border-radius: 12px; background: var(--card-2); padding: 12px 14px;
  display: grid; gap: 2px; min-width: 0;
}
.node b { font-size: 0.86rem; color: var(--strong); font-weight: 700; }
.node small { font-size: 0.74rem; color: var(--text-3); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node.hub { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim)); }
.outs { display: grid; gap: 8px; }
.out { display: flex; align-items: center; gap: 10px; }
.out .pdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.wire { width: 28px; height: 2px; background: linear-gradient(90deg, var(--grad-a), var(--grad-c)); border-radius: 2px; position: relative; overflow: hidden; }
.wire::after { content: ""; position: absolute; inset: 0; width: 40%; background: rgba(255,255,255,.75); animation: wire 1.6s linear infinite; }
@keyframes wire { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .wire::after { animation: none; display: none; } }
.flow-left { display: grid; gap: 10px; }
.flow-meter { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meter { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.meter b { display: block; font-family: var(--mono); font-size: 1rem; color: var(--strong); }
.meter span { font-size: 0.72rem; color: var(--text-3); }
@media (max-width: 520px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow .wire { width: 2px; height: 18px; justify-self: center; }
}

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 28px 16px; }
@media (min-width: 860px) { .stats-inner { grid-template-columns: repeat(4, 1fr); padding: 32px 28px; } }
.stat b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--strong); }
.stat span { font-size: 0.85rem; color: var(--text-2); }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 860px) { .section { padding: 104px 0; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--strong); text-wrap: balance; }
.section-head p { color: var(--text-2); font-size: 1.02rem; }

.features { display: grid; gap: 16px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.f-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-dim); color: var(--cyan); margin-bottom: 18px; }
.feature:nth-child(even) .f-icon { background: var(--violet-dim); color: var(--violet); }
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.06rem; font-weight: 700; color: var(--strong); margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--text-2); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--cyan);
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 6px; background: var(--cyan-dim);
}
.step h3 { font-size: 1.06rem; color: var(--strong); margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-2); }

.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.proto { overflow: hidden; }
.proto-row { display: grid; gap: 6px; padding: 18px 22px; border-top: 1px solid var(--border); }
.proto-row:first-child { border-top: none; }
@media (min-width: 760px) { .proto-row { grid-template-columns: 150px 1fr 220px; align-items: center; gap: 20px; } }
.proto-row b { color: var(--strong); font-size: 0.95rem; }
.proto-row code { font-family: var(--mono); font-size: 0.82rem; color: var(--cyan); overflow-wrap: anywhere; }
.proto-row span { font-size: 0.85rem; color: var(--text-2); }

.cta { padding: 44px 26px; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 760px) { .cta { padding: 64px 40px; } }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim)); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }
.cta .hero-actions { justify-content: center; margin: 0; }

.footer { border-top: 1px solid var(--border); padding: 36px 0; font-size: 0.86rem; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
