:root {
  --bg: #07111f;
  --bg-deep: #040911;
  --panel: #0d1b2e;
  --panel-soft: #10243c;
  --text: #edf7ff;
  --muted: #b5c8d9;
  --line: rgba(150, 204, 255, 0.2);
  --cyan: #42d9ff;
  --teal: #42f5b0;
  --amber: #ffcf5a;
  --danger: #ff6b7a;
  --good: #42f5b0;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(66, 217, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 44%, #081521 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

a:hover {
  color: var(--cyan);
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--amber);
  color: #07111f;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark,
.icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(66, 217, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(66, 217, 255, 0.16), rgba(66, 245, 176, 0.08));
  color: var(--cyan);
  font-weight: 850;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  min-width: 2.7rem;
  min-height: 2.7rem;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(66, 217, 255, 0.13);
}

main {
  min-height: 70vh;
}

.container {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 5rem 1.2rem 3.5rem;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 17, 0.95) 0%, rgba(4, 9, 17, 0.8) 44%, rgba(4, 9, 17, 0.3) 100%),
    url("assets/cyber-hero.png") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(0deg, var(--bg), transparent);
}

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

.page-hero {
  padding: 4.5rem 1.2rem 3.2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(66, 217, 255, 0.11), transparent 48%),
    rgba(6, 14, 26, 0.86);
}

.section {
  padding: 4.5rem 1.2rem;
}

.section.compact {
  padding-top: 2.5rem;
}

.section.alt {
  background: rgba(8, 22, 37, 0.66);
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
  font-size: 1.22rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-top: 0.75rem;
}

.lead {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  color: inherit;
}

.button.primary {
  color: #03121a;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.button.secondary {
  color: var(--text);
  border-color: rgba(66, 217, 255, 0.42);
  background: rgba(13, 27, 46, 0.68);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.lesson,
.callout,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.94), rgba(10, 24, 40, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.card,
.lesson,
.callout {
  padding: 1.25rem;
}

.card:hover,
.lesson:hover {
  border-color: rgba(66, 217, 255, 0.38);
}

.card p,
.card li,
.lesson p,
.lesson li,
details p,
details li {
  color: var(--muted);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child,
.lesson p:last-child,
.lesson ul:last-child,
.lesson ol:last-child {
  margin-bottom: 0;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.topic-card,
.stat-card {
  display: grid;
  gap: 0.7rem;
}

.stat {
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 900;
}

.tag-row,
.mode-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 17, 31, 0.58);
  font-weight: 750;
  font-size: 0.88rem;
}

.pill.good {
  color: var(--good);
  border-color: rgba(66, 245, 176, 0.35);
}

.pill.warn {
  color: var(--amber);
  border-color: rgba(255, 207, 90, 0.4);
}

.pill.danger {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.4);
}

