/* ================================================
   MineVision OS — shared stylesheet
   ================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* ---------- design tokens ---------- */
:root {
  --navy-900: #081729;
  --navy-800: #0B1F3B;
  --navy-700: #0f2747;
  --navy-600: #162f52;
  --navy-500: #1e3a63;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --teal: #00B3B8;
  --teal-bright: #00D4DA;
  --teal-dark: #008B8F;

  --text: #F2F4F7;
  --text-muted: #A9B3C2;
  --text-dim: #6B7A8F;

  --module-payload: #00B3B8;
  --module-conveyor: #2DD4BF;
  --module-surface: #38BDF8;
  --module-pit: #818CF8;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", monospace;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }

/* ---------- layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  display: inline-block;
}
.section-title { font-size: clamp(28px, 4vw, 44px); max-width: 760px; margin-bottom: 20px; }
.section-lede { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 23, 41, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  display: grid; place-items: center; color: var(--navy-900); font-weight: 700; font-size: 14px;
}
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: transparent; border: 0; color: var(--text); padding: 8px; }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  background: var(--navy-800); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 8px; min-width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.15s;
}
.dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown__menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; color: var(--text);
}
.dropdown__menu a:hover { background: var(--navy-700); color: var(--teal-bright); }
.dropdown__menu small { display: block; color: var(--text-dim); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px;
  font-family: var(--ff-body); font-weight: 500; font-size: 14px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary {
  background: var(--teal); color: var(--navy-900);
}
.btn--primary:hover { background: var(--teal-bright); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-bright); }
.btn--lg { padding: 16px 28px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,23,41,0.7) 0%, rgba(8,23,41,0.9) 60%, var(--navy-900) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 880px;
  margin-bottom: 24px;
  line-height: 1.08;
}
.hero__title em { font-style: normal; color: var(--teal-bright); }
.hero__lede { font-size: 19px; color: var(--text-muted); max-width: 640px; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy-800);
}
.trustbar__row {
  display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 20px 0;
  align-items: center; justify-content: space-between;
}
.trustbar__item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.trustbar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

/* ---------- module grid (home) ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.module {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.module::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--teal));
  opacity: 0.7;
}
.module:hover { border-color: var(--accent, var(--teal)); transform: translateY(-2px); }
.module__header { display: flex; align-items: center; justify-content: space-between; }
.module__num {
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.14em;
}
.module__badge {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.04); color: var(--accent, var(--teal));
  border: 1px solid var(--line-strong);
}
.module__title { font-size: 24px; margin-top: 8px; }
.module__desc { color: var(--text-muted); font-size: 15px; margin: 0; }
.module__meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px;
}
.module__chip {
  font-family: var(--ff-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--text-muted); letter-spacing: 0.04em;
}
.module__arrow {
  margin-top: 16px; font-size: 13px; color: var(--accent, var(--teal));
  display: inline-flex; align-items: center; gap: 6px;
}

.module--payload  { --accent: var(--module-payload); }
.module--conveyor { --accent: var(--module-conveyor); }
.module--surface  { --accent: var(--module-surface); }
.module--pit      { --accent: var(--module-pit); }

/* ---------- generic cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 48px;
}
.card {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 18px; }
.card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.card__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(0,179,184,0.1); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 6px;
}

/* ---------- problem/use-case grid ---------- */
.problems {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 48px;
}
.problem {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.problem__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.9;
  border-bottom: 1px solid var(--line);
}
.problem__body { padding: 22px; }
.problem__label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--teal); text-transform: uppercase; margin-bottom: 8px;
}
.problem__title { font-size: 16px; margin-bottom: 8px; }
.problem__desc { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- process steps ---------- */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 56px;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.process__step {
  padding: 32px; position: relative;
  border-right: 1px solid var(--line);
}
.process__step:last-child { border-right: 0; }
.process__step img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 8px; margin-bottom: 20px;
}
.process__num {
  font-family: var(--ff-mono); font-size: 12px; color: var(--teal);
  letter-spacing: 0.14em; margin-bottom: 8px;
}
.process__step h3 { font-size: 20px; margin-bottom: 10px; }
.process__step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- specs table ---------- */
.specs {
  margin-top: 48px;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.specs__row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  align-items: center;
}
.specs__row:last-child { border-bottom: 0; }
.specs__label {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted); text-transform: uppercase;
}
.specs__val { font-size: 15px; color: var(--text); font-weight: 500; }

