:root {
  --navy: #102f43;
  --ink: #0f172a;
  --muted: #64748b;
  --teal: #089e98;
  --teal-light: #d9fbf8;
  --bg: #f8fafc;
  --white: #fff;
  --border: #dbe3ea;
  --dark: #071c28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 6vw;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 260px;
  width: 260px;
  height: 64px;
  overflow: visible;
}
.logo img,
.footer-logo img {
  display: block;
  width: 260px;
  height: auto;
  max-width: none;
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--teal);
  color: white;
  font-weight: 900;
  border: 2px solid var(--teal);
  box-shadow: 0 12px 30px rgba(8,158,152,.18);
}
.button.small { padding: 10px 16px; font-size: 14px; }
.button.outline {
  background: white;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 62px 6vw 70px;
  background: radial-gradient(circle at top right, var(--teal-light), transparent 34%), linear-gradient(135deg, #fff, #f1f5f9);
}
h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
  max-width: 920px;
}
h1 span { display: block; }
h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
  max-width: 1060px;
}
h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 980px;
}
.lead { max-width: 760px; font-size: 22px; }
.kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.record-card {
  background: var(--navy);
  color: white;
  padding: 28px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(15,23,42,.22);
}
.card-label {
  color: #9ff5ec;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.record-box,
.signal-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.1);
}
.record-box span,
.signal-box span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.record-box strong,
.signal-box strong { display: block; line-height: 1.5; }
.signal-box { border: 1px solid rgba(8,158,152,.55); }

.section { padding: 76px 6vw; background: white; }
.section.light,
.loop-section { background: #f8fafc; }
.section.dark { background: var(--navy); color: white; }
.section.dark p,
.section.dark article { color: #dbeafe; }

.problem-section { padding: 78px 6vw; background: linear-gradient(135deg,#fff,#f8fafc); }
.problem-layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr);
  gap: 54px;
  align-items: center;
}
.problem-copy h2 { max-width: 760px; }
.problem-copy p { max-width: 720px; margin-bottom: 0; }
.problem-note {
  margin-top: 28px;
  max-width: 670px;
  padding: 22px 24px;
  border-left: 6px solid var(--teal);
  border-radius: 18px;
  background: #e9fbfa;
  color: #102f43;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.5;
}
.problem-card-stack { display: grid; gap: 16px; }
.problem-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #cfdce6;
  border-radius: 26px;
  background: white;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(15,23,42,.07);
  font-size: 18px;
  line-height: 1.45;
}
.problem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  border-radius: 26px 0 0 26px;
  background: var(--teal);
}
.problem-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #102f43;
  color: #9ff5ec;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .08em;
}
.problem-card strong { font-size: 18px; line-height: 1.45; }