.checklist,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.check-item {
  min-height: 6.5rem;
  border: 1px solid rgba(66, 245, 176, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(66, 245, 176, 0.07);
  color: var(--text);
  font-weight: 800;
}

.quick-nav {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.quick-nav a {
  text-decoration: none;
}

.tools-hero {
  background:
    linear-gradient(120deg, rgba(66, 217, 255, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(66, 245, 176, 0.07), transparent),
    rgba(6, 14, 26, 0.86);
}

.visual-hero {
  background:
    linear-gradient(120deg, rgba(66, 217, 255, 0.14), transparent 46%),
    radial-gradient(circle at 80% 20%, rgba(66, 245, 176, 0.11), transparent 24rem),
    rgba(6, 14, 26, 0.9);
}

.toolkit-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.toolkit-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(13, 27, 46, 0.72);
}

.toolkit-step h2 {
  font-size: 1.15rem;
}

.toolkit-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-strip,
.visual-grid,
.video-library {
  display: grid;
  gap: 1rem;
}

.process-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-strip article,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.94), rgba(10, 24, 40, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.process-strip article {
  padding: 1rem;
  min-height: 9rem;
}

.process-strip p,
.visual-card p,
.detect-diagram li,
.comparison-card p,
.timeline-card span,
.resource-card p,
.action-guide span,
.printable-card h3 {
  color: var(--muted);
}

.lesson-visual {
  display: grid;
  gap: 1rem;
}

.visual-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card {
  padding: 1.15rem;
}

.visual-card {
  display: grid;
  gap: 0.8rem;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.72);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.video-card h3 {
  padding: 0.85rem 1rem 1rem;
}

.password-stack,
.phone-screen,
.mock-email,
.mock-login,
.wifi-board,
.mini-sheet {
  border: 1px solid rgba(66, 217, 255, 0.26);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(4, 9, 17, 0.6);
}

.password-stack {
  display: grid;
  gap: 0.55rem;
}

.password-stack div,
.mock-row {
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font-weight: 850;
}

.password-stack .bad,
.mock-row.danger {
  color: var(--danger);
  background: rgba(255, 107, 122, 0.08);
}

.password-stack .warn,
.mock-row.warn {
  color: var(--amber);
  background: rgba(255, 207, 90, 0.08);
}

.password-stack .good,
.mock-row.good {
  color: var(--good);
  background: rgba(66, 245, 176, 0.08);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

.phone-screen {
  display: grid;
  gap: 0.85rem;
  min-height: 13rem;
  align-content: center;
  text-align: center;
}

.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.phone-actions span {
  border-radius: var(--radius);
  padding: 0.6rem;
  background: rgba(66, 217, 255, 0.12);
  color: var(--text);
  font-weight: 850;
}

.comparison-card,
.detect-diagram,
.timeline-card {
  display: grid;
  gap: 0.8rem;
}

.comparison-card div,
.timeline-card div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.mock-email {
  display: grid;
  gap: 0.7rem;
}

.email-header,
.browser-bar {
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: rgba(66, 217, 255, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.email-subject {
  color: var(--danger);
  font-size: 1.1rem;
  font-weight: 900;
}

.fake-button,
.login-box button {
  display: inline-flex;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #03121a;
  font-weight: 900;
  text-decoration: none;
}

.chat-mock {
  align-content: start;
}

.chat-bubble {
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(66, 217, 255, 0.12);
  color: var(--text);
  font-weight: 800;
}

.red-flag-row,
.evidence-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.red-flag-row span,
.evidence-grid span {
  border: 1px solid rgba(255, 207, 90, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: var(--amber);
  background: rgba(255, 207, 90, 0.08);
  font-weight: 800;
  font-size: 0.86rem;
}

.mock-login {
  display: grid;
  gap: 0.8rem;
}

.login-box {
  display: grid;
  gap: 0.6rem;
}

.login-box span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem;
  color: var(--muted);
}

.step-cards {
  display: grid;
  gap: 0.65rem;
}

.step-cards article {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: rgba(4, 9, 17, 0.48);
}

.step-cards strong {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  color: #03121a;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  flex: 0 0 auto;
}

.learning-detail {
  background: rgba(13, 27, 46, 0.72);
}

.resource-category {
  display: grid;
  gap: 1rem;
}

.category-heading {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.category-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.resource-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.resource-logo {
  width: 4.3rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(66, 217, 255, 0.38);
  background: rgba(66, 217, 255, 0.11);
  color: var(--cyan);
  font-weight: 950;
}

.video-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-guide {
  display: grid;
  gap: 1rem;
}

.printable-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
}

.printable-card:hover {
  border-color: rgba(66, 217, 255, 0.5);
}

.mini-sheet {
  display: grid;
  gap: 0.45rem;
  min-height: 10rem;
}

.mini-sheet strong {
  color: var(--text);
}

.mini-sheet span {
  border-radius: var(--radius);
  padding: 0.42rem 0.55rem;
  background: rgba(66, 245, 176, 0.08);
  color: var(--teal);
  font-weight: 850;
}

.resource-button-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.resource-button-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: rgba(4, 9, 17, 0.5);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.resource-button-list a:hover {
  border-color: var(--cyan);
}

.lesson {
  display: grid;
  gap: 1rem;
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.quiz-card .lesson-header {
  align-items: flex-start;
}

.quiz-card .lesson-header > div {
  min-width: 0;
}

.quiz-card [data-question] {
  overflow-wrap: anywhere;
}

.quiz-card [data-category] {
  max-width: 11rem;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.25;
}

.learning-block {
  display: grid;
  gap: 0.75rem;
}

.example-box,
.warning-box,
.summary-box {
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(4, 9, 17, 0.58);
}

.warning-box {
  border-color: rgba(255, 207, 90, 0.36);
  background: rgba(255, 207, 90, 0.08);
}

.summary-box {
  border-color: rgba(66, 245, 176, 0.28);
  background: rgba(66, 245, 176, 0.07);
}

details {
  padding: 0;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 850;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style-position: inside;
}

details > div {
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem 1.15rem;
}

details > div {
  animation: details-open 0.22s ease;
}

.learning-guides details {
  scroll-margin-top: 6rem;
}

@keyframes details-open {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

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

.resource-list,
.steps,
.learn-card ul,
.lesson ul,
.lesson ol {
  padding-left: 1.2rem;
}

.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.download-card p {
  margin-bottom: 0;
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1rem;
  align-items: start;
}

.quiz-progress {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.progress-track {
  height: 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.82);
  margin-bottom: 1.1rem;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transition: width 0.2s ease;
}

.answers {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.answer {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: rgba(7, 17, 31, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.answer:hover,
.answer.selected {
  border-color: var(--cyan);
  background: rgba(66, 217, 255, 0.11);
}

.answer.correct {
  border-color: var(--teal);
  background: rgba(66, 245, 176, 0.08);
}

.answer.wrong {
  border-color: var(--danger);
  background: rgba(255, 107, 122, 0.08);
}

.feedback-panel,
.result-box {
  display: none;
}

.feedback-panel.show,
.result-box.show {
  display: block;
}

.results-layout {
  max-width: 980px;
  margin: 0 auto;
}

.results-layout.show {
  display: grid;
  gap: 1rem;
}

.results-hero {
  text-align: center;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.score-display {
  margin: 0.5rem auto;
  color: var(--cyan);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 950;
}

.results-hero h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.topic-meter {
  display: grid;
  gap: 0.4rem;
}

.topic-meter-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 850;
}

.meter-track {
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(7, 17, 31, 0.82);
  border: 1px solid var(--line);
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.review-list,
.breakdown-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-item,
.breakdown-item {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.mode-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.82);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mode-button.active {
  border-color: var(--cyan);
  background: rgba(66, 217, 255, 0.13);
}

.risk-assessment-shell {
  display: grid;
  place-items: center;
}

.risk-card {
  width: min(860px, 100%);
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.risk-card [data-risk-question] {
  overflow-wrap: anywhere;
}

.risk-progress-row,
.risk-meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.7rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.risk-answer-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.risk-answer {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  background: rgba(7, 17, 31, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.risk-answer:hover,
.risk-answer:focus-visible,
.risk-answer.selected {
  border-color: var(--cyan);
  background: rgba(66, 217, 255, 0.11);
}

.answer-marker {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border: 2px solid rgba(181, 200, 217, 0.75);
  border-radius: 50%;
  background: rgba(4, 9, 17, 0.58);
  flex: 0 0 auto;
}

.risk-answer.selected .answer-marker {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 0.24rem var(--panel), inset 0 0 0 0.6rem var(--teal);
}

.risk-actions {
  justify-content: space-between;
}

.risk-actions .button {
  min-width: 9rem;
}

.risk-report-hero {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.risk-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 1rem;
  align-items: center;
}

.risk-report-grid h3 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.risk-report-grid p {
  max-width: 680px;
}

.risk-score-card {
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(66, 217, 255, 0.35);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(7, 17, 31, 0.62);
  text-align: center;
}

.risk-score-card span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.risk-score-card strong {
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1;
}

.risk-meter {
  height: 0.9rem;
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(66, 245, 176, 0.18), rgba(255, 207, 90, 0.18), rgba(255, 107, 122, 0.18));
}

.risk-meter-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.risk-meter-fill.good {
  background: var(--good);
}

.risk-meter-fill.warn {
  background: var(--amber);
}

.risk-meter-fill.danger {
  background: var(--danger);
}

.risk-report-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  color: var(--muted);
}

.risk-report-item span {
  color: var(--text);
  font-weight: 800;
}

.risk-report-item strong {
  color: var(--cyan);
}

.risk-results,
.scam-feedback {
  display: none;
}

.risk-results.show,
.scam-feedback.show {
  display: grid;
  gap: 1rem;
}

.scam-simulator {
  display: grid;
  gap: 1rem;
}

.scam-scenario {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(66, 217, 255, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(16, 36, 60, 0.94), rgba(10, 24, 40, 0.94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.scenario-message {
  margin-top: 1rem;
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(4, 9, 17, 0.58);
  color: var(--text);
  font-weight: 750;
}

.scam-answer-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: rgba(13, 27, 46, 0.72);
}

.form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  background: rgba(4, 9, 17, 0.72);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.notice {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(66, 245, 176, 0.38);
  border-radius: var(--radius);
  color: var(--teal);
  background: rgba(66, 245, 176, 0.07);
}

.notice.show {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.2rem;
  background: var(--bg-deep);
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--text);
}

.print-guide {
  background: #ffffff;
  color: #111827;
}

.print-guide main {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.print-guide h1,
.print-guide h2,
.print-guide h3 {
  color: #0f172a;
}

.print-guide a {
  color: #075985;
}

.print-guide .guide-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #d9e8f5;
    --line: rgba(237, 247, 255, 0.5);
  }
}

@media (max-width: 950px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .process-strip,
  .visual-grid,
  .video-library,
  .checklist,
  .mini-grid,
  .toolkit-overview,
  .quiz-shell {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 100% 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #06101d;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }
}

@media (max-width: 560px) {
  .section,
  .page-hero {
    padding-inline: 1rem;
  }

  .brand span:last-child {
    max-width: 11rem;
    line-height: 1.15;
  }

  .actions,
  .footer-inner,
  .download-card,
  .lesson-header {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-card [data-category] {
    max-width: none;
    text-align: left;
    justify-content: flex-start;
  }

  .toolkit-step {
    align-items: flex-start;
  }

  .risk-report-grid,
  .risk-progress-row,
  .risk-meter-labels {
    grid-template-columns: 1fr;
  }

  .risk-report-grid {
    display: grid;
  }

  .risk-progress-row,
  .risk-meter-labels {
    flex-wrap: wrap;
  }

  .category-heading {
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }
}

/* Dark media theme restoration */
:root {
  --bg: #07111f;
  --bg-deep: #040911;
  --surface: #0d1b2e;
  --surface-2: #10243c;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #edf7ff;
  --muted: #b5c8d9;
  --muted-2: #7f91a5;
  --line: rgba(150, 204, 255, 0.18);
  --line-strong: rgba(150, 204, 255, 0.28);
  --cyan: #55d7ff;
  --teal: #64e4bd;
  --amber: #f8c75c;
  --danger: #ff6f86;
  --good: #64e4bd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at top right, rgba(85, 215, 255, 0.11), transparent 34rem),
    linear-gradient(rgba(85, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 46%, #081521 100%);
  background-size: auto, 46px 46px, 46px 46px, auto;
  color: var(--text);
}

.site-header {
  border-bottom: 1px solid rgba(214, 232, 255, 0.1);
  background: rgba(2, 7, 17, 0.86);
  box-shadow: none;
}

.brand,
h1,
h2,
h3,
h4 {
  color: var(--text);
}

.brand-mark {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02111a;
}

.nav-links {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  color: #bfccd9;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: none;
}

.nav-toggle {
  border-color: rgba(214, 232, 255, 0.16);
  background: var(--surface);
  color: var(--text);
}

.lead {
  color: #c5d3df;
}

.page-hero,
.tools-hero,
.visual-hero,
.home-hero {
  border-bottom: 1px solid rgba(214, 232, 255, 0.08);
  background:
    radial-gradient(circle at 82% 10%, rgba(85, 215, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.section.alt {
  border-block: 1px solid rgba(214, 232, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.section-heading p,
.card p,
.card li,
.lesson p,
.lesson li,
details p,
details li,
.visual-card p,
.resource-card p,
.feature-row p,
.threat-grid p,
.toolkit-step p,
.picture-card figcaption span,
.wide-picture-card figcaption span {
  color: var(--muted);
}

.button.primary {
  color: #03121a;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 36px rgba(85, 215, 255, 0.18);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(214, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.tag,
.pill {
  border-color: rgba(214, 232, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #c5d3df;
}

.card,
.lesson,
.callout,
details,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card,
.toolkit-step,
.process-strip article,
.scam-scenario,
.scam-answer-form,
.risk-card,
.quiz-card,
.video-card,
.picture-card,
.wide-picture-card {
  border: 1px solid rgba(214, 232, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032));
  box-shadow: var(--shadow-soft);
}

.video-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  overflow: hidden;
}

.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 190px;
  border: 0;
  border-radius: 18px;
  background: #020711;
  box-shadow: inset 0 0 0 1px rgba(214, 232, 255, 0.08);
}

.video-card h3 {
  margin: 0;
}

.video-card p {
  margin: 0;
}

.resource-trigger {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.resource-trigger:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(85, 215, 255, 0.75);
  outline-offset: 4px;
}

.open-hint {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(85, 215, 255, 0.28);
  padding: 0.42rem 0.68rem;
  background: rgba(85, 215, 255, 0.1);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
}

.resource-modal {
  width: min(92vw, 760px);
  max-height: min(84vh, 760px);
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.98), rgba(4, 9, 17, 0.98));
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
}

.resource-modal::backdrop {
  background: rgba(2, 7, 17, 0.78);
  backdrop-filter: blur(8px);
}

.resource-modal-shell {
  position: relative;
  display: grid;
  gap: 1rem;
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.modal-close {
  justify-self: end;
  min-height: 44px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.modal-close:hover {
  border-color: rgba(85, 215, 255, 0.48);
  background: rgba(85, 215, 255, 0.12);
}

.resource-modal-summary {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.resource-modal-content {
  display: grid;
  gap: 0.9rem;
}

.resource-modal-section {
  border: 1px solid rgba(214, 232, 255, 0.1);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.resource-modal-section h3 {
  margin-bottom: 0.65rem;
}

.resource-modal-section ul,
.resource-modal-section ol {
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.resource-modal-section p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  .resource-modal {
    width: calc(100vw - 1rem);
    max-height: 88vh;
    border-radius: 18px;
  }
}

/* Final interaction and layout polish. Keep this last. */
.nav-toggle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
}

.menu-icon {
  display: grid;
  gap: 4px;
  place-items: center;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero-signal-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(214, 232, 255, 0.11);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(2, 7, 17, 0.46);
}

.hero-signal-card p {
  margin: 0;
  color: var(--muted);
}

.toolkit-overview {
  background: transparent;
}

.toolkit-step {
  background: rgba(7, 17, 31, 0.66);
}

.feature-row,
.action-card,
.resource-card,
.printable-card,
.toolkit-step,
.trust-band-inner a,
.resource-button-list a,
.learning-detail,
.quick-nav .tag {
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.feature-row:hover,
.action-card:hover,
.resource-card:hover,
.printable-card:hover,
.toolkit-step:hover,
.trust-band-inner a:hover,
.resource-button-list a:hover,
.learning-detail:hover,
.quick-nav .tag:hover,
.feature-row:focus-visible,
.action-card:focus-visible,
.resource-card:focus-within,
.printable-card:focus-visible,
.toolkit-step:focus-within,
.trust-band-inner a:focus-visible,
.resource-button-list a:focus-visible,
.learning-detail:focus-within,
.quick-nav .tag:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(85, 215, 255, 0.48);
  background: rgba(85, 215, 255, 0.09);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.feature-row::after,
.action-card::after,
.resource-trigger::after,
.trust-band-inner a::after,
.resource-button-list a::after,
.learning-detail summary::after {
  content: "->";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(85, 215, 255, 0.11);
  color: var(--cyan);
  font-weight: 900;
  flex: 0 0 auto;
  transition: transform 180ms ease, background 180ms ease;
}

.feature-row:hover::after,
.action-card:hover::after,
.resource-trigger:hover::after,
.trust-band-inner a:hover::after,
.resource-button-list a:hover::after {
  transform: translateX(3px);
  background: rgba(85, 215, 255, 0.18);
}

.learning-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.learning-detail summary::-webkit-details-marker {
  display: none;
}

.learning-detail[open] summary::after {
  transform: rotate(90deg);
}

.picture-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 0.75rem;
  background: rgba(2, 7, 17, 0.38);
}

.wide-picture-card {
  overflow: hidden;
  max-width: 100%;
}

.wide-picture-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: rgba(2, 7, 17, 0.38);
}

.timeline-card,
.evidence-grid,
.warning-box,
.summary-box,
.example-box {
  gap: 0.85rem;
}

.survey-layout {
  max-width: 860px;
}

.trust-band-inner a {
  display: grid;
  gap: 0.35rem;
  min-height: 5rem;
  border: 1px solid rgba(214, 232, 255, 0.1);
  border-radius: 18px;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.trust-band-inner a span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .feature-row::after,
  .action-card::after,
  .resource-trigger::after,
  .trust-band-inner a::after,
  .resource-button-list a::after,
  .learning-detail summary::after {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.inspection-panel,
.safety-panel,
.cta-panel {
  border-color: rgba(214, 232, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.message-card,
.mock-email,
.mock-login,
.wifi-board,
.phone-screen,
.password-stack,
.mini-sheet,
.summary-box,
.example-box,
.warning-box {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(2, 7, 17, 0.46);
}

.message-card p {
  color: #d9e5ef;
}

.signal,
.feature-row,
.threat-grid article {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.safety-panel li,
.feature-icon,
.icon,
.resource-logo {
  background: rgba(100, 228, 189, 0.09);
  color: var(--teal);
}

.trust-row {
  color: #c5d3df;
}

.trust-band,
.site-footer {
  background: rgba(2, 7, 17, 0.88);
}

.answer,
.risk-answer,
.mode-button,
input,
textarea,
select {
  border-color: rgba(214, 232, 255, 0.13);
  background: rgba(2, 7, 17, 0.5);
  color: var(--text);
}

.answer:hover,
.answer.selected,
.risk-answer:hover,
.risk-answer:focus-visible,
.risk-answer.selected,
.mode-button.active {
  border-color: rgba(85, 215, 255, 0.45);
  background: rgba(85, 215, 255, 0.095);
}

.scenario-message {
  border-left-color: var(--amber);
  background: rgba(248, 199, 92, 0.12);
  color: #fff1c8;
}

.picture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.picture-card,
.wide-picture-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0;
}

.picture-card img,
.wide-picture-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.picture-card figcaption,
.wide-picture-card figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.picture-card figcaption strong,
.wide-picture-card figcaption strong {
  color: var(--text);
}

.wide-picture-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  align-items: center;
}

.wide-picture-card img {
  height: 100%;
  min-height: 260px;
}

@media (max-width: 950px) {
  .picture-grid,
  .wide-picture-card {
    grid-template-columns: 1fr;
  }

  .nav-links {
    background: rgba(2, 7, 17, 0.96);
  }
}

/* Professional redesign system */
:root {
  --bg: #06101b;
  --bg-deep: #020711;
  --surface: #0d1826;
  --surface-2: #101f31;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f6fbff;
  --muted: #a9b8c8;
  --muted-2: #7f91a5;
  --line: rgba(214, 232, 255, 0.12);
  --line-strong: rgba(214, 232, 255, 0.2);
  --cyan: #55d7ff;
  --teal: #64e4bd;
  --amber: #f8c75c;
  --danger: #ff6f86;
  --good: #6be4b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1160px;
}

body {
  background:
    linear-gradient(180deg, #020711 0%, #06101b 34%, #081524 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid rgba(214, 232, 255, 0.1);
  background: rgba(2, 7, 17, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  padding: 0.95rem 1.5rem;
}

.brand {
  gap: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02111a;
  box-shadow: 0 12px 30px rgba(85, 215, 255, 0.2);
}

.icon,
.feature-icon {
  border: 0;
  border-radius: 10px;
  background: rgba(85, 215, 255, 0.1);
  color: var(--cyan);
}

.nav-links {
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid rgba(214, 232, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
  color: #bfccd9;
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.18;
}

p {
  margin-block: 0.7rem 0;
}

.lead {
  max-width: 680px;
  color: #c5d3df;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.62;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

.section,
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.compact {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.section.alt {
  border-block: 1px solid rgba(214, 232, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.page-hero,
.tools-hero,
.visual-hero {
  border-bottom: 1px solid rgba(214, 232, 255, 0.08);
  background:
    radial-gradient(circle at 82% 10%, rgba(85, 215, 255, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.section-heading {
  gap: 0.85rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}

.section-heading p {
  max-width: 680px;
  color: var(--muted);
}

.compact-heading {
  max-width: 760px;
}

.grid,
.content-stack,
.visual-grid,
.video-library,
.toolkit-overview,
.process-strip {
  gap: clamp(1rem, 2vw, 1.35rem);
}

.button {
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02111a;
  box-shadow: 0 16px 36px rgba(85, 215, 255, 0.18);
}

.button.secondary {
  border-color: rgba(214, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.button:hover,
.feature-row:hover,
.resource-button-list a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.tag,
.pill {
  border-color: rgba(214, 232, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #c5d3df;
  font-size: 0.84rem;
  font-weight: 800;
}

.card,
.lesson,
.callout,
details,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card,
.toolkit-step,
.process-strip article,
.scam-scenario,
.scam-answer-form,
.risk-card {
  border: 1px solid rgba(214, 232, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032));
  box-shadow: var(--shadow-soft);
}

.card,
.lesson,
.callout,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card,
.toolkit-step,
.process-strip article,
.scam-scenario,
.scam-answer-form {
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.card:hover,
.lesson:hover,
.resource-card:hover,
.printable-card:hover,
.visual-card:hover {
  border-color: rgba(85, 215, 255, 0.22);
}

.card p,
.card li,
.lesson p,
.lesson li,
details p,
details li,
.visual-card p,
.resource-card p {
  color: var(--muted);
}

/* Home redesign */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid rgba(214, 232, 255, 0.08);
  background:
    radial-gradient(circle at 76% 10%, rgba(85, 215, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 8% 100%, rgba(100, 228, 189, 0.1), transparent 24rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
  color: #c5d3df;
}

.trust-row span {
  border-left: 2px solid rgba(100, 228, 189, 0.75);
  padding-left: 0.7rem;
  font-weight: 750;
  font-size: 0.92rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.inspection-panel,
.safety-panel,
.cta-panel {
  border: 1px solid rgba(214, 232, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.inspection-panel {
  padding: 1.1rem;
}

.panel-topline,
.message-card div,
.trust-band-inner,
.risk-progress-row,
.topic-meter-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.status-safe {
  color: var(--teal);
  font-weight: 850;
  font-size: 0.85rem;
}

.message-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(2, 7, 17, 0.56);
}

.message-card span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.message-card p {
  color: #d9e5ef;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.signal {
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 850;
  font-size: 0.9rem;
}

.signal.good {
  color: var(--teal);
}

.signal.warn {
  color: var(--amber);
}

.signal.danger {
  color: var(--danger);
}

.safety-panel {
  padding: 1.2rem;
}

.safety-panel h2 {
  font-size: 1.2rem;
}

.safety-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.safety-panel li {
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  background: rgba(100, 228, 189, 0.08);
  color: #d9fff1;
  font-weight: 800;
  font-size: 0.9rem;
}

.trust-band {
  border-bottom: 1px solid rgba(214, 232, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.trust-band-inner {
  padding-block: 1rem;
}

.trust-band-inner div {
  display: grid;
  gap: 0.1rem;
}

.trust-band-inner strong {
  color: var(--text);
}

.trust-band-inner span {
  color: var(--muted);
  font-size: 0.9rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.feature-rail {
  display: grid;
  gap: 0.85rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.feature-row p {
  color: var(--muted);
  margin-top: 0.35rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.threat-grid article {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.threat-grid span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.threat-grid p {
  color: var(--muted);
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.cta-panel p {
  max-width: 620px;
  color: var(--muted);
}

/* Component refinement */
.lesson-header {
  border-bottom-color: rgba(214, 232, 255, 0.1);
}

.answer,
.risk-answer,
.mode-button,
input,
textarea,
select {
  border-color: rgba(214, 232, 255, 0.13);
  border-radius: 14px;
  background: rgba(2, 7, 17, 0.5);
}

.answer:hover,
.answer.selected,
.risk-answer:hover,
.risk-answer:focus-visible,
.risk-answer.selected,
.mode-button.active {
  border-color: rgba(85, 215, 255, 0.45);
  background: rgba(85, 215, 255, 0.095);
}

.progress-track,
.meter-track,
.risk-meter {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill,
.meter-fill {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.summary-box,
.example-box,
.warning-box {
  border: 0;
  border-radius: 16px;
}

.video-card {
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.resource-logo {
  border: 0;
  border-radius: 14px;
}

.mini-sheet,
.password-stack,
.phone-screen,
.mock-email,
.mock-login,
.wifi-board {
  border-color: rgba(214, 232, 255, 0.1);
  border-radius: 18px;
}

.footer-inner {
  align-items: center;
}

@media (max-width: 950px) {
  .hero-layout,
  .split-section,
  .threat-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 680px;
  }

  .nav-links {
    border-radius: 18px;
    background: rgba(2, 7, 17, 0.96);
  }

  .trust-band-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .home-hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.5rem);
  }

  .section,
  .page-hero {
    padding-block: 3.5rem;
  }

  .signal-grid,
  .safety-panel ul,
  .trust-band-inner {
    grid-template-columns: 1fr;
  }

  .trust-row {
    display: grid;
  }

  .cta-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

/* UI/UX Pro Max civic platform redesign */
:root {
  --bg: #f6f9fc;
  --bg-deep: #e9f1f8;
  --surface: #ffffff;
  --surface-2: #eef6fb;
  --surface-soft: rgba(255, 255, 255, 0.76);
  --text: #102033;
  --muted: #5e7185;
  --muted-2: #7a8da0;
  --line: rgba(16, 32, 51, 0.1);
  --line-strong: rgba(16, 32, 51, 0.18);
  --cyan: #097fa6;
  --teal: #078b73;
  --amber: #b87400;
  --danger: #bf2f45;
  --good: #078b73;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
  --shadow-soft: 0 14px 34px rgba(16, 32, 51, 0.08);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1180px;
}

body {
  background:
    linear-gradient(rgba(9, 127, 166, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 127, 166, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbfd 0%, #eef5fa 52%, #f7fafc 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
}

a:hover {
  color: var(--cyan);
}

.site-header {
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
}

.nav {
  padding: 0.9rem 1.5rem;
}

.brand {
  color: #0e2338;
}

.brand-mark {
  border-radius: 8px;
  background: #102033;
  color: #ffffff;
  box-shadow: none;
}

.nav-links {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(245, 250, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-links a {
  color: #52687c;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #0e2338;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.08);
}

.nav-toggle {
  border-color: rgba(16, 32, 51, 0.12);
  background: #ffffff;
  color: var(--text);
}

.container {
  width: min(var(--max), calc(100% - 2.25rem));
}

h1,
h2,
h3,
h4 {
  color: #102033;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 5.7vw, 5.35rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.12rem;
}

.lead {
  color: #445c72;
  max-width: 680px;
}

.eyebrow {
  color: var(--teal);
  letter-spacing: 0.1em;
}

.section,
.page-hero {
  padding: clamp(4rem, 7.5vw, 6.5rem) 0;
}

.section.alt {
  border-block: 1px solid rgba(16, 32, 51, 0.08);
  background:
    linear-gradient(135deg, rgba(226, 241, 249, 0.78), rgba(255, 255, 255, 0.5)),
    #eff6fa;
}

.page-hero,
.tools-hero,
.visual-hero {
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 248, 251, 0.86) 58%, rgba(230, 241, 249, 0.92) 100%);
}

.page-hero .container {
  position: relative;
}

.page-hero .container::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  border: 1px solid rgba(9, 127, 166, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(9, 127, 166, 0.09) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(9, 127, 166, 0.09) 50%, transparent 51%);
  transform: translateY(-50%);
  pointer-events: none;
}

.section-heading p,
.card p,
.card li,
.lesson p,
.lesson li,
details p,
details li,
.visual-card p,
.resource-card p,
.feature-row p,
.threat-grid p,
.toolkit-step p {
  color: var(--muted);
}

.button {
  border-radius: 8px;
  min-height: 3rem;
  letter-spacing: 0;
}

.button.primary {
  background: #102033;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.16);
}

.button.secondary {
  border-color: rgba(16, 32, 51, 0.14);
  background: #ffffff;
  color: #102033;
}

.button:hover,
.feature-row:hover,
.resource-button-list a:hover {
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
}

.tag,
.pill {
  border-color: rgba(16, 32, 51, 0.1);
  background: #ffffff;
  color: #425a70;
}

.pill.good,
.signal.good {
  color: var(--good);
}

.pill.warn,
.signal.warn {
  color: var(--amber);
}

.pill.danger,
.signal.danger {
  color: var(--danger);
}

.card,
.lesson,
.callout,
details,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card,
.toolkit-step,
.process-strip article,
.scam-scenario,
.scam-answer-form,
.risk-card,
.quiz-card {
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.card:hover,
.lesson:hover,
.resource-card:hover,
.printable-card:hover,
.visual-card:hover {
  border-color: rgba(9, 127, 166, 0.24);
}

.home-hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 251, 0.88) 54%, rgba(222, 238, 247, 0.92) 100%);
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(9, 127, 166, 0.12) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(9, 127, 166, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(9, 127, 166, 0.04) 1px, transparent 1px);
  background-size: 22px 22px, 52px 52px, 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 36%, #000 100%);
  pointer-events: none;
}

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

.trust-row {
  color: #435b70;
}

.trust-row span {
  border-left: 3px solid rgba(7, 139, 115, 0.48);
}

.inspection-panel,
.safety-panel,
.cta-panel {
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.inspection-panel {
  position: relative;
}

.inspection-panel::before {
  content: "";
  display: block;
  height: 6px;
  margin: -1.1rem -1.1rem 1rem;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--teal));
}

.message-card {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: #f6fafc;
}

.message-card span {
  color: var(--muted-2);
}

.message-card p {
  color: #40586e;
}

.signal {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: #ffffff;
}

.safety-panel li {
  background: #edf8f4;
  color: #075f52;
}

.trust-band {
  background: #102033;
  color: #ffffff;
}

.trust-band-inner strong,
.trust-band-inner span {
  color: #ffffff;
}

.trust-band-inner span {
  opacity: 0.72;
}

.feature-row {
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.feature-icon,
.icon,
.resource-logo {
  border: 0;
  border-radius: 8px;
  background: #e7f5f3;
  color: #075f52;
}

.threat-grid article {
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.threat-grid span {
  color: var(--danger);
}

.toolkit-overview {
  background: #07111f;
}

.process-strip article {
  box-shadow: none;
}

.visual-grid > *,
.video-library > * {
  min-width: 0;
}

.video-card {
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.video-card iframe {
  border-radius: 10px;
}

.summary-box,
.example-box,
.warning-box {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: #f6fafc;
}

.warning-box,
.callout {
  border-left: 4px solid var(--amber);
}

.summary-box {
  border-left: 4px solid var(--teal);
}

.answer,
.risk-answer,
.mode-button,
input,
textarea,
select {
  border-color: rgba(16, 32, 51, 0.12);
  background: #ffffff;
  color: var(--text);
}

.answer:hover,
.answer.selected,
.risk-answer:hover,
.risk-answer:focus-visible,
.risk-answer.selected,
.mode-button.active {
  border-color: rgba(9, 127, 166, 0.38);
  background: #eaf6fb;
}

.answer.correct {
  border-color: rgba(7, 139, 115, 0.45);
  background: #eaf8f3;
}

.answer.wrong {
  border-color: rgba(191, 47, 69, 0.42);
  background: #fff0f2;
}

.progress-track,
.meter-track,
.risk-meter {
  background: #dde8f0;
}

.progress-fill,
.meter-fill,
.risk-meter-fill {
  background: linear-gradient(90deg, #097fa6, #078b73);
}

.mock-email,
.mock-login,
.wifi-board,
.phone-screen,
.password-stack,
.mini-sheet {
  border-color: rgba(16, 32, 51, 0.1);
  background: #f7fbfd;
}

.bad,
.danger {
  color: var(--danger);
}

.warn {
  color: var(--amber);
}

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

.scenario-message {
  border-left: 4px solid var(--amber);
  background: #fff8ea;
  color: #3d2b08;
}

.scam-simulator {
  background: transparent;
}

.risk-results {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(16, 32, 51, 0.08);
  background: #102033;
  color: #ffffff;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 950px) {
  .nav-links {
    border-radius: 14px;
    background: #ffffff;
  }

  .page-hero .container::after {
    opacity: 0.28;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .home-hero {
    padding-top: 3.75rem;
  }

  .page-hero .container::after,
  .home-hero::before {
    display: none;
  }

  .button {
    width: 100%;
  }
}

/* Final dark-theme enforcement: keep this last. */
:root {
  --bg: #07111f;
  --bg-deep: #040911;
  --surface: #0d1b2e;
  --surface-2: #10243c;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #edf7ff;
  --muted: #b5c8d9;
  --muted-2: #7f91a5;
  --line: rgba(150, 204, 255, 0.18);
  --line-strong: rgba(150, 204, 255, 0.28);
  --cyan: #55d7ff;
  --teal: #64e4bd;
  --amber: #f8c75c;
  --danger: #ff6f86;
  --good: #64e4bd;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at top right, rgba(85, 215, 255, 0.11), transparent 34rem),
    linear-gradient(rgba(85, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 215, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 46%, #081521 100%);
  color: var(--text);
}

.site-header {
  border-bottom: 1px solid rgba(214, 232, 255, 0.1);
  background: rgba(2, 7, 17, 0.86);
  box-shadow: none;
}

.brand,
h1,
h2,
h3,
h4 {
  color: var(--text);
}

.brand-mark {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02111a;
}

.nav-links {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.nav-links a {
  color: #bfccd9;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: none;
}

.nav-toggle {
  border-color: rgba(214, 232, 255, 0.16);
  background: var(--surface);
  color: var(--text);
}

.lead {
  color: #c5d3df;
}

.page-hero,
.tools-hero,
.visual-hero,
.home-hero {
  border-bottom: 1px solid rgba(214, 232, 255, 0.08);
  background:
    radial-gradient(circle at 82% 10%, rgba(85, 215, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.section.alt {
  border-block: 1px solid rgba(214, 232, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.section-heading p,
.card p,
.card li,
.lesson p,
.lesson li,
details p,
details li,
.visual-card p,
.resource-card p,
.feature-row p,
.threat-grid p,
.toolkit-step p,
.picture-card figcaption span,
.wide-picture-card figcaption span {
  color: var(--muted);
}

.button.primary {
  color: #03121a;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 36px rgba(85, 215, 255, 0.18);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(214, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.tag,
.pill {
  border-color: rgba(214, 232, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #c5d3df;
}

.card,
.lesson,
.callout,
details,
.visual-card,
.detect-diagram,
.comparison-card,
.timeline-card,
.resource-card,
.action-guide,
.printable-card,
.toolkit-step,
.process-strip article,
.scam-scenario,
.scam-answer-form,
.risk-card,
.quiz-card,
.video-card,
.picture-card,
.wide-picture-card {
  border: 1px solid rgba(214, 232, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.032));
  box-shadow: var(--shadow-soft);
}

.inspection-panel,
.safety-panel,
.cta-panel {
  border-color: rgba(214, 232, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.message-card,
.mock-email,
.mock-login,
.wifi-board,
.phone-screen,
.password-stack,
.mini-sheet,
.summary-box,
.example-box,
.warning-box {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(2, 7, 17, 0.46);
}

.message-card p {
  color: #d9e5ef;
}

.signal,
.feature-row,
.threat-grid article {
  border-color: rgba(214, 232, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.safety-panel li,
.feature-icon,
.icon,
.resource-logo {
  background: rgba(100, 228, 189, 0.09);
  color: var(--teal);
}

.trust-row {
  color: #c5d3df;
}

.trust-band,
.site-footer {
  background: rgba(2, 7, 17, 0.88);
}

.answer,
.risk-answer,
.mode-button,
input,
textarea,
select {
  border-color: rgba(214, 232, 255, 0.13);
  background: rgba(2, 7, 17, 0.5);
  color: var(--text);
}

.answer:hover,
.answer.selected,
.risk-answer:hover,
.risk-answer:focus-visible,
.risk-answer.selected,
.mode-button.active {
  border-color: rgba(85, 215, 255, 0.45);
  background: rgba(85, 215, 255, 0.095);
}

.scenario-message {
  border-left-color: var(--amber);
  background: rgba(248, 199, 92, 0.12);
  color: #fff1c8;
}

@media (max-width: 950px) {
  .nav-links {
    background: rgba(2, 7, 17, 0.96);
  }
}
