/* ==========================================================================
   DexteraAI — Clinical-tech theme (Maize / Blue on navy)
   Plain CSS, no build step. Design tokens live in :root.
   Maize is an accent only: logo target, one scan data line, the key
   "measured" tag. Primary buttons and UI stay blue.
   ========================================================================== */

:root {
  /* Core palette */
  --bg:         #061A2E;   /* core background */
  --bg-2:       #00274C;   /* deep blue / header */
  --ink:        #EAF2FF;   /* primary text */
  --ink-soft:   #9FB3C8;   /* muted text */
  --muted:      #6E869F;   /* dimmer text */
  --line:       #24415F;   /* border / card outline */
  --line-soft:  rgba(36,65,95,.55);

  --brand:      #2DA8FF;   /* clinical / primary blue */
  --brand-2:    #1E7FBF;   /* secondary blue */
  --brand-deep: #00274C;
  --accent:     #5AB0FF;   /* light blue (gradient text) */
  --maize:      #FFCB05;   /* accent only */
  --glow:       rgba(45,168,255,.32);

  --surface:    #102B4A;   /* card surface */
  --surface-2:  #163458;   /* card hover */

  --radius:     18px;
  --radius-sm:  11px;
  --shadow:     0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -20px rgba(0,0,0,.7);
  --glow-shadow:0 0 0 1px rgba(45,168,255,.28), 0 18px 60px -18px var(--glow);

  --maxw:       1160px;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head:  var(--font-body);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glows fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 460px at 78% -8%, rgba(45,168,255,.14), transparent 70%),
    radial-gradient(700px 520px at 8% 8%, rgba(30,127,191,.12), transparent 70%),
    radial-gradient(900px 700px at 50% 118%, rgba(45,168,255,.07), transparent 70%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; color: var(--ink); font-weight: 500; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 300; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Utility ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(45,168,255,.12), rgba(45,168,255,.04));
  border: 1px solid rgba(45,168,255,.22);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 55%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #ffffff;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px -8px var(--glow), 0 0 0 1px rgba(45,168,255,.5) inset;
}
.btn-primary:hover { color: #ffffff; box-shadow: 0 14px 44px -8px var(--glow), 0 0 0 1px rgba(45,168,255,.7) inset; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(45,168,255,.55); color: var(--brand); background: rgba(45,168,255,.06); }
.btn svg { width: 18px; height: 18px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(6,26,46,.62);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand .logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.brand .logo-mark svg { width: 100%; height: 100%; display: block; }
.brand b { color: var(--brand); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 400; font-size: .98rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 2px;
}
.nav-cta { margin-left: 6px; }
.nav-cta a { padding: 10px 20px; font-size: .95rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #ffffff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Sections --------------------------------------------------------------- */
section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-head { max-width: 66ch; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 120px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: .92rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; max-width: 60ch; }
.hero-note::before { content: ""; margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--maize); box-shadow: 0 0 10px rgba(255,203,5,.6); flex: none; animation: pulse 2.4s ease-in-out infinite; }

/* Scan graphic (hero + feature media) ------------------------------------ */
.scan {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(45,168,255,.10), transparent 60%),
    linear-gradient(160deg, #0F2C4E, #0A2138 60%, #061A2E);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan .grid-lines line { stroke: rgba(45,168,255,.10); stroke-width: 1; }
.scan .ring { fill: none; stroke: rgba(45,168,255,.5); }
.scan .macula { fill: url(#macGrad); }
.scan .reticle { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.scan .crosshair { stroke: rgba(45,168,255,.7); stroke-width: 1; }
.scan .bracket { fill: none; stroke: rgba(45,168,255,.55); stroke-width: 1.5; }
.scan .scanline { stroke: var(--brand); stroke-width: 2; filter: drop-shadow(0 0 6px var(--brand)); }
.scan .target { fill: var(--maize); }
.scan .tick { fill: rgba(159,179,200,.75); font: 500 9px var(--font-body); }

/* Wet/Dry AMD split scan -------------------------------------------------- */
.scan .divider { stroke: rgba(45,168,255,.25); stroke-width: 1; stroke-dasharray: 4 4; }
.scan .wet-line { fill: none; stroke: var(--brand); stroke-width: 1.6; }
.scan .wet-line-2 { fill: none; stroke: var(--brand-2); stroke-width: 1.3; }
.scan .leak-dot { fill: var(--maize); }
.scan .atrophy-patch { fill: rgba(159,179,200,.16); stroke: rgba(159,179,200,.4); stroke-width: 1; }
.scan .atrophy-patch-2 { fill: rgba(159,179,200,.10); stroke: rgba(159,179,200,.3); stroke-width: 1; }

.scan-tags { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.scan-tags .tag {
  font-family: var(--font-head); font-size: .72rem; font-weight: 500; color: var(--brand);
  background: rgba(6,26,46,.72); border: 1px solid rgba(45,168,255,.28);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px);
}

@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 34px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat .num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: 6px; }
.stat .lbl { color: var(--ink-soft); font-size: .95rem; }

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px 200px at var(--mx,50%) 0%, rgba(45,168,255,.10), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45,168,255,.4); background: var(--surface-2); box-shadow: var(--glow-shadow); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--brand);
  background: linear-gradient(180deg, rgba(45,168,255,.15), rgba(45,168,255,.04));
  border: 1px solid rgba(45,168,255,.24);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* Feature rows ----------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; }
.feature li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-soft); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px -3px var(--glow);
}
.feature li::after {
  content: ""; position: absolute; left: 7px; top: 9px;
  width: 8px; height: 5px; border-left: 2px solid #06121f; border-bottom: 2px solid #06121f;
  transform: rotate(-45deg);
}

