/* ============================================================
   EasyOnTheAI — Stylesheet
   Brand colours: Coral #E8637A / Teal #2E8B8B
   ============================================================ */

/* ---- CSS Custom Properties (Light Theme) ---- */
:root {
  /* Brand */
  --coral: #E8637A;
  --coral-light: #F2899A;
  --coral-dark: #C94D63;
  --coral-bg: #FDF0F2;
  --teal: #2E8B8B;
  --teal-light: #3AADAD;
  --teal-dark: #1F6B6B;
  --teal-bg: #EBF7F7;

  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --bg-tertiary: #EEF0F4;
  --bg-hero: linear-gradient(135deg, #1F6B6B 0%, #2E8B8B 40%, #E8637A 100%);
  --bg-deepfakes: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --bg-cta: linear-gradient(135deg, #2E8B8B 0%, #E8637A 100%);

  /* Text */
  --text-primary: #1A1D26;
  --text-secondary: #4A5068;
  --text-tertiary: #6B7280;
  --text-inverse: #FFFFFF;

  /* Borders & Shadows */
  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Font */
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
  --bg-primary: #0F1117;
  --bg-secondary: #1A1D26;
  --bg-tertiary: #252833;
  --bg-hero: linear-gradient(135deg, #0d2f2f 0%, #1a4a4a 40%, #7a2f3d 100%);
  --bg-deepfakes: linear-gradient(135deg, #0a0a14 0%, #0e1525 50%, #0a2340 100%);
  --bg-cta: linear-gradient(135deg, #1a4a4a 0%, #7a2f3d 100%);
  --coral-bg: #2a1a1e;
  --teal-bg: #1a2a2a;
  --text-primary: #E8EAF0;
  --text-secondary: #A0A8BE;
  --text-tertiary: #6B7280;
  --border-light: #2A2D38;
  --border-medium: #3A3D48;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-secondary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ---- Section Shared ---- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

[data-theme="dark"] .site-header {
  background: rgba(15,17,23,0.92);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: var(--teal-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dark mode toggle */
.dark-mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.dark-mode-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: var(--bg-hero);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-headline {
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-cta .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.hero-cta .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--teal-dark);
}
.hero-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  max-width: 180px;
  margin: 4px auto 0;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 1;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.about-feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon--teal {
  background: var(--teal-bg);
  color: var(--teal);
}
.feature-icon--coral {
  background: var(--coral-bg);
  color: var(--coral);
}

.about-feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-feature-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================================
   METHOD
   ============================================================ */
.method-section {
  background: var(--bg-secondary);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.method-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 3.5rem;
  font-weight: 900;
  opacity: 0.08;
  line-height: 1;
}

.method-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.method-card--safe .method-icon {
  background: var(--teal-bg);
  color: var(--teal);
}
.method-card--safe:hover {
  border-color: var(--teal);
}

.method-card--sensible .method-icon {
  background: var(--coral-bg);
  color: var(--coral);
}
.method-card--sensible:hover {
  border-color: var(--coral);
}

.method-card--checked .method-icon {
  background: var(--teal-bg);
  color: var(--teal);
}
.method-card--checked:hover {
  border-color: var(--teal);
}

.method-card--human .method-icon {
  background: var(--coral-bg);
  color: var(--coral);
}
.method-card--human:hover {
  border-color: var(--coral);
}

.method-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.method-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WHY THIS MATTERS
   ============================================================ */
.why-section {
  background: var(--bg-primary);
}

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

.why-card {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-icon--warning {
  background: #FFF3CD;
  color: #D4930A;
}
.why-icon--danger {
  background: var(--coral-bg);
  color: var(--coral);
}

[data-theme="dark"] .why-icon--warning {
  background: #3a3020;
  color: #F0C040;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   DEEPFAKES
   ============================================================ */
.deepfakes-section {
  background: var(--bg-deepfakes);
  padding: var(--section-padding);
  position: relative;
}

.deepfakes-content {
  text-align: center;
}

.deepfakes-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(232,99,122,0.2);
  color: var(--coral-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.deepfakes-content h2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.deepfakes-headline {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coral-light);
  font-style: italic;
  margin-bottom: 50px;
}

.deepfakes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}

.deepfakes-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}
.deepfakes-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.deepfakes-item-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(232,99,122,0.15);
  color: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deepfakes-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.deepfakes-item p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ============================================================
   WHAT YOU WILL LEARN
   ============================================================ */
.learn-section {
  background: var(--bg-secondary);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.learn-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.learn-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.learn-card--primary {
  border-top: 4px solid var(--teal);
}
.learn-card--accent {
  border-top: 4px solid var(--coral);
}

.learn-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.learn-card--primary .learn-card-icon {
  background: var(--teal-bg);
  color: var(--teal);
}
.learn-card--accent .learn-card-icon {
  background: var(--coral-bg);
  color: var(--coral);
}

.learn-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.learn-card ul {
  list-style: none;
  padding: 0;
}
.learn-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.learn-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.learn-card--primary li::before {
  background: var(--teal);
}
.learn-card--accent li::before {
  background: var(--coral);
}

/* ============================================================
   FEATURED GUIDES
   ============================================================ */
.guides-section {
  background: var(--bg-primary);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}
.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.guide-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  width: fit-content;
}

.guide-card:nth-child(odd) .guide-card-tag {
  background: var(--teal-bg);
  color: var(--teal);
}
.guide-card:nth-child(even) .guide-card-tag {
  background: var(--coral-bg);
  color: var(--coral);
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.guide-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ============================================================
   GUIDE FRAMEWORK
   ============================================================ */
.framework-section {
  background: var(--bg-secondary);
}

.framework-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.framework-step {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  padding: 20px 12px;
  position: relative;
}

.framework-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 12px;
  color: #fff;
}

.framework-step:nth-child(odd) .framework-step-number {
  background: var(--teal);
}
.framework-step:nth-child(even) .framework-step-number {
  background: var(--coral);
}

/* The "even" children in the DOM include connectors, so let's use nth-of-type */
.framework-step:nth-of-type(1) .framework-step-number,
.framework-step:nth-of-type(3) .framework-step-number,
.framework-step:nth-of-type(5) .framework-step-number,
.framework-step:nth-of-type(7) .framework-step-number {
  background: var(--teal);
}
.framework-step:nth-of-type(2) .framework-step-number,
.framework-step:nth-of-type(4) .framework-step-number,
.framework-step:nth-of-type(6) .framework-step-number {
  background: var(--coral);
}

.framework-step h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.framework-step p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.framework-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: 1px;
  flex-shrink: 0;
}

/* ============================================================
   AI RISK CHECKER
   ============================================================ */
.risk-section {
  background: var(--bg-primary);
}

.risk-checker-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.risk-progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin-bottom: 36px;
  overflow: hidden;
}

.risk-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: 3px;
  width: 0%;
  transition: width var(--transition-base);
}

.risk-question {
  margin-bottom: 16px;
}

.risk-question h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.risk-question p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.risk-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  font-family: inherit;
}
.risk-option:hover {
  border-color: var(--teal);
  background: var(--teal-bg);
}

/* Risk Result */
.risk-result {
  text-align: center;
}

.risk-result-badge {
  display: inline-block;
  padding: 12px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.risk-result-badge.low {
  background: #D1FAE5;
  color: #065F46;
}
.risk-result-badge.moderate {
  background: #FEF3C7;
  color: #92400E;
}
.risk-result-badge.high {
  background: #FEE2E2;
  color: #991B1B;
}

[data-theme="dark"] .risk-result-badge.low {
  background: #064E3B;
  color: #6EE7B7;
}
[data-theme="dark"] .risk-result-badge.moderate {
  background: #78350F;
  color: #FCD34D;
}
[data-theme="dark"] .risk-result-badge.high {
  background: #7F1D1D;
  color: #FCA5A5;
}

.risk-result h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.risk-result p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.risk-suggestions {
  text-align: left;
  max-width: 500px;
  margin: 24px auto 0;
}
.risk-suggestions h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.risk-suggestions ul {
  list-style: disc;
  padding-left: 20px;
}
.risk-suggestions li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.risk-restart {
  margin-top: 28px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  transition: box-shadow var(--transition-base);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: var(--teal);
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--text-tertiary);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--teal);
  transition: all var(--transition-base);
}
.testimonial-card:nth-child(2) {
  border-left-color: var(--coral);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card cite {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: normal;
}

/* ============================================================
   ORGANISATIONS
   ============================================================ */
.organisations-section {
  background: var(--bg-secondary);
}

.org-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.org-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.org-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.org-text ul {
  list-style: none;
  margin-bottom: 32px;
}
.org-text li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  color: var(--text-secondary);
}
.org-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}
.org-text li:nth-child(even)::before {
  background: var(--coral);
}

.org-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.org-icon-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  color: var(--teal);
}
.org-icon-item:nth-child(even) {
  color: var(--coral);
}
.org-icon-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.org-icon-item span {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--bg-primary);
  padding: 80px 0;
}

