:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-deep: #047857;
  --accent: #0ea5e9;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px; font-size: .9em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(5, 150, 105, .85); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #cbd5e1; }
.btn-ghost { background: rgba(16,185,129,.08); color: var(--brand-deep); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand strong { color: var(--brand-dark); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-ghost { color: var(--brand-deep); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(16,185,129,.16), transparent 60%),
    radial-gradient(700px 380px at 5% 10%, rgba(14,165,233,.12), transparent 55%),
    var(--bg);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; background: #ecfdf5; color: var(--brand-deep);
  border: 1px solid #a7f3d0; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 18px 0 28px; max-width: 36ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.micro { color: #94a3b8; font-size: 13.5px; margin-top: 16px; }

/* Mockup */
.mockup { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #f87171; } .dot.amber { background: #fbbf24; } .dot.green { background: #34d399; }
.mockup-url { margin-left: 10px; font-size: 12px; color: #94a3b8; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; }
.mockup-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tool { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.tool.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tool.hl { background: #fef9c3; border-color: #fde047; color: #854d0e; }
.tool.save { width: auto; padding: 0 14px; margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.mockup-doc { padding: 22px; display: flex; flex-direction: column; gap: 13px; background: #fff; }
.line { height: 11px; border-radius: 6px; background: #e2e8f0; }
.line.w90 { width: 90%; } .line.w85 { width: 85%; } .line.w80 { width: 80%; }
.line.w70 { width: 70%; } .line.w60 { width: 60%; } .line.w50 { width: 50%; }
.line.mark { background: #fef08a; }
.line.edit { height: auto; background: #ecfdf5; border: 1px dashed var(--brand); color: var(--brand-deep); font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.line.edit em { color: var(--ink-soft); font-style: italic; }
.img-block { width: 92px; height: 56px; border-radius: 8px; background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 8px, #eef2f7 8px, #eef2f7 16px); display: grid; place-items: center; color: #94a3b8; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 18px; margin: 12px 0 48px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ico { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #ecfdf5; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.step-n { width: 46px; height: 46px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 800; font-size: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* Privacy */
.privacy { padding: 64px 0; background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%); color: #fff; }
.privacy-inner { display: flex; align-items: center; gap: 28px; }
.privacy-badge { font-size: 40px; width: 84px; height: 84px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.privacy h2 { font-size: 28px; margin-bottom: 8px; }
.privacy p { color: #cbd5e1; margin: 0; font-size: 17px; max-width: 70ch; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.install-steps { font-size: 17px; line-height: 2; color: var(--ink-soft); padding-left: 22px; margin: 0; }
.install-steps strong { color: var(--ink); }
.download-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .privacy-inner { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 48px; }
}
