:root {
  --bg: #ffffff; --bg-soft: #f6f8fc; --ink: #0f172a; --muted: #5b6478;
  --line: #e6eaf2; --brand: #1d4ed8; --brand-dark: #1e40af; --accent: #f59e0b;
  --ok: #16a34a; --danger: #dc2626; --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.logo .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--brand), #7c3aed); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 15px var(--font); padding: 11px 20px; border-radius: 10px; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: wait; }

/* hero */
.hero { padding: 84px 0 60px; text-align: center; background:
  radial-gradient(700px 320px at 50% -60px, rgba(29,78,216,.12), transparent); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), #7c3ed6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 18px auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.url-demo { margin: 34px auto 0; max-width: 560px; background: #0f172a; color: #e2e8f0; border-radius: 12px;
  padding: 14px 20px; font-family: var(--mono); font-size: 15px; box-shadow: var(--shadow); }
.url-demo b { color: #7dd3fc; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 { font-size: 30px; letter-spacing: -.6px; text-align: center; font-weight: 800; }
.section .sub { color: var(--muted); text-align: center; margin: 10px 0 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } .nav-links { display: none; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.step-num { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }

/* showcase */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.show-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; transition: .15s; }
.show-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.show-card .t { font-weight: 700; font-size: 17px; }
.show-card .u { font-family: var(--mono); font-size: 12.5px; color: var(--brand); word-break: break-all; }
.show-card .d { color: var(--muted); font-size: 14px; margin: 8px 0 14px; min-height: 44px; }
.show-card .row { display: flex; align-items: center; justify-content: space-between; }
.like-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  cursor: pointer; font: 600 13.5px var(--font); color: var(--muted); }
.like-btn.liked { border-color: #fda4af; color: #e11d48; background: #fff1f2; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 26px; }
.tab { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: 600 14px var(--font); color: var(--muted); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; display: flex; flex-direction: column; position: relative; }
.price-card.hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand);
  color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.price-card h3 { font-size: 17px; }
.price-card .amount { font-size: 34px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -1px; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 16px 0 22px; flex: 1; }
.price-card li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.bill-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; align-items: center; color: var(--muted); font-size: 14px; }
.bill-toggle .save { background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font: 500 15px var(--font); background: #fff; }
.input:focus { outline: 2px solid rgba(29,78,216,.35); border-color: var(--brand); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.form-err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; padding: 10px 14px;
  border-radius: 10px; font-size: 14px; margin-bottom: 14px; display: none; }
.form-err.show { display: block; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 18px; padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 22px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 26px; letter-spacing: -.5px; }
.site-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; background: #fff; flex-wrap: wrap; }
.site-row .info { flex: 1; min-width: 220px; }
.site-row .info .t { font-weight: 700; }
.site-row .info .u { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.pill.live { background: #dcfce7; color: #15803d; }
.pill.draft { background: #f1f5f9; color: var(--muted); }
.pill.susp { background: #fee2e2; color: var(--danger); }
.plan-banner { background: linear-gradient(120deg, #1e3a8a, #6d28d9); color: #fff; border-radius: var(--radius);
  padding: 26px; margin-bottom: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.plan-banner h3 { font-size: 20px; }
.plan-banner p { opacity: .85; font-size: 14px; }
.plan-banner .btn { background: #fff; color: var(--ink); }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.tbl tr:hover td { background: #fafbff; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink);
  color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