/* Metric grid (delivery domains) ----------------------------------------- */
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.metric { padding: 26px 24px; }
.metric .icon { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px; }
.metric .icon svg { width: 21px; height: 21px; }
.metric h3 { font-size: 1.08rem; margin-bottom: 6px; }
.metric p { font-size: .92rem; }
/* Secondary/supporting metrics read quieter than the four primary domains */
.metric.secondary { background: transparent; border-style: dashed; }
.metric.secondary .icon { background: rgba(45,168,255,.06); }

/* Highlight card — the one "measured" box carries the single maize accent */
.card.highlight {
  border-color: rgba(255,203,5,.4);
  background: linear-gradient(165deg, rgba(45,168,255,.10), rgba(255,203,5,.05));
  box-shadow: 0 0 0 1px rgba(255,203,5,.18), var(--shadow);
}
.card.muted { opacity: .74; }
.card .tagline { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card.highlight .tagline { color: var(--maize); }

/* Use-case cards --------------------------------------------------------- */
.usecase { padding: 28px; }
.usecase .badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head);
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.usecase .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.usecase h3 { margin-bottom: 10px; font-size: 1.12rem; }
.usecase p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Founder ---------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.founder .avatar {
  width: 180px; height: 180px; border-radius: 22px; display: grid; place-items: center; justify-self: center;
  font-family: var(--font-head); font-weight: 600; font-size: 3rem; color: #ffffff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 24px 60px -20px var(--glow); position: relative; overflow: hidden;
}
.founder .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.founder .role { font-family: var(--font-head); color: var(--brand); font-size: .95rem; letter-spacing: .02em; margin: 2px 0 14px; }

/* CTA band --------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); padding: 60px 56px; text-align: center;
  background: linear-gradient(160deg, rgba(45,168,255,.10), rgba(30,127,191,.05) 45%, rgba(45,168,255,.08));
  border: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 400px;
  background: radial-gradient(600px 300px at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--ink-soft); max-width: 64ch; margin: 0 auto 28px; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.contact-info .info-item { display: flex; gap: 15px; margin-bottom: 24px; }
.contact-info .info-item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--brand);
  background: linear-gradient(180deg, rgba(45,168,255,.15), rgba(45,168,255,.04));
  border: 1px solid rgba(45,168,255,.24);
}
.contact-info .info-item h3 { margin: 0 0 3px; font-size: 1.02rem; }
.contact-info .info-item p { margin: 0; color: var(--ink-soft); }

form .field { margin-bottom: 18px; }
form label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
form input, form select, form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #0C2340; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
form input::placeholder, form textarea::placeholder { color: var(--muted); }
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: rgba(45,168,255,.65); background: #0E2A4C;
  box-shadow: 0 0 0 3px rgba(45,168,255,.16);
}
form select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239FB3C8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px;
}
form select option { background: #0C2340; color: var(--ink); }
form textarea { min-height: 130px; resize: vertical; }
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.form-note { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #ff8f8f; }

/* Page banner ------------------------------------------------------------ */
.page-banner { padding: 96px 0 64px; border-bottom: 1px solid var(--line-soft); }
.page-banner p.lead { margin-bottom: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: 70px 0 32px; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(0,39,76,.35)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.site-footer h4 { font-family: var(--font-head); color: var(--ink); font-size: .95rem; font-weight: 500; margin: 0 0 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: var(--ink-soft); font-size: .95rem; }
.site-footer a:hover { color: var(--brand); }
.footer-about { max-width: 46ch; color: var(--muted); font-size: .95rem; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .88rem;
}

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0,39,76,.98); border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px; box-shadow: var(--shadow); display: none;
    backdrop-filter: blur(14px);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 8px 0; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta a { display: inline-flex; }
  .nav-toggle { display: block; }

  .hero-grid, .feature, .contact-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .founder .avatar { width: 150px; height: 150px; font-size: 2.6rem; }
  .hero-visual, .feature .feature-media { max-width: 520px; }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .cta-band { padding: 44px 24px; }
}
