/* ==========================================================================
   Sanitica – Styles
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #050A12;
  --bg-mid: #0A1120;
  --bg-surface: #0E1726;
  --bg-elevated: #131F33;
  --border: #1A2A42;
  --border-light: #243B5C;
  --text-primary: #E8EDF4;
  --text-secondary: #A3B5C8;
  --text-muted: #8296AB;
  --teal: #00F0D4;
  --teal-dim: #00C4AD;
  --teal-glow: rgba(0, 240, 212, 0.15);
  --teal-faint: rgba(0, 240, 212, 0.06);
  --blue: #00A8E8;
  --red: #E8364F;
  --red-dim: rgba(232, 54, 79, 0.5);
  --mode-clean: #E8364F;
  --mode-clean-bg: rgba(232, 54, 79, 0.06);
  --mode-pseudo: #A855F7;
  --mode-pseudo-bg: rgba(168, 85, 247, 0.06);
  --mode-meta: #EAB308;
  --mode-meta-bg: rgba(234, 179, 8, 0.06);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -- Background ----------------------------------------------------------- */

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 212, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-grid::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 240, 212, 0.04), transparent),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(0, 168, 232, 0.03), transparent);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* -- Skip link ------------------------------------------------------------ */

.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;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; padding: 8px 16px;
  background: var(--teal); color: var(--bg-deep); font-weight: 600; font-size: 14px;
  border-radius: 0 0 6px 6px; z-index: 200; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* -- Nav ------------------------------------------------------------------ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  background: rgba(5, 10, 18, 0.8);
  border-bottom: 1px solid rgba(26, 42, 66, 0.5);
}
nav::before {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}
nav .container { display: flex; align-items: center; justify-content: space-between; z-index: auto; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 36px; height: 36px; }
.nav-logo-text { font-weight: 700; font-size: 20px; letter-spacing: 3px; color: var(--text-primary); }
.nav-logo-text span { background: linear-gradient(135deg, var(--teal), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: 0.5px; transition: color 0.3s; }
.nav-links a:hover { color: var(--teal); }
.nav-link-highlight { color: var(--teal) !important; font-weight: 500; }
.btn-nav { padding: 7px 18px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: var(--bg-deep) !important; font-weight: 600; font-size: 13px; border-radius: 6px; text-decoration: none; transition: all 0.3s; box-shadow: 0 0 16px var(--teal-glow); }
.btn-nav:hover { box-shadow: 0 0 28px rgba(0, 240, 212, 0.25); transform: translateY(-1px); }
/* Hamburger button (hidden on desktop) */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; z-index: 1000;
  position: relative;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* -- Buttons -------------------------------------------------------------- */

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: linear-gradient(135deg, var(--teal), var(--blue)); color: var(--bg-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.3px;
  border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all 0.3s; box-shadow: 0 0 24px var(--teal-glow);
}
.btn-primary:hover { box-shadow: 0 0 48px rgba(0, 240, 212, 0.3); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: transparent; color: var(--text-primary); font-family: var(--font-display);
  font-weight: 500; font-size: 15px; border: 1px solid var(--border-light); border-radius: 8px;
  cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: 0 0 24px var(--teal-faint); }

/* -- Hero ----------------------------------------------------------------- */

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: rgba(232, 54, 79, 0.08); border: 1px solid rgba(232, 54, 79, 0.2);
  border-radius: 100px; font-family: var(--font-mono); font-size: 12px; color: var(--red);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px var(--red); animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: 54px; font-weight: 700; line-height: 1.12; letter-spacing: -1.5px;
  margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient { background: linear-gradient(135deg, var(--teal), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-subtitle {
  font-size: 18px; color: var(--text-secondary); line-height: 1.75; max-width: 520px;
  margin-bottom: 40px; animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta { display: flex; gap: 16px; animation: fadeInUp 0.8s ease 0.3s both; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* -- Hero visual ---------------------------------------------------------- */

.hero-visual { display: flex; justify-content: center; align-items: center; animation: fadeInUp 0.8s ease 0.4s both; }
.scenario-box { position: relative; width: 380px; }
.scenario-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.scenario-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.scenario-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3A506B, #5C7998); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.scenario-meta { flex: 1; }
.scenario-name { font-size: 13px; font-weight: 600; }
.scenario-role { font-size: 11px; color: var(--text-muted); }
.scenario-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.scenario-body { padding: 20px; }

.chat-msg { margin-bottom: 16px; opacity: 0; animation: msgIn 0.4s ease forwards; }
.chat-msg:nth-child(1) { animation-delay: 0.8s; }
.chat-msg:nth-child(2) { animation-delay: 2.4s; }
.chat-msg:nth-child(3) { animation-delay: 4.0s; }
.chat-msg:nth-child(4) { animation-delay: 5.2s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.chat-bubble { display: inline-block; padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 90%; }
.chat-user .chat-bubble { background: #1A3052; border: 1px solid #243D5E; color: var(--text-primary); }
.chat-ai .chat-bubble { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); }
.chat-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.5px; }
.pii-highlight { background: rgba(232, 54, 79, 0.15); border: 1px solid rgba(232, 54, 79, 0.3); border-radius: 3px; padding: 0 4px; color: var(--red); font-family: var(--font-mono); font-size: 12px; }

.scenario-alert { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(232, 54, 79, 0.06); border-top: 1px solid rgba(232, 54, 79, 0.15); opacity: 0; animation: msgIn 0.4s ease 6.2s forwards; }
.alert-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(232, 54, 79, 0.12); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.alert-text { font-size: 11px; color: var(--red); font-weight: 500; line-height: 1.4; }

.float-badge { position: absolute; padding: 6px 12px; background: var(--bg-deep); border: 1px solid rgba(232, 54, 79, 0.3); border-radius: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--red); letter-spacing: 0.5px; white-space: nowrap; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); opacity: 0; animation: badgeIn 0.5s ease forwards; }
.float-badge.b1 { top: -12px; right: -20px; animation-delay: 6.8s; }
.float-badge.b2 { bottom: 50px; left: -28px; animation-delay: 7.3s; }
@keyframes badgeIn { from { opacity: 0; transform: scale(0.8) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* -- Trust strip ---------------------------------------------------------- */

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-strip-icon {
  font-size: 16px;
  color: var(--teal);
}

/* -- Stats ---------------------------------------------------------------- */

.stats-bar { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-mid); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 700; letter-spacing: -1px; background: linear-gradient(135deg, var(--red), #FF6B81); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* -- Sections ------------------------------------------------------------- */

.section { padding: 120px 0; position: relative; }
.section-label { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.section h2 { font-size: 42px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; margin-bottom: 20px; }
.section p.lead { font-size: 18px; color: var(--text-secondary); max-width: 600px; line-height: 1.75; }

/* -- Risk cards ----------------------------------------------------------- */

.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.risk-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; transition: all 0.4s ease; position: relative; overflow: hidden; }
.risk-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: 0.6; }
.risk-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3); }
.risk-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(232, 54, 79, 0.08); border: 1px solid rgba(232, 54, 79, 0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 22px; }
.risk-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.risk-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }

/* -- Solution ------------------------------------------------------------- */

.solution-section { background: var(--bg-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.solution-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.solution-points { display: flex; flex-direction: column; gap: 32px; }
.solution-point { display: flex; gap: 20px; }
.solution-point-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-faint); border: 1px solid rgba(0, 240, 212, 0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.solution-point h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.solution-point p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }

/* -- Before/After --------------------------------------------------------- */

.doc-compare { display: flex; gap: 24px; align-items: stretch; }
.doc-mini { flex: 1; background: var(--bg-surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); transition: all 0.4s ease; }
.doc-mini:hover { transform: translateY(-2px); }
.doc-mini.before { border-color: rgba(232, 54, 79, 0.2); }
.doc-mini.after { border-color: rgba(0, 240, 212, 0.2); }
.doc-mini-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.doc-mini-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.doc-mini.before .doc-mini-label { color: var(--red); }
.doc-mini.after .doc-mini-label { color: var(--teal); }
.doc-mini-tag { font-family: var(--font-mono); font-size: 9px; padding: 2px 8px; border-radius: 4px; }
.doc-mini.before .doc-mini-tag { background: rgba(232, 54, 79, 0.1); color: var(--red); }
.doc-mini.after .doc-mini-tag { background: var(--teal-faint); color: var(--teal); }
.doc-mini-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini-line { height: 8px; border-radius: 4px; }
.mini-line.safe-before { background: #1C2E48; }
.mini-line.pii-before { background: rgba(232, 54, 79, 0.4); box-shadow: 0 0 8px rgba(232, 54, 79, 0.1); }
.mini-line.safe-after { background: rgba(0, 240, 212, 0.12); }
.mini-line.pii-gone { background: transparent; border: 1px dashed rgba(0, 240, 212, 0.1); }
.doc-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; color: var(--teal); font-size: 18px; opacity: 0.6; }

/* -- Compliance ----------------------------------------------------------- */

.compliance-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.compliance-badge { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.compliance-badge:hover { border-color: rgba(0, 240, 212, 0.15); transform: translateY(-2px); }
.compliance-badge-icon { font-size: 20px; }
.compliance-badge-text { font-size: 14px; font-weight: 500; }
.compliance-badge-sub { font-size: 11px; color: var(--text-muted); }

/* -- CTA ------------------------------------------------------------------ */

.cta-section { text-align: center; padding: 160px 0 100px; position: relative; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 240, 212, 0.06), transparent 70%); pointer-events: none; }
.cta-section h2 { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 20px; }
.cta-section p.cta-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.75; }

/* -- Signup form ---------------------------------------------------------- */

.signup-form {
  display: flex; gap: 0; max-width: 480px; margin: 0 auto 20px; position: relative;
}
.signup-form input[type="email"] {
  flex: 1; padding: 16px 22px; background: var(--bg-surface);
  border: 1px solid var(--border-light); border-right: none; border-radius: 10px 0 0 10px;
  color: var(--text-primary); font-family: var(--font-display); font-size: 15px;
  outline: none; transition: all 0.3s;
}
.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-faint), 0 0 20px var(--teal-faint);
}
.signup-form button[type="submit"] {
  padding: 16px 32px; background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--bg-deep); font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: none; border-radius: 0 10px 10px 0; cursor: pointer; transition: all 0.3s;
  white-space: nowrap; box-shadow: 0 0 24px var(--teal-glow);
}
.signup-form button[type="submit"]:hover { box-shadow: 0 0 48px rgba(0, 240, 212, 0.3); }

