/* ═══════════════════════════════════════════════════
   CYDUCK — SHARED STYLESHEET v1.0
   All pages import this. Page-specific styles inline.
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary:        #7c3aed;
  --primary-light:  #a78bfa;
  --primary-dark:   #5b21b6;
  --success:        #22c55e;
  --warning:        #eab308;
  --error:          #ef4444;
  --orange:         #f97316;
  --bg:             #08080f;
  --bg-card:        #10101a;
  --bg-surface:     #171724;
  --bg-input:       #0c0c16;
  --border:         #242438;
  --border-hover:   #44446a;
  --text-primary:   #eeeef5;
  --text-secondary: #8888aa;
  --text-muted:     #44445a;
  --shadow:         0 24px 64px rgba(0,0,0,0.7);
  --font-display:   'Roboto', sans-serif;
  --font-body:      'Roboto', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg:             #f2f2f8;
  --bg-card:        #ffffff;
  --bg-surface:     #ebebf4;
  --bg-input:       #f7f7fc;
  --border:         #d8d8ea;
  --border-hover:   #aaaacc;
  --text-primary:   #0e0e1a;
  --text-secondary: #505068;
  --text-muted:     #aaaabc;
  --shadow:         0 24px 64px rgba(80,80,120,0.12);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Ambient glow */
.glow-blob {
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,8,15,0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .navbar { background: rgba(242,242,248,0.9); }

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.22s, opacity 0.22s;
  border-radius: 6px;
}
.logo-img:hover { transform: scale(1.05); opacity: 0.88; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
}

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── LANG SWITCHER — modern pill toggle ── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  display: flex; align-items: center;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}
.lang-btn:not(.active):hover { color: var(--primary-light); }

/* ── THEME TOGGLE — circular icon button ── */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s;
  color: var(--text-secondary);
}
.theme-toggle:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: rotate(22deg);
}
.theme-toggle .material-icons { font-size: 18px; }

.hamburger {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 7px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 20px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 7px;
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.87rem; font-weight: 600;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-body);
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; border-radius: 9px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-primary:hover  { opacity: 0.84; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ── STRENGTH BAR ── */
.strength-wrap { margin-bottom: 20px; }
.strength-label-text { font-weight: 700; transition: color 0.3s; }
.strength-meta {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.strength-track { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; border-radius: 99px; transition: width 0.4s ease, background-color 0.4s ease; }

/* ── OUTPUT BOX ── */
.output-box {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px; min-height: 64px;
  transition: border-color 0.2s;
}
.output-box:focus-within { border-color: var(--primary-light); }
.output-box.preview-mode { border-style: dashed; }

.output-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.output-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }

.output-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  color: var(--primary-light);
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; flex-shrink: 0;
}
.output-status { display: none !important; }

.output-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--text-muted);
  padding-top: 8px; border-top: 0.5px solid var(--border);
}
.output-meta span {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  background: transparent; border: none; border-radius: 0; padding: 0;
  font-family: var(--font-body);
}
.strength-meta span { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; font-family: var(--font-body) !important; }

.pw-text {
  font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700;
  color: var(--primary-light); word-break: break-word; overflow-wrap: anywhere;
  flex: 1; letter-spacing: 1px; line-height: 1.5;
  user-select: all;
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.pw-text.updating { opacity: 0.3; transform: translateY(3px); filter: blur(0.5px); }
.output-box.preview-mode .pw-text { color: var(--text-secondary); }

.icon-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border); background: var(--bg-surface);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.2s; flex-shrink: 0; font-size: 15px;
}
.icon-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.icon-btn.success { color: var(--success); border-color: var(--success); }

/* ── TABS ── */
.tabs {
  display: flex; background: var(--bg-surface);
  border-radius: 9px; padding: 3px;
  margin-bottom: 26px; border: 1px solid var(--border); gap: 3px;
}
.tab-btn {
  flex: 1; padding: 9px 12px; border: none;
  background: transparent; color: var(--text-muted);
  border-radius: 7px; cursor: pointer;
  font-size: 0.79rem; font-weight: 600;
  transition: all 0.2s; font-family: var(--font-body); white-space: nowrap;
}
.tab-btn.active { background: var(--primary); color: #fff; }

/* ── FIELD / SLIDER ── */
.field { margin-bottom: 20px; }
.field-label {
  display: flex; justify-content: space-between;
  font-size: 0.77rem; color: var(--text-secondary);
  margin-bottom: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.field-label .val { color: var(--primary-light); }

input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--border); border-radius: 99px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--primary); border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 10px rgba(124,58,237,0.5); transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--primary-light); }

