/* NetGlobe landing-page styles. Dark, system-font, zero external deps —
   matches the side-panel palette so a visitor moving from the page to the
   extension feels continuity. */

:root {
  --bg:           #0a0e1a;
  --bg-elev:      #0d1220;
  --bg-elev-2:    #131a2c;
  --border:       #1a2238;
  --border-soft:  #1f2a44;
  --text:         #e0e6ed;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;
  --accent:       #4fc3f7;   /* cyan, matches the stat-number colour in the panel */
  --amber:        #f59e0b;
  --red:          #dc2626;
  --max-w:        1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 64px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

p { color: var(--text); margin-bottom: 14px; }
p.muted { color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 56ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
}

.btn:hover {
  background: var(--bg-elev-2);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #061018;
}

.btn-primary:hover {
  background: #7ad3fa;
  border-color: #7ad3fa;
  color: #061018;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-disabled:hover {
  background: var(--bg-elev);
}

.btn-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  flex-basis: 100%;
}

/* ---------- Hero illustration (SVG arc) ---------- */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: radial-gradient(ellipse at 30% 30%, rgba(79, 195, 247, 0.10), transparent 60%),
              radial-gradient(ellipse at 75% 70%, rgba(245, 158, 11, 0.08), transparent 60%),
              var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hero-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art .arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: arcDraw 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(79, 195, 247, 0.55));
}

.hero-art .arc-2 { animation-delay: 0.8s; stroke: var(--amber); filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.55)); }
.hero-art .arc-3 { animation-delay: 1.6s; stroke: #ec4899; filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.55)); }

.hero-art .dot { fill: var(--text); }
.hero-art .dot-origin { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.hero-art .dot-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0.5;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes arcDraw {
  0%   { stroke-dashoffset: 280; opacity: 1; }
  60%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

@keyframes pulse {
  0%   { r: 4; opacity: 0.6; }
  100% { r: 24; opacity: 0; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79, 195, 247, 0.10);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 14px;
}

.feature p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ---------- Demo block ---------- */
.demo {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.demo img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-caption {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-elev-2);
}

/* ---------- Privacy promise ---------- */
.promise {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.06), rgba(79, 195, 247, 0.01));
  border: 1px solid rgba(79, 195, 247, 0.25);
  border-radius: 12px;
  padding: 28px;
}

.promise h2 {
  margin-bottom: 14px;
}

.promise ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.promise li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.promise li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- Lineage ---------- */
.lineage {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  align-items: start;
}

@media (max-width: 600px) {
  .lineage { grid-template-columns: 1fr; }
}

.lineage-mark {
  font-size: 28px;
  color: var(--amber);
  line-height: 1;
}

.lineage h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.lineage p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details > div {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.faq details > div p { color: inherit; margin-bottom: 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 12px;
  color: var(--text-dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); text-decoration: none; }

footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Privacy page specifics ---------- */
.doc {
  padding-top: 48px;
}

.doc h2 { margin-top: 36px; margin-bottom: 12px; }
.doc h2:first-of-type { margin-top: 12px; }
.doc h3 { margin-top: 20px; }

.doc p { color: var(--text-muted); }
.doc strong { color: var(--text); }

.doc ul {
  margin: 8px 0 16px 22px;
  color: var(--text-muted);
}

.doc ul li { margin-bottom: 6px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}

.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-elev);
}

.doc td { color: var(--text-muted); }
.doc td code { color: var(--text); }

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev-2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text);
}

.doc-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