.signup-note { font-size: 12px; color: var(--text-muted); margin-bottom: 40px; }
.signup-divider { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.signup-success {
  display: none; padding: 24px 28px; background: var(--teal-faint);
  border: 1px solid rgba(0, 240, 212, 0.2); border-radius: 12px;
  max-width: 480px; margin: 0 auto 20px; text-align: center;
}
.signup-success .check { font-size: 32px; margin-bottom: 8px; }
.signup-success h4 { font-size: 17px; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.signup-success p { font-size: 14px; color: var(--text-secondary); margin-bottom: 0; }

/* -- Signup bar ----------------------------------------------------------- */

.signup-bar {
  padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-mid); text-align: center;
}
.signup-bar h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.signup-bar p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.signup-bar .signup-form { max-width: 440px; }

/* -- FAQ ------------------------------------------------------------------ */

.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: var(--border-light); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 20px 24px; background: var(--bg-surface); border: none; cursor: pointer;
  text-align: left; font-family: var(--font-display); font-size: 16px; font-weight: 500;
  color: var(--text-primary); transition: all 0.3s; gap: 16px;
}
.faq-question:hover { background: var(--bg-elevated); }
.faq-question:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.faq-icon { font-size: 20px; color: var(--teal); transition: transform 0.3s; flex-shrink: 0; font-weight: 300; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 24px; background: var(--bg-surface); }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }

