/* ============================================================================
   Sasya landing page styles. Depends on theme.css tokens.
   Layout families used (kept distinct per section, taste-skill Section 4.7):
   hero split · partner strip · editorial statement · sticky-stack loop ·
   asymmetric bento · media split (disease) · reveal grid (PS) · stat row ·
   marquee · CTA band.
   ============================================================================ */

/* ---------- scroll progress ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--data-info)));
  z-index: calc(var(--z-nav) + 2);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; z-index: var(--z-nav);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: hsl(var(--background) / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: hsl(var(--border));
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* .brand, .brand-name, .icon-btn and the theme-icon toggle now live in theme.css
   (shared by the dashboard too). Landing-only nav bits remain below. */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: hsl(var(--muted-foreground)); transition: color .2s ease; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- glass pill nav (themed, adapts to light/dark) ---------- */
.nav-pill { display: none; }
@media (min-width: 1000px) {
  .nav-pill { display: inline-flex; align-items: center; gap: 2px;
    background: hsl(var(--card) / 0.72); backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid hsl(var(--border)); border-radius: var(--radius-pill); padding: 5px 5px 5px 18px;
    box-shadow: 0 12px 30px -18px hsl(var(--shadow-color)); }
}
.nav-pill a { font-size: 14px; padding: 8px 14px; border-radius: var(--radius-pill); color: hsl(var(--muted-foreground)); font-weight: 500; transition: color .2s, background .2s; }
.nav-pill a:hover { color: hsl(var(--foreground)); background: hsl(var(--foreground) / 0.06); }
.nav-pill .nav-pill-cta { margin-left: 6px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; padding: 10px 18px; }
.nav-pill .nav-pill-cta:hover { background: hsl(var(--primary-strong)); color: hsl(var(--primary-foreground)); }
.nav-plain { display: none; }
@media (min-width: 640px) { .nav-plain { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); transition: color .2s; } }
.nav-plain:hover { color: hsl(var(--foreground)); }
.nav-plain svg { width: 16px; height: 16px; }

/* mobile burger with menu/x swap */
.nav-burger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: hsl(var(--card) / 0.72); backdrop-filter: blur(10px); border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); cursor: pointer; }
@media (min-width: 1000px) { .nav-burger { display: none; } }
.nav-burger svg { position: absolute; width: 20px; height: 20px; transition: opacity .3s, transform .3s; }
.nav-burger .ic-x { opacity: 0; transform: rotate(-90deg) scale(.5); }
body.menu-open .nav-burger .ic-menu { opacity: 0; transform: rotate(90deg) scale(.5); }
body.menu-open .nav-burger .ic-x { opacity: 1; transform: rotate(0) scale(1); }

/* mobile drawer + overlay */
.nav-overlay { position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1); background: hsl(0 0% 0% / 0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-nav); width: 85%; max-width: 24rem;
  background: hsl(var(--card) / 0.98); backdrop-filter: blur(18px); border-left: 1px solid hsl(var(--border)); box-shadow: -24px 0 70px -24px hsl(var(--shadow-color));
  transform: translateX(100%); transition: transform .5s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; padding: 96px 32px 32px; }
body.menu-open .nav-drawer { transform: translateX(0); }
.nav-drawer .d-link { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: hsl(var(--foreground)); padding: 16px 0; border-bottom: 1px solid hsl(var(--border));
  transform: translateX(30px); opacity: 0; transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease; }
.nav-drawer .d-cta { margin-top: 28px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; text-align: center; padding: 14px; border-radius: var(--radius-pill);
  transform: translateX(30px); opacity: 0; transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease; }
.nav-drawer .d-cta:hover { background: hsl(var(--primary-strong)); }
body.menu-open .nav-drawer .d-link { transform: translateX(0); opacity: 1; }
body.menu-open .nav-drawer .d-link:nth-child(1) { transition-delay: .15s; }
body.menu-open .nav-drawer .d-link:nth-child(2) { transition-delay: .22s; }
body.menu-open .nav-drawer .d-link:nth-child(3) { transition-delay: .29s; }
body.menu-open .nav-drawer .d-link:nth-child(4) { transition-delay: .36s; }
body.menu-open .nav-drawer .d-cta { transform: translateX(0); opacity: 1; transition-delay: .43s; }
@media (prefers-reduced-motion: reduce) { .nav-drawer, .nav-drawer .d-link, .nav-drawer .d-cta { transition: none; } }