/* ── OPTION CHIPS ── */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 22px; }
.option {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  cursor: pointer; transition: border-color 0.2s; user-select: none;
}
.option:hover { border-color: var(--border-hover); }
.option.checked { border-color: var(--primary); }
.option input[type="checkbox"] { display: none; }
.check-box {
  width: 17px; height: 17px; border: 2px solid var(--border-hover);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; font-size: 10px; color: #fff;
}
.option input:checked ~ .check-box { background: var(--primary); border-color: var(--primary); }
.check-box::after { content: '✓'; opacity: 0; transition: opacity 0.15s; }
.option input:checked ~ .check-box::after { opacity: 1; }
.option-label { font-size: 0.77rem; color: var(--text-secondary); font-weight: 500; }
.option-label small { color: var(--text-muted); display: block; font-size: 0.68rem; }

/* ── SEPARATOR CHIPS ── */
.sep-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.sep-chip {
  padding: 5px 11px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-secondary); font-size: 0.75rem;
  font-family: var(--font-mono); cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.sep-chip strong { font-size: 0.81rem; font-weight: 700; }
.sep-chip:hover  { border-color: var(--border-hover); }
.sep-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── GEN BUTTON ── */
.gen-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border: none; border-radius: 10px;
  font-size: 0.91rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.2px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  font-family: var(--font-body); transition: opacity 0.2s, transform 0.15s;
}
.gen-btn:hover  { opacity: 0.88; }
.gen-btn:active { transform: scale(0.98); }
.gen-btn.loading { opacity: 0.65; pointer-events: none; }

/* ── COMPARE MODE ── */
.compare-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.compare-title {
  font-size: 0.76rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-row { display: flex; gap: 8px; align-items: center; }
.compare-input {
  flex: 1; min-width: 0; padding: 11px 13px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 0.87rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.compare-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.compare-input::placeholder { color: var(--text-muted); font-family: var(--font-body); }
.compare-btn {
  padding: 11px 13px; border: 1px solid var(--border);
  background: var(--bg-surface); border-radius: 9px;
  color: var(--text-primary); font-size: 0.79rem; font-weight: 700;
  cursor: pointer; transition: border-color 0.2s, transform 0.15s, color 0.2s;
  white-space: nowrap; font-family: var(--font-body);
}
.compare-btn:hover  { border-color: var(--primary-light); color: var(--primary-light); }
.compare-btn:active { transform: scale(0.97); }
.compare-result {
  margin-top: 10px; padding: 14px;
  background: linear-gradient(180deg, rgba(255,51,102,0.05), var(--bg-surface));
  border: 1px solid rgba(255,51,102,0.2); border-radius: 12px;
  opacity: 0; transform: scale(0.985) translateY(4px);
  pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease;
}
.compare-result.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.compare-result-head { font-size: 0.79rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.compare-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 10px; }
.compare-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.compare-stat-label { display: block; font-size: 0.68rem; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.compare-stat-value { display: block; font-size: 0.93rem; font-weight: 700; color: var(--text-primary); word-break: break-word; font-family: var(--font-mono); }
.compare-boost { margin-top: 2px; font-size: 0.83rem; font-weight: 700; color: #ff3366; }

/* ── PASSWORD CHECKER ── */
.checker-input-wrap { position: relative; margin-bottom: 20px; }
.checker-input {
  width: 100%; padding: 13px 44px 13px 15px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 0.91rem;
  outline: none; transition: border-color 0.2s;
}
.checker-input:focus { border-color: var(--primary-light); }
.checker-input::placeholder { color: var(--text-muted); font-family: var(--font-body); }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  transition: color 0.2s; font-size: 18px;
}
.eye-btn:hover { color: var(--primary-light); }
.checker-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.stat-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; }
.stat-label { font-size: 0.67rem; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 0.93rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.criteria-list { display: flex; flex-direction: column; gap: 7px; }
.criteria-item { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--text-secondary); transition: color 0.2s; font-weight: 500; }
.criteria-item .ci-icon { font-size: 15px; color: var(--text-muted); transition: color 0.2s; flex-shrink: 0; }
.criteria-item.pass { color: var(--success); }
.criteria-item.pass .ci-icon { color: var(--success); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 18px;
  border-radius: 9px; font-size: 0.82rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  z-index: 9999; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow); white-space: nowrap;
  font-family: var(--font-body);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PAGE LAYOUT ── */
.page-layout { max-width: 1200px; margin: 0 auto; padding: 56px 28px 100px; position: relative; z-index: 1; }

/* Tool pages: centre header + card together */
.page-layout.tool-page { display: flex; flex-direction: column; align-items: center; }
.page-layout.tool-page .page-header { width: 100%; max-width: 520px; }
.page-layout.tool-page .seo-section,
.page-layout.tool-page .faq-wrap { width: 100%; }

.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 10px; line-height: 1.1;
}
.page-header h1 span { color: var(--primary-light); }
.page-header p { color: var(--text-secondary); font-size: 0.93rem; max-width: 520px; line-height: 1.75; }

.tool-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tool-wrap .card { width: 100%; max-width: 520px; box-sizing: border-box; }
/* TR pages use bare .card directly — same constraint */
.page-layout > .card { width: 100%; max-width: 520px; margin: 0 auto; }

/* ── SEO CONTENT BLOCK ── */
.seo-section { max-width: 720px; margin: 64px auto 0; }
.seo-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 12px; color: var(--text-primary);
  letter-spacing: -0.3px;
}
.seo-section p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.82; margin-bottom: 16px; }
.seo-section ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.82; margin-bottom: 16px; }

