/* ============================================================
   omarmanzoni.it — page styles, built on AssessmentManager tokens
   ============================================================ */

:root {
  --accent: var(--primary-600);
  --accent-strong: var(--primary-700);
  --accent-soft: var(--primary-50);
  --accent-glow: rgba(79, 70, 229, 0.30);
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-gap: clamp(72px, 11vh, 132px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Eyebrow / section heads ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--primary-300); }
.eyebrow.on-dark::before { background: var(--primary-300); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 18ch;
}
.section-lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 20px 0 0;
}

section { scroll-margin-top: 88px; }
.section { padding-block: var(--section-gap); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 15px -3px var(--accent-glow), 0 4px 6px -4px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -4px var(--accent-glow), 0 0 18px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-secondary); border-color: #d4d4d8; }
.btn-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: var(--text-base); }

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand > span { white-space: nowrap; }
.brand-tile {
  width: 38px; height: 38px;
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-md);
  flex: none;
}
.brand-tile svg { width: 21px; height: 21px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
  transition: color .3s ease;
  white-space: nowrap;
}
.brand-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  transition: color .3s ease;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 13px;
  border-radius: var(--radius-lg);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface-secondary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* nav over dark hero (top of page) */
.nav:not(.scrolled) .brand-name { color: #fff; }
.nav:not(.scrolled) .brand-role { color: rgba(255,255,255,0.6); }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.78); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
}
.nav:not(.scrolled) .nav-toggle { color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   Hero — the one dark, mesh moment
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--login-mesh-base);
  background-image: var(--login-mesh);
  color: #fff;
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: clamp(72px, 12vh, 140px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(15,23,42,0.0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--primary-200);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse-dot 3s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 26px 0 0;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #c7d2fe 0%, #f0abfc 55%, #fbcfe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  max-width: 52ch;
  margin: 26px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.66);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--primary-300); }

/* portrait */
.hero-portrait { position: relative; justify-self: center; }
.portrait-slot {
  width: min(380px, 76vw);
  height: min(460px, 92vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px -10px rgba(124,58,237,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  background: #312e81;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-badge {
  position: absolute;
  left: -22px; bottom: 30px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 12px;
  max-width: 240px;
}
.portrait-badge .pb-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.portrait-badge .pb-icon svg { width: 20px; height: 20px; }
.portrait-badge .pb-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--text-primary); line-height: 1.1; }
.portrait-badge .pb-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-cue svg { width: 18px; height: 18px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================================
   Cards & shared bits
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-xl);
  display: grid; place-items: center;
  flex: none;
}
.icon-tile svg { width: 25px; height: 25px; }
.tile-indigo { background: var(--primary-50); color: var(--primary-600); }
.tile-teal   { background: var(--psychometric-50); color: var(--psychometric-700); }
.tile-violet { background: var(--quiz-50); color: var(--quiz-700); }
.tile-blue   { background: var(--inbasket-50); color: var(--inbasket-700); }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-body p { color: var(--text-secondary); font-size: 1.06rem; line-height: 1.68; margin: 0 0 18px; }
.about-body p:first-of-type { font-size: 1.18rem; color: var(--text-primary); }
.about-body strong { color: var(--text-primary); font-weight: 600; }
.value-list { display: grid; gap: 14px; margin-top: 8px; }
.value {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
}
.value:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value h3 { font-size: var(--text-lg); font-weight: 700; margin: 2px 0 5px; }
.value p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.service { padding: 30px; display: flex; flex-direction: column; }
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service h3 { font-size: 1.35rem; font-weight: 700; margin: 22px 0 12px; line-height: 1.15; }
.service > p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.62; margin: 0 0 20px; }
.service ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.service li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--text-primary); line-height: 1.45; align-items: flex-start; }
.service li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.service.s-indigo li svg { color: var(--primary-600); }
.service.s-teal li svg { color: var(--psychometric-600, #0d9488); }
.service.s-violet li svg { color: var(--quiz-700); }

/* ---- Projects ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.project { padding: 28px; display: flex; flex-direction: column; height: 100%; }
.project:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.project-client { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-indigo { background: var(--primary-50); color: var(--primary-700); }
.badge-teal { background: var(--psychometric-50); color: var(--psychometric-700); }
.badge-violet { background: var(--quiz-50); color: var(--quiz-700); }
.project h3 { font-size: var(--text-lg); font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.project p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.62; margin: 0 0 22px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  font-size: 12px; color: var(--text-secondary);
  background: var(--surface-secondary);
  padding: 5px 11px; border-radius: var(--radius-full);
}

/* ---- Clients ---- */
.clients { background: var(--surface-secondary); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.client-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  height: 104px;
  display: grid; place-items: center;
  padding: 22px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.client-cell:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.client-slot { width: 100%; height: 100%; }
.client-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-secondary); letter-spacing: -0.01em; text-align: center; }
.clients-note { text-align: center; margin-top: 26px; font-size: var(--text-sm); color: var(--text-tertiary); }

/* ---- Resources ---- */
.resources-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
}
.resources-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.12; margin: 0 0 14px; }
.resources-card p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.62; margin: 0 0 24px; }
.res-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--warning-700); background: var(--warning-50);
  padding: 6px 12px; border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.res-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning-500); }
.res-visual {
  border-radius: var(--radius-2xl);
  background: var(--login-mesh-base);
  background-image: var(--login-mesh);
  min-height: 220px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.9);
}
.res-visual svg { width: 64px; height: 64px; opacity: 0.85; }

