/* ============================================================
   Mavryx — monochrome neo-brutalist theme, crimson accent
   Theme variables: edit these to retheme the whole site.
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #171717;          /* near-black */
  --ink-soft: #595959;
  --accent: #e11d48;       /* crimson */
  --accent-dark: #be123c;
  --accent-tint: #fce8ed;
  --bg: #fafafa;
  --bg-tint: #f0f0ef;
  --bg-hero: #ebebe9;
  --bg-footer: #0d0d0d;
  --border: #d6d6d3;
  --card: #ffffff;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;           /* hard corners — brutalist signature */
  --hard-shadow: 4px 4px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 1px 6px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Mono display headings — brutalist signature */
h1, h2 {
  font-family: var(--mono);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 { font-size: 1.8rem; margin-bottom: 12px; }
h3, h4 { line-height: 1.25; font-weight: 700; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--mono);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.25);
}
.btn-primary:hover { transform: translate(-1px, -1px); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35);
}
.btn-light:hover { background: #f43f5e; }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }

/* ============ Nav ============ */
.nav {
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-links a:hover { color: var(--accent); }

/* ============ Hero ============ */
.hero {
  background:
    /* tight scanlines */
    repeating-linear-gradient(to bottom, transparent 0, transparent 5px, rgba(23, 23, 23, 0.035) 5px, rgba(23, 23, 23, 0.035) 6px),
    var(--bg-hero);
  padding: 74px 0 96px;
  border-bottom: 2px solid var(--ink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.3rem; margin-bottom: 18px; }
.lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Hero visual: P2P sync diagram ---- */
.sync-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.device {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.device-bar {
  padding: 8px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg-tint);
}
.off-badge, .on-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border: 1.5px solid currentColor;
}
.off-badge { color: var(--accent-dark); }
.on-badge { color: #15803d; }

.device-doc { padding: 12px; flex: 1; }
.doc-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}
.doc-line { font-size: 0.7rem; color: var(--ink-soft); padding: 3px 0; }
.doc-line i { font-size: 0.62rem; color: var(--ink-soft); opacity: 0.8; }
.ins-a { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.ins-b { background: #e7f3ea; color: #166534; font-weight: 600; }

.device-foot {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-top: 1px solid var(--border);
}

.sync-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.arr {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.25); } }
.sync-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  line-height: 1.5;
}
.sync-chip {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  white-space: nowrap;
}

.merge-result {
  grid-column: 1 / -1;
  margin-top: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--mono);
  box-shadow: 4px 4px 0 var(--accent);
}
.merge-result b { display: block; font-size: 0.66rem; color: #fca5b5; margin-bottom: 3px; }
.merge-result span { font-size: 0.68rem; color: rgba(255, 255, 255, 0.85); }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 650px; margin-bottom: 44px; }

/* ============ Cards ============ */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--hard-shadow);
}
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: var(--accent-tint);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--hard-shadow);
}
.step-num {
  font-family: var(--mono);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px 0; }
.stat {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 26px;
  text-align: center;
  box-shadow: var(--hard-shadow);
}
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat p { color: var(--ink-soft); font-size: 0.9rem; }

/* ============ Testimonial ============ */
.quote-card {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 36px 40px;
  box-shadow: 6px 6px 0 var(--accent);
  max-width: 800px;
  margin: 0 auto;
}
.quote-card blockquote p { font-size: 1.08rem; margin-bottom: 22px; }
.quote-card footer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.quote-card footer strong { display: block; font-size: 0.95rem; }
.quote-card footer span { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Trust badges ============ */
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 7px 14px;
}

/* ============ CTA (dark panel, crimson button) ============ */
.section-cta { background: var(--ink); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 640px; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.72); margin: 12px 0 28px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 2px solid #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
}
.cta-form input:focus { outline: 3px solid rgba(225, 29, 72, 0.6); }
.cta-confirm { font-family: var(--mono); font-weight: 700; color: #fca5b5 !important; }

/* ============ Footer ============ */
.footer { background: var(--bg-footer); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; }
.footer .logo { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--mono);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; font-size: 0.8rem; font-family: var(--mono); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 1.9rem; }
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr; }
  .sync-diagram { grid-template-columns: 1fr; }
  .sync-mid { flex-direction: row; }
  .arr { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
  h2 { font-size: 1.45rem; }
}
