@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07111d;
  --bg-elevated: #0d1f33;
  --surface: rgba(15, 33, 52, 0.84);
  --surface-strong: rgba(9, 24, 39, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(23, 197, 230, 0.35);
  --text: #edf5fb;
  --muted: #a7bfd3;
  --accent: #17c5e6;
  --accent-strong: #0f98be;
  --accent-alt: #4fffb0;
  --danger: #ff8d8d;
  --warning: #ffcd6b;
  --success: #67f6be;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: min(1160px, calc(100% - 32px));
  --content-type-scale: 0.8;
}

body.light-mode {
  --bg: #edf5fb;
  --bg-elevated: #dcecff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(9, 24, 39, 0.04);
  --line: rgba(18, 64, 104, 0.12);
  --line-strong: rgba(15, 152, 190, 0.28);
  --text: #0b1f33;
  --muted: #5c7286;
  --accent: #0f98be;
  --accent-strong: #087d9a;
  --accent-alt: #10ba7c;
  --shadow: 0 18px 44px rgba(21, 40, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Raleway", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(23, 197, 230, 0.18), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(79, 255, 176, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg), #081726 42%, #0a1727 100%);
  line-height: 1.6;
}

body.light-mode {
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 197, 230, 0.14), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(79, 255, 176, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fcff, #edf5fb 44%, #e4eef9 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
  opacity: 0.45;
  z-index: -2;
}

body.light-mode .site-bg {
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.08) 1px, transparent 1px);
  opacity: 0.3;
}

.site-header,
.section,
.site-footer,
.intel-main {
  width: var(--content-width);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 0;
  padding: 14px 0;
  background: rgba(7, 17, 29, 0.62);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .site-header {
  background: rgba(248, 252, 255, 0.78);
  border-bottom-color: rgba(11, 31, 51, 0.08);
}

.site-header nav {
  min-width: 0;
  overflow-x: visible;
}

.brand {
  position: relative;
  display: block;
  align-self: stretch;
  width: 110px;
  height: auto;
  flex: 0 0 110px;
  margin-left: -32px;
  margin-block: -14px;
}

.brand-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex-wrap: wrap;
  row-gap: 8px;
}

html[lang='es'] .nav-list {
  gap: 14px;
}

html[lang='es'] .nav-list a {
  font-size: 0.9rem;
}

