/* ZapMate website. One stylesheet, no scripts, nothing loaded from other sites. */
@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0713;
  --bg-soft: #100b1c;
  --surface: #161025;
  --surface-2: #1e1633;
  --line: #2b2144;
  --text: #f4f0fb;
  --muted: #aaa1c2;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ec4899;
  --orange: #ff8a1f;
  --brand: linear-gradient(120deg, #8b5cf6 0%, #d946ef 48%, #ff8a1f 100%);
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 7, 19, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav a.pill { color: var(--text); padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(520px 380px at 22% 38%, rgba(124, 58, 237, 0.34), transparent 70%),
    radial-gradient(520px 380px at 78% 30%, rgba(236, 72, 153, 0.18), transparent 70%),
    radial-gradient(420px 300px at 62% 70%, rgba(255, 138, 31, 0.10), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #d9c8ff; padding: 6px 14px; border-radius: 999px; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.3); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; margin: 20px 0 20px; }
.hero h1 em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 34px rgba(168, 85, 247, 0.35); }
.button.soon { background: var(--surface-2); border-color: var(--line); color: var(--text); cursor: default; }
.button.soon small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.button.soon b { display: block; line-height: 1.2; }
.button.ghost { border-color: var(--line); color: var(--text); }
.button.ghost:hover { background: var(--surface); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---- device frames ---- */
.phone { position: relative; width: 100%; max-width: 300px; padding: 9px; border-radius: 40px; background: #06040b; border: 1px solid #33284f; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.phone img { border-radius: 31px; width: 100%; }
.phone.wide { max-width: 640px; border-radius: 34px; }
.phone.wide img { border-radius: 26px; }
.tv { position: relative; width: 100%; padding: 10px; border-radius: 16px; background: #06040b; border: 1px solid #33284f; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.tv img { border-radius: 7px; width: 100%; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 34%; height: 12px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: linear-gradient(#1a1429, #0d0916); border: 1px solid #2b2144; border-top: 0; }
.stage { position: relative; padding: 28px 0 40px; }
.stage .tv { width: 100%; }

/* ---- sections ---- */
section { padding: 84px 0; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin: 12px 0 16px; }
.sub { color: var(--muted); max-width: 40em; font-size: 18px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature .visual { display: flex; justify-content: center; gap: 22px; }
.feature.flip .visual { order: 2; }
.feature .visual .phone:nth-child(2) { margin-top: 56px; }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.feature li b { color: var(--text); font-weight: 700; }
.feature li svg { width: 22px; height: 22px; margin-top: 3px; color: var(--purple); }

.band { background: var(--bg-soft); border-block: 1px solid rgba(255, 255, 255, 0.05); }
.screens { margin-top: 54px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: center; }
.screens .side { display: grid; gap: 30px; justify-items: center; }
.caption { margin-top: 30px; font-size: 14px; color: var(--muted); text-align: center; }

.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(168, 85, 247, 0.16); color: #d4b5ff; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 16px; }

.formats { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.formats span { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

.own { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.own .card h3 { font-size: 21px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--muted); align-items: start; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.plain { color: var(--muted); display: grid; gap: 12px; margin-top: 14px; }

.cta { text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 50%, rgba(124, 58, 237, 0.28), transparent 70%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta img.logo { width: min(340px, 70%); margin: 0 auto 26px; }
.cta .actions { justify-content: center; }

/* ---- footer ---- */
footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--text); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .small { margin-top: 26px; font-size: 13px; line-height: 1.6; max-width: 70em; }
footer .small a { font-weight: 500; color: var(--muted); text-decoration: underline; }

/* ---- text pages ---- */
.page { padding: 64px 0 84px; }
.page .wrap { width: min(760px, 100% - 40px); }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; margin-bottom: 8px; }
.page .date { color: var(--muted); margin-bottom: 34px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.page p, .page li { color: #d6cfe6; }
.page p + p { margin-top: 14px; }
.page a { color: #d4b5ff; }
.page ul { padding-left: 22px; display: grid; gap: 8px; }
.page table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.page th, .page td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.page code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; background: var(--surface); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); word-break: break-all; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; }
.scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .top nav a:not(.pill) { display: none; }
  .hero { padding-top: 56px; }
  .hero .wrap, .feature, .screens, .own { grid-template-columns: 1fr; }
  .hero .wrap { gap: 44px; }
  .feature { gap: 40px; }
  .feature .visual, .feature.flip .visual { order: 2; }
  .feature + .feature { margin-top: 80px; }
  .grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .feature .visual .phone { max-width: 46%; padding: 6px; border-radius: 28px; }
  .feature .visual .phone img { border-radius: 22px; }
  .feature .visual .phone:only-child { max-width: 72%; }
  .feature .visual .phone:nth-child(2) { margin-top: 36px; }
  .actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
