/* =========================================
   PASSSTRENGTH — GLOBAL STYLESHEET
   Aesthetic: Dark industrial / terminal with
   sharp neon-green accents
   ========================================= */

:root {
  --bg: #0a0b0d;
  --bg2: #111318;
  --bg3: #181c24;
  --surface: #1a1f2b;
  --surface2: #222838;
  --border: #2a3040;
  --text: #e8ecf4;
  --text-muted: #8896aa;
  --accent: #39ff8a;
  --accent-dim: rgba(57,255,138,0.12);
  --accent-glow: rgba(57,255,138,0.35);
  --warn: #ffc247;
  --danger: #ff4d6a;
  --fair: #ffaa00;
  --good: #4df7a4;
  --strong: #39ff8a;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* UTILITY */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ======================== HEADER / NAV ======================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 60px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700; font-size: 18px;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent); }
.logo-icon { font-size: 20px; }

.nav-links {
  list-style: none; display: flex; gap: 6px;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent); background: var(--accent-dim);
}

/* ======================== HERO ======================== */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  opacity: 0.4;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(57,255,138,0.3);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
  line-height: 1.6;
}

/* ======================== TOOL SECTION ======================== */
.tool-section { padding: 0 0 80px; }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(57,255,138,0.05);
  max-width: 720px; margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* Input */
.input-label {
  display: block;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}

.input-wrap { position: relative; }

.password-input {
  width: 100%;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono); font-size: 18px;
  padding: 16px 52px 16px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; letter-spacing: 0.05em;
}
.password-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-vis {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px;
  transition: color var(--transition);
}
.toggle-vis:hover { color: var(--accent); }
.eye-icon { width: 20px; height: 20px; display: block; }

/* Meter */
.meter-section { margin: 24px 0 20px; }

.meter-bar {
  width: 100%; height: 8px; background: var(--bg3);
  border-radius: 999px; overflow: hidden;
}

.meter-fill {
  height: 100%; width: 0;
  border-radius: 999px;
  background: var(--danger);
  transition: width 0.4s cubic-bezier(.4,0,.2,1), background 0.4s;
}

.meter-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
}
.meter-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color var(--transition);
}
.meter-label.active { color: var(--accent); font-weight: 500; }

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 20px 0;
}
.stat-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center;
}
.stat-val {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--text); line-height: 1.2;
  transition: color var(--transition);
}
.stat-desc {
  display: block;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}

/* Checks */
.checks-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin: 20px 0;
}
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  transition: color var(--transition);
}
.check-item.pass { color: var(--accent); }
.check-item.fail { color: var(--danger); }

.check-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface2); flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.check-item.pass .check-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.check-item.fail .check-dot { background: var(--danger); }

/* Tips */
.tips-box {
  background: var(--bg3); border: 1px solid rgba(57,255,138,0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px; margin-top: 16px;
}
.tips-title {
  font-family: var(--font-head); font-size: 14px;
  margin-bottom: 10px; color: var(--accent);
}
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tips-list li {
  font-size: 13px; color: var(--text-muted);
  padding-left: 16px; position: relative;
}
.tips-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: 11px;
}

/* Privacy note */
.privacy-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 20px; justify-content: center;
}

/* ======================== HOW IT WORKS ======================== */
.how-section { padding: 80px 0; background: var(--bg2); }

.how-section h2,
.faq-section h2 {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px; text-align: center;
}
.section-sub {
  text-align: center; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 48px; font-size: 15px;
}

.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.how-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; transition: border-color var(--transition), transform var(--transition);
}
.how-card:hover {
  border-color: rgba(57,255,138,0.3); transform: translateY(-3px);
}
.how-icon { font-size: 28px; margin-bottom: 14px; }
.how-card h3 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
}
.how-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ======================== FAQ ======================== */
.faq-section { padding: 80px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }

.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item[open] { border-color: rgba(57,255,138,0.3); }

