:root {
  --green: #39ff88;
  --green-dim: #1f9e55;
--green-link: #127540;
  --black: #0a0a0a;
  --ink: #111411;
  --paper: #f7f7f5;
  --grey: #8a8f8a;
  --grey-text: #5c615c;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 { text-wrap: balance; }

.article p, .feature p { hyphens: auto; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--green-dim);
  outline-offset: 2px;
  border-radius: 4px;
}

.dl-card:focus-visible, .feature-link:focus-visible { outline-offset: 4px; }

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark { width: 26px; height: 26px; }

.nav nav { display: flex; gap: 1.5rem; align-items: center; }
.nav nav > a { color: var(--ink); text-decoration: none; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--black);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--black);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 0 24px rgba(57, 255, 136, 0.45);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(57, 255, 136, 0.06), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(17, 20, 17, 0.04) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(17, 20, 17, 0.04) 79px 80px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 2rem 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: #444a44;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.cta-group { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.cta-note { font-size: 0.85rem; color: var(--grey-text); }

.facts {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  color: var(--grey-text);
}
.facts li { position: relative; padding-left: 1.1rem; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dim);
}
.facts strong { color: var(--ink); font-size: 1.05rem; display: block; }

/* Radar */
.radar {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--green-dim);
  border-radius: 50%;
  opacity: 0.5;
}
.ring.r2 { inset: 26px; }
.ring.r3 { inset: 52px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(57, 255, 136, 0.55), rgba(57, 255, 136, 0) 70deg);
  animation: sweep 3.5s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.blip {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: ping 3.5s ease-out infinite;
}
.blip.b1 { top: 30px; left: 95px; animation-delay: 0.2s; }
.blip.b2 { top: 90px; left: 40px; animation-delay: 1.4s; }
.blip.b3 { top: 60px; left: 120px; animation-delay: 2.4s; }

@keyframes ping {
  0%, 15% { opacity: 1; }
  60%, 100% { opacity: 0.1; }
}

/* Sections */
.features, .download {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.features h2, .download h2, .teasers h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.features h2::before, .teasers h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-dim);
  margin: 0 auto 1rem;
}

.download h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  margin: 0 auto 1rem;
}

.teasers {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature {
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: #555b55; font-size: 0.95rem; }

.feature:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 20, 17, 0.06);
}

/* Download */
.download {
  background: var(--black);
  color: #fff;
  border-radius: 24px;
  margin-bottom: 4rem;
  box-shadow: 0 0 60px rgba(57, 255, 136, 0.08) inset;
}

.download h2 { color: #fff; }
.download .lead { color: #b9bfb9; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.dl-card {
  background: #161816;
  border: 1px solid #2a2d2a;
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s, transform 0.15s;
}

.dl-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.dl-os { font-size: 1.2rem; font-weight: 700; }
.dl-meta { color: #9aa09a; font-size: 0.85rem; }
.dl-action { color: var(--green); font-weight: 600; margin-top: 0.6rem; }

.dl-note {
  text-align: center;
  color: #99a099;
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Footer */
footer {
  border-top: 1px solid #e4e4e0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-text);
}
footer a { color: var(--ink); }
footer p { margin: 0.3rem 0; }

@media (max-width: 600px) {
  .facts { gap: 1.2rem; }
  .hero { padding-top: 3rem; }
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.legal h1 { letter-spacing: -0.02em; }
.legal a { color: var(--green-link); }

/* Article pages */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--grey-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.article h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.6rem;
}

.article h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }

.article p { color: #333833; margin: 0 0 1rem; }
.article li { margin-bottom: 0.4rem; }

.link-list { list-style: none; padding: 0; }
.link-list li {
  border-bottom: 1px solid #e4e4e0;
  padding: 0.75rem 0;
}
.link-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.link-list a:hover { color: var(--green-link); }

.related {
  margin-top: 3rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 14px;
}
.related h2 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.related ul { margin: 0; padding-left: 1.1rem; }
.related a { color: var(--green-link); }

.feature-link { text-decoration: none; color: var(--ink); display: block; }
.feature-link:hover h3 { color: var(--green-link); }

.dl-inline {
  max-width: var(--max);
  margin: 0 auto 4rem;
}

@media (max-width: 600px) {
  .nav { padding: 0.9rem 1.1rem; }
  .nav nav { gap: 0.9rem; font-size: 0.9rem; }
  .nav .btn-sm { display: none; }
}

@media (max-width: 480px) {
  .logo { font-size: 1rem; }
  .logo-mark { width: 22px; height: 22px; }
  .nav nav { gap: 0.7rem; font-size: 0.85rem; }
  .hero { padding: 3rem 1.1rem 3rem; }
  .features, .download, .teasers { padding-left: 1.1rem; padding-right: 1.1rem; }
  .download { border-radius: 16px; }
  .facts { gap: 1rem; font-size: 0.85rem; }
  .article { padding: 1.4rem 1.1rem 2.5rem; }
  .page-hero svg { max-width: 260px; }
}

/* ---- SVG graphics & animations ---- */
.page-hero {
  display: flex;
  justify-content: center;
  margin: 0 0 1.2rem;
}
.page-hero svg { width: 100%; max-width: 320px; height: auto; }

.flow-art {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}
.flow-art svg { width: 100%; max-width: 560px; height: auto; }

.flow-line {
  stroke-dasharray: 6 6;
  animation: dashmove 1.1s linear infinite;
}
@keyframes dashmove { to { stroke-dashoffset: -24; } }

.node-dot { animation: pulsedot 2.2s ease-in-out infinite; }
.node-dot.d2 { animation-delay: 0.7s; }
.node-dot.d3 { animation-delay: 1.4s; }
@keyframes pulsedot {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.sweep-anim { transform-origin: center; animation: sweep 3.5s linear infinite; }

.mock-float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.f-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.f-icon .accent { color: var(--green-dim); }
.feature:hover .f-icon { color: var(--green-dim); }
.feature:hover .f-icon .accent { color: var(--green); }

.dl-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0.4rem;
  color: var(--green);
}

.app-preview {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  text-align: center;
}
.app-preview svg {
  width: 100%;
  max-width: 640px;
  height: auto;
}
.app-preview p { color: var(--grey-text); font-size: 0.85rem; margin-top: 0.8rem; }

.hero-art {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-art svg { width: 100%; max-width: 340px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .blip, .flow-line, .node-dot, .sweep-anim, .mock-float { animation: none; }
}

/* Inline body graphics */
.inline-art {
  display: flex;
  justify-content: center;
  margin: 1.8rem 0;
}
.inline-art svg { width: 100%; max-width: 300px; height: auto; }
