@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #0b0f14;
  --ink-2: #131a22;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --text: #14181f;
  --muted: #5b6472;
  --line: #e5e7eb;

  --red: #e8344a;
  --red-dim: #fdecee;
  --red-border: #f7c7cd;

  --green: #12a16b;
  --green-dim: #e8f8f1;
  --green-border: #b7e9d3;

  --amber: #b45309;
  --amber-dim: #fef3e2;

  --blue: #2563eb;
  --blue-dim: #eaf1fe;

  --content: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

p {
  line-height: 1.65;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 78% 15%, #1a0d10 0%, var(--ink) 55%),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f6a3ae;
  background: rgba(232, 52, 74, 0.12);
  border: 1px solid rgba(232, 52, 74, 0.35);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 17px;
  color: #b6bec9;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #1b232c;
  border: 1px solid #2a333e;
  cursor: default;
}
.store-badge svg {
  flex-shrink: 0;
}
.store-badge .lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-badge .small {
  font-size: 10.5px;
  color: #8a94a1;
  letter-spacing: 0.02em;
}
.store-badge .big {
  font-size: 15px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
}

.notify-link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}
.notify-link:hover {
  border-color: #fff;
}

.radar {
  order: 0;
  max-width: 300px;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 15.5px;
}
.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
}

/* Context / narrative */
.context {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.context .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.context h2 {
  font-size: clamp(24px, 3vw, 32px);
}
.context .copy p {
  font-size: 16px;
  color: #2c333c;
  margin-bottom: 18px;
}
.context .copy p:last-child {
  margin-bottom: 0;
}
.context .copy strong {
  color: var(--text);
}

/* Steps (real sequence — trigger -> broadcast -> respond -> resolve) */
.steps-list {
  display: flex;
  flex-direction: column;
}
.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step-row:last-child {
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
}
.step-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step-body p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 58ch;
}

/* Alternating feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}
.feature-row.reverse .feature-visual {
  order: 2;
}
.feature-row.reverse .feature-copy {
  order: 1;
}
.feature-copy h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.feature-copy p {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}
.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.feature-tag.red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid var(--red-border);
}
.feature-tag.green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.feature-tag.amber {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid #f3d9ae;
}
.feature-tag.blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid #bfd7fb;
}

.feature-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.feature-visual svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
}

/* Communities strip */
.communities {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.chip .sw {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Download / coming soon banner */
.download {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  margin: 0 28px;
  max-width: calc(var(--content) - 56px);
  margin-left: auto;
  margin-right: auto;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.download h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}
.download p {
  color: #aab2be;
  font-size: 15px;
  max-width: 42ch;
  margin-bottom: 26px;
}
.notify-form {
  display: flex;
  gap: 10px;
  max-width: 380px;
}
.notify-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #2a333e;
  background: #141b23;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.notify-form input::placeholder {
  color: #6b7480;
}
.notify-form button {
  padding: 13px 18px;
  border-radius: 12px;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.notify-form button:hover {
  background: #d42a3f;
}
.notify-note {
  font-size: 12.5px;
  color: #6b7480;
  margin-top: 10px;
}
.download-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Privacy page ---------- */
.legal-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 40px;
}
.legal-hero .kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
}
.legal-hero h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 12px;
}
.legal-hero .updated {
  color: var(--muted);
  font-size: 14px;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 48px;
}
.legal-toc p.label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 13.5px;
}
.legal-toc li a {
  color: var(--text);
  font-weight: 500;
}
.legal-toc li a::before {
  content: counter(toc) ". ";
  color: var(--muted);
}
.legal-toc li a:hover {
  color: var(--red);
}
.legal-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-section h2 {
  font-size: 19px;
  margin-bottom: 14px;
}
.legal-section h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.legal-section p {
  color: #2c333c;
  font-size: 15px;
  margin-bottom: 14px;
}
.legal-section ul {
  margin: 0 0 14px 20px;
  color: #2c333c;
  font-size: 15px;
}
.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-section li strong {
  color: var(--text);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 13.5px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--surface);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.callout {
  background: var(--amber-dim);
  border: 1px solid #f3d9ae;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #7a4406;
  margin-bottom: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.contact-card p {
  margin-bottom: 6px;
  font-size: 14.5px;
}
.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .radar {
    order: -1;
    max-width: 300px;
  }
  .context .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-copy {
    order: initial;
  }
  .feature-visual {
    max-width: 320px;
    margin: 0 auto;
  }
  .download {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    margin: 0 20px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a,
  .nav-links .nav-cta {
    width: 100%;
    padding: 16px 28px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  section {
    padding: 56px 0;
  }
  .notify-form {
    flex-direction: column;
  }
}