/* over the dark hero (nav not yet scrolled): light chrome */
.nav:not(.scrolled) .brand-name { color: #f4f8f5; }
.nav:not(.scrolled) .brand-name span { color: #63d495; }
.nav:not(.scrolled) .nav-plain { color: hsl(0 0% 100% / 0.82); }
.nav:not(.scrolled) .nav-plain:hover { color: #fff; }
.nav:not(.scrolled) .icon-btn { background: hsl(0 0% 100% / 0.08); border-color: hsl(0 0% 100% / 0.2); color: #f4f8f5; }
.nav:not(.scrolled) .icon-btn:hover { border-color: hsl(0 0% 100% / 0.36); }
.nav:not(.scrolled) .nav-burger { background: hsl(0 0% 100% / 0.1); border-color: hsl(0 0% 100% / 0.22); color: #f4f8f5; }

/* ---------- hero (boomerang video background, dark cinematic) ----------
   Full-bleed video under a dark scrim so light text reads over any footage,
   in either site theme. A neutral (no green) dark scene sits beneath as the
   fallback when the video is unavailable. */
.hero {
  --h-head: #f4f8f5; --h-accent: #63d495; --h-body: hsl(0 0% 100% / 0.80);
  --h-dim: hsl(0 0% 100% / 0.6);
  position: relative; width: 100%; min-height: 100dvh; overflow: hidden;
  background: #050506; color: var(--h-body); isolation: isolate;
}

/* neutral fallback scene, revealed only if the video layer is hidden on error */
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-scene > * { position: absolute; inset: 0; }
.scene-sky { background: radial-gradient(120% 85% at 50% -12%, #15171b 0%, #0a0b0d 46%, #050506 100%); }
.scene-glow { background: radial-gradient(52% 42% at 78% 12%, hsl(0 0% 100% / 0.05), transparent 62%); }
.scene-aurora { display: none; }
.scene-grid {
  opacity: .5;
  background-image:
    linear-gradient(hsl(0 0% 100% / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 26%, #000, transparent 82%);
  mask-image: radial-gradient(78% 62% at 50% 26%, #000, transparent 82%);
}

/* boomerang video layer */
.hero-video { position: absolute; inset: 0; z-index: 1; }
.hero-video video, .hero-video canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video.is-hidden { display: none; }

/* dark scrim so light text reads over any footage */
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.76) 0%, rgba(5,5,6,0.28) 14%, rgba(5,5,6,0.22) 46%, rgba(5,5,6,0.84) 100%),
    radial-gradient(100% 72% at 50% 34%, transparent 40%, rgba(5,5,6,0.56) 100%); }

/* centered hero copy near the top */
.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 52px) 24px 0; max-width: 1000px; margin: 0 auto; }
.hero-title { font-family: var(--font-display); font-weight: 600; color: var(--h-head);
  font-size: clamp(2.1rem, 6.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 44px rgba(0,0,0,0.45); }
.hero-title .accent { color: var(--h-accent); -webkit-text-fill-color: currentColor; }
.hero-sub { margin-top: 24px; font-size: clamp(15px, 1.4vw, 18px); color: var(--h-body); max-width: 44ch; line-height: 1.55; }

/* bottom-left product block */
.hero-corner { position: absolute; z-index: 10; }
.hero-corner-left { left: 16px; right: 16px; bottom: 24px; max-width: 25rem; }
@media (min-width: 640px) { .hero-corner-left { right: auto; left: 40px; bottom: 40px; } }
.hc-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--h-accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.hc-brand svg { width: 16px; height: 16px; }
.hc-brand sup { font-size: 10px; }
.hc-desc { color: var(--h-body); font-size: 12.5px; line-height: 1.55; max-width: 20rem; margin-bottom: 22px; }
.hc-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hc-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 999px; transition: background .2s, transform .2s; box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.hc-btn-primary:hover { background: hsl(var(--primary-strong)); transform: translateY(-1px); }
.hc-btn-text { color: var(--h-head); font-weight: 600; font-size: 14px; transition: opacity .2s; }
.hc-btn-text:hover { opacity: .72; }

/* bottom-right video link */
.hero-corner-right { right: 40px; bottom: 40px; display: none; align-items: center; gap: 10px; color: var(--h-body); font-size: 14px; font-weight: 500; }
@media (min-width: 640px) { .hero-corner-right { display: inline-flex; } }
.hc-play { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: hsl(0 0% 100% / 0.12); border: 1px solid hsl(0 0% 100% / 0.2); color: var(--h-head); transition: background .2s; }
.hero-corner-right:hover .hc-play { background: hsl(0 0% 100% / 0.22); }
.hc-play svg { width: 12px; height: 12px; margin-left: 1px; }
.hc-dur { color: var(--h-dim); }

/* showcase: the real scan card as a centered product peek below the hero */
.showcase { position: relative; padding: 80px 0 24px; }
.showcase .container { display: flex; justify-content: center; }
.hero-visual { position: relative; width: 100%; max-width: 460px; }
.scan-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: 0 40px 90px -30px hsl(var(--shadow-color) / 0.7);
}
.scan-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.scan-card-head .t { font-size: 13px; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 8px; }
.scan-photo-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; background: hsl(var(--muted)); }
.scan-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.scan-cam {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .78;
  background:
    radial-gradient(28% 34% at 34% 42%, hsl(var(--data-bad) / 0.9), transparent 62%),
    radial-gradient(24% 26% at 60% 66%, hsl(var(--data-warn) / 0.72), transparent 60%);
}
.scan-scanline {
  position: absolute; left: 0; right: 0; height: 34%; top: -34%;
  background: linear-gradient(hsl(var(--primary) / 0), hsl(var(--primary) / 0.35), hsl(var(--primary) / 0));
  border-bottom: 1px solid hsl(var(--primary));
}
.scan-verdict { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.scan-verdict .name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.scan-verdict .crop { font-size: 12px; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .1em; }
.scan-conf { text-align: right; }
.scan-conf .v { font-family: var(--font-mono); font-size: 20px; color: hsl(var(--data-good)); font-weight: 600; }
.scan-conf .l { font-size: 10.5px; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .1em; }
.scan-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hero-float {
  position: absolute; background: hsl(var(--card) / 0.92); border: 1px solid hsl(var(--border-strong));
  border-radius: var(--radius); padding: 11px 14px; backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px hsl(var(--shadow-color) / 0.8); display: flex; align-items: center; gap: 10px;
}
.hero-float .k { font-size: 11px; color: hsl(var(--muted-foreground)); }
.hero-float .val { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.hero-float.f1 { top: -14px; right: -12px; }
.hero-float.f2 { bottom: -18px; left: -20px; }
.hero-float .spark { width: 62px; height: 26px; }
@media (max-width: 940px) {
  .hero-float.f1 { right: 8px; } .hero-float.f2 { left: 4px; }
}

/* ---------- section scaffold ---------- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: hsl(var(--muted-foreground)); max-width: 60ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- partner strip ---------- */
.partners { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.partners-inner { display: flex; align-items: center; justify-content: center; gap: 20px 46px; flex-wrap: wrap; padding: 30px 0; }
.partners .label { font-size: 12.5px; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.partner { display: flex; align-items: center; gap: 10px; color: hsl(var(--muted-foreground)); opacity: .82; transition: opacity .2s, color .2s; }
.partner:hover { opacity: 1; color: hsl(var(--foreground)); }
.partner-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: hsl(var(--muted)); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.partner .pn { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- problem (editorial statement) ---------- */
.statement { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; max-width: 20ch; line-height: 1.12; }
.statement .q { color: hsl(var(--muted-foreground)); }
.statement .hl { color: hsl(var(--primary)); }
.gaps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.gap { background: hsl(var(--card)); padding: 26px 22px; transition: background .2s ease; }
.gap:hover { background: hsl(var(--card-2)); }
.gap .gn { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--primary)); }
.gap h4 { margin-top: 14px; font-size: 17px; }
.gap p { margin-top: 8px; font-size: 14px; color: hsl(var(--muted-foreground)); }
@media (max-width: 860px) { .gaps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gaps { grid-template-columns: 1fr; } }

/* ---------- closed loop (clean stacked cards) ---------- */
.loop { position: relative; display: grid; gap: 18px; }
.loop-stage { display: grid; place-items: center; padding: 4px 0; }
.loop-panel {
  width: 100%; max-width: var(--maxw); margin: 0 24px; border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border-strong)); background: hsl(var(--card));
  padding: 46px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  box-shadow: 0 50px 120px -40px hsl(var(--shadow-color) / 0.8); overflow: hidden;
}
.loop-panel .idx { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--primary)); }
.loop-panel h3 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 16px; }
.loop-panel .desc { margin-top: 16px; font-size: 16.5px; color: hsl(var(--muted-foreground)); max-width: 42ch; }
.loop-points { margin-top: 22px; display: grid; gap: 12px; }
.loop-point { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.loop-point svg { width: 18px; height: 18px; color: hsl(var(--primary)); flex: none; margin-top: 2px; }
.loop-visual { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card-2)); padding: 24px; min-height: 300px; position: relative; overflow: hidden; }
.loop-badge { position: absolute; top: 18px; right: 18px; }
@media (max-width: 860px) { .loop-panel { grid-template-columns: 1fr; padding: 30px; gap: 26px; } .loop-visual { min-height: 220px; } }

/* mini viz inside loop panels */
.viz-gauge { display: grid; place-items: center; gap: 14px; height: 100%; }
.gauge-ring { --p: 62; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, hsl(var(--card-2)) 74%, transparent 75% 100%),
    conic-gradient(hsl(var(--data-bad)) calc(var(--p) * 1%), hsl(var(--muted)) 0); }
