/* ═══════════════════════════════════════════
   SIMPLEX MICRO — DESIGN SYSTEM
   IBM Plex Sans 400 & 600 only
═══════════════════════════════════════════ */


/* ── TOKENS ── */
:root {
  --font:        'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:   'Courier New', monospace;

  /* Colors */
  --navy:        #020d1a;
  --navy-mid:    #001f42;
  --blue:        #2A6BF2;
  --blue-pale:   #e8f0fe;
  --green:       #00c98a;
  --green-bright:#00e5a8;
  --amber:       #F5A26A;
  --red:         #ff4444;
  --white:       #ffffff;
  --off-white:   #F5F7FA;
  --body-bg:     #f8fbff;
  --section-bg:  #f6faff;
  --border:      #e5eaf0;

  /* Text */
  --text-dark:   #1d252d;
  --text-muted:  #5a6a7a;
  --text-light:  rgba(255,255,255,0.85);

  /* Typography scale */
  --text-xs:     clamp(0.875rem, 1vw, 1rem);
  --text-sm:     clamp(0.9375rem, 1.1vw, 1.0625rem);
  --text-base:   clamp(1rem, 1.1vw, 1.125rem);
  --text-h3:     clamp(1.25rem, 2vw, 1.5rem);
  --text-h2:     clamp(1.5rem, 3vw, 2.25rem);
  --text-h1:     clamp(2rem, 4vw, 3rem);
  --text-hero:   clamp(2.25rem, 5.6vw, 5rem);

  /* Spacing */
  --maxw:        1280px;
  --r:           12px;
  --section-pad: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
@media (max-width: 768px) { html { font-size: 16px; } }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--body-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
p + p { margin-top: 1rem; }
h1, h2, h3 { line-height: 1.1; margin-block: 1.5rem 1rem; font-weight: 600; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--blue); color: #fff;
  padding: 8px 16px; z-index: 9999;
  font-size: 14px; border-radius: 0 0 6px 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(2,13,26,0.94);
  border-bottom: 1px solid rgba(0,201,138,0.2);
  box-shadow: 0 1px 12px rgba(0,0,0,0.4);
  overflow: visible;
  backdrop-filter: blur(8px);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 16px;
}
.logo-box {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--green); display: flex;
  align-items: center; justify-content: center;
}
.logo-box svg { width: 20px; height: 20px; fill: #fff; }
.logo-txt { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.logo-txt b { color: var(--green-bright); }

.nav-menu { display: flex; list-style: none; flex: 1; overflow: visible; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 3px;
  padding: 0 12px; height: 72px;
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,0.8); text-decoration: none;
  transition: color .15s; white-space: nowrap; cursor: pointer;
  border: none; background: none; font-family: var(--font);
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active { color: var(--green-bright); }
.caret { font-size: 10px; transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 72px; left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  min-width: 280px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 400;
  padding-top: 4px; margin-top: -4px;
  border-radius: 0 0 8px 8px;
}
.nav-item:hover .dropdown, .nav-item.dropdown-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
}
.dropdown-section { padding: 8px 0; }
.dropdown-section + .dropdown-section { border-top: 1px solid var(--border); }
.dropdown-label {
  padding: 8px 20px 4px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; text-decoration: none;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--section-bg); }
.dropdown-item-title { font-size: 15px; font-weight: 600; color: var(--text-dark); display: block; }
.dropdown-item-desc { font-size: 13px; color: var(--text-muted); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }


/* ── SPLIT LAYOUTS ──
   These replace inline grid-template-columns. Inline styles outrank media
   queries, so any section that sets its grid inline can never collapse on
   mobile. Keep multi-column layouts in classes only. */
.split            { display: grid; gap: 48px; align-items: center; }
.split-even       { grid-template-columns: 1fr 1fr; }
.split-wide-right { grid-template-columns: 1fr 2fr; }
.split-lean-left  { grid-template-columns: 1.1fr 1fr; }
.split-gap-lg     { gap: 64px; }
.split-gap-sm     { gap: 12px; }
.split-top        { align-items: start; }

