:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #172033;
  --muted: #5f6b7e;
  --border: #dbe2ef;
  --primary: #3157d5;
  --primary-dark: #2442a6;
  --accent: #7b4dff;
  --success: #127a4b;
  --warning: #9a5a00;
  --danger: #b52b38;
  --shadow: 0 18px 50px rgba(31, 48, 90, 0.10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 226, 239, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(49, 87, 213, 0.25);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 74px;
  background:
    radial-gradient(circle at 15% 10%, rgba(123, 77, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(49, 87, 213, 0.20), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -100px -190px auto;
  width: 420px;
  height: 420px;
  border: 80px solid rgba(49, 87, 213, 0.05);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.22;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 700px;
  margin: 22px auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.primary-link,
.primary-button,
.secondary-button,
.copy-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(49, 87, 213, 0.25);
  text-decoration: none;
}

.primary-link:hover,
.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.tools-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-card {
  border-color: rgba(49, 87, 213, 0.33);
}

.new-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9edff;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 900;
}

.tool-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.tool-card > p {
  margin-top: 0;
  color: var(--muted);
}

label,
legend {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

input[type="text"],
select {
  width: 100%;
  min-height: 46px;
  margin: 7px 0 16px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input[type="text"]:focus,
select:focus,
input[type="range"]:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.22);
  outline-offset: 2px;
}

.two-column-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.primary-button {
  min-height: 47px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
}

.secondary-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-top: 16px;
  padding: 10px 10px 10px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8faff;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  background: #e9edff;
  color: var(--primary);
}

.copy-button:hover {
  background: #dce3ff;
}

.tool-note {
  margin: 12px 0 0 !important;
  font-size: 0.82rem;
}

.username-results {
  min-height: 118px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8faff;
}

.empty-state {
  margin: 35px 8px;
  color: var(--muted);
  text-align: center;
}

.username-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.username-item:last-child {
  border-bottom: 0;
}

.username-item code {
  color: var(--text);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.mini-copy {
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #e9edff;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-row output {
  min-width: 42px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 850;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  margin: 12px 0 18px;
  accent-color: var(--primary);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.checkbox-grid legend {
  padding: 0 6px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkbox-grid input {
  accent-color: var(--primary);
}

.full-row {
  grid-column: 1 / -1;
}

.password-result-box code {
  font-size: 0.96rem;
}

.strength-wrap {
  margin-top: 13px;
}

.strength-track {
  height: 7px;
  border-radius: 999px;
  background: #e5e9f1;
  overflow: hidden;
}

.strength-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.25s ease, background 0.25s ease;
}

.strength-wrap p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.content-section {
  padding: 76px 0;
  background: #fff;
}

.alt-section {
  background: #eef3ff;
}

.article-container {
  max-width: 880px;
}

.seo-article {
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.seo-article h2 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.seo-article h3 {
  margin: 32px 0 10px;
  font-size: 1.3rem;
}

.seo-article p,
.seo-article li {
  color: #445066;
}

.seo-article ul,
.seo-article ol {
  padding-left: 24px;
}

.seo-article li + li {
  margin-top: 8px;
}

.faq-block {
  margin-top: 36px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  padding: 18px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
}

details p {
  margin-top: -4px;
  padding-bottom: 14px;
}

.compact-article {
  text-align: center;
}

.site-footer {
  padding: 26px 0;
  background: #172033;
  color: #dce4f3;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(360px, calc(100% - 40px));
  padding: 11px 15px;
  border-radius: 11px;
  background: #172033;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    min-height: auto;
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    padding: 62px 0 56px;
  }

  .tool-card,
  .seo-article {
    padding: 22px;
  }

  .two-column-fields,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .full-row {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Trust, legal, and informational pages */
.trust-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.secondary-link:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
}

.site-footer {
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 1fr 1.6fr;
  gap: 42px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 420px;
  margin: 0;
  color: #aebbd0;
}

.footer-grid a:not(.footer-brand) {
  margin: 4px 0;
  color: #dce4f3;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #aebbd0;
}

.footer-bottom a {
  color: #fff;
}

.page-hero {
  padding: 72px 0 54px;
  background:
    radial-gradient(circle at 15% 10%, rgba(123, 77, 255, 0.15), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(49, 87, 213, 0.17), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  padding: 68px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 48, 90, 0.07);
}

.legal-nav strong {
  display: block;
  margin-bottom: 8px;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--primary);
}

.legal-document {
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.legal-document h2:first-of-type {
  margin-top: 0;
}

.legal-document h3 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
}

.legal-document p,
.legal-document li {
  color: #445066;
}

.legal-document li + li {
  margin-top: 7px;
}

.last-updated {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-box {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--surface-soft);
}

.notice-box p {
  margin: 0;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.contact-card a {
  color: var(--primary);
  font-weight: 750;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.info-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

@media (max-width: 820px) {
  .footer-grid,
  .legal-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 620px) {
  .legal-document {
    padding: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