/* ── FAQ ── */
.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  text-align: left;
}

/* FAQ section title — accent bar style */
.faq-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 24px;
}

.faq-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 2px;
  flex-shrink: 0;
}

.faq-list { width: 100%; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

/* <details> reset */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
  text-align: left;
}

.faq-q:hover { color: var(--primary-light); }

.faq-q::after {
  content: 'expand_more';
  font-family: 'Material Icons';
  font-size: 20px;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] > .faq-q::after {
  transform: rotate(180deg);
}

.faq-a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0 32px 18px 0;
  text-align: left;
  animation: faqOpen 0.22s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DUCK LAW ── */
.law-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.law-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.law-card h2 { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.law-card h2 .material-icons { font-size: 18px; color: var(--primary-light); flex-shrink: 0; }
.law-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.78; }

/* ── HOME HERO ── */
.hero { max-width: 1200px; margin: 0 auto; padding: 90px 28px 70px; text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; background: rgba(124,58,237,0.09);
  border: 1px solid rgba(167,139,250,0.2); border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; color: var(--primary-light);
  margin-bottom: 24px; letter-spacing: 0.8px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -2px;
  margin-bottom: 22px; color: var(--text-primary);
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.03rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 38px; line-height: 1.78; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.features { max-width: 1200px; margin: 0 auto; padding: 0 28px 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; position: relative; z-index: 1; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 22px;
  transition: border-color 0.22s, transform 0.22s;
  cursor: pointer; text-decoration: none; display: block; color: inherit;
}
.feature-card:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 13px; display: block; }
.feature-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; color: var(--text-primary); }
.feature-card p { font-size: 0.81rem; color: var(--text-secondary); line-height: 1.65; }

.section-title { font-family: var(--font-display); font-size: clamp(1.2rem,3vw,1.7rem); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.section-sub { color: var(--text-secondary); font-size: 0.87rem; margin-bottom: 26px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 28px; text-align: center; font-size: 0.77rem; color: var(--text-muted); position: relative; z-index: 1; }
footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.duck-heart { display: inline-block; color: #ffe600; filter: drop-shadow(0 0 6px rgba(255,230,0,0.7)); animation: duckBeat 1.3s infinite ease-in-out; font-style: normal; }
@keyframes duckBeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.28); filter: drop-shadow(0 0 10px rgba(255,230,0,0.9)); }
}
@keyframes duckBeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { height: 62px; padding: 0 18px; }
  .page-layout { padding: 36px 18px 70px; }
  .hero { padding: 60px 18px 48px; }
  .features { padding: 0 18px 70px; }
}
@media (max-width: 420px) {
  .options-grid { grid-template-columns: 1fr; }
  .checker-stats { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .card { padding: 20px 14px; }
}

/* Email checker privacy note */
.email-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.7;
}

/* ── DROPDOWN NAV ── */
.nav-links { position: relative; }
.nav-item { position: relative; list-style: none; }
.nav-item-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 7px;
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap; cursor: pointer;
  border: none; background: transparent;
}
.nav-item-link:hover, .nav-item-link.active {
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
}
.nav-item-link svg.chevron {
  width: 10px; height: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-item.open .nav-item-link svg.chevron { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.nav-item.open .nav-dropdown { display: block; }

.nav-dropdown-header {
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.nav-dropdown-header-title {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-primary); font-family: var(--font-body);
}
.nav-dropdown-header-sub {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 1px;
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.nav-dropdown-item:hover { background: rgba(124,58,237,0.07); }

.nav-dropdown-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-icon .material-icons { font-size: 16px; }
.nav-dropdown-item-title {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary); font-family: var(--font-body);
}
.nav-dropdown-item-sub {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 1px;
}

/* ── MOBILE MENU — grouped ── */
.mobile-menu-group-label {
  padding: 8px 12px 3px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
  font-family: var(--font-body);
}
.mobile-menu-group-label:not(:first-child) { margin-top: 6px; }
.mobile-menu-item-sub {
  padding: 9px 12px 9px 28px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 7px; text-decoration: none;
  color: var(--text-secondary); font-size: 0.84rem;
  font-weight: 500; font-family: var(--font-body);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-item-sub:hover, .mobile-menu-item-sub.active {
  color: var(--primary-light);
  background: rgba(124,58,237,0.08);
}
.mobile-menu-divider {
  height: 1px; background: var(--border);
  margin: 8px 4px;
}

/* ── FEATURE CARD — icon colors ── */
.feature-icon.checker { color: #ef4444; }
.feature-icon.tool    { color: #7F77DD; }
.feature-icon.law     { color: #F5C40B; }
