/* StrataPath.ai site styles. Brand colors are sampled from the logo. */

:root {
  /* Fixed brand colors */
  --violet: #583aec;
  --violet-mid: #8576f5;
  --violet-soft: #c0b8f5;
  --coral: #f1573a;
  --navy: #0d0e29;

  /* Theme tokens: light */
  --bg: #f5f6f6;
  --surface: #ffffff;
  --ink: #0d0e29;
  --muted: #51546a;
  --line: #dcdde6;
  --accent: #583aec;
  --accent-red: #de4021;
  color-scheme: light;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e29;
    --surface: #171838;
    --ink: #f3f3fa;
    --muted: #acaec8;
    --line: #2d2f55;
    --accent: #a597fa;
    --accent-red: #ff7a5f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0e29;
  --surface: #171838;
  --ink: #f3f3fa;
  --muted: #acaec8;
  --line: #2d2f55;
  --accent: #a597fa;
  --accent-red: #ff7a5f;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin-top: 20px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font: 500 0.8rem/1.3 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: #4729d6; }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--violet-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.4rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 36px; height: 34px; flex: none; }
.brand b { font-weight: 700; color: var(--accent); }
.brand i { font-style: normal; font-size: .72em; color: var(--accent-red); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .975rem;
  color: var(--muted);
  text-decoration: none;
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.nav .btn { min-height: 42px; margin-left: 10px; padding: 8px 20px; font-size: .95rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .theme-btn { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 1.1rem; }
  .nav a:not(.btn)[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { display: flex; margin: 12px 0 0; min-height: 48px; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lede { margin-block: 24px 32px; }
.hero-art { width: 100%; height: auto; }
.hero-art text { font: 500 6.2px var(--display); letter-spacing: -0.01em; fill: var(--ink); }
.path-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s .25s cubic-bezier(.6, 0, .2, 1) forwards;
}
.path-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop .4s 1.6s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art text { font-size: 7px; }
}

/* Inner-page heading */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); max-width: 17em; }
.page-head .lede { margin-top: 24px; }

/* Three-column problem list */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.cols-3 h3 { margin-bottom: 10px; }
.tick-col { padding-top: 20px; border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; } }

/* Strata rows: the logo's stacked bars, used as a layout */
.strata { display: grid; gap: 14px; }
.stratum {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 8px 28px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.4vw, 40px);
  border-radius: 32px;
  color: var(--navy);
  text-decoration: none;
  transition: transform .2s;
}
.stratum:hover { transform: translateX(6px); }
.stratum--value { width: 76%; background: var(--violet); color: #fff; }
.stratum--capability { width: 88%; background: var(--violet-mid); }
.stratum--foundation { width: 100%; background: var(--violet-soft); }
.stratum-tag { font: 500 .78rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.stratum h3 { margin-bottom: 6px; }
.stratum p { font-size: 1rem; line-height: 1.5; }
.stratum-arrow { font: 500 1.5rem/1 var(--display); }
@media (max-width: 760px) {
  .stratum, .stratum--value, .stratum--capability { width: 100%; grid-template-columns: 1fr; border-radius: 24px; }
  .stratum-arrow { display: none; }
}

/* Ascending approach steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; counter-reset: step; }
.step {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  counter-increment: step;
}
.step:nth-child(1) { margin-top: 108px; }
.step:nth-child(2) { margin-top: 72px; }
.step:nth-child(3) { margin-top: 36px; }
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 28px;
  font: 500 .9rem/1 var(--display);
  color: var(--accent-red);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.step .when { margin-top: 16px; font: 500 .85rem/1.3 var(--display); color: var(--ink); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { margin-top: 0; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.card .tag { font-size: .9rem; color: var(--muted); }
.card .figure {
  margin-block: 28px 2px;
  font: 700 clamp(2.5rem, 4vw, 3.2rem)/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--accent);
}
.card .figure-label { font: 500 .95rem/1.3 var(--display); margin-bottom: 16px; }
.card p { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.card h3 { margin-bottom: 10px; }
.card .price { margin-top: auto; padding-top: 22px; font: 500 1rem/1.3 var(--display); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 18px 0 0; list-style: none; }
.chips li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font: 500 .8rem/1.3 var(--display); color: var(--muted); }

/* Quote */
.quote { max-width: 880px; margin: clamp(48px, 6vw, 80px) 0 0; }
.quote blockquote {
  margin: 0 0 18px;
  font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.25 var(--display);
  letter-spacing: -0.02em;
}
.quote figcaption { color: var(--muted); }

/* Call to action band */
.cta { padding-block: clamp(16px, 3vw, 32px) var(--section); }
.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  border-radius: 36px;
  background: var(--violet);
  color: #fff;
}
.cta-box h2 { max-width: 14em; margin-bottom: 16px; }
.cta-box p { max-width: 34em; margin-bottom: 28px; font-size: 1.15rem; color: #e6e2ff; }

/* Service detail */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.service-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font: 500 .78rem/1.3 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.service h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.service-body > p { margin-bottom: 28px; font-size: 1.15rem; line-height: 1.55; }
.service-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.service-split h3 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0; }
.dash-list li { position: relative; padding: 7px 0 7px 22px; font-size: 1rem; line-height: 1.45; color: var(--muted); }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .service-split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font: 500 1.15rem/1.35 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent-red); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 42em; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); }
.split p + p { margin-top: 18px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); }
.principles h3 { margin-bottom: 8px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--violet-soft);
  background-image: linear-gradient(135deg, var(--violet) 0 34%, var(--violet-mid) 34% 67%, var(--violet-soft) 67%);
}
@media (max-width: 860px) {
  .split, .team { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(48px, 7vw, 88px) var(--section); }
.contact-grid h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.next-steps { margin-top: 40px; counter-reset: next; }
.next-steps li { position: relative; padding: 0 0 22px 48px; counter-increment: next; }
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font: 500 .9rem/1 var(--display);
}
.next-steps strong { display: block; font-family: var(--display); font-weight: 500; }
.next-steps span { color: var(--muted); font-size: 1rem; }
.contact-details { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-details li { padding-block: 3px; }

.form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 6px; font: 500 .95rem/1.3 var(--display); }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
textarea { min-height: 136px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; border-radius: 12px; }
.form .btn { width: 100%; }
.form-status { margin-top: 14px; font-size: .95rem; color: var(--accent-red); }
.form-status:empty { display: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { padding-block: 48px 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-tag {
  margin-top: 12px;
  font: 500 .72rem/1.3 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { padding-block: 8px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .path-line { animation: none; stroke-dashoffset: 0; }
  .path-node { animation: none; opacity: 1; }
}
