/* ── SCH.CSS — Schrödinger Analytical shared design system ─────────────────
   Import ONCE per page after Google Fonts.
   Provides: tokens, language toggle, navbar, footer, reveal, base.
   Page-specific components stay in inline <style>.
   ─────────────────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg:            #F0F2F5;
  --bg-2:          #E8EAED;
  --bg-3:          #DDE0E6;
  --neu-base:      #E8EAED;
  --neu-raised:    -4px -4px 10px rgba(255,255,255,0.9), 4px 4px 12px rgba(0,0,0,0.12);
  --neu-inset:     inset -2px -2px 6px rgba(255,255,255,0.8), inset 2px 2px 8px rgba(0,0,0,0.10);
  --blue:          #2E86FF;
  --blue-l:        #60A5FA;
  --blue-xl:       #BFDBFE;
  --blue-bg:       rgba(46,134,255,0.08);
  --blue-border:   rgba(46,134,255,0.2);
  --text:          #0F172A;
  --text-2:        #334155;
  --text-3:        #64748B;
  --white:         #FFFFFF;
  --success:       #10B981;
  --font-sans:     'Geist', 'Inter', -apple-system, sans-serif;
  --font-mono:     'Geist Mono', 'JetBrains Mono', monospace;
  --radius:        16px;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.6;
}
.uml { color: var(--blue); }

/* ── LANGUAGE TOGGLE ────────────────────────────────────────────────────── */
/* Default: show EN, hide all others (including unsupported hi) */
:not(body).fr,
:not(body).pt,
:not(body).es,
:not(body).hi { display: none; }

/* FR active */
body.fr :not(body).en { display: none; }
body.fr :not(body).fr { display: revert; }
body.fr span.fr       { display: inline; }
body.fr div.fr,
body.fr p.fr,
body.fr h1.fr, body.fr h2.fr, body.fr h3.fr,
body.fr h4.fr         { display: block; }
body.fr li.fr         { display: list-item; }
body.fr a.fr          { display: inline; }

/* PT active */
body.pt :not(body).en { display: none; }
body.pt :not(body).fr { display: none; }
body.pt :not(body).pt { display: revert; }
body.pt span.pt       { display: inline; }
body.pt div.pt,
body.pt p.pt,
body.pt h1.pt, body.pt h2.pt, body.pt h3.pt,
body.pt h4.pt         { display: block; }
body.pt li.pt         { display: list-item; }
body.pt a.pt          { display: inline; }

/* ES active */
body.es :not(body).en { display: none; }
body.es :not(body).fr { display: none; }
body.es :not(body).pt { display: none; }
body.es :not(body).es { display: revert; }
body.es span.es       { display: inline; }
body.es div.es,
body.es p.es,
body.es h1.es, body.es h2.es, body.es h3.es,
body.es h4.es         { display: block; }
body.es li.es         { display: list-item; }
body.es a.es          { display: inline; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(232,234,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

/* Desktop row */
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; gap: 10px;
}
.nav-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue), #1a5fc8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white;
  font-family: var(--font-mono); font-weight: 700;
  box-shadow: 0 2px 8px rgba(46,134,255,0.35);
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 17px; font-weight: 600;
  color: var(--text); letter-spacing: -0.5px;
  font-family: var(--font-sans);
}
.nav-right { display: flex; align-items: center; gap: 4px; }

/* Language selector */
.lang-selector { display: flex; align-items: center; gap: 3px; margin-right: 4px; }
.lang-btn {
  background: none; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px; padding: 3px 8px;
  font-size: 12px; line-height: 1.4;
  cursor: pointer; transition: all 0.15s;
  font-family: var(--font-sans); color: var(--text-3); font-weight: 500;
}
.lang-btn:hover,
.lang-btn.active {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue);
}

/* Nav links */
.nav-cta {
  background: var(--blue); color: white; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 8px;
  transition: all 0.2s; box-shadow: 0 2px 12px rgba(46,134,255,0.30);
  white-space: nowrap; font-family: var(--font-sans); margin-left: 2px;
}
.nav-cta:hover {
  background: #1a6fe8;
  box-shadow: 0 4px 20px rgba(46,134,255,0.45);
  transform: translateY(-1px);
}
.nav-cta.ghost {
  background: transparent; color: var(--text-3);
  font-weight: 500; box-shadow: none; border: none;
}
.nav-cta.ghost:hover {
  color: var(--text); background: rgba(0,0,0,0.05);
  box-shadow: none; transform: none;
}
.nav-cta.active {
  color: var(--blue); background: transparent;
  box-shadow: none; border: none;
}
.nav-cta.active:hover {
  background: rgba(46,134,255,0.07);
  transform: none; box-shadow: none;
}

/* Mobile nav — row1 (logo + lang) and row2 (links) */
.nav-row1 {
  height: 52px; display: none; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  width: 100%; justify-content: space-between;
}
.nav-row2 { display: none; }

.nav-row2 a {
  font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.2;
  text-decoration: none; padding: 5px 7px; border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-row2 a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-row2 a.nav-active {
  color: var(--blue);
  position: relative;
}
.nav-row2 a.nav-active::after {
  content: ''; position: absolute;
  bottom: 1px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue);
}

/* Mobile breakpoints */
@media (max-width: 768px) {
  .nav-inner { display: none; }
  .nav-row1  { display: flex; }
  .nav-row2  {
    display: flex; align-items: center; justify-content: space-evenly;
    padding: 0 8px 8px; flex-wrap: nowrap;
    border-top: 1px solid rgba(0,0,0,0.06);
    overflow-x: auto;
  }
}
@media (max-width: 600px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .nav-row1 { padding: 0 12px; }
  .nav-logo-text { font-size: 15px; }
  .nav-logo-mark { width: 26px; height: 26px; font-size: 12px; }
  .lang-btn { padding: 3px 6px; font-size: 11px; }
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: #0F172A;
  padding: 40px 24px 32px;
  border-top: 1px solid rgba(46,134,255,0.1);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  font-size: 16px; font-weight: 600; color: white;
  font-family: var(--font-sans);
}
.footer-tagline {
  font-size: 11px; color: rgba(255,255,255,0.3);
  font-family: var(--font-mono); margin-top: 4px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  align-items: center;
}
.footer-links a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-copy {
  font-size: 11px; color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  line-height: 1.6;
}
.footer-copy a { color: rgba(255,255,255,0.35); }
.footer-copy a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 600px) {
  footer { padding: 32px 20px 24px; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-links { gap: 4px 12px; }
}

/* ── REVEAL ANIMATION ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
