/* MedScanX marketing — teal + amber + mint wash */
:root {
  --teal: #0b5f6b;
  --teal-deep: #074850;
  --teal-mid: #127a8a;
  --amber: #c67a14;
  --amber-soft: #e8a84a;
  --mint: #d8f0eb;
  --mint-wash: #eef8f5;
  --ink: #0c2226;
  --ink-soft: #3a555b;
  --paper: #f7fcfa;
  --white: #ffffff;
  --line: rgba(11, 95, 107, 0.14);
  --shadow: 0 24px 60px rgba(7, 72, 80, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Nav —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 1.25rem;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: white;
  text-decoration: underline;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: white !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

/* Inner pages: dark-on-light header */
.page-inner .site-header {
  position: sticky;
  background: rgba(247, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.page-inner .nav-brand,
.page-inner .nav-links a {
  color: var(--teal-deep);
}

.page-inner .nav-cta {
  background: var(--teal);
  border-color: transparent;
  color: white !important;
}

.page-inner .nav-toggle {
  border-color: var(--line);
  color: var(--teal-deep);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(198, 122, 20, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 60% at 12% 88%, rgba(216, 240, 235, 0.22), transparent 50%),
    linear-gradient(155deg, #05353c 0%, var(--teal) 42%, #0a7a7a 72%, #0d4f58 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
  animation: drift 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 50%;
  left: -20%;
  bottom: -18%;
  background: radial-gradient(ellipse at center, rgba(216, 240, 235, 0.18), transparent 65%);
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-28px);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 7.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s ease 0.1s forwards;
}

.hero-brand img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  max-width: 18ch;
  opacity: 0;
  animation: rise 0.9s ease 0.25s forwards;
}

.hero-support {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32ch;
  opacity: 0;
  animation: rise 0.9s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: #1a1004;
  box-shadow: 0 10px 28px rgba(198, 122, 20, 0.35);
}

.btn-primary:hover {
  background: var(--amber-soft);
  color: #1a1004;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-teal:hover {
  background: var(--teal-mid);
  color: white;
}

.hero-visual {
  justify-self: end;
  position: relative;
  opacity: 0;
  animation: rise 1s ease 0.35s forwards, floaty 6s ease-in-out 1.2s infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-frame {
  width: min(260px, 72vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #062e34;
  position: relative;
}

.phone-screen img,
.phone-screen object {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disclaimer-strip {
  background: var(--mint-wash);
  border-block: 1px solid var(--line);
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.disclaimer-strip strong {
  color: var(--teal-deep);
  font-weight: 600;
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.65rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--teal-deep);
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.features-band {
  background:
    linear-gradient(180deg, var(--mint-wash), var(--paper) 60%);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 0;
  border: none;
  background: none;
}

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.feature-mark {
  display: inline-block;
  width: 2.25rem;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

/* Screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.shot {
  text-align: center;
}

.shot-frame {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a4a54, #0b5f6b 55%, #0d6e6e);
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow);
  position: relative;
}

.shot-frame img,
.shot-frame object {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.shot-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(198, 122, 20, 0.25), transparent 50%),
    linear-gradient(135deg, var(--teal-deep), var(--teal) 55%, #0a7078);
  color: white;
  padding: 4rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  color: white;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.88);
}

/* —— Legal / inner —— */
.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  color: var(--teal-deep);
  margin: 0 0 0.35rem;
}

.prose .meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-deep);
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* —— Footer —— */
.site-footer {
  background: #04282e;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-note {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— 404 —— */
.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found h1 {
  font-family: var(--font-display);
  color: var(--teal-deep);
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    align-items: start;
  }

  .hero-visual {
    justify-self: start;
    order: -1;
  }

  .phone-frame {
    width: min(200px, 55vw);
  }

  .hero-brand img {
    width: 72px;
    height: 72px;
  }

  .feature-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(4, 40, 46, 0.96);
    padding: 1rem;
    border-radius: 14px;
    gap: 0.75rem;
  }

  .page-inner .nav-links {
    background: rgba(247, 252, 250, 0.98);
    border: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-brand,
  .hero h1,
  .hero-support,
  .hero-actions,
  .hero-visual {
    opacity: 1;
  }
}