/* -- Footer --------------------------------------------------------------- */

footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-text { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--teal); }

/* -- Scroll reveal -------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -- Mode Cards ----------------------------------------------------------- */

.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }

.mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.8;
}
.mode-card--clean::before { background: var(--mode-clean); }
.mode-card--pseudo::before { background: var(--mode-pseudo); }
.mode-card--meta::before { background: var(--mode-meta); }

.mode-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.mode-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  border: 1px solid var(--border);
}
.mode-card--clean .mode-card-icon { background: var(--mode-clean-bg); border-color: rgba(232, 54, 79, 0.15); }
.mode-card--pseudo .mode-card-icon { background: var(--mode-pseudo-bg); border-color: rgba(168, 85, 247, 0.15); }
.mode-card--meta .mode-card-icon { background: var(--mode-meta-bg); border-color: rgba(234, 179, 8, 0.15); }

.mode-card-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.mode-card-usecase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mode-card--clean .mode-card-usecase { color: var(--mode-clean); }
.mode-card--pseudo .mode-card-usecase { color: var(--mode-pseudo); }
.mode-card--meta .mode-card-usecase { color: var(--mode-meta); }

.mode-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.mode-card-example {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.mode-example-before {
  color: var(--red);
  text-decoration: line-through;
  opacity: 0.6;
}
.mode-example-after { color: var(--teal); }
.mode-card--pseudo .mode-example-after { color: var(--mode-pseudo); }
.mode-card--meta .mode-example-after { color: var(--mode-meta); }

.mode-card-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero h1 { font-size: 38px; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .mode-cards { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .solution-content { grid-template-columns: 1fr; gap: 48px; }
  .doc-compare { flex-direction: column; }
  .doc-arrow { transform: rotate(90deg); width: auto; padding: 8px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .compliance-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-content { flex-direction: column; gap: 20px; }
  .nav-hamburger { display: flex; }

  /* Mobile menu: use ID for max specificity */
  #nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg-deep) !important;
    z-index: 999 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 80px 32px 32px !important;
    overflow-y: auto !important;
    list-style: none !important;
    display: none !important;
  }
  #nav-links.open {
    display: flex !important;
  }
  #nav-links li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid var(--border);
  }
  #nav-links li a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 16px 0 !important;
    font-size: 16px !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
  }
  #nav-links li a:hover,
  #nav-links li a:active {
    color: var(--teal) !important;
  }
  #nav-links li:last-child { border-bottom: none; }
  #nav-links .btn-nav {
    margin-top: 16px; text-align: center; border-radius: 8px; padding: 14px;
    background: linear-gradient(135deg, var(--teal), var(--blue)) !important;
    color: var(--bg-deep) !important;
    font-weight: 600 !important;
  }
  .nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  .nav-overlay.open { display: block; }
  .trust-strip { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .section h2 { font-size: 32px; }
  .cta-section h2 { font-size: 36px; }
}

@media (max-width: 600px) {
  .signup-form { flex-direction: column; gap: 12px; }
  .signup-form input[type="email"] { border-right: 1px solid var(--border-light); border-radius: 10px; }
  .signup-form button[type="submit"] { border-radius: 10px; }
  .compliance-badges { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 32px; }
  .section h2 { font-size: 28px; }
  .cta-section h2 { font-size: 30px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .scenario-box { width: 100%; overflow: hidden; }
  .float-badge.b1 { right: 4px; }
  .float-badge.b2 { left: 4px; }
}