.newsletter-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.newsletter-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.newsletter-form {
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 12px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: var(--bg-secondary);
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--teal);
}

.newsletter-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 10px;
}

.newsletter-success p {
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 600;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--bg-cta);
  padding: var(--section-padding);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.cta-buttons .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}
.cta-buttons .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.cta-buttons .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cta-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--teal);
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--teal);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--coral);
  color: #fff;
}

.modal-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal-body .modal-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--teal-bg);
  color: var(--teal);
  margin-bottom: 24px;
}

.modal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--teal);
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}
.modal-body li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.modal-body .modal-summary {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  margin-top: 24px;
}
.modal-body .modal-summary p {
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0;
}

[data-theme="dark"] .modal-body .modal-summary p {
  color: var(--teal-light);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--teal-dark);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section {
    padding: 140px 0 100px;
    min-height: auto;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-number {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .deepfakes-grid {
    grid-template-columns: 1fr;
  }
  .deepfakes-content h2 {
    font-size: 2rem;
  }
  .deepfakes-headline {
    font-size: 1.2rem;
  }

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

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

  .framework-steps {
    flex-direction: column;
    align-items: center;
  }
  .framework-connector {
    width: 2px;
    height: 20px;
  }
  .framework-step {
    width: auto;
    max-width: 280px;
  }

  .risk-checker-container {
    padding: 32px 24px;
  }

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

  .org-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .modal-content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .org-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Print ---- */
@media print {
  .site-header, .back-to-top, .dark-mode-toggle, .mobile-menu-btn { display: none; }
  .section { padding: 40px 0; }
  body { color: #000; background: #fff; }
}