.gauge-ring .gv { font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.gauge-ring .gl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); }
.viz-bars { display: grid; gap: 14px; height: 100%; align-content: center; }
.viz-bar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.viz-bar .track { height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.viz-bar .fill { height: 100%; border-radius: 999px; background: hsl(var(--primary)); width: 0; }
.viz-lift { display: grid; gap: 10px; align-content: center; height: 100%; }
.lift-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.lift-row .mono { font-size: 13px; }
.delta-pos { color: hsl(var(--data-good)); }

/* ---------- capabilities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 16px; }
.tile { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); border-color: hsl(var(--primary) / 0.4); box-shadow: 0 26px 54px -34px hsl(var(--shadow-color)); }
.tile-photo img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.tile-photo:hover img { transform: scale(1.05); }
.tile h3 { font-size: 19px; margin-top: 14px; }
.tile p { margin-top: 9px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.tile .tile-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.tile .tile-ic svg { width: 22px; height: 22px; }
.tile .foot { margin-top: auto; }
.tile.wide { grid-column: span 4; }
.tile.tall { grid-column: span 2; grid-row: span 2; }
.tile.span2 { grid-column: span 2; }
.tile.span3 { grid-column: span 3; }
.tile-accent { background:
    radial-gradient(120% 90% at 90% 10%, hsl(var(--primary) / 0.16), transparent 55%), hsl(var(--card)); }
.tile-photo { padding: 0; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo .cap { position: relative; margin-top: auto; padding: 20px; background: linear-gradient(transparent, hsl(var(--shadow-color) / 0.85)); }
.tile-photo .cap h3, .tile-photo .cap p { color: #f4faf6; }
.tile .big-num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; }
.tile .big-num .u { font-size: 18px; color: hsl(var(--muted-foreground)); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile.wide, .tile.tall, .tile.span2, .tile.span3 { grid-column: span 2; grid-row: auto; }
  .tile.tall { grid-row: span 1; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide, .tile.tall, .tile.span2, .tile.span3 { grid-column: span 1; } }

/* ---------- disease media split ---------- */
.disease { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.disease-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disease-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); position: relative; aspect-ratio: 3/4; background: hsl(var(--muted)); }
.disease-shot img { width: 100%; height: 100%; object-fit: cover; }
.disease-shot .cam { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(30% 34% at 40% 40%, hsl(var(--data-bad) / 0.85), transparent 60%),
              radial-gradient(24% 24% at 62% 70%, hsl(var(--data-warn) / 0.7), transparent 60%); }