/* ---- Contact ---- */
.contact { background: var(--login-mesh-base); background-image: var(--login-mesh); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); }
.contact h2 { color: #fff; }
.contact .section-lead { color: rgba(255,255,255,0.74); }
.contact-info { display: grid; gap: 16px; margin-top: 36px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-item:hover { background: rgba(255,255,255,0.12); transform: translateX(3px); }
.contact-item .ci-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid; place-items: center;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item .ci-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-200); }
.contact-item .ci-value { font-weight: 600; font-size: var(--text-base); margin-top: 2px; }

.form-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-2xl);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-xl);
  color: var(--text-primary);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); }
.field label .req { color: var(--error-500); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--text-tertiary); display: flex; align-items: center; gap: 7px; }
.form-note svg { width: 14px; height: 14px; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: var(--success-50); color: var(--success-700);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 12px 16px; font-size: var(--text-sm); font-weight: 500;
  margin-top: 18px;
}
.form-success.show { display: flex; }
.form-success svg { width: 18px; height: 18px; }
.form-error {
  display: none;
  align-items: center; gap: 10px;
  background: var(--error-50); color: var(--error-700);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 12px 16px; font-size: var(--text-sm); font-weight: 500;
  margin-top: 18px;
}
.form-error.show { display: flex; }
.form-error svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--text-primary); color: rgba(255,255,255,0.7); padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer-about { font-size: var(--text-sm); line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 38ch; margin: 18px 0 0; }
.footer h4 { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: var(--text-sm); color: rgba(255,255,255,0.72); transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-card { grid-template-columns: 1fr; }
  .res-visual { order: -1; min-height: 160px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brandcol { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .portrait-badge { left: 0; }
}

/* ============================================================
   Tweak: light hero variant
   ============================================================ */
body.hero-light .hero {
  background-color: #fff;
  background-image:
    radial-gradient(at 15% 12%, var(--accent-soft) 0px, transparent 55%),
    radial-gradient(at 88% 8%, #faf5ff 0px, transparent 50%),
    radial-gradient(at 90% 92%, #ecfeff 0px, transparent 55%);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
body.hero-light .hero h1 { color: var(--text-primary); }
body.hero-light .hero-sub { color: var(--text-secondary); }
body.hero-light .hero-meta { color: var(--text-secondary); }
body.hero-light .hero-eyebrow {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}
body.hero-light .hero h1 .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--quiz-500) 60%, #ec4899 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.hero-light .btn-light {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: none;
}
body.hero-light .btn-light:hover { background: var(--surface-secondary); }
body.hero-light .scroll-cue { color: var(--text-tertiary); }
body.hero-light .portrait-slot { border-color: var(--border); box-shadow: var(--shadow-xl); }
/* nav over a light hero, before scroll */
body.hero-light .nav:not(.scrolled) .brand-name { color: var(--text-primary); }
body.hero-light .nav:not(.scrolled) .brand-role { color: var(--text-tertiary); }
body.hero-light .nav:not(.scrolled) .nav-links a { color: var(--text-secondary); }
body.hero-light .nav:not(.scrolled) .nav-links a:hover { color: var(--text-primary); background: var(--surface-secondary); }
body.hero-light .nav:not(.scrolled) .nav-toggle { color: var(--text-primary); }

/* ============================================================
   Tweak: density
   ============================================================ */
body.density-compact { --section-gap: clamp(52px, 7vh, 86px); }
body.density-comfy   { --section-gap: clamp(90px, 14vh, 168px); }

/* ============================================================
   Platform showcase (AssessmentManager)
   ============================================================ */
.btn-white { background: #fff; color: var(--primary-700); }
.btn-white:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 22px -4px rgba(0,0,0,0.28); }

.platform-card {
  background-color: var(--login-mesh-base);
  background-image: var(--login-mesh);
  color: #fff;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.platform-lockup { display: flex; align-items: center; gap: 14px; margin: 16px 0 22px; }
.platform-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
}
.platform-wordmark .mgr { color: var(--primary-300); }
.platform-desc { color: rgba(255,255,255,0.78); font-size: 1.06rem; line-height: 1.62; margin: 0 0 14px; max-width: 52ch; }
.platform-actions { margin-top: 28px; }
.platform-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.platform-features li { display: flex; gap: 14px; align-items: center; font-size: var(--text-sm); color: rgba(255,255,255,0.92); line-height: 1.4; }
.platform-features .pf-ic {
  width: 38px; height: 38px; flex: none;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--primary-200);
  display: grid; place-items: center;
}
.platform-features .pf-ic svg { width: 19px; height: 19px; }

@media (max-width: 860px) {
  .platform-card { grid-template-columns: 1fr; }
}

/* ---- Mobile menu sheet ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--surface);
  padding: 24px;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open .mobile-sheet { transform: none; }
.mobile-sheet .ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-sheet .ms-close { background: none; border: 0; cursor: pointer; color: var(--text-secondary); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-lg); }
.mobile-sheet .ms-close:hover { background: var(--surface-secondary); }
.mobile-sheet a {
  font-size: 1.05rem; font-weight: 500; color: var(--text-primary);
  padding: 13px 12px; border-radius: var(--radius-lg);
}
.mobile-sheet a:hover { background: var(--surface-secondary); }
.mobile-sheet .btn { margin-top: 14px; justify-content: center; }
