/* =========================================================
   StelOps — Landing Page Styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #19174f;
  --muted: #57566b;
  --soft: #f1f2f4;
  --surface: #fff;
  --line: #e4e3ea;
  --blue: #9fcbfc;
  --lavender: #9d99e8;
  --green: #d9f2df;
  --radius: 20px;
  --page: clamp(20px, 4vw, 64px);
}

[data-theme="dark"] {
  --ink: #f1f2f4;
  --muted: #a8a6b8;
  --soft: #1c1a26;
  --surface: #121118;
  --line: #2c2a38;
  --blue: #abd6ff;
  --lavender: #9d99e8;
  --green: #173b24;
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.55 'Open Sans', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
button { font: inherit; }

.wrap {
  width: min(1280px, calc(100% - (var(--page) * 2)));
  margin: auto;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -.055em;
  line-height: .99;
}
h1 { max-width: 820px; font-size: clamp(34px, 4.2vw, 58px); }
h2 { max-width: 760px; font-size: clamp(28px, 2.6vw, 42px); }
h3 { font-size: 22px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-2px); opacity: .9; }

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.button--ghost:hover {
  background: var(--soft);
  border-color: color-mix(in srgb, var(--line) 70%, var(--ink));
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}
.nav__inner { display: flex; align-items: center; min-height: 76px; gap: 24px; }

.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.brand__logo {
  display: block;
  width: 148px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  color: #19174f;
}
[data-theme="dark"] .brand__logo { color: #f1f2f4; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav__links a:hover { background: var(--soft); color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__icon, .menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}
.nav__roi {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.menu-button { display: none; }

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--page);
  left: var(--page);
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 45px rgb(25 23 79 / .14);
}
.mobile-menu[data-open="true"] { display: grid; gap: 4px; }
.mobile-menu a { padding: 13px 12px; border-radius: 10px; font-weight: 750; text-decoration: none; }
.mobile-menu a:hover { background: var(--soft); }
.mobile-menu__utilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mobile-menu__utilities button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
}
.mobile-menu__roi { display: none !important; }

@media (min-width: 721px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  align-content: center;
  min-height: calc(80svh - 76px);
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, color-mix(in srgb, var(--blue) 15%, transparent), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.55;
  text-transform: none;
}
.hero .eyebrow::before {
  content: "";
  border-radius: 999px;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #168044;
  box-shadow: 0 0 0 0 color-mix(in srgb, #168044 55%, transparent);
  animation: hero-status-pulse 2s ease-out infinite;
}
@keyframes hero-status-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #168044 45%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, #168044 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, #168044 0%, transparent); }
}
.hero p {
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }

/* ---------- Sections (general rhythm) ---------- */
section { padding: clamp(80px, 11vw, 160px) 0; }
section:not(.hero) {
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
section:nth-of-type(even) { background: var(--soft); }

.section-head { display: grid; gap: 20px; margin-bottom: 52px; }
.section-head p { max-width: 580px; color: var(--muted); font-size: 18px; }

/* ---------- Challenges grid ---------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.challenge { min-height: 220px; padding: 28px; background: var(--surface); }
.challenge p, .card p, .step p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Solutions cards ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover, .industry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--ink) 12%, transparent);
  z-index: 2;
  position: relative;
}
.card__number { display: block; margin-bottom: 48px; color: var(--lavender); font-size: 13px; font-weight: 800; }
.card__kicker {
  margin-top: 12px !important;
  color: #466aaf !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.35 !important;
}

/* ---------- Impact / stats ---------- */
.impact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.stat { min-height: 200px; padding: 25px; background: var(--surface); }
.stat strong {
  display: block;
  font-family: 'Zen Dots', sans-serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0;
  line-height: 1;
}
.stat p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.stat small { display: block; margin-top: 14px; color: var(--muted); font-weight: 750; }

.comparison-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: -2px 0 20px; }
.comparison-metric { display: grid; gap: 5px; }
.comparison-metric + .comparison-metric { padding-left: 18px; border-left: 1px solid var(--line); }
.comparison-number {
  display: block;
  color: var(--ink);
  font-family: 'Zen Dots', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1;
}
.comparison-label { color: var(--muted); font-size: 12px; line-height: 1.2; }
.stat--comparison p { margin-top: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: steps; }
.step { min-height: 260px; padding: 28px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  margin-bottom: 50px;
  color: var(--lavender);
  font-size: 13px;
  font-weight: 850;
}

/* ---------- Industry rail ---------- */
.industry-rail { position: relative; }
.industries {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 2px 12px;
}
.industries::-webkit-scrollbar { display: none; }
.industry {
  flex: 0 0 calc((100% - 32px) / 3);
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.industry p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.industry__kicker { color: #466aaf !important; font-size: 12px !important; font-weight: 700; line-height: 1.4 !important; }
[data-theme="dark"] .industry__kicker { color: var(--blue) !important; }

.industry-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.industry-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}
.industry-control:hover { background: var(--soft); transform: translateY(-2px); }
.industry-control:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Story / why section ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 130px); }
.story p { max-width: 580px; color: var(--muted); font-size: 19px; }
.story p + p { margin-top: 18px; }
.story__callout {
  margin-top: 32px !important;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* ---------- FAQ ---------- */
.faq { display: grid; }
.faq-section { background: #f1f2f4 !important; }
[data-theme="dark"] .faq-section { background: #1c1a26 !important; }
.faq-group { border-top: 1px solid var(--line); }

details {
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--blue); transition: transform .25s ease; }
details[open] summary svg { transform: rotate(180deg); }
details p { max-width: 760px; padding: 0 2px 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Final CTA ---------- */
.final { padding: 0; }
.final .wrap {
  width: min(1600px, calc(100% - var(--page)));
  background: var(--ink) !important;
  color: var(--surface);
  text-align: center;
  border-radius: 32px;
  padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 64px);
}
.final h2 { margin: 22px auto 0; max-width: 850px; }
.final p { max-width: 560px; margin: 26px auto 0; color: color-mix(in srgb, var(--surface) 70%, transparent); }
.final__note { color: var(--surface) !important; font-size: 16px; font-weight: 750; }
.final .button { margin-top: 34px; background: #fff; color: #19174f; }
[data-theme="dark"] .final .button { background: #000; color: #f1f2f4; }

/* ---------- Footer ---------- */
footer { padding: 50px 0; background: var(--soft); }
.footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.footer p {
  color: var(--muted);
  font-family: 'Archivo Narrow', sans-serif;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.footer nav a, .footer nav span { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.footer nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .challenge-grid, .solutions, .steps { grid-template-columns: repeat(2, 1fr); }
  .impact, .story { grid-template-columns: 1fr; gap: 42px; }
  .industry { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 720px) {
  .nav__inner { min-height: 68px; gap: 10px; }
  .brand__logo { width: 132px; height: 27px; }
  .nav__links, .nav__actions .button, .nav__icon { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__roi, .menu-button { display: grid; }
  .nav__roi { display: flex; align-items: center; }
  .menu-button { margin-left: 0; }

  .hero { min-height: calc(80svh - 68px); }
  section:not(.hero) { min-height: 0; }
  .challenge-grid, .solutions, .steps, .stats { grid-template-columns: 1fr; }
  .challenge, .card, .step { min-height: unset; }
  .card__number, .step::before { margin-bottom: 28px; }
  .footer { align-items: start; flex-direction: column; }
  .footer nav { justify-content: start; }
  .industry { flex-basis: 82vw; min-height: 270px; }
}

@media (max-width: 410px) {
  .nav__roi { display: none; }
  .mobile-menu__roi { display: block !important; }
}
