/* OpSimTech shared design system v5
   Used by main site + all subpages
   Mobile-first responsive, larger device-friendly breakpoints
*/
:root {
  --bg:           #000000;
  --bg-1:         #050608;
  --bg-2:         #0a0d10;
  --bg-3:         #0f1318;
  --bg-card:      #131820;
  --line:         #1a2028;
  --line-soft:    #13181f;
  --text:         #ffffff;
  --text-2:       #a8b0bc;
  --text-3:       #6c7480;
  --text-4:       #424952;
  --teal:         #1ae0b5;
  --teal-bright:  #2eedc4;
  --teal-dim:     #0bbf95;
  --teal-soft:    rgba(26, 224, 181, 0.10);
  --teal-border:  rgba(26, 224, 181, 0.28);
  --grad-text:    linear-gradient(180deg, #1ae0b5, #0bbf95);

  /* responsive scale tokens */
  --section-pad:    clamp(64px, 9vw, 120px);
  --section-pad-sm: clamp(48px, 7vw, 96px);
  --container-pad:  clamp(20px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0);
  background-size: 32px 32px;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: 960px; margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── DISPLAY (huge headlines) ── */
.display {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-wrap: balance;
}
.display .white  { color: var(--text); }
.display .teal   { color: var(--teal); }
.display .grey   { color: var(--text-3); }

/* ── MONO LABELS ── */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.mono-line {
  display: inline-flex; align-items: center; gap: 12px;
}
.mono-line::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--teal);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal);
  color: #000;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  text-align: center;
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 13px 23px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-soft); }
.arrow::after { content: '→'; font-family: inherit; font-weight: 400; }

/* ── ANNOUNCEMENT BAR ── */
.annbar {
  position: relative;
  z-index: 51;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-2);
}
.annbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 9px var(--container-pad);
  display: flex; align-items: center; justify-content: center;
  gap: 14px; position: relative;
}
.annbar .pill {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal);
  padding: 3px 8px; border-radius: 3px;
  border: 1px solid var(--teal-border); font-weight: 600;
  flex-shrink: 0;
}
.annbar a.link {
  color: var(--teal); font-weight: 600; white-space: nowrap;
}
.annbar a.link:hover { color: var(--teal-bright); }
.annbar .msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.annbar .close-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--text-3); cursor: pointer;
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.annbar .close-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text);
}
.brand .sub-brand { color: var(--teal); }
.brand .sep { color: var(--text-4); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; color: var(--text-2); font-weight: 500;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; transition: color 0.15s;
}
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal); }
.nav-cta-wrap { display: flex; gap: 12px; align-items: center; }
.nav-mobile {
  display: none; background: none; border: 0;
  color: var(--text-2); cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 6px;
}
.nav-mobile:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* mobile nav panel */
.nav-mobile-panel {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  padding: 80px 24px 32px;
  flex-direction: column; gap: 4px;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  font-family: 'Geist', sans-serif;
  font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.025em;
  padding: 14px 0; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-panel a:hover { color: var(--teal); }
.nav-mobile-panel .nav-cta-mobile {
  margin-top: 24px;
  background: var(--teal); color: #000;
  padding: 16px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  text-align: center; text-transform: none; letter-spacing: 0;
  border: 0;
}

/* ── SECTIONS ── */
.sec {
  padding: var(--section-pad) 0;
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.sec.compact { padding: var(--section-pad-sm) 0; }
.sec.first { border-top: 0; }
.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: start;
}
.sec-head .meta {
  position: sticky; top: 100px;
}
.sec-head h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 980px;
}
.sec-head h2 .teal { color: var(--teal); }
.sec-head h2 .grey { color: var(--text-3); }
.sec-head .lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-2);
  max-width: 720px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ── PHOTO SLOT (replaceable image placeholder) ── */
