:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-dark: #0f172a;
  --fg: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --card: #ffffff;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --green: #10b981;
  --pink: #ec4899;
  --amber: #f59e0b;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Nav ─────────────────────────────────────────── */
nav.topnav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

nav.topnav .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

nav.topnav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
}

nav.topnav .brand svg { width: 24px; height: 24px; }

nav.topnav .links a {
  margin-left: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

nav.topnav .links a:hover { color: var(--fg); }

nav.topnav .links .cta-mini {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
}

nav.topnav .links .cta-mini:hover {
  background: var(--accent-hover);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.08), transparent 60%),
              linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 80px 24px 60px;
}

.hero .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero .badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.cta.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta.secondary:hover {
  background: var(--bg-soft);
  border-color: var(--muted);
}

/* ── Hero illustration (browser mockup) ──────────── */
.hero-illustration {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.15));
}

.browser-mockup {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.browser-bar {
  background: var(--bg-soft);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-bar .dot.r { background: #ff5f57; }
.browser-bar .dot.y { background: #febc2e; }
.browser-bar .dot.g { background: #28c840; }

.browser-bar .url {
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.browser-body {
  padding: 32px;
  background: #fff;
  min-height: 240px;
}

.demo-textbox {
  border: 2px solid var(--accent-soft);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.demo-textbox .typed { color: var(--fg); }
.demo-textbox .ghost { color: #94a3b8; }
.demo-textbox .cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.demo-hint {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ── Sections ────────────────────────────────────── */
section {
  padding: 80px 24px;
}

section.alt { background: var(--bg-soft); }

section .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

section h2 {
  font-size: 36px;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 12px;
  font-weight: 700;
}

section .section-tagline {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Features grid ───────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature .icon.blue { background: var(--accent-soft); color: var(--accent); }
.feature .icon.green { background: #d1fae5; color: var(--green); }
.feature .icon.pink { background: #fce7f3; color: var(--pink); }
.feature .icon.amber { background: #fef3c7; color: var(--amber); }

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Steps ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step .step-img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  margin-bottom: 20px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}

.step h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  max-width: 220px;
}

/* ── Sites grid (where it works) ─────────────────── */
.sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.site-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.2s ease;
}

.site-chip:hover { border-color: var(--accent); }

.site-chip .logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

/* ── Pricing ─────────────────────────────────────── */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.price-card .tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(120deg, var(--accent) 0%, #7c3aed 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.price-card .name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.price-card .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.price-card .amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-card .amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.price-card .period {
  color: var(--muted);
  font-size: 16px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.price-card li {
  padding: 8px 0;
  color: var(--fg);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card li svg {
  flex-shrink: 0;
  color: var(--green);
}

.price-card .cta { width: 100%; justify-content: center; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 60px 24px 30px;
}

footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

footer .brand-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

footer .brand svg { width: 24px; height: 24px; }

footer .desc {
  color: #94a3b8;
  font-size: 14px;
  max-width: 300px;
  margin: 0;
}

footer .col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer .col a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 0;
}

footer .col a:hover { color: #fff; }

footer .copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* ── Article (privacy/terms) ─────────────────────── */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

article h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

article .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

article h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  font-weight: 600;
}

article p, article li {
  font-size: 15px;
  color: var(--fg);
}

article ul { padding-left: 24px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 600; }

article code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

article th, article td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

article tr:last-child td { border-bottom: none; }

article th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-illustration { order: -1; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  footer .inner { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 60px 24px; }
  section h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 50px 24px 40px; }
  nav.topnav .links a:not(.cta-mini) { display: none; }
  nav.topnav .links .cta-mini { margin-left: 0; }
  article h1 { font-size: 28px; }
}
