/* ========================================================================
   Miravio Labs — shared stylesheet
   ======================================================================== */

:root {
  --navy: #0b1628;
  --navy-soft: #16233c;
  --blue: #2f6fed;
  --cyan: #22d3ee;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e4e9f2;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 22, 40, 0.18);
  --gradient: linear-gradient(120deg, var(--blue), var(--cyan));
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--slate); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gradient);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(47, 111, 237, 0.55); }

/* ---------- header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-color: var(--blue);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 860px) {
  /* .site-header uses backdrop-filter, which creates a new containing
     block for fixed-position descendants — so this menu is positioned
     absolute against the (already positioned, via position:sticky)
     header instead of fixed against the viewport. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.16), rgba(47, 111, 237, 0.05) 60%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* circuit diagram visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
}

/* ---------- sections ---------- */

section { padding: 78px 0; }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.alt-bg { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.navy-bg { background: var(--navy); color: var(--white); }
.navy-bg p { color: rgba(255,255,255,0.68); }
.navy-bg h2, .navy-bg h3 { color: var(--white); }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

.card .num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.lane-card { padding: 22px 20px; }
.lane-card h3 { font-size: 1rem; margin-bottom: 6px; }
.lane-card p { font-size: 0.88rem; margin-bottom: 0; }

/* stage ladder */
.stage-ladder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.stage {
  border-radius: 10px;
  padding: 16px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
}
.stage .stage-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.stage h4 { font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) {
  .stage-ladder { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stage-ladder { grid-template-columns: repeat(2, 1fr); }
}

/* process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-num {
  font-size: 2.4rem;
  font-weight: 300;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  display: block;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* path comparison table */
.path-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .path-table { grid-template-columns: 1fr; } }

.path-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--white);
}
.path-card.primary {
  border: none;
  background: var(--navy);
  color: var(--white);
  position: relative;
}
.path-card.primary p { color: rgba(255,255,255,0.72); }
.path-card.primary .tag {
  background: var(--gradient);
  color: var(--white);
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue);
  margin-bottom: 16px;
}
.path-card ul { margin: 18px 0 0; padding-left: 20px; }
.path-card li { margin-bottom: 9px; font-size: 0.94rem; color: var(--slate); }
.path-card.primary li { color: rgba(255,255,255,0.82); }

/* quote / belief block */
.belief {
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  padding-left: 26px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  max-width: 780px;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 22px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 55%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--slate); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--slate-light);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- misc page bits ---------- */

.page-hero {
  padding: 64px 0 20px;
}
.page-hero p.lead { max-width: 60ch; font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--navy-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--gradient);
}

.gate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gate-table th, .gate-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.gate-table th {
  background: var(--bg);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
.gate-table tr:last-child td { border-bottom: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--navy-soft);
  background: var(--white);
}

.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-soft);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--navy);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--slate-light); margin-top: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient);
  flex-shrink: 0;
}

.founder-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--slate);
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  padding: 16px 28px 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--slate-light);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border);
}
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs li[aria-current="page"] { color: var(--navy-soft); font-weight: 500; }

/* ---------- response-time badge ---------- */

.promise-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-top: 18px;
}
.promise-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
}
.faq-question .icon::before,
.faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-question .icon::before { width: 10px; height: 2px; }
.faq-question .icon::after { width: 2px; height: 10px; transition: transform 0.2s ease; }
.faq-item.open .faq-question .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 20px; margin: 0; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 249, 252, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .sticky-cta .btn {
    width: 100%;
    justify-content: center;
  }
  body.has-sticky-cta {
    padding-bottom: 78px;
  }
}

/* ---------- simple content pages (privacy, 404, thank-you) ---------- */

.prose h2 { margin-top: 34px; font-size: 1.3rem; }
.prose h3 { margin-top: 22px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 22px; }
.prose a { color: var(--blue); text-decoration: underline; }

.error-code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 300;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
