/* ═══════════════════════════════════════════════════════════════════
   PASSWORD GENERATOR — Complete Stylesheet
   Theme: Dark-tech / Cyber-secure palette
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Fonts */
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Password generator palette (dark-tech) */
  --pg-blue: #2563eb;
  --pg-blue-l: #4f8df7;
  --pg-blue-p: #e8f0ff;
  --pg-navy: #0b1224;
  --pg-navy-l: #16213e;
  --pg-green: #1fae6e;
  --pg-green-p: #e3f9ee;
  --pg-amber: #e8a93b;
  --pg-amber-p: #fff6e0;
  --pg-red: #e05858;
  --pg-red-p: #fdeaea;
  --pg-mist: #f3f6fc;

  /* Base UI colors (used alongside pg-* variables) */
  --paper: #ffffff;
  --cream: #f8faff;
  --border: #dde6f5;
  --border-dark: #c8d4e8;
  --ink: #0b1224;
  --ink-muted: #6b7a99;
  --ink-light: #3d4d6e;

  /* Layout & effects */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 4px 20px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 8px 48px rgba(37, 99, 235, 0.16);
  --header-h: 70px;
  --transition: 0.25s ease;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--pg-mist);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--pg-blue-p);
  color: var(--ink);
}

a {
  color: var(--pg-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pg-blue-l);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-ui);
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
p {
  font-size: 1.05rem;
  color: var(--ink-light);
}

/* ─── UTILITY ─── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-blue);
  background: var(--pg-blue-p);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--ink-light);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowFloat {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 25px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(11, 18, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(11, 18, 36, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-text strong {
  color: var(--pg-blue-l);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(79, 141, 247, 0.15);
  color: #fff;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--pg-blue);
  color: #fff;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--pg-blue-l);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  min-height: 80vh;
  padding: calc(var(--header-h) + 60px) 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #0b1224 0%, #16213e 45%, #0d1b33 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(79, 141, 247, 0.06) 0px, rgba(79, 141, 247, 0.06) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(79, 141, 247, 0.06) 0px, rgba(79, 141, 247, 0.06) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: glowFloat 7s ease-in-out infinite alternate;
}

.hero-bg .glow-1 {
  width: 420px;
  height: 420px;
  background: var(--pg-blue);
  top: -8%;
  left: -8%;
}

.hero-bg .glow-2 {
  width: 360px;
  height: 360px;
  background: var(--pg-green);
  bottom: -10%;
  right: -5%;
  animation-delay: -3s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.2);
  color: var(--pg-blue-l);
  border: 1.5px solid rgba(79, 141, 247, 0.35);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 26px;
  animation: fadeSlideDown 0.6s ease both;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 18px;
  animation: fadeSlideDown 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--pg-blue-l);
}

.hero h1 .accent {
  color: var(--pg-green);
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 34px;
  animation: fadeSlideDown 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.7s 0.3s ease both;
}

.btn-primary {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--pg-blue);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.45);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.55);
  background: var(--pg-blue-l);
  color: #fff;
}

.btn-secondary {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 46px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.7s 0.4s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pg-green);
  line-height: 1;
}

.hero-stat span {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  display: block;
}

/* ════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════ */
#app {
  background: var(--pg-mist);
}

.app-shell {
  background: var(--paper);
  border: 1.5px solid #dde6f5;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.app-titlebar {
  background: linear-gradient(90deg, var(--pg-navy) 0%, var(--pg-navy-l) 100%);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.app-titlebar .dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #ffbd2e;
}
.dot-g {
  background: #28c840;
}

.app-body {
  padding: 32px;
}

/* ─── Password display ─── */
.pw-display-wrap {
  background: var(--pg-navy);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

.pw-display-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: repeating-linear-gradient(0deg, rgba(79, 141, 247, 0.05) 0px, rgba(79, 141, 247, 0.05) 1px, transparent 1px, transparent 30px);
}

.pw-display-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pw-output {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  word-break: break-all;
  user-select: all;
  padding: 6px 0;
}

