:root {
  --bg-dark: #070611;
  --bg-card: rgba(18, 15, 38, 0.75);
  --bg-card-hover: rgba(26, 21, 54, 0.9);
  --primary: #6342ff;
  --primary-glow: #8b5cf6;
  --primary-light: #a78bfa;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 66, 255, 0.35);
  --glass: rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 66, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header & Nav ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 6, 17, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(99, 66, 255, 0.4);
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.nav-links a:hover {
  color: var(--text-main);
}

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

.nav-pill-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: none;
  align-items: center;
}

.nav-pill-link:hover {
  color: #fff;
  border-color: var(--primary-glow);
  background: rgba(99, 66, 255, 0.15);
}

.lang-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 13px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--primary-glow);
  background: rgba(99, 66, 255, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 4px 18px rgba(99, 66, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 66, 255, 0.5);
}

.btn-app-text-mobile {
  display: none;
}

.btn-app-text-full {
  display: inline;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Hero Section ─── */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 66, 255, 0.1);
  border: 1px solid rgba(99, 66, 255, 0.3);
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  max-width: 860px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

/* ─── Academic Departments Minimal Strip ─── */
.audience-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}

.audience-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Mode Section (The Core Highlight) ─── */
.modes-section {
  padding: 30px 0 80px;
}

.modes-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.modes-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.modes-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.mode-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.mode-tab-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.mode-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab-btn.active {
  background: rgba(99, 66, 255, 0.2);
  border-color: var(--primary-glow);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 66, 255, 0.25);
}

.mode-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mode-panel.active {
  display: block;
}

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

.mode-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

.mode-info-col {
  padding-top: 10px;
}

.mode-badge {
  display: inline-block;
  background: rgba(99, 66, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 66, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.mode-info-col h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #fff;
}

.mode-info-col p.mode-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.mode-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mode-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
}

.mode-feat-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mode-feat-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.mode-feat-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ─── Ultra-Realistic Apple App Window Mockup ─── */
.app-window {
  background: #110e26;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 66, 255, 0.15);
  overflow: hidden;
}

