:root {
  --ink: #0b1b2b;
  --muted: #526173;
  --line: #e3e8ee;
  --bg: #f6f8fa;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --accent: #f59e0b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--brand); color: #fff !important; padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 15px; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #effaf8 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
h1 span { color: var(--brand); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(11,27,43,.10); padding: 18px; }
.mock .row { padding: 10px 13px; border-radius: 13px; margin: 8px 0; font-size: 14px; max-width: 88%; }
.mock .u { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mock .b { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mock .h { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg); }
h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 36px; font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { width: 34px; height: 34px; border-radius: 10px; background: #e6f6f4; color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ico { font-size: 24px; }

/* Pricing */
.price { font-size: 34px; font-weight: 800; margin: 8px 0; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.card ul { padding-left: 18px; margin: 14px 0 20px; color: var(--muted); font-size: 15px; }
.card.featured { border: 2px solid var(--brand); }
.tag { font-size: 12px; background: var(--accent); color: #fff; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

/* Create form */
.create { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
form.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
input, textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #cfd7e0; border-radius: 10px; }
input:focus, textarea:focus { outline: 2px solid #99e0d8; border-color: var(--brand); }
.result { background: #0b1b2b; color: #e6edf3; border-radius: var(--radius); padding: 22px; font-size: 14px; }
.result h3 { margin-top: 0; color: #fff; }
.result code, .result pre { background: #13283d; border-radius: 8px; padding: 10px; display: block; white-space: pre-wrap; word-break: break-all; font-size: 13px; }
.result .warn { color: #fbbf24; }
.err { color: #b91c1c; font-size: 14px; }
.hidden { display: none !important; }

/* Founder */
.founder { display: flex; gap: 26px; align-items: center; }
.founder .av { width: 92px; height: 92px; border-radius: 50%; background: #e6f6f4; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: var(--brand); flex-shrink: 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Dashboard */
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: #e6f6f4; color: var(--brand); font-weight: 600; }
.pill.error { background: #fde8e8; color: #b91c1c; }
.pill.indexing { background: #fef3c7; color: #92400e; }

@media (max-width: 860px) {
  h1 { font-size: 34px; }
  .hero .wrap, .create, .grid3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav nav a:not(.btn) { display: none; }
  .founder { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .nav .btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .logo { font-size: 16px; white-space: nowrap; }
}