.pw-output .char-sym {
  color: var(--pg-amber);
}
.pw-output .char-num {
  color: var(--pg-green);
}

.pw-display-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-icon-btn:hover {
  background: rgba(79, 141, 247, 0.3);
  border-color: var(--pg-blue-l);
  transform: translateY(-2px);
}

/* ─── Strength meter ─── */
.strength-wrap {
  position: relative;
  margin-top: 20px;
}

.strength-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.strength-label-row strong {
  color: #fff;
}

.strength-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  gap: 4px;
}

.strength-seg {
  flex: 1;
  height: 100%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.strength-seg.fill-weak {
  background: var(--pg-red);
}
.strength-seg.fill-fair {
  background: var(--pg-amber);
}
.strength-seg.fill-good {
  background: #5b9bd5;
}
.strength-seg.fill-strong {
  background: var(--pg-green);
}

/* ─── Controls panel ─── */
.pw-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.control-card h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pg-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Length slider */
.length-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.length-row .len-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pg-blue);
}

.length-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 50px;
  background: #dde6f5;
  outline: none;
}

.length-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pg-blue);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.length-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pg-blue);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Toggle switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.toggle-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.toggle-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label .ex {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d0d8ea;
  border-radius: 50px;
  transition: 0.25s;
}

.slider-track::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider-track {
  background: var(--pg-blue);
}

.switch input:checked + .slider-track::before {
  transform: translateX(20px);
}

/* Generate button */
.btn-generate {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-blue-l));
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.4);
}

/* ─── Mode tabs ─── */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.mode-tab {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-tab.active {
  background: var(--pg-blue);
  color: #fff;
  border-color: var(--pg-blue);
}

.mode-tab:hover:not(.active) {
  border-color: var(--pg-blue-l);
  color: var(--pg-blue);
}

/* ─── Bulk results ─── */
.bulk-wrap {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  max-height: 320px;
  overflow-y: auto;
}

.bulk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
}

.bulk-item .bi-num {
  color: var(--ink-muted);
  font-size: 0.8rem;
  min-width: 22px;
}

.bulk-item .bi-text {
  flex: 1;
  word-break: break-all;
}

.bulk-item .bi-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--pg-blue);
  padding: 4px 8px;
  border-radius: 6px;
}

.bulk-item .bi-copy:hover {
  background: var(--pg-blue-p);
}

.bulk-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ─── History ─── */
.history-wrap {
  margin-top: 24px;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-head h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pg-blue);
}

.history-clear {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pg-red);
  background: none;
  border: none;
  cursor: pointer;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-light);
}

.history-item .hi-text {
  flex: 1;
  word-break: break-all;
}

.history-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pg-blue);
  font-size: 0.85rem;
}

.history-empty {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 16px;
}

/* ─── Status bar ─── */
.app-statusbar {
  border-top: 1.5px solid var(--border);
  padding: 10px 32px;
  background: var(--cream);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.secure-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg-green);
  display: inline-block;
  margin-right: 4px;
  animation: pulse 2.5s infinite;
}

/* ─── Select dropdown ─── */
select {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
}

/* ════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════ */
#features {
  background: var(--paper);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--pg-mist);
  border: 1.5px solid #dde6f5;
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════ */
#how-it-works {
  background: var(--pg-mist);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--pg-blue), var(--pg-green));
  opacity: 0.25;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg-blue), var(--pg-blue-l));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ════════════════════════════════════════════
   STRENGTH GUIDE
════════════════════════════════════════════ */
#strength-guide {
  background: var(--paper);
}

.strength-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sg-card {
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1.5px solid var(--border);
  transition: all 0.3s;
}

.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sg-card .sg-bar {
  height: 6px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.sg-weak .sg-bar {
  background: var(--pg-red);
  width: 25%;
}
.sg-fair .sg-bar {
  background: var(--pg-amber);
  width: 50%;
}
.sg-good .sg-bar {
  background: #5b9bd5;
  width: 75%;
}
.sg-strong .sg-bar {
  background: var(--pg-green);
  width: 100%;
}

.sg-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.sg-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.sg-card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 8px;
}