.window-topbar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots .dot-red { background: #ff5f56; }
.window-dots .dot-yellow { background: #ffbd2e; }
.window-dots .dot-green { background: #27c93f; }

.window-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-status-pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 9px;
  border-radius: 12px;
}

.window-content {
  padding: 22px;
}

/* ─── Exam Question Mockup UI ─── */
.exam-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.exam-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-badge {
  background: rgba(99, 66, 255, 0.2);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.q-difficulty {
  font-size: 12px;
  color: var(--text-dim);
}

.q-progress-wrap {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.q-progress-bar {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
}

.q-body-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.q-stem {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 12px;
}

.q-premises {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.6;
}

.q-premises div {
  margin-bottom: 4px;
}
.q-premises div:last-child {
  margin-bottom: 0;
}

.q-root {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.q-option .opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.q-option.correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #fff;
}

.q-option.correct .opt-letter {
  background: var(--accent-emerald);
  color: #fff;
  border-color: transparent;
}

.opt-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 6px;
}

.q-solution-box {
  background: rgba(99, 66, 255, 0.08);
  border: 1px solid rgba(99, 66, 255, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

.q-solution-box strong {
  color: var(--primary-light);
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
}

.window-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.btn-mini {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saved-indicator {
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── Study Set Mockup UI ─── */
.study-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-pill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.stat-pill-card .stat-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.stat-pill-card .stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.stat-pill-card .stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
}

.doc-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.doc-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 66, 255, 0.3);
}

.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.doc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 66, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.doc-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.doc-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.doc-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.doc-mini-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.doc-mini-tag.highlight {
  background: rgba(99, 66, 255, 0.15);
  border-color: rgba(99, 66, 255, 0.35);
  color: var(--primary-light);
}

/* ─── Minimal Features Grid (3 Core Pillars) ─── */
.pillars-section {
  padding: 60px 0 90px;
  border-top: 1px solid var(--border);
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 26px;
  border-radius: 18px;
  transition: all 0.25s ease;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 66, 255, 0.35);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(99, 66, 255, 0.12);
  border: 1px solid rgba(99, 66, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-glow);
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.pillar-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  background: rgba(6, 5, 14, 0.9);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

/* ─── Trust, Support & Privacy Quick Cards ─── */
.trust-quick-bar {
  padding: 10px 0 40px;
}

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

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.trust-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 66, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 66, 255, 0.12);
  border: 1px solid rgba(99, 66, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-content {
  flex: 1;
  min-width: 0;
}

.trust-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.trust-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-arrow {
  color: var(--primary-light);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.trust-card:hover .trust-arrow {
  transform: translateX(3px);
}

/* ─── Dedicated Support & Privacy CTA Section ─── */
.support-cta-section {
  padding: 20px 0 70px;
}

.support-cta-box {
  background: linear-gradient(135deg, rgba(26, 21, 54, 0.85) 0%, rgba(13, 11, 30, 0.95) 100%);
  border: 1px solid rgba(99, 66, 255, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 66, 255, 0.1);
}

.support-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.support-cta-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.support-cta-text p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 580px;
}

.support-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ─── Legal Pages (Privacy, Terms, Support) ─── */
.legal-page {
  padding: 40px 24px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  color: #fff;
}

.legal-meta {
  font-size: 13.5px;
  color: var(--text-dim);
}

.legal-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 14px;
  color: #cbd5e1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(99, 66, 255, 0.35);
}

.faq-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── Responsive & Mobile Optimization ─── */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .mode-card-grid { grid-template-columns: 1fr; gap: 24px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .support-cta-box { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 22px; }
  .support-cta-actions { width: 100%; flex-direction: row; }
  .support-cta-actions a { flex: 1; justify-content: center; text-align: center; }
  nav.nav-links { display: none; }
  .nav-pill-link { display: inline-flex; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .nav-wrap { height: 52px; flex-wrap: nowrap; }
  .logo-brand { gap: 8px; flex-shrink: 0; }
  .logo-brand img { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
  .logo-text { font-size: 16px; letter-spacing: -0.3px; white-space: nowrap; }
  .nav-actions { gap: 5px; flex-shrink: 0; white-space: nowrap; }
  .nav-pill-link { font-size: 11px; padding: 4px 8px; border-radius: 10px; flex-shrink: 0; }
  .lang-btn { font-size: 11px; padding: 4px 7px; border-radius: 10px; flex-shrink: 0; }
  .btn-header-app {
    display: inline-flex !important;
    font-size: 11px !important;
    padding: 5px 9px !important;
    border-radius: 10px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .btn-app-text-full { display: none !important; }
  .btn-app-text-mobile { display: inline !important; }

@media (max-width: 440px) {
  .container { padding: 0 12px; }
  .logo-brand { gap: 6px; }
  .logo-brand img { width: 25px; height: 25px; border-radius: 6px; }
  .logo-text { font-size: 15px; }
  .nav-actions { gap: 4px; }
  .nav-actions .nav-pill-privacy { display: none; }
  .nav-pill-link { font-size: 10.5px; padding: 4px 7px; }
  .lang-btn { font-size: 10.5px; padding: 4px 6px; }
  .btn-header-app { font-size: 10.5px !important; padding: 4px 8px !important; }
}

  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 27px; line-height: 1.2; letter-spacing: -0.5px; }
  .hero p.lead { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
  .badge-pill { font-size: 11.5px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 26px; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; font-size: 14px; padding: 10px 16px; }

  .audience-minimal { gap: 6px; margin-bottom: 26px; }
  .audience-chip { font-size: 11px; padding: 4px 10px; }

  /* Trust Cards on Mobile */
  .trust-quick-bar { padding: 0 0 30px; }
  .trust-card { padding: 14px 14px; border-radius: 14px; gap: 12px; }
  .trust-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .trust-title { font-size: 13.5px; }
  .trust-desc { font-size: 11.5px; }

  /* Mode Switcher on Mobile: Side-by-side tabs, NOT giant full-width buttons! */
  .mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
  }
  .mode-tab-btn {
    padding: 10px 6px;
    font-size: 12px;
    border-radius: 10px;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  .modes-header { margin-bottom: 20px; }
  .modes-header h2 { font-size: 22px; }
  .modes-header p { font-size: 13px; }
  .mode-info-col h3 { font-size: 20px; }
  .mode-info-col p.mode-desc { font-size: 13.5px; margin-bottom: 18px; }
  .mode-feat-item { padding: 10px 12px; }
  .mode-feat-text h4 { font-size: 13.5px; }
  .mode-feat-text p { font-size: 12px; }

  /* App Window & Mockup Content: Proportional, Compact & Beautiful */
  .app-window {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .window-topbar { padding: 8px 10px; }
  .window-title { font-size: 11px; }
  .window-status-pill { font-size: 9.5px; padding: 2px 7px; flex-shrink: 0; }
  .window-content { padding: 12px 10px; }

  .q-badge { font-size: 11px; padding: 3px 8px; }
  .q-difficulty { font-size: 11px; }
  .q-progress-wrap { width: 80px; }

  .q-body-box { padding: 10px 10px; margin-bottom: 10px; border-radius: 10px; }
  .q-stem { font-size: 13px; margin-bottom: 8px; }
  .q-premises { padding: 8px 10px; font-size: 11.5px; margin-bottom: 8px; line-height: 1.45; }
  .q-root { font-size: 12.5px; }

  .q-options-list { gap: 6px; margin-bottom: 10px; }
  .q-option { padding: 8px 10px; font-size: 12px; border-radius: 8px; gap: 8px; }
  .q-option .opt-letter { width: 20px; height: 20px; font-size: 11px; }
  .opt-tag { font-size: 9.5px; padding: 2px 5px; }

  .q-solution-box { padding: 10px 10px; font-size: 11.5px; border-radius: 8px; }

  .window-footer-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: 10px;
  }
  .btn-mini { font-size: 11px; padding: 5px 10px; }
  .saved-indicator {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 10.5px;
    margin-top: 4px;
  }

  /* Fixed Mobile Stat Pills: Stays compact 3-column, NOT 3 giant full-width boxes! */
  .study-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
    margin-bottom: 12px;
  }
  .stat-pill-card { padding: 8px 4px; border-radius: 8px; text-align: center; }
  .stat-pill-card .stat-icon { font-size: 14px; margin-bottom: 2px; }
  .stat-pill-card .stat-val { font-size: 13px; }
  .stat-pill-card .stat-lbl { font-size: 9px; line-height: 1.2; }

  .doc-cards-list { gap: 8px; }
  .doc-card-item { padding: 10px 10px; border-radius: 10px; }
  .doc-name { font-size: 12px; }
  .doc-sub { font-size: 10px; }
  .doc-badges-row { gap: 4px; }
  .doc-mini-tag { font-size: 9.5px; padding: 2px 5px; }

  /* Pillar Cards on Mobile */
  .pillars-section { padding: 36px 0 44px; }
  .pillar-card { padding: 18px 16px; border-radius: 14px; }
  .pillar-icon { width: 38px; height: 38px; font-size: 18px; margin-bottom: 10px; }
  .pillar-card h3 { font-size: 16px; }
  .pillar-card p { font-size: 13px; line-height: 1.5; }

  /* Support CTA Box on Mobile */
  .support-cta-section { padding: 10px 0 40px; }
  .support-cta-box { padding: 22px 18px; border-radius: 16px; }
  .support-cta-text h3 { font-size: 19px; }
  .support-cta-text p { font-size: 13px; }
  .support-cta-actions { flex-direction: column; width: 100%; gap: 8px; }
  .support-cta-actions a { font-size: 13.5px; padding: 10px 14px; }

  /* Legal Pages on Mobile */
  .legal-page { padding: 24px 16px 60px; }
  .legal-header h1 { font-size: 22px; }
  .legal-body { font-size: 13.5px; }
  .legal-body h2 { font-size: 16.5px; margin: 22px 0 10px; }
  .legal-box { padding: 14px 14px; font-size: 12.5px; }
  .faq-item { padding: 14px 14px; }
  .faq-item h4 { font-size: 14px; }
  .faq-item p { font-size: 12.5px; }

  /* Footer on Mobile */
  footer { padding: 32px 0 24px; }
  .footer-top { gap: 22px; margin-bottom: 22px; }
  .footer-nav { gap: 20px; width: 100%; justify-content: space-between; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin: 0 8px; }
}

