:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(37, 99, 235, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: 8px 16px; font-size: 14px; }
.btn-lg  { padding: 14px 26px; font-size: 16px; }
.btn-xl  { padding: 18px 34px; font-size: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(37, 99, 235, .45); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.6);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 15px;
}
.brand-name { font-size: 20px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(37,99,235,.12), transparent 55%),
    var(--bg-soft);
  padding: 72px 0 84px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 18px 0 16px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--muted); font-size: 15px; font-weight: 500;
}

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px;
  background: #0f172a;
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #eef2ff, #ffffff);
  border-radius: 28px;
  padding: 34px 16px 18px;
  min-height: 500px;
}
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.app-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800;
}
.app-head strong { display: block; font-size: 16px; }
.app-head small { color: var(--muted); font-size: 12px; }
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
}
.app-row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok  { background: #16a34a; }
.dot.run { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.bar { height: 7px; background: #eef2f7; border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.muted { color: var(--muted); }
.app-card .muted { font-size: 12px; }
.app-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Features ---------- */
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.step em { color: var(--primary-dark); font-style: normal; font-weight: 600; }

/* ---------- Download ---------- */
.download-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.download-copy h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.02em; }
.download-copy > p { color: #cbd5e1; margin: 0 0 20px; font-size: 17px; }
.dl-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dl-meta li { color: #e2e8f0; }
.dl-meta strong { color: #94a3b8; font-weight: 600; margin-right: 6px; }
.download-cta { text-align: center; }
.download-cta .btn { width: 100%; }
.dl-note { color: #94a3b8; font-size: 13px; margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 44px 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { text-align: center; display: grid; gap: 8px; place-items: center; }
.footer .muted { margin: 0; }
.footer .small { font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .download-box { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .dl-meta { justify-items: center; }
  .nav-links { display: none; }
}
