:root {
  --bg: #000;
  --text: #fff;
  --muted: #9ca3af;
  --dim: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #10b981;
  --violet: #8b5cf6;
  --card: rgba(17, 24, 39, 0.5);
  --max: 80rem;
  --sans: Inter, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.5);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-weight: 700; letter-spacing: -0.03em; font-size: 22px; }
.spark { width: 22px; height: 22px; animation: sparkle 3s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.mail-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.mail-link:hover { color: #fff; }

.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 70% 40%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(500px 280px at 30% 80%, rgba(6, 182, 212, 0.1), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d1d5db;
  font-family: var(--mono);
  font-size: 12px;
}
.spark-inline { color: #b4dcffe6; animation: sparkle 2.5s ease-in-out infinite; }
h1 {
  margin: 22px 0 0;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.magic {
  background: linear-gradient(135deg, #fff, #a8d8ff 40%, #7ec8f0, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
.fade {
  background: linear-gradient(to right, #fff, #737373);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 22px 0 0; max-width: 40rem; color: var(--muted); font-size: clamp(18px, 2vw, 24px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.btn-magic {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #000;
}
.btn-magic:hover { background: #f3f4f6; }
.btn-magic::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skew(-20deg);
  animation: btn-shine 4s ease-in-out infinite;
}
.btn-ghost { background: transparent; color: #fff; border-color: #374151; }
.btn-ghost:hover { border-color: #6b7280; background: rgba(255,255,255,0.05); }
.btn-emerald {
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
}
.btn-emerald:hover { filter: brightness(1.05); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.trust i { color: rgba(34, 197, 94, 0.7); font-style: normal; }

.orbit {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
}
.ring, .ticks {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translate(-50%, -50%);
}
.ring-outer { width: 390px; height: 390px; }
.ring-mid { width: 310px; height: 310px; border-color: rgba(255,255,255,0.12); }
.ring-inner {
  width: 270px;
  height: 270px;
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 60px rgba(59, 130, 246, 0.05);
}
.ticks { width: 390px; height: 390px; animation: spin-center 40s linear infinite; }
.ticks span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  transform-origin: 0 0;
}
.core {
  position: relative;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(0, 0, 0, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.core em { color: var(--cyan); font-style: normal; animation: blink 2.5s ease-in-out infinite; }
.node {
  --a: 0deg;
  --dur: 18s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 310px;
  height: 310px;
  margin: -155px;
  transform: rotate(var(--a));
  animation: orbit var(--dur) linear infinite;
}
.node.chat { --a: 90deg; --c: #06b6d4; --dur: 20s; }
.node.voice { --a: 180deg; --c: #8b5cf6; --dur: 22s; }
.node.social { --a: 270deg; --c: #10b981; --dur: 24s; }
.node.email { --c: #3b82f6; }
.node b {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 52px;
  margin-left: -36px;
  margin-top: -26px;
  border-radius: 14px;
  background: rgba(0,0,0,0.82);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
  font-size: 12px;
  font-weight: 600;
  transform: rotate(calc(var(--a) * -1));
  animation: upright var(--dur) linear infinite;
}

section { position: relative; padding: 112px 0; overflow: hidden; }
.center { text-align: center; }
h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}
.sub { margin: 18px auto 0; max-width: 46rem; color: var(--muted); font-size: 20px; }
.wash { position: absolute; inset: 0; background: linear-gradient(to bottom, #000, rgba(17,24,39,.5), #000); pointer-events: none; }
.stack { position: relative; display: grid; gap: 24px; margin-top: 56px; }
.layer {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(6px);
}
.layer.hot {
  background: linear-gradient(to bottom right, rgba(59,130,246,.1), rgba(6,182,212,.1));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}
.mark {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #1f2937;
}
.layer.hot .mark { background: linear-gradient(to bottom right, var(--blue), var(--cyan)); }
.layer h3 { margin: 0 0 6px; font-size: 24px; }
.layer p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(0,0,0,.35);
  font-family: var(--mono);
  font-size: 12px;
  color: #d1d5db;
}

.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.45);
  overflow: hidden;
}
.card h3 { margin: 16px 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(to bottom right, var(--blue), var(--cyan));
}
.icon.teal { background: linear-gradient(to bottom right, var(--cyan), var(--teal)); }
.icon.green { background: linear-gradient(to bottom right, var(--teal), #22c55e); }
.stats { display: grid; gap: 10px; margin-top: 18px; }
.stat { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.stat b { font-variant-numeric: tabular-nums; }
.stat em { color: #34d399; font-style: normal; font-family: var(--mono); font-size: 12px; }
.metrics { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.metrics li { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: #d1d5db; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.badges span {
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  background: rgba(0,0,0,.5);
  border: 1px solid #1f2937;
  font-family: var(--mono);
  font-size: 12px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 14px;
}
.tag.blue { color: var(--blue); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); }
.tag.cyan { color: var(--cyan); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.3); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.feature {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.3);
  border: 1px solid #1f2937;
}
.feature:hover { border-color: #374151; }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.mini {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(to bottom right, rgba(59,130,246,.25), rgba(6,182,212,.15));
}

.about { max-width: 52rem; margin: 72px auto 0; text-align: center; }
.about p { color: #d1d5db; font-size: 18px; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: linear-gradient(to right, rgba(37, 99, 235, 0.25), rgba(0,0,0,.4), rgba(220, 38, 38, 0.25));
  font-family: var(--mono);
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 22px;
}
.flag i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.flag i:first-child { background: #2563eb; }
.flag i:last-child { background: #dc2626; }
.sovereign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.sovereign article {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.4);
}
.sovereign h3 { margin: 14px 0 8px; font-size: 22px; }
.sovereign p { margin: 0; color: var(--muted); }
.hi { color: #fff; font-family: var(--mono); font-size: 13px; }

.cta {
  position: relative;
  text-align: center;
  padding: 28px;
}
.cta-box {
  border: 1px solid #1f2937;
  border-radius: 28px;
  padding: 64px 28px;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(16,185,129,.16), transparent 60%),
    #050505;
}

footer { position: relative; border-top: 1px solid #1f2937; }
.foot {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 64px 0 28px;
}
footer h2, footer h4 { margin: 0 0 14px; font-size: 15px; }
footer p, footer li { color: var(--muted); font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 36px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  font-size: 14px;
}
.legal-row p { margin: 0; font-family: var(--mono); }

.legal { padding: 72px 0 40px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h2 { font-size: 28px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: #7dd3fc; }

dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 16px);
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 18px;
  background: #0b1220;
  color: #fff;
  padding: 12px 16px;
}
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog h2 { font-size: 26px; margin: 0; }
dialog p { margin: 6px 0 0; color: #94a3b8; }
dialog form { display: grid; gap: 4px; margin-top: 8px; }
dialog label { gap: 2px; }
dialog textarea { min-height: 40px; }
dialog .btn { min-height: 42px; }
dialog input, dialog textarea { padding: 8px 10px; }
dialog .actions { margin-top: 4px; }
label { display: grid; gap: 6px; font-size: 14px; color: #cbd5e1; }
input, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.7);
}
textarea { min-height: 110px; resize: vertical; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
}
.status { min-height: 1.2em; color: #7dd3fc; font-size: 14px; }
.status.bad { color: #fca5a5; }

@media (max-width: 980px) {
  .hero-grid, .perf, .features, .sovereign, .foot { grid-template-columns: 1fr; }
  .orbit { height: 360px; }
  .ring-outer, .ticks { width: 300px; height: 300px; }
  .ring-mid, .node { width: 240px; height: 240px; margin: -120px; }
  .ring-mid { margin: 0; }
  .ring-inner { width: 200px; height: 200px; }
  .mail-link span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark, .spark-inline, .magic, .btn-magic::after, .ticks, .node, .node b, .core em { animation: none; }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0); }
  50% { opacity: 0.75; transform: scale(1.08) rotate(12deg); }
}
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes btn-shine { 0% { left: -75%; } 40%, 100% { left: 125%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-center {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit {
  from { transform: rotate(var(--a)); }
  to { transform: rotate(calc(var(--a) + 360deg)); }
}
@keyframes upright {
  from { transform: rotate(calc(var(--a) * -1)); }
  to { transform: rotate(calc(var(--a) * -1 - 360deg)); }
}
@keyframes blink { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