.nav-list a {
  color: inherit;
  transition: color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-selector {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.lang-btn {
  border: none;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn.active {
  color: var(--text);
  background: rgba(23, 197, 230, 0.15);
}

.theme-toggle,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-toggle {
  background-image: url('assets/theme-toggle-icon.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.6rem 1.6rem;
  font-size: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(23, 197, 230, 0.18);
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu-toggle::before {
  transform: translateY(-0.22rem);
  box-shadow: 0 0.44rem 0 currentColor;
}

.mobile-menu-toggle::after {
  transform: translateY(0.22rem);
}

.cta-btn,
.primary-btn,
.secondary-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta-btn {
  padding: 11px 14px;
  font-size: 0.86rem;
}

.cta-btn,
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041018;
  box-shadow: 0 12px 28px rgba(23, 197, 230, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.light-mode .secondary-btn {
  background: rgba(11, 31, 51, 0.04);
  border-color: rgba(11, 31, 51, 0.12);
}

.cta-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 44px 0 20px;
  animation: fade-in-up 0.45s ease;
}

main > .section:first-child,
.hero.section,
.intel-hero.section,
.assessment-shell.section {
  padding-top: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d7ebfa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

body.light-mode .eyebrow {
  color: var(--accent-strong);
  background: rgba(15, 152, 190, 0.09);
  border-color: rgba(15, 152, 190, 0.12);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  font-family: "Raleway", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

h1 {
  font-size: calc(clamp(2.4rem, 6vw, 4rem) * var(--content-type-scale));
}

h2 {
  font-size: calc(clamp(1.8rem, 4vw, 2.5rem) * var(--content-type-scale));
}

h3 {
  font-size: calc(clamp(1.2rem, 2vw, 1.6rem) * var(--content-type-scale));
}

p,
li,
label,
span,
small,
time {
  color: inherit;
}

main p,
main li,
main label,
main span,
main small,
main time,
main input,
main select,
main textarea,
main .btn,
main .primary-btn,
main .secondary-btn,
main .form-status,
main .feedback {
  font-size: calc(1rem * var(--content-type-scale));
}

main .eyebrow {
  font-size: calc(13px * var(--content-type-scale));
}

.hero-sub,
.intro-text,
.section p,
.card p,
.form-status.pending,
.local-privacy-note {
  color: var(--muted);
}

.hero-actions,
.tool-actions,
.unlock-link-row,
.password-input-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.cards,
.tool-cards-row,
.assessment-options,
.category-grid,
.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cards > a {
  display: block;
  color: inherit;
}

.stacked {
  grid-template-columns: 1fr;
}

.card,
.tool-card,
.contact-form,
.assessment-panel,
.assessment-result,
.tool-modal-dialog,
.contact-info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body.light-mode .card,
body.light-mode .tool-card,
body.light-mode .contact-form,
body.light-mode .assessment-panel,
body.light-mode .assessment-result,
body.light-mode .tool-modal-dialog,
body.light-mode .contact-info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.92));
  border-color: rgba(11, 31, 51, 0.09);
}

.card,
.tool-card,
.contact-form,
.contact-info {
  padding: 16px 22px;
}

.card > :last-child,
.tool-card > :last-child,
.contact-form > :last-child,
.contact-info > :last-child {
  margin-bottom: 0;
}

.card:hover,
.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 197, 230, 0.35);
}

.frameworks {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.contact-layout,
.tools-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.tools-layout {
  grid-template-columns: 1fr;
}

.tool-cards-row .tool-card {
  cursor: pointer;
}

.contact-form,
.tool-form,
.lead-form {
  display: grid;
  gap: 0.7rem;
}

input,
select,
textarea,
pre,
table {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 0.95rem;
  background: rgba(6, 18, 29, 0.78);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 31, 51, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: rgba(23, 197, 230, 0.55);
  box-shadow: 0 0 0 3px rgba(23, 197, 230, 0.14);
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.35rem;
  color: var(--muted);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.form-status {
  margin: 0.2rem 0 0;
  min-height: 1.3rem;
  font-size: 0.95rem;
}

.form-status.success,
.feedback.success {
  color: var(--success);
}

.form-status.error,
.feedback.error {
  color: var(--danger);
}

.feedback {
  margin: 0.35rem 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 0 44px;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  justify-self: start;
  text-align: left;
}

.site-footer p:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.site-footer p:last-child {
  justify-self: end;
  text-align: right;
}

body.light-mode .site-footer {
  border-top-color: rgba(11, 31, 51, 0.08);
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tool-modal[hidden] {
  display: none;
}

.tool-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 22, 0.72);
  backdrop-filter: blur(5px);
}

.tool-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 22px;
}

.tool-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 197, 230, 0.38);
  background: rgba(4, 14, 36, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

body.light-mode .tool-modal-close {
  background: rgba(255, 255, 255, 0.96);
}

body.modal-open {
  overflow: hidden;
}

.tool-panel {
  margin-top: 0;
}

.tool-panel[hidden] {
  display: none;
}

.inline-btn {
  padding: 0.82rem 1rem;
}

.password-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.password-results,
.breach-results {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.password-summary .password-banner,
.breach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.breach-tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.breach-tag,
.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(23, 197, 230, 0.38);
  color: var(--accent);
}

.risk-badge.sensitive {
  color: var(--danger);
  border-color: rgba(255, 141, 141, 0.45);
}

.reuse-risk.maybe,
.reuse-warning {
  color: var(--warning);
}

.reuse-risk.high {
  color: var(--danger);
}

.password-summary.score-0,
.password-summary.score-1 {
  border-color: rgba(255, 141, 141, 0.42);
}

.password-summary.score-2 {
  border-color: rgba(255, 205, 107, 0.44);
}

.password-summary.score-3 {
  border-color: rgba(23, 197, 230, 0.38);
}

.password-summary.score-4,
.breach-summary {
  border-color: rgba(79, 255, 176, 0.32);
}

.breach-summary.no-breach {
  border-color: rgba(23, 197, 230, 0.32);
}

#reportsTable {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

#reportsTable th,
#reportsTable td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#reportsTable th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

body.light-mode #reportsTable th {
  background: rgba(11, 31, 51, 0.04);
}

pre {
  width: 100%;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(5, 16, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6ebfa;
}

body.light-mode pre {
  background: rgba(241, 247, 255, 0.92);
  color: #0b1f33;
  border-color: rgba(11, 31, 51, 0.08);
}

.dmarc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

#verifyBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 197, 230, 0.28);
  color: var(--accent);
}

.site-header.mobile-nav-enabled {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.site-header.mobile-nav-enabled nav,
.site-header.mobile-nav-enabled .header-actions {
  grid-column: 1 / -1;
  width: 100%;
}

.site-header.mobile-nav-enabled .mobile-menu-toggle {
  display: inline-flex;
  justify-self: end;
}

.site-header.mobile-nav-enabled nav,
.site-header.mobile-nav-enabled .header-actions {
  display: none;
}

.site-header.mobile-nav-enabled.menu-open nav {
  display: block;
}

.site-header.mobile-nav-enabled.menu-open .header-actions {
  display: flex;
  margin-top: 0.6rem;
  justify-content: space-between;
}

.site-header.mobile-nav-enabled.menu-open .mobile-menu-toggle::before {
  transform: rotate(45deg);
  box-shadow: none;
}

.site-header.mobile-nav-enabled.menu-open .mobile-menu-toggle::after {
  transform: rotate(-45deg);
}

.site-header.mobile-nav-enabled .nav-list {
  justify-content: flex-start;
  flex-wrap: wrap;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-header nav,
  .header-actions {
    justify-self: stretch;
  }

  .brand {
    position: relative;
    margin-bottom: 0.35rem;
    margin-left: 0;
    margin-block: 0;
  }

  .header-actions {
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .site-footer p:first-child,
  .site-footer p:nth-child(2),
  .site-footer p:last-child {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 0.5rem;
    width: min(100vw - 16px, var(--content-width));
    max-width: calc(100vw - 16px);
    overflow-x: clip;
  }

  .section {
    padding-top: 32px;
  }

  main > .section:first-child,
  .hero.section,
  .intel-hero.section,
  .assessment-shell.section {
    padding-top: 44px;
  }

  .nav-list {
    width: 100%;
    max-width: max-content;
    min-width: max-content;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.22rem;
    row-gap: 0;
    font-size: 0.7rem;
    letter-spacing: -0.03em;
    touch-action: pan-x;
  }

  .site-header nav {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
    scroll-behavior: smooth;
    touch-action: pan-x;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .nav-list a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 2px;
    flex: 0 0 auto;
  }

  .brand {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    margin-left: 0;
    margin-block: 0;
    align-self: auto;
  }

  .brand-logo {
    left: 0;
    width: 60px;
    height: 60px;
  }

  .hero-actions,
  .tool-actions,
  .unlock-link-row {
    align-items: stretch;
  }

  .hero-actions a,
  .tool-actions button,
  .tool-actions input,
  .unlock-link-row button {
    width: 100%;
  }

  .header-actions {
    width: auto;
    max-width: calc(100vw - 24px);
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    justify-self: center;
    overflow: hidden;
  }

  .header-actions .cta-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: max-content;
    text-align: center;
    padding: 6px 7px;
    font-size: 0.6rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .lang-selector {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .lang-btn {
    padding: 0.22rem 0.38rem;
    font-size: 0.64rem;
  }

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

  #reportsTable {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 0.45rem;
  }

  .nav-list {
    gap: 0.18rem;
    font-size: 0.6rem;
  }

  .brand {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    margin-left: 0;
    margin-block: 0;
    align-self: auto;
  }

  .brand-logo {
    left: 0;
    width: 52px;
    height: 52px;
  }

  .header-actions .cta-btn {
    padding: 5px 6px;
    font-size: 0.52rem;
  }

  .lang-btn {
    padding: 0.2rem 0.32rem;
    font-size: 0.56rem;
  }
}
