/* ===== MegaDBlock landing — design tokens match the app ===== */
:root {
  --violet: #6B4EFF;
  --violet-deep: #5436E0;
  --teal: #0EA697;
  --coral: #E5466A;
  --amber: #E0922A;
  --bg: #F7F8FD;
  --bg2: #EDEFF7;
  --surface: #ffffff;
  --ink: #1B1A2E;
  --muted: #6E6A86;
  --line: #E5E3F0;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(84, 54, 224, .35);
  --shadow-sm: 0 8px 24px -12px rgba(27, 26, 46, .25);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--violet-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet); margin-bottom: .9rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1rem; border-radius: 999px;
  padding: .85rem 1.6rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--violet), var(--violet-deep) 60%, var(--teal));
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(84,54,224,.5); }
.btn--ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
/* Download APK button — distinct green accent so it stands out from the violet theme */
.btn--dl {
  color: #fff;
  background: linear-gradient(120deg, var(--teal), #1e8e3e);
  box-shadow: 0 18px 50px -20px rgba(14, 166, 151, .55);
}
.btn--dl:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(14, 166, 151, .6); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(247, 248, 253, .8);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
/* Download button shown only inside the mobile dropdown menu */
.nav-dl { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(14,166,151,.18), transparent 60%),
    radial-gradient(900px 500px at 5% 10%, rgba(107,78,255,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 70px 0 80px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 850; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--violet), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; color: var(--muted); }
.hero-meta b { color: var(--ink); }
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700;
  padding: .4rem .85rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* ===== Phone mockup ===== */
.phone {
  position: relative; width: min(280px, 78vw); margin: 0 auto;
  border-radius: 38px; padding: 11px; background: #15131f;
  box-shadow: 0 40px 80px -30px rgba(27,26,46,.6), 0 0 0 2px rgba(255,255,255,.06) inset;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 7px; border-radius: 99px; background: #2a2738; z-index: 2;
}
.phone img { border-radius: 28px; width: 100%; }
.hero-phone { position: relative; }
.hero-phone .glow {
  position: absolute; inset: -10% -10% 0 -10%; z-index: -1; filter: blur(40px);
  background: radial-gradient(closest-side, rgba(107,78,255,.35), transparent 70%);
}

/* ===== Privacy banner ===== */
.privacy-banner {
  background: linear-gradient(120deg, #1c1530, #241a45 55%, #10342f);
  color: #fff; border-radius: 28px; padding: 38px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.privacy-banner .shield-ico {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(140deg, rgba(107,78,255,.35), rgba(14,166,151,.25));
}
.privacy-banner h2 { color: #fff; margin-bottom: .4rem; }
.privacy-banner p { color: rgba(255,255,255,.78); margin: 0; }
.privacy-banner .hl { color: #fff; font-weight: 700; border-bottom: 2px solid var(--teal); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center;
}
.stat .num {
  font-size: 2.3rem; font-weight: 850; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--violet), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ===== Feature cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.card .ico svg { width: 26px; height: 26px; }
.ico--violet { background: linear-gradient(140deg, var(--violet), var(--violet-deep)); }
.ico--teal { background: linear-gradient(140deg, var(--teal), #0b8378); }
.ico--coral { background: linear-gradient(140deg, var(--coral), #c0354f); }
.ico--amber { background: linear-gradient(140deg, var(--amber), #c2761a); }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===== Blocks (what it blocks) ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.chip {
  font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm);
}
.chip b { color: var(--coral); }

/* ===== Screenshots gallery ===== */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 260px; }
.shot figcaption { margin-top: 14px; font-weight: 700; }
.shot figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  font-weight: 800; color: #fff; margin-bottom: 14px;
  background: linear-gradient(140deg, var(--violet), var(--teal));
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--violet); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ===== Download CTA ===== */
.cta-final {
  text-align: center; border-radius: 30px; padding: 64px 30px; color: #fff;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(14,166,151,.3), transparent 60%),
    linear-gradient(120deg, var(--violet-deep), #2c1f55);
  box-shadow: var(--shadow);
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.82); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ===== Download verification (SHA-256) ===== */
.verify {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  justify-content: center; margin-top: 26px; padding: 14px 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px; max-width: 100%;
}
.verify-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .92);
}
.verify-label svg { width: 17px; height: 17px; color: var(--teal); }
.verify code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .8rem; color: #cfe9e4; word-break: break-all; text-align: left;
  background: rgba(0, 0, 0, .25); padding: .35rem .6rem; border-radius: 8px;
}
.copy-hash {
  flex: none; cursor: pointer; font-size: .78rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px; padding: .35rem .8rem; transition: background .15s ease;
}
.copy-hash:hover { background: rgba(255, 255, 255, .24); }
.copy-hash.ok { background: var(--teal); border-color: var(--teal); }

/* ===== Contact ===== */
.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 52px 40px; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.contact .mail-ico {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  margin: 0 auto 18px; color: #fff;
  background: linear-gradient(140deg, var(--violet), var(--teal));
}
.contact .mail-ico svg { width: 30px; height: 30px; }
.contact h2 { margin-bottom: .4rem; }
.contact p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }
.contact .email-btn { word-break: break-word; }
.contact .contact-alt { margin: 1.2rem 0 0; font-size: .92rem; }
.contact .contact-alt a { font-weight: 700; }

/* ===== Footer ===== */
.site-footer { padding: 50px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-meta, .hero-badges { justify-content: center; }
  .hero-phone { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .shots, .steps { grid-template-columns: 1fr 1fr; }
  .privacy-banner { grid-template-columns: 1fr; text-align: center; }
  .privacy-banner .shield-ico { margin: 0 auto; }
}
@media (max-width: 1100px) {
  /* Header: collapse to logo + hamburger only before the row of links gets
     cramped enough to overlap. The wide Download button (which collided with
     the brand on narrow screens) moves into the dropdown menu instead. */
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); padding: 16px 22px 20px; border-bottom: 1px solid var(--line);
    gap: .25rem; box-shadow: var(--shadow-sm); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; white-space: normal; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .nav-links.open .nav-dl {
    display: inline-flex; justify-content: center; width: 100%;
    margin-top: 12px; padding: .9rem 1.4rem; border-bottom: 0; color: #fff;
  }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 44px 0; }
  .brand { font-size: 1.05rem; }
  .grid--3, .grid--2, .shots, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .privacy-banner { padding: 26px; }
  .hero-grid { padding: 48px 0 56px; }
  .cta-final { padding: 48px 22px; }
  .contact { padding: 38px 24px; }
  .footer-grid { flex-direction: column; text-align: center; gap: 14px; }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {
  :root { --radius: 18px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .btn { width: 100%; justify-content: center; }
  .btn--lg { padding: .95rem 1.4rem; }
  .nav-cta .btn { width: auto; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero p.lead { font-size: 1.05rem; }
  .stats { grid-template-columns: 1fr; }
  .privacy-banner { padding: 22px; border-radius: 22px; }
  .cta-final { padding: 40px 18px; border-radius: 24px; }
  .cta-final .btn { width: 100%; }
  .contact { padding: 30px 18px; }
  .verify { padding: 12px 14px; }
  .verify code { font-size: .72rem; }
}

/* ===== Large screens ===== */
@media (min-width: 1280px) {
  .section { padding: 96px 0; }
}