.loop-header { max-width: 980px; }
.knowledge-loop {
  margin: 34px auto 0;
  max-width: 1120px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg,#fff,#f8fafc);
  box-shadow: 0 18px 48px rgba(15,23,42,.07);
}
.loop-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding: 20px 24px;
  border-radius: 22px;
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(15,23,42,.14);
}
.loop-eyebrow {
  margin: 0;
  color: #9ff5ec;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.loop-message h3 {
  margin: 0;
  color: white;
  font-size: clamp(28px,4vw,42px);
  line-height: 1;
  letter-spacing: -.05em;
  text-align: right;
}
.loop-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.loop-card {
  position: relative;
  padding: 20px;
  border: 1px solid #dbe3ea;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.loop-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  z-index: 2;
  width: 30px;
  height: 30px;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 950;
}
.loop-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #e9fbfa;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}
.loop-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 20px; line-height: 1.08; letter-spacing: -.03em; }
.loop-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.signal-card { border-color: rgba(8,158,152,.45); background: linear-gradient(180deg,#fff,#effdfa); }
.signal-card span { background: var(--teal); color: white; }
.loop-outcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #102f43;
  color: white;
}
.loop-outcome strong { font-size: 16px; }
.loop-outcome span { color: #9ff5ec; font-weight: 950; }

.grid { display: grid; gap: 20px; margin-top: 34px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  color: #334155;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 750;
}
.section.dark article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: white; }

.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 34px; }
.split > div { border: 1px solid var(--border); border-radius: 30px; background: #f8fafc; padding: 30px; }
.split ul { margin: 20px 0 0; padding-left: 22px; color: #334155; font-size: 18px; line-height: 1.75; }

.faq-section details { border: 1px solid var(--border); border-radius: 22px; background: #fff; padding: 22px; margin-top: 16px; }
.faq-section summary { cursor: pointer; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.faq-section details p { margin-bottom: 0; }
.contact-section { background: linear-gradient(135deg,#f8fafc,#e9fbfa); }

.site-footer {
  display: grid;
  grid-template-columns: 1.35fr .75fr .55fr;
  gap: 36px;
  padding: 50px 6vw 28px;
  background: var(--dark);
  color: #dbeafe;
}
.footer-brand p { max-width: 560px; color: #b7c9d6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { color: white; font-size: 16px; text-transform: uppercase; letter-spacing: .18em; }
.footer-col a { color: #dbeafe; }
.footer-col a:hover { color: #8ef4ea; }
.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  color: #8ba6b8;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .site-header {
    position: sticky;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    height: 66px;
    min-height: 66px;
    max-height: 66px;
    overflow: visible;
  }

  .logo {
    width: 260px;
    height: 54px;
    flex: 0 0 260px;
    overflow: visible;
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 252px;
    height: auto;
    max-width: none;
    transform: none;
    object-fit: contain;
  }

  .desktop-nav,
  .desktop-cta { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span {
    position: absolute;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
  }
  .mobile-menu summary span:nth-child(1) { transform: translateY(-7px); }
  .mobile-menu summary span:nth-child(3) { transform: translateY(7px); }
  .mobile-menu[open] summary span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] summary span:nth-child(3) { transform: rotate(-45deg); }
  .mobile-menu-panel {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 24px 22px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 45px rgba(15,23,42,.14);
  }
  .mobile-menu-panel a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f6;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
  }
  .mobile-menu-panel .mobile-cta {
    margin-top: 16px;
    padding: 14px 18px;
    border-bottom: 0;
    color: white;
    text-align: center;
  }

  .footer-logo { width: 220px; height: 54px; flex: 0 0 auto; }
  .footer-logo img { width: 220px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 30px 24px 50px; gap: 28px; }
  h1 { font-size: clamp(42px,12vw,58px); letter-spacing: -.07em; }
  .lead { font-size: 20px; }
  .kicker { font-size: 12px; letter-spacing: .18em; }
  .problem-layout { grid-template-columns: 1fr; gap: 30px; }
  .problem-card { grid-template-columns: 44px 1fr; padding: 20px; }
  .problem-card span { width: 40px; height: 40px; }
  .grid.two,
  .grid.three,
  .split { grid-template-columns: 1fr; }
  .knowledge-loop { padding: 22px; }
  .loop-message { display: block; text-align: left; }
  .loop-message h3 { margin-top: 8px; text-align: left; }
  .loop-flow { grid-template-columns: 1fr; }
  .loop-card:not(:last-child)::after { top: auto; right: 50%; bottom: -24px; translate: 50% 0; rotate: 90deg; }
  .loop-card { padding: 20px; }
  .loop-outcome { align-items: stretch; flex-direction: column; text-align: center; }
  .loop-outcome span { rotate: 90deg; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { height: 64px; min-height: 64px; max-height: 64px; padding: 4px 14px; }
  .logo { width: 252px; height: 52px; flex-basis: 252px; }
  .logo img { width: 244px; transform: none; }
  .mobile-menu-panel { top: 64px; padding: 8px 24px 22px; }
  .hero { padding: 30px 24px 48px; }
  .section,
  .problem-section { padding: 58px 24px; }
  h1 { font-size: 43px; line-height: 1.02; }
  .lead { font-size: 19px; line-height: 1.55; }
  h2 { font-size: 36px; line-height: 1.05; }
  p { font-size: 17px; }
  .record-card { padding: 22px; border-radius: 26px; }
  .problem-note { font-size: 16px; }
  .problem-card strong { font-size: 16px; }
  .knowledge-loop { padding: 18px; border-radius: 24px; }
  .loop-message { padding: 18px; }
  .loop-message h3 { font-size: 34px; }
  .loop-card h4 { font-size: 21px; }
}
