:root {
  color-scheme: light;
  --ink: #132238;
  --muted: #617087;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --line: #dce4ef;
  --primary: #3157d5;
  --primary-dark: #2344b6;
  --primary-soft: #e9efff;
  --accent: #16a394;
  --success: #138667;
  --danger: #c13c53;
  --shadow-sm: 0 8px 24px rgba(20, 35, 60, 0.07);
  --shadow-lg: 0 28px 70px rgba(25, 45, 85, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(49, 87, 213, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgba(22, 163, 148, 0.1), transparent 28rem),
    #f7f9fc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(49, 87, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 87, 213, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

a {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.28);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(220, 228, 239, 0.8);
  background: rgba(247, 249, 252, 0.86);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(140%);
}

nav {
  min-height: 72px;
  padding: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--primary), #6d72e7);
  box-shadow: 0 8px 18px rgba(49, 87, 213, 0.24);
  content: "✦";
  font-size: 1rem;
}

.nav-links {
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #46556b;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.hamburger span {
  width: 19px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--ink);
}

main {
  padding: 0 0 72px;
}

.hero {
  display: grid;
  padding: 86px 0 42px;
  margin: 0;
  place-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 22px;
  border: 1px solid #cfd9fb;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 163, 148, 0.12);
  content: "";
}

.hero h1 {
  width: 100%;
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-shadow: none;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 28px;
  color: #536278;
  font-size: 0.88rem;
  font-weight: 650;
}

.trust-row span::before {
  margin-right: 7px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.ad-banner {
  overflow: hidden;
  max-width: 728px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.ad-banner img:not([width="1"]) {
  width: 100%;
  height: auto;
}

.nordpass-banner {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  border: 1px solid #dae2cf;
  border-radius: 18px;
  background: rgba(248, 249, 237, 0.94);
  box-shadow: var(--shadow-sm);
}

.nordpass-banner:hover {
  box-shadow: 0 15px 32px rgba(20, 35, 60, 0.12);
  transform: translateY(-2px);
}

.nordpass-cta {
  border-radius: 9px;
  background: #087e73;
}

.generator-card {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto 44px;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid rgba(213, 221, 235, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.generator-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #7770e5, var(--accent));
  content: "";
}

.generator-heading {
  margin-bottom: 34px;
  text-align: center;
}

.generator-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  letter-spacing: -0.04em;
}

.generator-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 28px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

label,
.field-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 750;
}

.length-badge {
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  height: 7px;
  margin: 4px 0;
  border-radius: 999px;
  accent-color: var(--primary);
  cursor: pointer;
}

.range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #8b97a8;
  font-size: 0.74rem;
  font-weight: 650;
}

