/* ZeSIM public landing page. Shares the admin design language (crimson accent,
   Inter + Space Grotesk, [data-theme="dark"]) but is standalone — no admin CSS. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg2: #f7f7fa;
  --panel: #ffffff;
  --border: #ececef;
  --text: #17181c;
  --muted: #5f6070;
  --faint: #9698a6;
  --accent: #e11d48;
  --accent-rgb: 225, 29, 72;
  --accent-2: #7c3aed;
  --shadow-sm: 0 1px 2px rgba(20,20,40,.05), 0 8px 20px -14px rgba(20,20,40,.2);
  --shadow-lg: 0 2px 4px rgba(20,20,40,.04), 0 30px 60px -30px rgba(20,20,40,.28);
  --radius: 16px;
  --ok: #16a34a;
}

[data-theme="dark"] {
  --bg: #0f1014;
  --bg2: #15161c;
  --panel: #191a21;
  --border: #262832;
  --text: #f2f2f5;
  --muted: #a0a2b0;
  --faint: #74768a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,.9);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(var(--accent-rgb), .6);
}
.nav-links { display: flex; gap: 26px; margin-left: 18px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { color: var(--text); background: var(--bg2); }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }
.nav-burger { display: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), .8); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .9); }
.btn.ghost { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--bg2); }

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 12px;
  background: var(--text); color: var(--bg);
  transition: transform .12s, opacity .15s;
}
.store-btn:hover { transform: translateY(-1px); opacity: .9; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 15px; }
.store-btn small { font-size: 10.5px; font-weight: 500; opacity: .75; letter-spacing: .02em; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(var(--accent-rgb), .09); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 700; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14.5px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 9px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.phone {
  position: relative; z-index: 2;
  width: 274px; height: 552px; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2a2c36, #14151a);
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px; background: #14151a; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; background: var(--panel);
  padding: 42px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.ps-head { display: flex; align-items: center; justify-content: space-between; }
.ps-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.ok { background: rgba(22,163,74,.14); color: var(--ok); }

.ps-card {
  display: flex; align-items: center; gap: 12px; padding: 13px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg2);
}
.ps-flag { font-size: 26px; line-height: 1; }
.ps-name { font-weight: 600; font-size: 14.5px; }
.ps-sub { font-size: 12.5px; color: var(--faint); }

.ps-meter { padding: 13px; border: 1px solid var(--border); border-radius: 14px; }
.ps-meter-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 9px; }
.ps-meter-top span:first-child { font-weight: 600; }
.ps-meter-top span:last-child { color: var(--faint); }
.ps-bar { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.ps-qr { margin-top: auto; display: grid; place-items: center; gap: 9px; padding: 16px 0 6px; }
.qr-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
  width: 108px; padding: 11px; background: #fff; border-radius: 12px;
}
.qr-grid span { aspect-ratio: 1; border-radius: 2px; background: transparent; }
.qr-grid span.on { background: #14151a; }
.ps-qr-label { font-size: 11.5px; color: var(--faint); }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 1; }
.blob-a { width: 320px; height: 320px; background: rgba(var(--accent-rgb), .5); top: 6%; right: 4%; }
.blob-b { width: 260px; height: 260px; background: rgba(124, 58, 237, .42); bottom: 8%; left: 0; }

/* Stat strip */
.stat-strip {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 14px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 11px; background: rgba(var(--accent-rgb), .1); color: var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 15px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); transition: transform .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card-ico { font-size: 26px; margin-bottom: 15px; }
.card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Coverage */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.coverage h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; margin-bottom: 16px; }
.coverage p { color: var(--muted); font-size: 16.5px; }
.tick-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 28px; font-size: 15px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.flag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.flag-chip span { font-size: 17px; }
.flag-chip.more { color: var(--accent); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px; background: transparent; border: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: var(--text); text-align: left;
}
.chev { width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -4px; }
.faq-item.open .chev { transform: rotate(-135deg); margin-top: 3px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq-a a { color: var(--accent); font-weight: 500; }

/* CTA band */
.cta-band { padding: 76px 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.cta-band p { margin-top: 10px; opacity: .9; font-size: 16.5px; }
.cta-band .btn.primary { background: #fff; color: var(--accent); box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.cta-band .btn.ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.2); }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 26em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-cols a { display: block; padding: 5px 0; color: var(--muted); font-size: 14.5px; transition: color .15s; }
.footer-cols a:hover { color: var(--accent); }
.footer-base { padding: 20px 24px 30px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .hero-inner, .coverage { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { min-height: 0; order: -1; }
  .phone { width: 234px; height: 470px; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 18px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 15.5px; }
  .nav-burger { display: grid; }
  .hero { padding-top: 52px; }
  .section { padding: 68px 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
