/* ==========================================================================
   Ceres Vapor Tech — Website v07
   Design system extracted from designer reference (Website Reference/Ceres_Assets_02.pdf)
   ========================================================================== */

:root {
  /* Core palette — sampled from designer reference mockups */
  --navy: #16233f;
  --navy-2: #0f1a30;
  --ink: #1a2744;
  --ink-soft: #4b5567;
  --teal: #0891b2;
  --teal-dark: #067a97;
  --teal-tint: #e3f4f8;
  --purple: #6d28d9;
  --purple-deep: #361b6a;
  --purple-mid: #4c2a8f;
  --green: #14b881;
  --green-tint: #e3f8ef;
  --amber: #d97706;
  --amber-tint: #fdf1de;
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #f1f5f9;
  --border: #e4e9f0;
  --border-soft: #edf1f6;
  --white: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(22, 35, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 35, 63, 0.08);
  --shadow-lg: 0 20px 48px rgba(22, 35, 63, 0.14);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-intro { max-width: 720px; }
.section-intro p { margin-top: 14px; font-size: 1.02rem; }

.section { padding: 72px 0; }
.section--panel { background: var(--panel); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy .eyebrow { color: var(--white); }
.section--navy .eyebrow { color: #7fd4e8; }
.section--navy p { color: #b9c3d6; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: #fff; white-space: nowrap; }
.brand-tagline { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; color: #9fb3d1; white-space: nowrap; text-transform: uppercase; margin-top: 1px; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: #c7cfdd; font-size: 0.92rem; font-weight: 600; padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: #6fd6ea;
}
.nav-links a[aria-current="page"] { border-bottom-color: var(--teal); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff !important; font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 999px; border: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; padding: 13px 24px; border-radius: 999px;
  border: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, var(--panel) 100%);
  text-align: center;
}
.hero .section-intro { max-width: 760px; margin: 0 auto; }
.hero .eyebrow { display: block; text-align: center; }
.hero p { margin: 18px auto 0; }

.tcm1-card {
  margin-top: 44px;
  border-radius: var(--radius-lg);
  padding: 40px;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 45%, var(--purple-deep) 100%);
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tcm1-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}
.tcm1-card-inner { position: relative; max-width: 640px; }
.tcm1-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tcm1-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.14); color: #fff; margin-bottom: 16px;
}
.status-pill.status-planned { background: var(--amber-tint); color: var(--amber); }
.status-pill.status-dev { background: var(--green-tint); color: #0a8a5f; }
.tcm1-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.tcm1-card p { color: #d9d3f5; font-size: 0.98rem; }
.market-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.market-pill {
  font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff;
}
.market-pill.flag { display: inline-flex; align-items: center; gap: 5px; }
.tcm1-card .link-cta { color: #fff; font-weight: 700; font-size: 0.92rem; }
.tcm1-card .link-cta:hover { color: #b9f0ff; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid; gap: 20px; margin-top: 36px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon img { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; font-size: 1.02rem; }
.card p { font-size: 0.92rem; }

.card--flush { padding: 0; overflow: hidden; }

/* problem/solution */
.ps-card {
  border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border);
}
.ps-card--problem { background: #fdf4f3; border-color: #f6dcd9; }
.ps-card--solution { background: var(--green-tint); border-color: #cdeee0; }
.ps-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.ps-card--problem .ps-tag { color: #c0392b; }
.ps-card--solution .ps-tag { color: #0a8a5f; }
.ps-card h3 { margin: 10px 0 10px; font-size: 1.15rem; }
.ps-card p { font-size: 0.92rem; }

/* dark tech cards */
.tech-flow {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; margin-top: 32px;
}
.flow-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.flow-step { text-align: center; flex: 1; min-width: 110px; }
.flow-step .icon-box {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.flow-step .icon-box img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.flow-step strong { display: block; font-size: 0.85rem; color: var(--navy); }
.flow-step span { display: block; font-size: 0.74rem; color: var(--ink-soft); margin-top: 2px; }
.flow-arrow { color: var(--border); font-size: 1.3rem; flex: 0 0 auto; }

.dark-panel {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg); padding: 30px; margin-top: 20px;
}
.dark-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 22px; margin-bottom: 14px;
}
.dark-card:last-child { margin-bottom: 0; }
.dark-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.dark-card-icon {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.dark-card-icon img { width: 18px; height: 18px; }
.dark-card h4 { color: #fff; font-size: 0.98rem; margin: 0; }
.dark-card p { color: #aab4c8; font-size: 0.88rem; margin-top: 6px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(20, 184, 129, 0.16); color: #4ee2a6;
}

/* status badges (light bg contexts) */
.badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; }
.badge-dev { background: var(--green-tint); color: #0a8a5f; }
.badge-planned { background: var(--amber-tint); color: var(--amber); }

/* AI models grid */
.model-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px;
}
.model-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.model-track {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: var(--teal-dark);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase;
}
.model-track img { width: 15px; height: 15px; }

/* media figure (real hardware / manufacturing photography) */
.media-figure {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.media-figure img, .media-figure video { display: block; width: 100%; height: auto; }
.media-figure--compact { max-width: 280px; margin: 0 auto; }
.media-caption { padding: 12px 18px; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .media-figure--compact { max-width: 220px; }
}

/* about facility */
.facility-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px;
}
.facility-card:last-child { margin-bottom: 0; }
.facility-card .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.facility-card h3 { font-size: 1rem; margin-bottom: 4px; }
.facility-card p { font-size: 0.9rem; }
.partner-note {
  font-size: 0.88rem; color: var(--ink-soft); background: var(--panel-2);
  border-left: 3px solid var(--teal); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0 0;
}

/* leadership */
.person-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px;
}
.person-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid var(--border);
}
.person-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person-role { font-size: 0.82rem; color: var(--teal-dark); font-weight: 700; }
.person-card p.bio { font-size: 0.9rem; margin-top: 4px; }

/* investors numbered list */
.acquirer-row {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border-soft);
}
.acquirer-row:first-child { padding-top: 0; }
.acquirer-row:last-child { border-bottom: none; padding-bottom: 0; }
.acquirer-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
  flex: 0 0 auto;
}
.acquirer-row h3 { font-size: 1rem; margin-bottom: 4px; }
.acquirer-row p { font-size: 0.9rem; }

.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.logo-strip img { height: 26px; width: auto; opacity: 0.72; filter: grayscale(1); transition: opacity .15s ease, filter .15s ease; }
.logo-strip img:hover { opacity: 1; filter: grayscale(0); }
.logo-strip .logo-eys { height: 34px; }

.window-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.window-row:last-child { border-bottom: none; }
.window-row .card-icon { flex: 0 0 auto; }
.window-row h3 { font-size: 1rem; margin-bottom: 4px; }
.window-row p { font-size: 0.9rem; }

/* contact "who we're looking for" */
.audience-card { display: flex; gap: 16px; align-items: flex-start; }
.audience-card h3 { font-size: 1rem; margin-bottom: 4px; }
.audience-card p { font-size: 0.9rem; }

/* stats row (home hero replacement for removed medical stat row) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-box { text-align: center; padding: 20px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 36px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,145,178,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; }
.form-note a { color: var(--teal); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; display: none; padding: 10px 14px; border-radius: 8px; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-tint); color: #0a8a5f; }
.form-status.err { background: #fdecea; color: #c0392b; }

.contact-side .card { margin-bottom: 16px; }
.contact-side .card:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #aab4c8; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { font-weight: 800; color: #fff; font-size: 1rem; }
.site-footer p { color: #8b96ac; font-size: 0.88rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aab4c8; font-size: 0.88rem; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 14px; }
.footer-legal { font-size: 0.78rem; color: #74809a; max-width: 640px; }
.footer-legal-links { display: flex; gap: 18px; flex: 0 0 auto; }
.footer-legal-links a { font-size: 0.78rem; color: #aab4c8; }
.footer-legal-links a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.social-icon:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #1c2c52 100%); padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3d6; margin-top: 12px; }
.cta-band .btn-row { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.blog-card { display: block; }
.blog-card-img {
  width: 100%; height: 140px; border-radius: var(--radius-sm); background: var(--panel-2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; gap: 18px;
}
.blog-card-img img { width: 48px; height: 48px; }
.blog-card-img--dual img { width: 44px; height: 44px; }
.blog-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.blog-card p { font-size: 0.92rem; margin-bottom: 14px; }
.blog-meta { font-size: 0.8rem; color: var(--ink-soft); }
.blog-hero-icons {
  display: flex; gap: 16px; justify-content: center; max-width: 760px; margin: 0 auto 40px;
}

/* ---------- Legal / prose pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { margin: 40px 0 12px; font-size: 1.3rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 8px; }
.legal-content .legal-updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 32px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 12px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open a { padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open .nav-cta-mobile {
    display: inline-flex; margin-top: 10px; background: var(--teal); color: #fff;
    padding: 10px 18px; border-radius: 999px; font-weight: 700;
  }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .section { padding: 52px 0; }
  .tcm1-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-tagline { display: none; }
}