/* ---------- comparison table ---------- */
.compare {
  margin-top: 48px; width: 100%; border-collapse: collapse;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.compare th, .compare td {
  text-align: left; padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.compare th {
  font-family: var(--ff-mono); text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted);
  background: var(--navy-700); font-weight: 500;
}
.compare td.good { color: var(--teal-bright); font-weight: 500; }
.compare td.bad { color: var(--text-muted); }

/* ---------- two-column split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.split__img {
  border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split--reverse > :first-child { order: 2; }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 48px; max-width: 860px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__trigger {
  width: 100%; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: transparent; border: 0; color: var(--text);
  font-family: var(--ff-display); font-size: 17px; font-weight: 500;
  text-align: left;
}
.faq__trigger::after {
  content: "+"; color: var(--teal); font-size: 22px; font-weight: 400;
  transition: transform 0.2s;
}
.faq__item[open] .faq__trigger::after { content: "−"; }
.faq__body { padding: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
  padding: 56px 0;
}
.cta-band__title { font-size: 28px; max-width: 520px; }
.cta-band__lede { color: var(--text-muted); font-size: 15px; margin: 8px 0 0; }

/* ---------- ROI calculator ---------- */
.roi {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 48px;
}
.roi__panel {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
}
.roi__field { margin-bottom: 20px; }
.roi__field label {
  display: block; font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.roi__field input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  background: var(--navy-900); border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--text); font-family: var(--ff-body);
  transition: border-color 0.15s;
}
.roi__field input:focus { outline: 0; border-color: var(--teal); }
.roi__result {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.roi__result:last-child { border-bottom: 0; }
.roi__result-label { font-size: 13px; color: var(--text-muted); }
.roi__result-val {
  font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--teal-bright);
}
.roi__result--hero .roi__result-val { font-size: 36px; }

/* ---------- timeline ---------- */
.timeline { margin-top: 56px; position: relative; }
.timeline__item {
  display: grid; grid-template-columns: 140px 1fr; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__phase {
  font-family: var(--ff-mono); font-size: 12px; color: var(--teal);
  letter-spacing: 0.1em;
}
.timeline__title { font-size: 18px; margin-bottom: 6px; }
.timeline__desc { font-size: 14px; color: var(--text-muted); }

/* ---------- partnership panel ---------- */
.partners {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 48px;
}
.partner {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
}
.partner__name { font-size: 22px; margin-bottom: 6px; }
.partner__role {
  font-family: var(--ff-mono); font-size: 11px; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px;
}
.partner__list { list-style: none; padding: 0; margin: 0; }
.partner__list li {
  font-size: 14px; color: var(--text-muted);
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.partner__list li:last-child { border-bottom: 0; }
.partner__list strong { color: var(--text); font-weight: 500; }

/* ---------- contact form ---------- */
.form {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 680px; margin: 48px auto 0;
}
.form__field { margin-bottom: 20px; }
.form__field label {
  display: block; font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.form__field input, .form__field textarea, .form__field select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  background: var(--navy-900); border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--text); font-family: var(--ff-body);
  transition: border-color 0.15s;
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__field input:focus, .form__field textarea:focus, .form__field select:focus {
  outline: 0; border-color: var(--teal);
}
.form__checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form__check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 8px; cursor: pointer;
  font-size: 14px;
}
.form__check:hover { border-color: var(--teal); }
.form__check input { width: 16px; height: 16px; accent-color: var(--teal); }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer__col h4 {
  font-size: 12px; font-family: var(--ff-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 6px 0; }
.footer__col a { font-size: 14px; color: var(--text-muted); }
.footer__col a:hover { color: var(--teal-bright); }
.footer__tag { color: var(--text-muted); font-size: 14px; max-width: 320px; margin: 12px 0 0; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}

/* ---------- page hero variants (sub-pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  background: var(--navy-800);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18; z-index: 0;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,59,0.5) 0%, var(--navy-800) 100%);
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { font-size: clamp(32px, 5vw, 52px); max-width: 860px; margin-bottom: 20px; }
.page-hero__lede { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 0; }

/* ---------- misc ---------- */
.divider-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--teal); text-transform: uppercase;
}
.divider-tag::before, .divider-tag::after {
  content: ""; width: 28px; height: 1px; background: var(--teal); opacity: 0.5;
}

.bg-alt { background: var(--navy-800); }

.callout {
  background: linear-gradient(135deg, rgba(0,179,184,0.08), rgba(0,179,184,0.02));
  border: 1px solid rgba(0,179,184,0.2);
  border-radius: var(--radius-lg); padding: 28px 32px;
  margin-top: 40px;
}
.callout__label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.callout p { margin: 0; color: var(--text); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .modules { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process__step { border-right: 0; border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > :first-child { order: 0; }
  .roi { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav--open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--navy-800);
    padding: 20px 24px; border-bottom: 1px solid var(--line);
    align-items: flex-start; gap: 14px;
  }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; padding: 4px 0 0 16px; box-shadow: none; min-width: 0; }
  .hero { padding: 80px 0 72px; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .form__checks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
