:root {
  --b1: #7c3aed; --b2: #a855f7; --b3: #2563eb;
  --grad: linear-gradient(115deg, var(--b1), var(--b2) 45%, var(--b3));
  --ink: #14161c; --muted: #6b7280; --line: #e6e8ec; --bg: #f5f6f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0;
  background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: var(--b1); text-decoration: none; }
img { max-width: 100%; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center;
  gap: 14px; padding: 10px 20px; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 700;
  font-size: 14px; line-height: 1; cursor: pointer; border: none; text-align: center;
  white-space: nowrap; transition: filter .15s, box-shadow .15s; }
.btn-grad { background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .28); }
.btn-grad:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(124, 58, 237, .36); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--b2); color: var(--b1); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.lbl-sm { display: none; }

@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .top-in { gap: 8px; padding: 10px 14px; }
  .brand img { height: 32px; }
  .nav .sep { display: none; }
  .btn { padding: 9px 13px; font-size: 13px; }
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
}

/* ---- sections ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
section h2 { font-size: 26px; margin: 0 0 8px; text-align: center; }
section .sub { text-align: center; color: var(--muted); max-width: 640px;
  margin: 0 auto 36px; font-size: 15px; }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; }
.pill { display: inline-block; background: #ede9fe; color: #5b21b6; font-size: 12px;
  font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 auto 16px; max-width: 760px;
  letter-spacing: -.02em; }
.hero .grad-text { background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: #4b5563; max-width: 620px; margin: 0 auto 26px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.valueprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 48px; }
.vp { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: left; }
.vp b { display: block; margin-bottom: 4px; font-size: 15px; }
.vp span { font-size: 13px; color: var(--muted); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: #f0ecfe;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card .ic svg { width: 21px; height: 21px; stroke: var(--b1); fill: none; stroke-width: 2; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }

.advantages { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 20px; justify-content: center; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.plan.featured { border-color: var(--b2); box-shadow: 0 10px 40px rgba(124,58,237,.12); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--grad);
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.plan.soon { opacity: .65; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 8px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .price .old { font-size: 20px; font-weight: 600; color: #9aa1ac; text-decoration: line-through; margin-right: 8px; }
.plan .save { display: inline-block; background: #dcfce7; color: #166534; font-size: 12px;
  font-weight: 700; border-radius: 20px; padding: 2px 10px; margin: 4px 0 2px; }
.plan.soon { opacity: 1; }
.plan h4 { margin: 18px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.plan .who { font-size: 13px; color: var(--muted); min-height: 34px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0; }
.plan li { font-size: 14px; margin: 9px 0; padding-left: 26px; position: relative; color: #374151; }
.plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #ede9fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { width: 100%; margin-top: 6px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--b1); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; font-size: 14px; color: #4b5563; }

/* footer CTA + footer */
.cta-band { background: var(--grad); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost { background: #fff; color: var(--b1); border: none; }
.cta-band .sub { color: rgba(255,255,255,.85); }

.footer { background: #14161c; color: #9aa1ac; font-size: 13px; padding: 36px 0; }
.footer a { color: #cdd2da; }
.footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer .cols div { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .valueprops, .grid, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  section h2 { font-size: 22px; }
}

/* ---- auth pages (login/register/forgot/reset) ---- */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: flex-start;
  justify-content: center; padding: 48px 20px; }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; width: 100%; max-width: 400px; }
.formcard h2 { margin: 0 0 6px; font-size: 20px; }
.formcard .hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.formcard label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.formcard input { width: 100%; padding: 11px; border: 1px solid #d7dae0; border-radius: 9px; font: inherit; }
.formcard input:focus { outline: 2px solid var(--b2); border-color: transparent; }
.formcard .chk { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px;
  font-size: 12px; color: var(--muted); line-height: 1.45; }
.formcard .chk input { width: auto; margin-top: 2px; }
.formcard .btn { width: 100%; margin-top: 18px; }
.formcard .alt { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex;
  justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.err { background: #fee2e2; color: #b42318; font-size: 13px; padding: 10px 12px; border-radius: 9px; margin-bottom: 12px; }
.ok { background: #dcfce7; color: #166534; font-size: 13px; padding: 10px 12px; border-radius: 9px; margin-bottom: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