.disease-shot.cam-on .cam { opacity: .8; }
.disease-shot .tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 11px; background: hsl(var(--card) / 0.86); border: 1px solid hsl(var(--border-strong)); padding: 4px 9px; border-radius: 7px; backdrop-filter: blur(6px); }
.disease-steps { margin-top: 26px; display: grid; gap: 12px; }
.dstep { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.dstep .dn { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--primary)); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: hsl(var(--primary) / 0.12); }
.dstep h4 { font-size: 15.5px; }
.dstep p { margin-top: 4px; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
@media (max-width: 860px) { .disease { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- problem statements (reveal grid) ---------- */
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ps { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 22px; transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s; }
.ps:hover { transform: translateY(-3px); border-color: hsl(var(--primary) / 0.4); }
.ps-top { display: flex; align-items: center; justify-content: space-between; }
.ps .code { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--primary)); }
.ps h4 { margin-top: 14px; font-size: 17px; }
.ps p { margin-top: 8px; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.ps .src { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 7px; }
.ps .src svg { width: 13px; height: 13px; flex: none; color: hsl(var(--primary)); }
@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ps-grid { grid-template-columns: 1fr; } }

/* ---------- provenance / stat row ---------- */
.provenance { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: hsl(var(--border)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; }
.prov { background: hsl(var(--card)); padding: 28px 24px; transition: background .2s ease; }
.prov:hover { background: hsl(var(--card-2)); }
.prov .src-name { font-family: var(--font-mono); font-size: 12px; color: hsl(var(--primary)); }
.prov h4 { margin-top: 12px; font-size: 18px; }
.prov p { margin-top: 8px; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.prov .status { margin-top: 14px; display: inline-flex; }
@media (max-width: 860px) { .provenance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .provenance { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat .n { font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); font-weight: 600; letter-spacing: -0.03em; }
.stat .n .u { font-size: 20px; color: hsl(var(--muted-foreground)); }
.stat .l { margin-top: 6px; font-size: 14px; color: hsl(var(--muted-foreground)); }
@media (max-width: 780px) { .stat-row { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ---------- marquee (crops) ---------- */
.marquee { overflow: hidden; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: hsl(var(--primary)); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid hsl(var(--border-strong)); background: hsl(var(--card)); padding: 64px 48px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 120% at 50% 0%, hsl(var(--primary) / 0.16), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); }
.cta-band p { margin: 18px auto 0; max-width: 52ch; font-size: 17px; color: hsl(var(--muted-foreground)); }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid hsl(var(--border)); padding: 48px 0 40px; margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 340px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; }
.foot-col a { display: block; font-size: 14.5px; color: hsl(var(--foreground)); opacity: .82; margin-bottom: 10px; transition: opacity .2s, color .2s; }
.foot-col a:hover { opacity: 1; color: hsl(var(--primary)); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* ---------- disease section: model metrics panel (replaces the media column) ---------- */
.disease-metrics {
  border: 1px solid hsl(var(--border-strong)); background: hsl(var(--card));
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 40px 90px -46px hsl(var(--shadow-color));
}
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mm-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3); background: hsl(var(--primary) / 0.1); padding: 4px 10px; border-radius: var(--radius-pill); }
.mm-sub { font-family: var(--font-mono); font-size: 11px; color: hsl(var(--muted-foreground)); }
.mm-top { display: flex; align-items: center; gap: 26px; }
.mm-ring { --p: 99; width: 148px; height: 148px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(hsl(var(--primary)) calc(var(--p) * 1%), hsl(var(--muted)) 0); }
.mm-ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: hsl(var(--card)); }
.mm-ring-in { position: relative; z-index: 1; text-align: center; }
.mm-acc { font-family: var(--font-display); font-size: 34px; font-weight: 600; display: block; line-height: 1; }
.mm-acc i { font-size: 17px; font-style: normal; color: hsl(var(--muted-foreground)); }
.mm-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); margin-top: 4px; display: block; }
.mm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; flex: 1; }
.mm-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 600; display: block; letter-spacing: -0.02em; }
.mm-stat span { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.mm-bars { margin-top: 26px; display: grid; gap: 12px; }
.mm-bar-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--muted-foreground)); margin-bottom: 2px; }
.mm-bar { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 12px; font-size: 12.5px; }
.mm-bl { color: hsl(var(--muted-foreground)); }
.mm-track { height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.mm-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--data-good))); animation: mmFill 1s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes mmFill { to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) { .mm-track i { animation: none; width: var(--w); } }
.mm-bn { font-family: var(--font-mono); font-weight: 600; }
.mm-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: hsl(var(--muted-foreground)); }
@media (max-width: 520px) { .mm-top { flex-direction: column; align-items: flex-start; gap: 20px; } .mm-stats { width: 100%; } }

/* ---------- model performance gallery (real eval charts) ---------- */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.perf-card { border: 1px solid hsl(var(--border)); background: hsl(var(--card)); border-radius: var(--radius);
  padding: 14px; overflow: hidden; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; margin: 0; }
.perf-card:hover { border-color: hsl(var(--primary) / 0.4); transform: translateY(-3px); box-shadow: 0 30px 60px -38px hsl(var(--shadow-color)); }
.perf-card img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: #0a0a0c; }
.perf-card figcaption { margin-top: 14px; font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.perf-card .cap-t { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: hsl(var(--foreground)); letter-spacing: -0.01em; }
@media (max-width: 820px) { .perf-grid { grid-template-columns: 1fr; } }