.photo-slot {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.photo-slot::before {
  content: attr(data-label);
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3);
  padding: 4px 8px; border-radius: 3px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  z-index: 2; pointer-events: none;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot svg { width: 100%; height: 100%; display: block; }
.photo-slot .swap-hint {
  position: absolute;
  bottom: 10px; right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
  padding: 3px 7px; border-radius: 3px;
  background: rgba(26,224,181,0.10);
  border: 1px solid var(--teal-border);
  z-index: 2; pointer-events: none;
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: var(--section-pad-sm) 0 36px;
  margin-top: 0;
}
.footer-display {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 9vw, 120px);
  letter-spacing: -0.022em;
  line-height: 0.88;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.footer-display .teal { color: var(--teal); }
.footer-display .grey { color: var(--text-3); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.footer-grid h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; margin-bottom: 22px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid li a { color: var(--text-2); font-size: 14px; transition: color 0.12s; }
.footer-grid li a:hover { color: var(--teal); }
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 320px;
  line-height: 1.55;
}
.footer-tagline {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
}
.footer-tagline .o { color: var(--teal); }
.footer-social { margin-top: 22px; display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; margin-top: 56px; border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4);
  flex-wrap: wrap; gap: 16px;
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */

/* Large desktop ≥ 1280: defaults */

/* Mid-desktop / laptop */
@media (max-width: 1180px) {
  .sec-head { grid-template-columns: 180px 1fr; gap: 40px; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-mobile { display: inline-flex; }
  .nav-cta-wrap .btn-primary { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .sec-head .meta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .annbar-inner { padding: 8px 16px; font-size: 12px; gap: 8px; }
  .annbar .pill { font-size: 9px; padding: 2px 6px; }
  .annbar .close-x { right: 6px; }
  .nav-inner { padding: 12px 18px; }
  .brand { font-size: 14px; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Very small phone */
@media (max-width: 400px) {
  .annbar .msg { display: none; }
  .footer-display { font-size: clamp(36px, 13vw, 56px); }
}

/* ──────────────────── SHARED SUBPAGE HERO ──────────────────── */
.crumb {
  padding: clamp(20px, 3vw, 32px) 0 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.crumb a { color: var(--text-3); transition: color 0.15s; }
.crumb a:hover { color: var(--teal); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--teal); }

.sub-hero {
  position: relative;
  padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.sub-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,224,181,0.08) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.sub-hero-inner { position: relative; z-index: 1; }
.sub-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1vw, 12px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.sub-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--teal); }
.sub-display {
  font-family: 'Geist', sans-serif; font-weight: 700;
  font-size: clamp(40px, 8vw, 128px);
  line-height: 0.9; letter-spacing: -0.022em; margin-bottom: 32px;
}
.sub-display .white { color: var(--text); display: block; }
.sub-display .teal { color: var(--teal); display: block; }
.sub-display .grey { color: var(--text-3); display: block; }
.sub-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2); line-height: 1.55;
  max-width: 720px;
}
.sub-sub b { color: var(--text); font-weight: 600; }

/* ──────────────────── FORMS ──────────────────── */
.form-page-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
}
.form-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.form-card .label::before {
  content: ''; width: 24px; height: 1px; background: var(--teal);
}
.field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text); font-family: inherit;
  font-size: 15px; padding: 10px 0;
  outline: none; transition: border-color 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236c7480' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px;
  font-size: 14px; color: var(--text-2);
}
.field-check input[type='checkbox'] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px; cursor: pointer;
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.field-check input[type='checkbox']:checked {
  background: var(--teal); border-color: var(--teal);
}
.field-check input[type='checkbox']:checked::after {
  content: '✓'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #000; font-size: 13px; font-weight: 700;
}
.field-upload {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.field-upload:hover { border-color: var(--teal); background: var(--teal-soft); }
.field-upload .icon { color: var(--teal); }
.field-upload .ftxt {
  font-family: 'Geist', sans-serif; font-weight: 600;
  font-size: 14px; color: var(--text);
}
.field-upload .fsub {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.form-submit {
  width: 100%; margin-top: 12px;
  padding: 16px 24px;
  font-size: 15px; font-weight: 600;
  background: var(--teal); color: #000;
  border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s, transform 0.15s;
}
.form-submit:hover { background: var(--teal-bright); transform: translateY(-1px); }

.side-block {
  display: flex; flex-direction: column; gap: 28px;
}
.side-block h3 {
  font-family: 'Geist', sans-serif; font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.022em;
  line-height: 1.08; margin-bottom: 6px;
}
.side-block h3 .teal { color: var(--teal); }
.side-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.side-list li {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 12px; align-items: start;
  font-size: 14.5px; color: var(--text-2); line-height: 1.5;
}
.side-list li::before {
  content: attr(data-num);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--teal);
  padding-top: 2px;
}
.side-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
}
.side-card .pre {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.16em; color: var(--teal); text-transform: uppercase;
  margin-bottom: 12px;
}
.side-card p {
  font-size: 14.5px; color: var(--text-2); line-height: 1.55;
}

@media (max-width: 980px) {
  .form-page-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ──────────────────── BRAND GRADIENT ON DISPLAY HEADLINES ──────────────────── */
/* mint → teal → blue, mirrors the OpSimNav identity (and the Process Engineers reference) */
.hero-display .l2,
.sub-display .teal,
.cta-display .teal,
.footer-display .teal,
.display .teal,
.sec-head h2 .teal,
.problem-bridge p .teal,
.method-tagline .teal,
.product-name .teal,
.product-tagline .teal,
.prod-name .teal,
.featured h2 .teal,
.newsletter h2 .teal,
.other-prod h4 .teal,
.method-callout .left h2 .teal,
.dec-card h3 .teal,
.prod-link h3 .teal,
.cta-frame h2 .teal,
.problem h2 .teal,
.side-block h3 .teal,
.crumb .cur,
.brand .sub-brand,
.gradient-text {
  background: linear-gradient(135deg, #83f2a1 0%, #1ae0b5 45%, #45c1ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ──────────────────── REMOVE GREY ON DISPLAY HEADLINES ──────────────────── */
/* Headlines stay white; grey is reserved for body text & labels */
.hero-display .l3, .hero-display .grey,
.sub-display .grey, .sub-display .l3,
.cta-display .grey,
.footer-display .grey,
.display .grey,
.method-tagline .grey {
  color: var(--text) !important;
}
