:root {
  --navy: #172554;
  --blue: #2563eb;
  --sky: #dbeafe;
  --ink: #10213a;
  --muted: #64748b;
  --line: #dbe4ef;
  --paper: #ffffff;
  --soft: #f7fbff;
  --mint: #ecfdf5;
  --danger: #b91c1c;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(30, 64, 175, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 3px; }
button, input { font: inherit; }
.shell { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(219,228,239,.9);
  backdrop-filter: blur(16px);
}

.header-inner { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo { display:inline-flex; align-items:center; gap:10px; color:var(--navy); font-size:1.15rem; font-weight:900; text-decoration:none; }
.logo-mark { display:grid; width:38px; height:38px; place-items:center; color:#fff; background:linear-gradient(135deg,var(--navy),var(--blue)); border-radius:13px; box-shadow:0 8px 22px rgba(37,99,235,.24); }
.site-header nav,.site-footer nav { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.site-header nav a,.site-footer nav a { color:#475569; text-decoration:none; font-weight:650; }

.hero {
  position:relative;
  overflow:hidden;
  padding:82px 0 74px;
  background:radial-gradient(circle at 80% 12%,rgba(96,165,250,.24),transparent 31rem),linear-gradient(180deg,#fff 0%,#f7fbff 100%);
}
.hero::after { content:""; position:absolute; inset:auto -15% -240px auto; width:520px; height:520px; background:rgba(219,234,254,.65); border-radius:999px; filter:blur(2px); }
.hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr); gap:62px; align-items:center; }
.kicker,.section-tag,.mini-label { margin:0 0 12px; color:var(--blue); font-size:.78rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
h1 { margin:0; font-size:clamp(3rem,7vw,5.8rem); line-height:.96; letter-spacing:-.06em; color:var(--navy); }
.lead { max-width:650px; margin:26px 0 0; color:#475569; font-size:1.18rem; }
.privacy-note { display:flex; align-items:center; gap:10px; width:fit-content; margin-top:28px; padding:12px 15px; background:var(--mint); border:1px solid #bbf7d0; border-radius:14px; color:#166534; font-size:.92rem; font-weight:700; }
.privacy-icon { display:grid; width:24px; height:24px; place-items:center; color:#fff; background:#16a34a; border-radius:999px; }

.generator { padding:28px; background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.generator-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.generator-heading h2 { margin:0; color:var(--navy); font-size:1.35rem; line-height:1.2; }
.browser-badge { flex:0 0 auto; padding:7px 10px; color:#1d4ed8; background:#eff6ff; border:1px solid #bfdbfe; border-radius:999px; font-size:.75rem; font-weight:850; }

.output-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.password-output { display:block; min-height:62px; padding:16px 17px; overflow-wrap:anywhere; background:#f8fbff; border:1px solid #cbd5e1; border-radius:14px; font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size:1rem; line-height:1.6; }
.status,.error { min-height:22px; margin:6px 0 0; font-size:.84rem; }
.status { color:var(--muted); }
.error { color:var(--danger); }

.slider-block { margin-top:20px; }
.slider-labels { display:flex; justify-content:space-between; gap:20px; font-weight:800; }
#lengthValue { color:var(--blue); }
input[type="range"] { width:100%; accent-color:var(--blue); }

.option-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:22px 0 0; padding:0; border:0; }
.option-grid legend { grid-column:1/-1; margin-bottom:2px; font-size:.88rem; font-weight:850; }
.option-card { display:flex; align-items:center; gap:12px; padding:13px; background:#fbfdff; border:1px solid var(--line); border-radius:13px; cursor:pointer; }
.option-card input,.ambiguous-row input { width:18px; height:18px; accent-color:var(--blue); }
.option-card span { display:grid; }
.option-card strong { font-size:.92rem; }
.option-card small { color:var(--muted); }
.ambiguous-row { display:flex; align-items:center; gap:10px; margin-top:14px; color:#475569; font-size:.9rem; cursor:pointer; }

.meter { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:20px 0; padding:15px 16px; background:linear-gradient(135deg,#eff6ff,#f8fafc); border:1px solid #dbeafe; border-radius:14px; }
.meter > div { display:grid; }
.meter-label { color:var(--muted); font-size:.78rem; }

.btn { min-height:48px; padding:0 18px; border:0; border-radius:12px; font-weight:850; cursor:pointer; }
.btn-primary { width:100%; color:#fff; background:linear-gradient(135deg,var(--navy),var(--blue)); }
.btn-secondary { color:var(--navy); background:#eaf2ff; }
.btn:hover { filter:brightness(.98); }
.btn:focus-visible,input:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #93c5fd; outline-offset:3px; }

.section { padding:78px 0; }
.section-soft { background:var(--soft); border-top:1px solid var(--line); }
.article { max-width:790px; }
.article h2 { margin:2.25em 0 .65em; color:var(--navy); font-size:clamp(1.75rem,4vw,2.4rem); line-height:1.12; letter-spacing:-.03em; }
.article h2:first-of-type { margin-top:0; }
.article p,.article li { color:#334155; }
.article code { padding:.14em .38em; background:#eff6ff; border-radius:6px; color:#1e3a8a; font-size:.92em; }
.callout { margin:28px 0; padding:22px; background:#f8fafc; border-left:4px solid var(--blue); border-radius:0 16px 16px 0; }
.callout h3 { margin:0 0 6px; color:var(--navy); }
.callout p { margin:0; }

details { padding:18px 0; border-bottom:1px solid var(--line); }
summary { color:var(--navy); font-weight:850; cursor:pointer; }

.site-footer { padding:34px 0; color:#cbd5e1; background:var(--navy); }
.footer-inner { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; }
.footer-logo { color:#fff; }
.site-footer p { margin:12px 0 0; }
.site-footer nav a { color:#dbeafe; }

@media (max-width:880px) {
  .hero { padding-top:52px; }
  .hero-grid { grid-template-columns:1fr; gap:38px; }
}

@media (max-width:640px) {
  .shell { width:min(100% - 22px,1140px); }
  .header-inner { min-height:64px; }
  .site-header nav a:not(:last-child) { display:none; }
  .generator { padding:18px; }
  .generator-heading { flex-direction:column; }
  .output-row { grid-template-columns:1fr; }
  .option-grid,.meter { grid-template-columns:1fr; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
}