/* ════════════════════════════════════════════
   USE CASES
════════════════════════════════════════════ */
#use-cases {
  background: var(--pg-mist);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--paper);
  border: 1.5px solid #dde6f5;
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
}

.use-case-card:hover {
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.use-case-icon {
  font-size: 1.8rem;
  min-width: 48px;
  width: 48px;
  height: 48px;
  background: var(--pg-blue-p);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.use-case-card h3 {
  font-size: 0.98rem;
  margin-bottom: 5px;
}

.use-case-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ════════════════════════════════════════════
   TIPS
════════════════════════════════════════════ */
#tips {
  background: var(--paper);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-card {
  background: var(--pg-mist);
  border-radius: var(--radius);
  padding: 20px 18px;
  border: 1.5px solid #e0e8f7;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s;
}

.tip-card:hover {
  box-shadow: 0 3px 14px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.tip-badge {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pg-blue);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-card h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.tip-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* ════════════════════════════════════════════
   PROSE SECTIONS
════════════════════════════════════════════ */
.prose-section {
  background: var(--pg-mist);
}

.prose-section .section-inner {
  max-width: 820px;
}

.prose-section h2 {
  margin-bottom: 18px;
}

.prose-section p {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.prose-section ul {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prose-section ul li {
  padding-left: 28px;
  position: relative;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-light);
}

.prose-section ul li::before {
  content: '🔒';
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  top: 2px;
}

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
#faq {
  background: var(--paper);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--pg-mist);
  border: 1.5px solid #dde6f5;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-ui);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.faq-q:hover {
  background: var(--pg-blue-p);
}

.faq-q .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--pg-blue);
}

.faq-item.open .faq-q {
  background: var(--pg-blue-p);
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-light);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 16px 22px;
}

/* ════════════════════════════════════════════
   CTA
════════════════════════════════════════════ */
#cta-section {
  background: linear-gradient(135deg, var(--pg-navy) 0%, var(--pg-navy-l) 60%, #122a52 100%);
  text-align: center;
  padding: 80px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

#cta-section::before {
  content: '🔐';
  position: absolute;
  font-size: 12rem;
  opacity: 0.04;
  top: -20px;
  right: 5%;
  line-height: 1;
  pointer-events: none;
}

#cta-section h2 {
  color: #fff;
}

#cta-section p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 12px auto 32px;
}

.btn-cta-white {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  background: #fff;
  color: var(--pg-blue);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: var(--pg-blue);
}

/* ════════════════════════════════════════════
   RELATED TOOLS
════════════════════════════════════════════ */
#related-tools {
  background: var(--pg-mist);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.tool-card {
  background: var(--paper);
  border: 1.5px solid #dde6f5;
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.tool-card:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
  border-color: var(--pg-blue-l);
}

.tool-card .tool-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tool-card h3 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--pg-navy);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(11, 18, 36, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#site-footer {
  background: var(--pg-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-logo strong {
  color: var(--pg-blue-l);
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links-group h3 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-blue-l);
  margin-bottom: 14px;
}

.footer-links-group ul li a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 2.2;
  transition: color var(--transition);
}

.footer-links-group ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .pw-controls {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .strength-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .steps-row::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pg-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-link,
  .nav-cta {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 10px;
  }
  .nav-cta {
    background: var(--pg-blue);
    color: #fff;
    text-align: center;
    margin-top: 8px;
  }

  .app-body {
    padding: 22px 18px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    grid-template-columns: 1fr 1fr;
  }
  .steps-row::before {
    display: none;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  section {
    padding: 56px 16px;
  }
  .pw-output {
    font-size: 1.15rem;
  }
  .app-statusbar {
    padding: 10px 18px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .strength-guide-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .mode-tabs {
    gap: 5px;
  }
  .mode-tab {
    font-size: 0.78rem;
    padding: 7px 12px;
  }
}