.faq-q {
  padding: 18px 20px; font-size: 15px; font-family: var(--font-head);
  font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--accent);
  line-height: 1; transition: transform var(--transition);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q::-webkit-details-marker { display: none; }

.faq-a {
  padding: 0 20px 18px; font-size: 14px; color: var(--text-muted);
  line-height: 1.7;
}
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ======================== BLOG CTA ======================== */
.blog-cta { padding: 80px 0; background: var(--bg2); }
.cta-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
  display: flex; align-items: center; gap: 48px;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 100% at 90% 50%, var(--accent-dim), transparent);
  pointer-events: none;
}
.cta-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.cta-text h2 {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; margin-bottom: 12px; line-height: 1.2;
}
.cta-text p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.cta-visual { flex-shrink: 0; }
.cta-lock { font-size: 80px; opacity: 0.15; }

.btn-primary {
  display: inline-block;
  background: var(--accent); color: #000;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  text-decoration: none; letter-spacing: 0.02em;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ======================== FOOTER ======================== */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ======================== BLOG PAGE ======================== */
.blog-page { }

.breadcrumb-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  list-style: none; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] { color: var(--text); }

.blog-article { padding: 60px 0 80px; }

.article-header { margin-bottom: 48px; }
.article-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(57,255,138,0.3);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
}

.blog-article h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.meta-divider { opacity: 0.4; }

.article-intro {
  font-size: 18px; line-height: 1.7; color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 20px; margin-bottom: 24px;
}

.inline-tool-cta {
  background: var(--accent-dim); border: 1px solid rgba(57,255,138,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px;
}
.inline-tool-cta a { color: var(--accent); text-decoration: none; font-weight: 500; }
.inline-tool-cta a:hover { text-decoration: underline; }

/* Article body */
.article-body { font-size: 15px; line-height: 1.8; color: var(--text); }
.article-body h2 {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; margin: 52px 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  margin-bottom: 10px; color: var(--accent);
}
.article-body p { margin-bottom: 18px; color: var(--text-muted); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

.article-body ul {
  list-style: none; margin: 0 0 20px; padding: 0;
}
.article-body ul li {
  padding: 6px 0 6px 18px; position: relative; color: var(--text-muted);
}
.article-body ul li::before {
  content: '›'; position: absolute; left: 0; color: var(--accent);
}
.article-body code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--surface2); color: var(--accent);
  padding: 2px 8px; border-radius: 4px;
}

.article-callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px; margin: 28px 0;
}
.article-callout h3 { color: var(--text); margin-bottom: 8px; }
.article-callout p { margin-bottom: 0; }
.article-callout p + p { margin-top: 10px; }

.code-example {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 24px; margin: 20px 0;
  color: var(--accent); letter-spacing: 0.05em;
  text-align: center;
}

.article-tool-embed {
  background: var(--accent-dim); border: 1px solid rgba(57,255,138,0.25);
  border-radius: var(--radius-sm); padding: 16px 20px;
  margin: 24px 0; font-size: 15px; font-weight: 500;
}
.article-tool-embed a { color: var(--accent); text-decoration: none; }

.checklist { list-style: none !important; padding: 0 !important; }
.checklist li {
  display: flex !important; align-items: flex-start; gap: 10px;
  padding-left: 0 !important;
}
.checklist li::before { display: none !important; }
.check-icon { flex-shrink: 0; font-style: normal; }

.article-footer { margin-top: 60px; }
.article-cta-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  text-align: center;
  position: relative; overflow: hidden;
}
.article-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-dim), transparent);
  pointer-events: none;
}
.article-cta-box h3 {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  margin-bottom: 10px;
}
.article-cta-box p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 700px) {
  .tool-card { padding: 24px 18px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .checks-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; }
  .cta-lock { display: none; }
  .hero h1 { font-size: 38px; }
  .article-meta { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .container > * {
  animation: fadeUp 0.6s ease both;
}
.hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.hero .container > *:nth-child(3) { animation-delay: 0.25s; }

.tool-card {
  animation: fadeUp 0.5s 0.3s ease both;
}
