/* ============================================================
   WebScan Pro — website design system
   Mirrors the desktop app's identity: scan-teal on a deep
   control-room background. Static, dependency-free, SEO-first.
   ============================================================ */

:root {
  /* Brand palette (from the app) */
  --brand: #00d6b4;
  --brand-dim: #0a9b84;
  --brand-soft: rgba(0, 214, 180, 0.12);
  --accent: #4c8dff;

  --bg: #0a0e14;
  --bg-2: #0c1119;
  --card: #121924;
  --surface: #18212e;
  --border: #212c39;
  --border-strong: #2e3b4b;

  --text: #e7eef5;
  --text-dim: #8da0b5;
  --text-faint: #5f7286;
  --ink: #04150f;

  --critical: #ff5470;
  --high: #ff8a3d;
  --medium: #ffc24b;
  --low: #46c98b;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.center { text-align: center; }
.muted { color: var(--text-dim); }

/* ---- Typographic scale ---- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.kicker {
  color: var(--brand); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--text-dim); max-width: 60ch; }
.section-head { max-width: 44rem; margin: 0 auto 48px; }
.section-head.center { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.96rem; padding: 13px 22px;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: #17e6c4; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; }
.brand .pro { color: var(--brand); }
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: 0.94rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(0, 214, 180, 0.10), transparent 60%),
    radial-gradient(50% 40% at 12% 20%, rgba(76, 141, 255, 0.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.86rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(0,214,180,0.25);
}
.badge-pill.ok { background: rgba(70,201,139,0.13); color: #46c98b; border-color: rgba(70,201,139,0.4); }
.badge-pill.warn { background: rgba(255,194,75,0.13); color: #ffc24b; border-color: rgba(255,194,75,0.4); }
.badge-pill.crit { background: rgba(255,84,112,0.13); color: #ff8098; border-color: rgba(255,84,112,0.4); }
.badge-pill.info { background: rgba(141,160,181,0.13); color: #8da0b5; border-color: rgba(141,160,181,0.4); }

/* Hero visual — a mock scan report card */
.mock {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock-body { padding: 20px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--bg); }
.mock-row:last-child { margin-bottom: 0; }
.mock-left { display: flex; align-items: center; gap: 11px; }
.sev { font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; }
.sev.c { background: var(--critical); color: #fff; }
.sev.h { background: var(--high); color: #fff; }
.sev.m { background: var(--medium); color: var(--ink); }
.sev.l { background: var(--low); color: var(--ink); }
.mock-title { font-size: 0.86rem; font-weight: 600; }
.mock-cvss { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }
.gauge { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.gauge-ring {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--high);
  background: conic-gradient(var(--high) 60%, var(--border-strong) 0);
  -webkit-mask: radial-gradient(circle 26px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 26px at center, transparent 98%, #000 100%);
}
.gauge-meta .g-score { font-weight: 800; font-size: 1.05rem; }

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-item svg { color: var(--brand); flex: none; margin-top: 2px; }
.trust-item h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 3px; }
.trust-item p { font-size: 0.86rem; color: var(--text-dim); }

/* ---- Feature cards ---- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(0,214,180,0.22); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: var(--ink); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 60px -30px rgba(0,214,180,0.4); position: relative; }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--ink); font-size: 0.72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .05em;
}
.plan h3 { font-size: 1.3rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--text-dim); font-size: 0.92rem; }
.plan .desc { color: var(--text-dim); font-size: 0.9rem; min-height: 40px; }
.plan ul { margin: 20px 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.plan li svg { color: var(--brand); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, rgba(0,214,180,0.10), rgba(76,141,255,0.08)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 66px); text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 10px; transition: color .15s; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { color: var(--text-dim); font-size: 0.9rem; margin: 14px 0; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.85rem; flex-wrap: wrap; }

/* ---- Legal / article pages ---- */
.doc { max-width: 800px; margin: 0 auto; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
.doc .updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.doc h3 { margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-dim); margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.doc a { color: var(--brand); text-decoration: underline; }
.doc .notice { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: clamp(50px, 7vw, 86px) 0 20px; text-align: center; }
.page-hero .lead { margin: 14px auto 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3, .steps, .pricing, .trust-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav[data-open="true"] .nav-links a { padding: 14px 24px; width: 100%; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---- Auth forms (signup / login) ---- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 36px); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 14px; color: var(--text); font-size: 0.96rem; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 214, 180, 0.16); }
.field .hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; }
.form-msg { border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; margin-bottom: 18px; display: none; line-height: 1.45; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(255, 84, 112, 0.10); border: 1px solid rgba(255, 84, 112, 0.35); color: #ffb3c0; }
.form-msg.success { background: rgba(70, 201, 139, 0.10); border: 1px solid rgba(70, 201, 139, 0.35); color: #a7e8c6; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-dim); margin: 4px 0 20px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.checkbox-row a { color: var(--brand); }
.auth-card .btn { width: 100%; justify-content: center; }
.oauth-section { margin-top: 22px; }
.oauth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.oauth-divider::before, .oauth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.google-btn { width: 100%; justify-content: center; margin-top: 16px; gap: 10px; }
.google-btn svg { width: 18px; height: 18px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--text-dim); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-success-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---- Account page (mirrors the app's profile screen) ---- */
.acct-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid rgba(0, 214, 180, 0.3); color: var(--brand); font-weight: 800; font-size: 1.5rem; flex: none; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.acct-row:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-row > span:first-child { color: var(--text-dim); }
.acct-row > span:last-child { color: var(--text); font-weight: 600; }
.acct-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.acct-card h3 { margin-bottom: 12px; }
.feat-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; font-size: 0.93rem; }
.feat-row svg { flex: none; }
.feat-on { color: var(--text); }
.feat-off { color: var(--text-faint); }
.limit-box { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.limit-val { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.limit-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(4,21,15,.35); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