.checkbox-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.checkbox-item {
  min-height: 58px;
  padding: 0 16px;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.checkbox-item:hover {
  border-color: #b8c8f8;
  background: #f8faff;
  transform: translateY(-1px);
}

.checkbox-item:has(input:checked) {
  border-color: #bac8f5;
  background: var(--primary-soft);
}

.checkbox-item input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.checkbox-item label {
  flex: 1;
  margin: 0;
  cursor: pointer;
  font-size: 0.88rem;
}

.generate-btn {
  min-height: 58px;
  margin: 3px 0 20px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #5d62dc);
  box-shadow: 0 12px 24px rgba(49, 87, 213, 0.24);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.generate-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #4c52c8);
  box-shadow: 0 16px 28px rgba(49, 87, 213, 0.3);
  transform: translateY(-2px);
}

.generate-btn:active {
  transform: translateY(0);
}

.password-output {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 0;
}

.password-field {
  min-width: 0;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  color: #17263a;
  background: #f5f8fc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.91rem, 2.5vw, 1.08rem);
  letter-spacing: 0.025em;
}

.password-field:focus {
  border-color: var(--primary);
  background: white;
}

.copy-btn {
  min-width: 108px;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font-weight: 800;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.copy-btn.is-copied,
.copy-btn.is-copied:hover {
  border-color: var(--success);
  color: white;
  background: var(--success);
}

.strength-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.strength-bar-track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e6ebf2;
}

.strength-bar {
  height: 100%;
  width: 0;
  margin: 0;
  border-radius: inherit;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 0.79rem;
}

.privacy-note::before {
  content: "●";
  font-size: 0.65rem;
}

.adsense-placement {
  width: min(100%, 980px);
  min-height: 100px;
  margin: 0 auto 22px;
  overflow: hidden;
  text-align: center;
}

.adsense-placement .adsbygoogle {
  width: 100%;
}

.adsense-in-article {
  width: 100%;
  min-height: 180px;
  margin: 32px 0;
}

.newsletter-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(30px, 5vw, 64px);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto 22px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #243d75;
  border-radius: var(--radius-md);
  color: white;
  background:
    radial-gradient(circle at 85% 0%, rgba(75, 202, 186, 0.22), transparent 19rem),
    linear-gradient(135deg, #101f36, #1c376b);
  box-shadow: var(--shadow-lg);
}

.newsletter-card::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 70px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.newsletter-copy,
.newsletter-form {
  position: relative;
  z-index: 1;
}

.newsletter-kicker {
  margin-bottom: 13px;
  color: #79ddce;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newsletter-copy h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.newsletter-copy p {
  margin: 16px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.65;
}

.newsletter-link {
  color: #b9caff;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.newsletter-link:hover {
  color: white;
}

.newsletter-form {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.newsletter-form-label {
  margin: 0 0 12px;
  color: white;
  font-size: 0.88rem;
  font-weight: 750;
}

.newsletter-form iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
}

.newsletter-privacy,
.newsletter-noscript {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
}

.newsletter-noscript a {
  color: white;
}

.related-link {
  display: grid;
  max-width: 860px;
  padding: 26px 30px;
  margin: 0 auto 52px;
  border: 1px solid #243d75;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #14233a, #243f77);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.related-link h3 {
  margin: 0 0 4px;
  font-size: 1.16rem;
}

.related-link p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.content-section {
  max-width: 980px;
  margin: 0 auto 22px;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.content-section h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-size: 1.17rem;
  letter-spacing: -0.02em;
}

.content-section p,
.content-section li {
  color: #536278;
}

.content-section p + p {
  margin-top: 16px;
}

.content-section ul {
  padding-left: 1.25rem;
}

.key-takeaways,
.requirement-card,
.tip-card,
.faq-item {
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.key-takeaways {
  padding: 25px 28px;
  margin: 30px 0;
}

.key-takeaways h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.password-requirements,
.tips-grid {
  gap: 14px;
  margin: 26px 0;
}

.requirement-card,
.tip-card {
  padding: 23px;
}

.requirement-card.do {
  border-color: #c9e5dc;
  background: #f1faf7;
}

.requirement-card.dont {
  border-color: #eed1d7;
  background: #fff6f7;
}

.requirement-card h4,
.tip-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.tip-card {
  transition: transform 0.2s, border-color 0.2s;
}

.tip-card:hover {
  border-color: #bac8f5;
  transform: translateY(-2px);
}

.faq-section {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq-item {
  padding: 22px 24px;
  margin: 0;
}

.faq-question {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.faq-answer {
  color: var(--muted);
}

footer {
  padding: 48px 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  background: #101c2e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0;
  color: #cad7ff;
  font-size: 0.88rem;
}

footer p {
  max-width: 700px;
  margin-inline: auto;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 30px, 1160px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 15px;
    left: 15px;
    display: none;
    width: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    text-align: left;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 11px 13px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 64px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 9vw, 3.75rem);
    overflow-wrap: break-word;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  nav {
    min-height: 64px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .logo::before {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
    letter-spacing: -0.055em;
  }

  .hero p {
    margin-top: 18px;
    line-height: 1.65;
  }

  .trust-row {
    display: grid;
    justify-items: start;
    gap: 7px;
  }

  .nordpass-banner {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 15px;
  }

  .nordpass-banner-text .offer {
    font-size: 1rem;
  }

  .nordpass-brand {
    align-items: flex-end;
  }

  .nordpass-logo,
  .nordpass-percent {
    display: none;
  }

  .nordpass-cta {
    padding: 9px 12px;
  }

  .generator-card {
    margin-bottom: 28px;
    border-radius: 22px;
  }

  .adsense-placement {
    min-height: 100px;
  }

  .generator-heading {
    margin-bottom: 27px;
    text-align: left;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .password-output {
    grid-template-columns: 1fr;
  }

  .copy-btn {
    min-height: 50px;
  }

  .strength-meter {
    grid-template-columns: 1fr;
  }

  .privacy-note {
    grid-row: 2;
  }

  .strength-bar-track {
    grid-row: 3;
  }

  .related-link {
    padding: 22px;
    margin-bottom: 32px;
    border-radius: 18px;
  }

  .newsletter-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .newsletter-form {
    padding: 18px;
  }

  .content-section {
    border-radius: 18px;
  }

  .password-requirements,
  .tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