/* ── MOBILE NAV CTA ── */
.nav-cta-mobile { display: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 600; font-family: var(--font);
  text-decoration: none; cursor: pointer; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-pr { background: var(--green); color: #020d1a; }
.btn-pr:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn-ghost-w {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost-w:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-lg { padding: 18px 32px; font-size: 17px; min-height: 58px; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden; min-height: 560px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #020d1a 0%, #001f42 35%, #00375f 65%, #004a52 100%);
}
.hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 40px;
  width: 100%;
  display: grid; grid-template-columns: 45% 55%; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.badge {
  display: inline-block;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-bright);
  border: 1px solid rgba(0,229,168,0.3);
  background: rgba(0,229,168,0.08);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600; line-height: 1.04;
  letter-spacing: -.02em; color: #fff;
  margin-block: 0 24px;
}
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--off-white); line-height: 1.5;
  max-width: 520px; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 28px;
  font-size: 13px; color: rgba(255,255,255,0.72);
  font-family: var(--font-mono);
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); display: inline-block; flex-shrink: 0;
}


/* ── INTERIOR PAGE HERO ──
   Interior heroes were reusing --text-hero (up to 5rem), which is sized for the
   homepage's 45%-width column. Inside a centred 800px container that forces
   short headlines to wrap 2-3 times. This scale is tuned so a ~26-character
   line stays on one line at desktop. */
