:root {
  --ink: #111827;
  --muted: #5c6676;
  --dark: #121827;
  --deep: #062f34;
  --teal: #065b5b;
  --aqua: #00c9c8;
  --gold: #d8aa45;
  --paper: #f6f4ef;
  --mist: #e8f1f0;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 30px 90px rgba(12, 19, 33, 0.16);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 8%, rgba(0, 201, 200, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 44%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 clamp(1.25rem, 6vw, 7rem);
  color: #ffffff;
  transition: background 260ms ease, color 260ms ease, box-shadow 260ms ease, min-height 260ms ease;
}

.site-header.is-scrolled {
  min-height: 78px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.82;
  transition: opacity 220ms ease, transform 220ms ease;
}

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-cta {
  padding: 0.85rem 1.15rem;
  color: var(--ink);
  background: #ffffff;
  opacity: 1 !important;
}

.is-scrolled .nav-cta {
  color: #ffffff;
  background: var(--teal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem clamp(1.5rem, 6vw, 7rem);
  color: #ffffff;
  pointer-events: none;
  background: rgba(24, 31, 47, 0.985);
  opacity: 0;
  transition: opacity 220ms ease;
}

.menu-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.menu-panel {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  width: min(640px, 100%);
  text-align: center;
}

.menu-brand,
.menu-close,
.menu-caption {
  position: absolute;
}

.menu-brand {
  top: clamp(1.8rem, 5vw, 3.7rem);
  left: clamp(1.5rem, 6vw, 7rem);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: 700;
}

.menu-close {
  top: clamp(1.65rem, 4.8vw, 3.4rem);
  right: clamp(1.5rem, 6vw, 7rem);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  top: 21px;
  left: 8px;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu-eyebrow,
.menu-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.menu-primary,
.menu-secondary {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.menu-panel a {
  padding: 0.12rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 400;
  line-height: 1.45;
  transition: color 180ms ease, transform 180ms ease;
}

.menu-panel a:hover {
  color: var(--aqua);
  transform: translateX(10px);
}

.menu-divider {
  width: 80px;
  height: 1px;
  margin: 0.35rem 0;
  background: rgba(255, 255, 255, 0.22);
}

.menu-caption {
  bottom: clamp(1.8rem, 4.5vw, 3rem);
  left: 50%;
  width: min(90vw, 520px);
  text-align: center;
  transform: translateX(-50%);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  align-items: center;
  min-height: 94vh;
  padding: 8rem clamp(1.25rem, 6vw, 7rem) 3.5rem;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(18, 24, 39, 0.95), rgba(18, 24, 39, 0.76)),
    linear-gradient(135deg, var(--dark), var(--deep));
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  content: "";
  border: 1px solid rgba(0, 201, 200, 0.28);
  border-radius: 999px;
  animation: pulse-ring 6s ease-in-out infinite;
}

.hero-media {
  position: absolute;
  right: 2vw;
  bottom: 0;
  width: min(42vw, 620px);
  opacity: 0.34;
  filter: saturate(0.8);
}

.hero-media img {
  max-height: 88vh;
  object-fit: contain;
  object-position: bottom right;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.button,
.eyebrow {
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 1050px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.75rem, 5vw, 5.65rem);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.45vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.65rem);
  line-height: 1.12;
}

.hero-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.direction-copy .button,
.evaluation-copy .button {
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.45rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button.primary {
  color: var(--ink);
  background: var(--aqua);
}

.button.ghost {
  margin-left: 0.8rem;
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.button.line {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
}

.button.line:hover {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.light {
  color: var(--ink);
  background: #ffffff;
}

.hero-dashboard {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-self: end;
  width: min(100%, 560px);
  max-width: 560px;
  justify-self: end;
  will-change: transform;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 112px;
  padding: 1.25rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 201, 200, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(0, 201, 200, 0.09);
}

.hero-stat-icon {
  flex: 0 0 60px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-stat-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stat-copy {
  display: grid;
  gap: 0.2rem;
}

.hero-stat-copy strong {
  color: #ffffff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.25rem, 3.3vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-stat-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-pad {
  padding: clamp(5rem, 9vw, 10rem) clamp(1.25rem, 6vw, 7rem);
}

section,
footer {
  scroll-margin-top: 92px;
}

.section-intro {
  max-width: 980px;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-intro p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.diagnostic {
  background: var(--mist);
}

.diagnostic-grid,
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.diagnostic-card,
.symptom {
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: rgba(255, 255, 255, 0.72);
}

.diagnostic-card span {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--aqua);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.diagnostic-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.diagnostic-card p {
  color: var(--muted);
  line-height: 1.7;
}

.directions {
  background: #ffffff;
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 8vw, 9rem) clamp(1.25rem, 6vw, 7rem);
  overflow: hidden;
}

.directions > .section-intro {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem) 0;
}

.direction:nth-child(3) {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.direction-dark {
  color: #ffffff;
  background: var(--dark);
}

.direction-dark.teal {
  background: linear-gradient(135deg, #101827, #052f34);
}

.direction-light {
  background: var(--paper);
}

.direction-copy {
  position: relative;
  z-index: 2;
}

.number {
  display: block;
  margin-bottom: -0.1em;
  color: rgba(17, 24, 39, 0.07);
  font-size: clamp(5rem, 9vw, 10rem);
  font-weight: 800;
  line-height: 0.78;
}

.direction-dark .number {
  color: rgba(255, 255, 255, 0.18);
}

.direction-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #566173;
  font-size: 1.12rem;
  line-height: 1.7;
}

.direction-dark .direction-copy p:not(.eyebrow),
.direction-dark li {
  color: rgba(255, 255, 255, 0.76);
}

ul {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 1.7rem;
  color: #566173;
  font-size: 1.05rem;
  line-height: 1.55;
}

li::before {
  position: absolute;
  left: 0;
  color: var(--aqua);
  content: "\2713";
  font-weight: 800;
}

.photo-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1.22;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.photo-frame::before,
.photo-frame::after {
  position: absolute;
  z-index: 0;
  content: "";
  border: 3px solid var(--aqua);
}

.photo-frame::before {
  top: -28px;
  right: -28px;
  width: 36%;
  height: 38%;
  border-radius: 10px;
}

.photo-frame::after {
  bottom: -26px;
  left: -26px;
  width: 18%;
  height: 18%;
  border-color: rgba(0, 201, 200, 0.35);
  border-radius: 10px;
  background: rgba(0, 201, 200, 0.2);
}

.photo-frame img {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

#management .photo-frame img {
  object-position: center 38%;
}

.symptoms {
  background: linear-gradient(180deg, #ffffff, var(--mist));
}

.symptom {
  min-height: 210px;
}

.symptom span {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 2rem;
  background: var(--aqua);
}

.symptom h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.3;
}

.instrument {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep), var(--dark));
}

.instrument-copy p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
  line-height: 1.7;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.areas span {
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.diagnostic-cta {
  margin: 2rem 0;
}

.instrument-visual {
  will-change: transform;
}

.meter {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.meter div {
  position: relative;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.meter div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  content: "";
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  transform-origin: left;
  animation: meter-grow 1.2s ease both;
}

.meter span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 1rem;
  color: #ffffff;
  font-weight: 700;
}

.evaluation {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(5rem, 8vw, 9rem) clamp(1.25rem, 6vw, 7rem);
  background: #ffffff;
}

.evaluation-image {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.evaluation-image img {
  aspect-ratio: 1.08;
  border-radius: 18px;
  object-fit: cover;
}

.evaluation-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.7fr;
  gap: 3rem;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem) 2rem;
  color: #ffffff;
  background: #071f24;
}

.site-footer p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--aqua);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.copyright {
  grid-column: 1 / -1;
  max-width: none !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 760ms ease var(--delay, 0ms), transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 0.24; }
}

@keyframes rotate-soft {
  to { transform: rotate(360deg); }
}

@keyframes meter-grow {
  from { transform: scaleX(0); }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .direction,
  .direction:nth-child(3),
  .instrument,
  .evaluation,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    justify-self: start;
    margin-top: 2rem;
  }

  .hero-media {
    width: min(72vw, 560px);
    opacity: 0.18;
  }

  .diagnostic-grid,
  .symptom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .direction:nth-child(3) .photo-frame {
    order: -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 74px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13.2vw, 4.2rem);
    line-height: 1.05;
  }

  .button {
    width: 100%;
  }

  .button.ghost {
    margin: 0.8rem 0 0;
  }

  .hero-dashboard,
  .diagnostic-grid,
  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame::before {
    right: -12px;
  }

  .photo-frame::after {
    left: -12px;
  }

  .site-footer {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