.page-hero .section-inner { max-width: 900px; }
.page-h1 em { font-style: normal; color: var(--green-bright); }
/* wider container + smaller type for headlines that run long */
.page-hero-wide .section-inner { max-width: 1060px; }
.page-h1-long { font-size: clamp(1.6rem, 2.95vw, 2.4rem); }
.page-h1 {
  font-size: clamp(1.9rem, 3.9vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-block: 0 16px;
  text-wrap: balance;
}

/* ── SECTIONS ── */
.section { padding: var(--section-pad) 0; }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 12px; display: block;
}
.section-label-blue { color: var(--blue); }
.section-title { font-size: var(--text-h2); font-weight: 600; }
.section-title-white { color: #fff; }
.section-lead { font-size: var(--text-base); color: var(--text-muted); line-height: 1.65; }
.section-lead-white { color: rgba(255,255,255,0.82); }
.section-dark { background: var(--navy); }
.section-navy { background: #040f1e; }
.section-light { background: var(--section-bg); }
.section-white { background: #fff; }
.section-center { text-align: center; }
.section-header { max-width: 700px; margin: 0 auto 48px; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── CARDS ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
}
.card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); padding: 28px;
}
.stat-num { font-size: 36px; font-weight: 600; margin-bottom: 6px; }
.stat-label { font-size: 15px; color: var(--text-muted); }
.stat-label-w { font-size: 15px; color: rgba(255,255,255,0.72); }

/* ── PROOF SYSTEM ── */
.proof-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 5px; vertical-align: middle;
}
.proof-rtl { background: var(--green); }
.proof-model { background: var(--blue); }
.proof-projected { background: var(--amber); }
.proof-ref { background: #9aa8b5; }

.proof-legend {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px; margin-top: 24px;
}
.proof-legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-family: var(--font-mono);
  color: rgba(255,255,255,0.75);
}

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.data-table thead { background: var(--section-bg); }
.data-table th { padding: 14px 20px; font-size: 13px; font-weight: 600; color: var(--text-dark); text-align: left; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 20px; font-size: 15px; color: var(--text-dark); border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.highlight { background: #e8f9f0; }
.data-table tr.highlight td { color: #00875a; font-weight: 600; }
.data-table .right { text-align: right; }
.data-table .muted { color: var(--text-muted); }
.data-table .bad { color: var(--red); }

/* ── TEAM CARDS ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 28px; text-align: center; }
.team-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.team-card .name { font-size: 17px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.team-card .title { font-size: 14px; color: var(--blue); margin-bottom: 14px; font-weight: 600; }
.team-card .bio-line { font-size: 14px; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; }

/* ── JOB CARDS ── */
.job-card {
  display: block; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.job-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.job-card-more {
  display: inline-block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}

/* ── BLOG CARDS ── */
.blog-card {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  padding: 28px; background: var(--section-bg);
  border-radius: var(--r); text-decoration: none;
  align-items: center; transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.blog-card .date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; font-weight: 600; color: var(--text-dark); margin-block: 0 8px; }
.blog-card p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }

/* ── NEWS CARDS ── */
.news-card {
  display: block; padding: 24px 28px;
  border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; transition: border-color .2s;
}
.news-card:hover { border-color: var(--blue); }
.news-card .source { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.news-card h3 { font-size: 17px; font-weight: 600; color: var(--text-dark); line-height: 1.4; }

/* ── VLOG CARDS ── */
.vlog-card { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-decoration: none; display: block; }
.vlog-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), #00375f);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vlog-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vlog-play {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(2,13,26,0.65);
  transition: background .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.vlog-play svg { width: 22px; height: 22px; fill: #fff; }
.vlog-card:hover .vlog-play { background: var(--green); transform: scale(1.06); }
.vlog-card:hover .vlog-play svg { fill: #020d1a; }
.vlog-info { padding: 20px; }
.vlog-info .date { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.vlog-info h3 { font-size: 17px; font-weight: 600; color: var(--text-dark); margin-block: 0 6px; }
.vlog-info p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, #002244 0%, #003355 50%, #004d44 100%);
  border-top: 1px solid rgba(0,201,138,0.2);
  padding: 48px 0 28px;
}
.ft-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.ft-brand p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; max-width: 260px; margin-top: 12px; }
.ft-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col a { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color .15s;
            display: inline-block; padding: 4px 0; }
.ft-col a:hover { color: #fff; }
.ft-bot {
  max-width: var(--maxw); margin: 36px auto 0; padding: 20px 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.ft-bot p { font-size: 13px; color: #fff; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-input, .form-select, .form-textarea {
  padding: 13px 16px; border: 1px solid #d8e2ec;
  border-radius: 8px; font-size: 15px; font-family: var(--font);
  color: var(--text-dark); background: #fff;
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,107,242,0.1);
}
.form-textarea { resize: vertical; }
.form-error { font-size: 13px; color: var(--red); background: #fff0f0; padding: 10px 14px; border-radius: 8px; display: none; }
.form-success { font-size: 14px; color: #00875a; background: #e8f9f0; padding: 14px 18px; border-radius: 8px; font-weight: 600; display: none; }
.form-consent input[type="checkbox"] { width: 20px; height: 20px; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dark); line-height: 1.5; }

/* ── ROADMAP ── */
.roadmap { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; position: relative; }
.roadmap::before {
  content: ''; position: absolute; top: 20px; left: 8%; right: 8%;
  height: 2px; background: rgba(0,201,138,0.3);
}
.roadmap-step { text-align: center; padding: 0 8px; position: relative; }
.roadmap-node {
  width: 40px; height: 40px; border-radius: 50%;
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
}
.roadmap-node.done { background: var(--green); }
.roadmap-node.now { background: var(--blue); font-size: 10px; font-weight: 600; color: #fff; }
.roadmap-node.next { background: rgba(255,255,255,0.1); }
.roadmap-status { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.roadmap-status.done { color: var(--green); }
.roadmap-status.now { color: var(--blue); }
.roadmap-status.next { color: rgba(255,255,255,0.58); }
.roadmap-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; }
.roadmap-label.active { color: #fff; }

/* ── FUNNEL ── */
.funnel { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.funnel::before {
  content: ''; position: absolute; top: 32px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg,var(--green),var(--blue),var(--amber),var(--green)); opacity: .4;
}
.funnel-step { text-align: center; padding: 0 16px; position: relative; }
.funnel-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 22px; font-weight: 600;
}
.funnel-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.funnel-desc { font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .funnel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(2,13,26,0.98); padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-menu.open .nav-link { height: auto; padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-in { padding: 48px 24px; gap: 32px; }
  .section-inner { padding: 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split-even, .split-wide-right, .split-lean-left { grid-template-columns: 1fr; gap: 32px; }
  .nav-menu.open .nav-cta-mobile { display: block; margin-top: 12px; }
  .nav-menu.open .nav-cta-mobile .btn { width: 100%; }
  .ft-in { grid-template-columns: 1fr; gap: 32px; }
  .ft-bot { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap::before { display: none; }
  .funnel::before { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .team-grid { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

@media (min-width: 1440px) {
  .section-inner, .nav-in, .hero-in, .ft-in { max-width: 1400px; }
}
