/* ============================================================
   ORANO · Landing layout & sections
   Mobile-first; desktop expands. Hero → Story → Features →
   Showcase → Final CTA. Calm motion only.
   ============================================================ */

body {
  background: var(--bg);
}

.fx-grain, .fx-particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fx-grain {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-particles { z-index: 0; }
.fx-particles canvas { width: 100%; height: 100%; }

/* content sits above fx */
.site { position: relative; z-index: 2; }

/* ── Nav (minimal, hairline) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  padding: 18px var(--gutter);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d) var(--ease), background var(--d) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(0,0,0,0.85); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: var(--ls-tight); font-size: 17px;
  flex-shrink: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-brand .logo { width: 28px; height: 28px; flex-shrink: 0; }
.nav-brand .wordmark { height: 16px; width: auto; display: block; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--text-2); transition: color var(--d-fast); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-cta .btn {
  min-width: 120px;
  height: 40px;
  padding: 0 22px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Defensive tightening so the CTA can never crowd the edge on small phones */
@media (max-width: 380px) {
  .nav { padding: 14px 16px; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-brand .logo { width: 24px; height: 24px; }
  .nav-brand .wordmark { height: 14px; }
  .nav-cta .btn { min-width: 104px; min-height: 44px; height: 44px; padding: 0 18px; font-size: 13px; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,68,56,0.16), transparent 62%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-mascot {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--maxw)) / 2 + 12px));
  bottom: 72px;
  width: 112px;
  pointer-events: none;
  transform: rotate(4deg);
}
.hero-mascot img { width: 100%; height: auto; }
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr auto 1fr; gap: var(--s-4); }
}
@media (max-width: 1199px) { .hero-mascot { display: none; } }

/* phone columns (desktop). Fixed width so the device doesn't collapse. */
.hero-phone { display: none; width: 290px; }
.hero-phone.left  { justify-self: end; }
.hero-phone.right { justify-self: start; }
@media (min-width: 1200px) {
  .hero-phone { display: block; }
  .hero-phone .device { max-width: 290px; transform: scale(0.92); }
  .hero-phone.left  .device { transform: scale(0.92) translateY(24px) rotate(-2.5deg); }
  .hero-phone.right .device { transform: scale(0.92) translateY(-12px) rotate(2.5deg); }
}

/* center stack */
.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.hero-logo {
  width: clamp(72px, 12vw, 104px);
  height: clamp(72px, 12vw, 104px);
  margin-bottom: var(--s-1);
}
.hero-logo .logo { width: 100%; height: 100%; }
.hero-promise {
  font-size: clamp(34px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.02;
  max-width: 12ch;
}
.hero-promise .em { color: var(--text); }
.hero-promise .dim { color: var(--text-3); }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 34ch;
  line-height: 1.45;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: var(--s-1); }
.hero-ctas.store-buttons {
  width: min(100%, 440px);
  gap: 10px;
  align-items: center;
}
.hero-ctas.store-buttons .btn-store,
.hero-ctas.store-buttons .btn-store-google {
  flex: 0 1 210px;
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  height: 54px;
  box-sizing: border-box;
}
.hero-ctas.store-buttons .btn-store { padding: 0 22px; }
.hero-ctas.store-buttons .btn-store-google {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.32);
  background: #000;
  overflow: hidden;
}
.hero-ctas.store-buttons .btn-store-google:hover {
  border-color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.03);
}
.google-play-badge {
  display: block;
  width: 142px;
  max-width: 100%;
  height: auto;
  clip-path: inset(2px);
}
.hero-note {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.hero-note a,
.cta-note a,
.faq-item a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orano-red, var(--platinum));
  text-underline-offset: 3px;
}

/* mobile hero mockup (shown below the sub-copy, above the CTA, on small screens) */
.hero-mobile-phone { display: block; margin: var(--s-4) auto 0; }
.hero-mobile-phone img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
@media (min-width: 1200px) { .hero-mobile-phone { display: none; } }

/* Tablet and compact laptop: use the real dual-screen mockup instead of
   squeezing two device columns around a narrow headline. */
@media (min-width: 721px) and (max-width: 1199px) {
  .hero {
    min-height: auto;
    padding: 96px var(--gutter) 48px;
  }
  .hero-inner { max-width: 760px; }
  .hero-center { gap: 14px; }
  .hero-logo { width: 52px; height: 52px; margin-bottom: 0; opacity: .72; }
  .hero-promise { font-size: clamp(40px, 6vw, 56px); max-width: 20ch; }
  .hero-sub { max-width: 48ch; font-size: 16px; }
  .hero-ctas { order: 4; margin-top: 6px; }
  .hero-mobile-phone { order: 5; margin: 12px auto 0; }
  .hero-mobile-phone img {
    width: auto;
    max-width: min(54vw, 430px);
    max-height: min(42svh, 430px);
    object-fit: contain;
  }
}

/* Phone hero: keep the promise and CTA visible before a height-capped mockup. */
@media (max-width: 720px) {
  .nav-brand { min-height: 44px; }
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 80px var(--gutter) max(20px, env(safe-area-inset-bottom));
  }
  .hero-inner { flex: 1; display: flex; flex-direction: column; }
  .hero-glow { opacity: 0.55; width: min(560px, 150vw); }
  .hero-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    opacity: 0.65;
  }
  .hero-center { width: 100%; flex: 1; justify-content: flex-start; gap: 12px; }
  .hero-promise {
    font-size: clamp(26px, 7.2vw, 34px);
    max-width: 20ch;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 34ch;
    white-space: normal;
  }
  .hero-ctas { order: 4; width: auto; margin-top: 6px; padding-top: 0; }
  .hero-ctas .btn { flex: 0 1 auto; min-width: 190px; height: 54px; font-size: 15px; }
  .hero-ctas.store-buttons {
    width: min(100%, 300px);
    gap: 12px;
    margin-top: 4px;
  }
  .hero-ctas.store-buttons .btn-store,
  .hero-ctas.store-buttons .btn-store-google {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 50px;
  }
  .hero-ctas.store-buttons .google-play-badge {
    width: 132px;
  }
  .hero-note { display: none; }
  /* Keep the label compact while giving it a comfortable, separated tap target. */
  .hero-demo-link {
    min-height: 44px;
    padding: 10px 12px;
    margin: 2px auto 8px;
  }
  .faq-item p a,
  .cta-note a {
    display: inline-block;
    min-height: 44px;
    padding: 12px 2px;
    margin-inline: 2px;
    box-sizing: border-box;
  }
  .footer-links { gap: 12px; }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 2px;
  }
  .hero-mobile-phone {
    order: 5;
    width: min(100%, 430px);
    margin: 10px auto 0;
    overflow: visible;
  }
  .hero-mobile-phone img {
    width: 100%;
    max-width: 420px;
    max-height: min(42svh, 400px);
    object-fit: contain;
  }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
  animation: cue-float 2.6s var(--ease) infinite;
}
.scroll-cue svg { width: 16px; height: 16px; }
@keyframes cue-float { 0%,100% { transform: translate(-50%, 0); opacity: 0.5; } 50% { transform: translate(-50%, 6px); opacity: 1; } }
@media (max-width: 979px) { .scroll-cue { display: none; } }

/* ── Section shell ── */
.section {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: var(--s-5); }
.section-head.center { text-align: center; }
.section-head .kicker { margin-bottom: 14px; }
.section-head .lead { max-width: 52ch; margin-top: 14px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── Scroll Story (pinned storytelling) ── */
.story { position: relative; }
.story-rail {
  position: absolute;
  left: var(--gutter);
  /* start below the section head so the rail doesn't slice through the headline */
  top: 200px;
  bottom: 100px;
  width: 1px;
  background: var(--border);
  z-index: 0;              /* rail sits BEHIND content */
}
.story-rail .fill {
  position: absolute; top: 0; left: 0; width: 100%;
  background: var(--platinum);
  height: 0;
  transition: height 0.1s linear;
}
.story-stages {
  position: relative;
  z-index: 2;              /* content above the rail */
  display: flex;
  flex-direction: column;
  /* Softer gap between stages so transitions feel cinematic, not jumpy */
  gap: clamp(80px, 20vh, 200px);
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: clamp(40px, 8vh, 80px);
}
.stage {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
  /* subtle radial glow behind each stage for depth */
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(216,222,232,0.04), transparent 70%);
}
.stage > * { position: relative; z-index: 1; }
.stage-text { max-width: 30ch; }
/* large headlines get a faint glow so they feel dimensional, not flat */
.stage-text h3 {
  text-shadow: 0 0 40px rgba(255,255,255,0.06);
}
.stage-text .step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}
/* Step number overlaid on the top-left of each phone — sits on the device,
   doesn't push the phone down or offset it. Center-aligned visually because
   it sits inside the device frame's bounding box. */
.stage-phone { position: relative; }
.step-num-mobile {
  position: absolute;
  top: -16px;
  left: 16px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  opacity: 0;
  transition: opacity var(--d) var(--ease);
}
@media (max-width: 720px) {
  .step-num-mobile {
    opacity: 1;
    font-size: 11px;
    top: -20px;
    left: 22px;
    color: var(--text-2);
    /* subtle backdrop so it reads against any phone screen content */
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
  }
}
/* On desktop, the .step-num-mobile is redundant with the one in .stage-text, so hide */
@media (min-width: 980px) {
  .step-num-mobile { display: none; }
}
.stage-text h3 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.08;
  margin-bottom: 16px;
}
.stage-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.stage-text .stage-socials {
  margin-top: 24px;
  max-width: 360px;
}
.stage-text .stage-socials img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}
.stage-phone { display: flex; justify-content: center; }
.stage-phone .device { max-width: 270px; }

/* one-line caption under each phone — mobile only. The full h3/p pair
   in .stage-text is hidden on mobile, so this is the only description
   a mobile visitor gets for what each screen is showing. */
.stage-caption-mobile { display: none; }
@media (max-width: 720px) {
  .stage-caption-mobile {
    display: block;
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: var(--ls-tight);
    color: var(--text);
    max-width: 26ch;
    margin: 16px auto 0;
    padding: 2px 12px;
    /* opaque, same as page bg — masks the story-rail line passing behind it
       (the rail shows through the gaps around glyphs otherwise) */
    background: var(--bg);
  }
}

/* desktop: alternate sides + sticky phone behavior */
@media (min-width: 980px) {
  .stage { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .stage:nth-child(even) .stage-text { order: 2; }
  .stage:nth-child(even) .stage-phone { order: 1; }
  .stage-text { justify-self: center; }
}

/* stage connector dot on rail */
.stage::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -1 + 30px);
  left: 0;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  transform: translate(-50%, -50%);
  transition: background var(--d), box-shadow var(--d);
}
.story-rail {
  /* Centered on ALL viewports so the line stays in the middle of the section */
  left: 50%;
  transform: translateX(-50%);
  /* start below the section head so the rail doesn't slice through the headline */
  top: 200px;
  bottom: 100px;
}
@media (min-width: 980px) {
  .stage::before { display: none; }
  /* same centered position on desktop, slightly more clearance for the larger section head */
  .story-rail { top: 260px; bottom: 100px; }
}

/* ── Features (side-by-side visual blocks) ── */
.features-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  grid-template-columns: 1fr;
}
.feature {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: clamp(280px, 40vh, 380px);
}
.feature-mascot {
  position: absolute;
  z-index: 0;
  top: clamp(20px, 3vw, 32px);
  right: clamp(18px, 3vw, 34px);
  width: clamp(76px, 9vw, 104px);
  pointer-events: none;
  opacity: .96;
}
.feature-mascot img { width: 100%; height: auto; }
.feature > :not(.feature-mascot) { position: relative; z-index: 1; }
.feature .f-icon {
  width: 40px; height: 40px;
  color: var(--platinum);
  margin-bottom: 4px;
}
.feature .f-icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}
.feature p { font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 34ch; }
.feature .f-visual { margin-top: auto; }
@media (min-width: 720px) { .features-grid { grid-template-columns: 1fr 1fr; } }

/* feature mini-visuals (monochrome, abstract) */
.fv-sources { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fv-sources .glyph-pill {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: border-color var(--d), color var(--d);
}
.fv-sources .glyph-pill:hover { border-color: var(--text-3); color: var(--text); }
.fv-sources .glyph-pill svg { width: 22px; height: 22px; }

.fv-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.fv-bars span {
  flex: 1; border-radius: 3px;
  background: var(--text-4);
  animation: fv-bar 3s var(--ease) infinite;
}
.fv-bars span:nth-child(1){ height: 40%; animation-delay: 0s; }
.fv-bars span:nth-child(2){ height: 75%; animation-delay: .2s; }
.fv-bars span:nth-child(3){ height: 55%; animation-delay: .4s; }
.fv-bars span:nth-child(4){ height: 90%; animation-delay: .6s; background: var(--text-2); }
.fv-bars span:nth-child(5){ height: 30%; animation-delay: .8s; }
.fv-bars span:nth-child(6){ height: 65%; animation-delay: 1s; }
@keyframes fv-bar { 0%,100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.7); opacity: 1; } }

.fv-steps { display: flex; flex-direction: column; gap: 8px; }
.fv-steps .step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-2);
}
.fv-steps .step .chk {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid var(--text-3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fv-steps .step.on .chk { background: var(--platinum); border-color: var(--platinum); }
.fv-steps .step.on .chk svg { width: 10px; height: 10px; color: var(--bg); }
.fv-steps .step .chk svg { display: none; }
.fv-steps .step.on .chk svg { display: block; }

/* ── Real social-icons image visual ── */
.fv-socials { margin-top: auto; }
.fv-socials .social-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.fv-socials .social-pill {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-2);
  transition: border-color var(--d), color var(--d);
}
.fv-socials .social-pill:hover { border-color: var(--text-3); color: var(--text); }
.fv-socials .social-pill svg { width: 22px; height: 22px; }
.fv-socials img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  opacity: 0.85;
  filter: brightness(1.1);
}

/* ── Connect your agent — compact 2-column grid of supported agents ── */
.fv-agents { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fv-agents .agent-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255,255,255,0.015);
  min-width: 0;
}
.fv-agents .agent-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fv-agents .agent-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  background: rgba(216,222,232,0.10);
  border: 1px solid rgba(216,222,232,0.18);
  color: var(--platinum);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.fv-agents .agent-code svg { width: 13px; height: 13px; }
.fv-agents .agent-name {
  font-size: 12px; color: var(--text); font-weight: 500; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

/* ── Interactive onboarding demo ── */
.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px auto 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: var(--orano-red, var(--platinum));
  text-underline-offset: 4px;
  transition: color var(--d), gap var(--d);
}
.hero-demo-link:hover { color: var(--text); gap: 11px; }
.demo-section { padding-top: clamp(72px, 11vh, 132px); }
.demo-section .section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.demo-section .section-head .lead { margin-inline: auto; }
.interactive-demo { max-width: 1120px; margin: 0 auto; }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(340px, 360px);
  align-items: center;
  gap: clamp(22px, 3.5vw, 52px);
}
.demo-picker { min-width: 0; }
.demo-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 400px);
  margin: 0 auto 14px;
}
.demo-picker-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}
.demo-picker-count {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 400px);
  margin-inline: auto;
  transition: grid-template-columns 650ms var(--ease-out), gap 650ms var(--ease-out);
}
.demo-video-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #070707;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--d), box-shadow var(--d), transform var(--d), width 650ms var(--ease-out), height 650ms var(--ease-out), opacity 650ms var(--ease-out), filter 650ms var(--ease-out);
}
.demo-video-card video,
.demo-card-scrim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.demo-video-card video {
  z-index: -2;
  object-fit: cover;
  opacity: .72;
  transition: opacity var(--d);
}
.demo-card-scrim {
  z-index: -1;
  background: rgba(0,0,0,.12);
  pointer-events: none;
}
.demo-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 11px 11px;
  background: rgba(0,0,0,.78);
}
.demo-card-label {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-card-action {
  overflow: hidden;
  color: var(--text-2);
  font-size: 10px;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  background: rgba(0,0,0,.54);
  color: var(--text);
  transform: translate(-50%, -50%);
  transition: opacity var(--d), transform var(--d), background var(--d);
}
.demo-card-play svg { width: 15px; height: 15px; margin-left: 2px; }
.demo-video-card:hover {
  border-color: var(--text-2);
  transform: translateY(-2px);
}
.demo-video-card:hover video { opacity: .92; }
.demo-video-card:hover .demo-card-play { background: rgba(0,0,0,.72); }
.demo-video-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.demo-video-card.is-selected {
  border-color: var(--orano-red, var(--platinum));
  box-shadow: 0 0 0 1px var(--orano-red, var(--platinum));
}
.demo-video-card.is-selected video { opacity: 1; }
.demo-video-card.is-playing .demo-card-play { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.interactive-demo[data-phase="processing"] .demo-video-grid,
.interactive-demo[data-phase="ready"] .demo-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 400px);
}
.interactive-demo[data-phase="processing"] .demo-video-card.is-selected,
.interactive-demo[data-phase="ready"] .demo-video-card.is-selected {
  grid-column: 1 / -1;
  order: 1;
  width: min(100%, 320px);
  justify-self: center;
  aspect-ratio: 9 / 16;
}
.interactive-demo[data-phase="processing"] .demo-video-card:not(.is-selected),
.interactive-demo[data-phase="ready"] .demo-video-card:not(.is-selected) {
  order: 2;
  aspect-ratio: 3 / 4;
}
.interactive-demo[data-phase="processing"] .demo-video-card.is-selected .demo-card-copy,
.interactive-demo[data-phase="ready"] .demo-video-card.is-selected .demo-card-copy,
.interactive-demo[data-phase="processing"] .demo-picker-heading,
.interactive-demo[data-phase="ready"] .demo-picker-heading,
.interactive-demo[data-phase="processing"] .demo-picker-hint,
.interactive-demo[data-phase="ready"] .demo-picker-hint {
  display: none;
}
.interactive-demo.is-animating[data-phase="processing"] .demo-video-card.is-selected,
.interactive-demo.is-animating[data-phase="ready"] .demo-video-card.is-selected {
  animation: demo-card-expand 700ms var(--ease-out) both;
}
.interactive-demo.is-animating[data-phase="processing"] .demo-video-card:not(.is-selected),
.interactive-demo.is-animating[data-phase="ready"] .demo-video-card:not(.is-selected) {
  animation: demo-card-compact 650ms var(--ease-out) both;
}
@keyframes demo-card-expand {
  from { opacity: .7; filter: saturate(.7); transform: scale(.84); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes demo-card-compact {
  from { opacity: .4; filter: saturate(.6); transform: translateY(-10px) scale(1.12); }
  to { opacity: .78; filter: none; transform: none; }
}
.demo-mobile-chooser,
.demo-mobile-reset,
.demo-select-mobile { display: none; }
.demo-picker-hint {
  min-height: 18px;
  width: min(100%, 400px);
  margin: 13px auto 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}
.demo-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: var(--orano-red, var(--platinum));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity var(--d), transform var(--d);
}
.interactive-demo[data-phase="processing"] .demo-flow-arrow,
.interactive-demo[data-phase="ready"] .demo-flow-arrow {
  opacity: 1;
  transform: none;
}
.demo-flow-arrow-label {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-flow-arrow-line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: currentColor;
}
.demo-flow-arrow-line > span { width: 34px; height: 1px; background: currentColor; }
.demo-flow-arrow-line svg { width: 17px; height: 17px; flex: 0 0 auto; }
.demo-phone-panel { min-width: 0; text-align: center; }
.demo-phone-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 320px);
  margin: 0 auto 9px;
  color: var(--text-3);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.demo-phone-meta span:last-child { color: var(--text-2); }
.demo-device { width: min(100%, 360px); max-width: 360px; }
.demo-phone-screen {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 15px 15px 12px;
  background: #000;
}
.demo-app-tabbar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 8px;
  padding: 9px 0 3px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.demo-app-tab {
  display: grid;
  min-height: 20px;
  place-items: center;
  color: var(--text-3);
}
.demo-app-tab img,
.demo-app-tab svg {
  width: 18px;
  height: 18px;
  opacity: .45;
}
.demo-app-tab.on { color: var(--text); }
.demo-app-tab.on img,
.demo-app-tab.on svg { opacity: 1; }
.demo-phone-state {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
.interactive-demo[data-phase="select"] .demo-phone-state-select,
.interactive-demo[data-phase="processing"] .demo-phone-state-processing,
.interactive-demo[data-phase="ready"] .demo-phone-state-ready { display: flex; }
.demo-phone-state-select {
  align-items: flex-start;
  justify-content: center;
  padding: 16px 11px 32px;
  text-align: left;
}
.demo-phone-kicker {
  color: var(--orano-red, var(--platinum));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}
.demo-phone-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 32px 0 20px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.demo-phone-mark img { width: 30px; height: 28px; object-fit: contain; }
.demo-phone-state h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.08;
}
.demo-phone-state p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.demo-phone-state-processing {
  justify-content: space-between;
  padding: 18px 5px 10px;
  text-align: left;
}
.demo-phone-state-processing h3 { margin-top: 16px; font-size: clamp(21px, 2vw, 26px); }
.demo-processing-source {
  display: none;
}
.demo-processing-source img {
  width: 76px;
  height: 118px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}
.demo-mobile-source {
  display: block;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #080808;
}
.demo-mobile-source-header,
.demo-mobile-source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-3);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.demo-mobile-source-header span:first-child { color: var(--text); font-weight: 600; }
.demo-mobile-source-media {
  position: relative;
  height: clamp(190px, 18vw, 240px);
  overflow: hidden;
  background: #111;
}
.demo-mobile-source-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-mobile-source-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.72));
  pointer-events: none;
}
.demo-mobile-source-media > span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  z-index: 1;
  color: var(--text);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .11em;
}
.demo-mobile-source-toolbar {
  justify-content: flex-start;
  gap: 16px;
  padding-block: 7px;
  color: var(--text-2);
  font-size: 15px;
  letter-spacing: 0;
}
.demo-processing-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.demo-processing-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 11px;
  transition: color var(--d), opacity var(--d);
}
.demo-processing-steps li[data-demo-step="source"] { opacity: 1; }
.demo-processing-steps li.is-active { color: var(--text); }
.demo-processing-steps li.is-complete { color: var(--text-2); }
.demo-step-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 9px;
}
.demo-processing-steps li.is-active .demo-step-icon {
  border-color: var(--orano-red, var(--platinum));
  color: var(--orano-red, var(--platinum));
}
.demo-processing-steps li.is-complete .demo-step-icon { border-color: var(--text-2); color: var(--text); }
.demo-phone-progress {
  height: 2px;
  margin-top: auto;
  overflow: hidden;
  background: var(--border);
}
.demo-phone-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orano-red, var(--platinum));
  transition: width 500ms var(--ease);
}
.demo-phone-state-ready {
  overflow-y: auto;
  scrollbar-width: none;
  padding: 11px 5px 10px;
  text-align: left;
}
.demo-phone-state-ready::-webkit-scrollbar { display: none; }
.demo-preview-banner {
  position: relative;
  height: clamp(96px, 9vw, 132px);
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.demo-preview-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.24);
  pointer-events: none;
}
.demo-preview-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-phone-state-ready h3 {
  margin-top: 13px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.1;
}
.demo-preview-tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
}
.demo-preview-tabs button {
  appearance: none;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast);
}
.demo-preview-tabs button:hover { border-color: var(--text-3); color: var(--text-2); }
.demo-preview-tabs button:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.demo-preview-tabs button.is-active {
  border-color: var(--text-2);
  color: var(--text);
}
.demo-preview-panel[hidden] { display: none; }
.demo-preview-panel[data-demo-preview-panel="action"] {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.demo-preview-panel[data-demo-preview-panel="action"][hidden] { display: none; }
.demo-preview-panel[data-demo-preview-panel="action"] > p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.demo-preview-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
}
.demo-preview-section-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.demo-preview-overline {
  color: var(--text-3);
  font-size: 8.5px;
  letter-spacing: .14em;
}
.demo-preview-section-header strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}
.demo-preview-section-header > span:last-child {
  flex: 0 0 auto;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}
.demo-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.demo-task {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.2;
}
.demo-task-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 10px 0 10px 9px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.demo-task-toggle:hover .demo-task-body strong { color: var(--text); }
.demo-task-toggle:focus-visible,
.demo-task-check:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.demo-task-number {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
}
.demo-task-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.demo-task-body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-task-body small {
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.1;
}
.demo-phone-state .demo-task-detail {
  flex: 0 0 100%;
  margin: 0;
  padding: 8px 10px 10px 42px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-size: 10px;
  line-height: 1.4;
}
.demo-task.is-expanded { border-bottom-color: rgba(255,255,255,.16); }
.demo-task.is-complete .demo-task-body strong {
  color: var(--text-3);
  text-decoration: line-through;
}
.demo-task-check {
  appearance: none;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  margin: 10px;
  padding: 0;
  background: transparent;
  color: var(--bg);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.demo-task.is-complete .demo-task-check {
  border-color: var(--text);
  background: var(--text);
}
.demo-preview-progress {
  margin-top: auto;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.demo-preview-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demo-preview-progress-head strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.demo-preview-progress-head span {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
}
.demo-preview-progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.demo-preview-progress-track span {
  display: block;
  width: 67%;
  height: 100%;
  background: var(--text);
}
.demo-preview-progress small {
  display: block;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.1;
}
.demo-overview-meta,
.demo-chat-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.demo-overview-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--text-2);
  font-size: 7px;
  letter-spacing: .12em;
}
.demo-overview-status i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orano-red, var(--platinum));
}
.demo-overview-label { display: block; margin-top: 17px; }
.demo-overview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 7px;
}
.demo-overview-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.demo-overview-item > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--orano-red, var(--platinum));
  font-family: var(--mono);
  font-size: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.demo-overview-item > div { min-width: 0; }
.demo-overview-item strong,
.demo-overview-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-overview-item strong {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.demo-overview-item small {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 9px;
  line-height: 1.35;
}
.demo-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--text-2);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: var(--orano-red, var(--platinum));
  text-underline-offset: 3px;
}
.demo-source-icon { color: var(--text); font-size: 7px; }
.demo-source-link:hover { color: var(--text); }
.demo-chat-meta > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.demo-chat-meta strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}
.demo-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 15px;
}
.demo-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 92%;
}
.demo-chat-message.is-user { align-self: flex-end; }
.demo-chat-message p {
  margin: 0;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 9px;
  line-height: 1.35;
}
.demo-chat-message.is-assistant p { background: rgba(255,255,255,.04); }
.demo-chat-message.is-user p { border-color: rgba(184,68,59,.45); color: var(--text); background: rgba(184,68,59,.18); }
.demo-chat-role {
  display: grid;
  width: 23px;
  min-height: 17px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .08em;
}
.demo-chat-suggestions-label {
  display: block;
  margin-top: 15px;
  color: var(--text-3);
  font-size: 8px;
  letter-spacing: .14em;
}
.demo-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.demo-chat-suggestions button {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font: inherit;
  font-size: 8px;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}
.demo-chat-suggestions button:hover,
.demo-chat-suggestions button:focus-visible { border-color: var(--text-2); color: var(--text); }
.demo-chat-suggestions button:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.demo-chat-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 9px;
}
.demo-chat-composer > span:nth-child(2) { flex: 1; margin-left: 5px; }
.demo-chat-mic { color: var(--text-3); font-size: 13px; line-height: 1; }
.demo-chat-send {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--platinum);
  color: var(--bg);
  font-size: 11px;
  line-height: 1;
}
.demo-preview-panel[data-demo-preview-panel="overview"],
.demo-preview-panel[data-demo-preview-panel="chat"] {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.demo-phone-caption {
  min-height: 18px;
  margin: 12px auto 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}
.demo-reset {
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: var(--orano-red, var(--platinum));
  text-underline-offset: 3px;
  cursor: pointer;
}
.demo-reset:hover { color: var(--text); }
.demo-reset:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.demo-reset[hidden] { display: none; }

@media (max-width: 979px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); max-width: 660px; gap: 22px; }
  .demo-flow-arrow { flex-direction: row; justify-content: center; gap: 11px; transform: translateY(-8px); }
  .interactive-demo[data-phase="processing"] .demo-flow-arrow,
  .interactive-demo[data-phase="ready"] .demo-flow-arrow { transform: none; }
  .demo-flow-arrow-line { transform: rotate(90deg); }
  .demo-phone-panel { width: min(100%, 320px); margin: 0 auto; }
}
@media (max-width: 720px) {
  .demo-section { padding-top: 64px; }
  .demo-section .section-head { margin-bottom: 32px; }
  .demo-section .section-head .h-sec { font-size: 26px; }
  .demo-section .section-head .lead { max-width: 34ch; font-size: 14px; }
  .demo-layout { max-width: 300px; gap: 0; }
  .demo-picker,
  .demo-flow-arrow { display: none; }
  .demo-phone-panel { width: min(100%, 300px); }
  .demo-phone-meta { width: min(100%, 300px); margin-bottom: 8px; }
  .demo-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .demo-video-card { aspect-ratio: 9 / 16; border-radius: 15px; }
  .demo-card-copy { padding: 10px 10px 9px; }
  .demo-card-label { font-size: 14px; }
  .demo-card-action { font-size: 9px; }
  .demo-card-play { width: 34px; height: 34px; }
  .demo-card-play svg { width: 14px; height: 14px; }
  .demo-device { width: min(300px, 84vw); max-width: 300px; }
  .demo-select-desktop { display: none; }
  .demo-select-mobile { display: inline; }
  .demo-phone-state-select {
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 5px 14px;
  }
  .demo-phone-state-select .demo-phone-mark {
    width: 38px;
    height: 38px;
    margin: 14px 0 12px;
  }
  .demo-phone-state-select .demo-phone-mark img { width: 24px; height: 22px; }
  .demo-phone-state-select h3 { font-size: 18px; }
  .demo-phone-state-select .demo-select-help { display: none; }
  .demo-mobile-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 17px;
  }
  .demo-mobile-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 9 / 11;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #070707;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--d), box-shadow var(--d), transform var(--d);
  }
  .demo-mobile-card img,
  .demo-mobile-card-scrim {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .demo-mobile-card img { object-fit: cover; opacity: .78; }
  .demo-mobile-card-scrim { background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.72)); }
  .demo-mobile-card-label {
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    z-index: 1;
    overflow: hidden;
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: var(--ls-tight);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .demo-mobile-card:hover,
  .demo-mobile-card:focus-visible {
    border-color: var(--text-2);
    transform: translateY(-1px);
  }
  .demo-mobile-card:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
  .demo-mobile-card.is-selected {
    border-color: var(--orano-red, var(--platinum));
    box-shadow: 0 0 0 1px var(--orano-red, var(--platinum));
  }
  .demo-phone-state-processing {
    overflow-y: auto;
    scrollbar-width: none;
    padding: 12px 3px 7px;
  }
  .demo-phone-state-processing::-webkit-scrollbar { display: none; }
  .demo-phone-state-processing h3 { margin-top: 10px; font-size: clamp(19px, 5.2vw, 22px); }
  .demo-processing-source { display: none; }
  .demo-mobile-source {
    display: block;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #080808;
  }
  .demo-mobile-source-header,
  .demo-mobile-source-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    color: var(--text-3);
    font-size: 7px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .demo-mobile-source-header span:first-child { color: var(--text); font-weight: 600; }
  .demo-mobile-source-media {
    position: relative;
    height: clamp(180px, 53vw, 224px);
    overflow: hidden;
    background: #111;
  }
  .demo-mobile-source-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .demo-mobile-source-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.72));
    pointer-events: none;
  }
  .demo-mobile-source-media > span {
    position: absolute;
    right: 9px;
    bottom: 8px;
    left: 9px;
    z-index: 1;
    color: var(--text);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .11em;
  }
  .demo-mobile-source-toolbar {
    justify-content: flex-start;
    gap: 14px;
    padding-block: 6px;
    color: var(--text-2);
    font-size: 14px;
    letter-spacing: 0;
  }
  .demo-phone-state-processing .demo-processing-steps {
    gap: 10px;
    margin-top: 16px;
  }
  .demo-phone-state-processing .demo-processing-steps li { gap: 8px; font-size: 10.5px; }
  .demo-phone-state-processing .demo-step-icon { width: 22px; height: 22px; font-size: 8px; }
  .demo-phone-state-processing .demo-phone-progress { margin-top: 14px; }
  .demo-preview-banner { height: clamp(96px, 26vw, 112px); }
  .demo-phone-state-ready h3 { font-size: clamp(20px, 5.5vw, 23px); }
  .demo-preview-panel[data-demo-preview-panel="action"] > p { font-size: 12.5px; }
  .demo-preview-section-header strong { font-size: 14px; }
  .demo-task { font-size: 11.5px; }
  .demo-task-toggle { padding-block: 9px; }
  .demo-task-number { width: 23px; height: 23px; }
  .demo-task-body strong { font-size: 11.5px; }
  .demo-task-body small { font-size: 9.5px; }
  .demo-task-check { width: 21px; height: 21px; margin: 9px; }
  .demo-preview-progress { padding: 10px; }
  .demo-preview-progress-head strong { font-size: 12px; }
  .demo-preview-progress small { font-size: 9.5px; }
  .demo-app-tabbar { margin-top: 6px; padding-top: 8px; }
  .demo-phone-caption,
  .demo-reset { display: none !important; }
  .demo-mobile-reset {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 9px;
    cursor: pointer;
  }
  .demo-mobile-reset:hover,
  .demo-mobile-reset:focus-visible { border-color: var(--text-2); color: var(--text); }
  .demo-mobile-reset:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
  .demo-mobile-reset[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-demo-link,
  .demo-video-card,
  .demo-video-card video,
  .demo-card-play,
  .demo-flow-arrow,
  .demo-processing-steps li,
  .demo-phone-progress span,
  .demo-mobile-card,
  .demo-mobile-reset { transition: none; }
  .interactive-demo.is-animating .demo-video-card { animation: none; }
}

/* ── Homepage FAQ ── */
.homepage-faq {
  padding-top: clamp(64px, 10vh, 112px);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  max-width: 70ch;
  padding: 0 44px 24px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Verifiable product details ── */
.homepage-proof {
  padding-top: clamp(64px, 10vh, 112px);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 1040px;
  margin: 0 auto;
}
.proof-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  background: var(--bg);
  color: inherit;
  transition: background var(--d-fast) var(--ease);
}
.proof-card:hover { background: var(--surface); }
.proof-index {
  color: var(--orano-red, var(--platinum));
  font-size: 11px;
  letter-spacing: 0.12em;
}
.proof-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}
.proof-card > span:not(.proof-index):not(.proof-link) {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  max-width: 30ch;
}
.proof-link {
  margin-top: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 0; }
}
.cta-note {
  max-width: 48ch;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 720px) {
  /* Features stay 2-col, compact on mobile */
  .features-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .feature { padding: 22px 18px; min-height: 180px; gap: 12px; }
  .feature-mascot { top: 12px; right: 9px; width: 50px; opacity: .88; }
  .feature .f-icon { width: 28px; height: 28px; margin-bottom: 0; }
  .feature .f-icon svg { width: 28px; height: 28px; }
  .feature h3 { font-size: 14px; letter-spacing: -0.02em; line-height: 1.2; }
  .feature p { font-size: 11.5px; line-height: 1.4; max-width: none; }
  /* Show ALL feature visuals on mobile (steps checklist, bars, agent row) */
  .feature .f-visual {
    display: block;
    margin-top: 4px;
    opacity: 0.85;
  }
  .fv-bars { height: 40px; gap: 4px; }
  .fv-socials img { max-width: 100%; opacity: 0.7; }
  /* Aggressive mobile sizing for step text so they FIT */
  .fv-steps .step { font-size: 10px; gap: 8px; }
  .fv-steps .step .chk { width: 14px; height: 14px; }
  .fv-steps .step .chk svg { width: 9px; height: 9px; }
  /* Agent grid compact */
  .fv-agents { gap: 5px; }
  .fv-agents .agent-item { padding: 6px 8px; gap: 6px; }
  .fv-agents .agent-code { min-width: 24px; height: 19px; font-size: 8.5px; }
  .fv-agents .agent-name { font-size: 10.5px; }

  /* ── Mobile story: keep only the section header + phones ── */
  .story-stages { gap: 92px; padding-top: 24px; padding-bottom: 24px; }
  .stage { min-height: auto; padding: 8px 0; background: none; }
  .stage-text { display: none; }
  /* .stage-phone is display:flex (row) so it can center the device on
     desktop; on mobile it also holds .stage-caption-mobile as a second
     child, which must stack BELOW the phone, not beside it. */
  .stage-phone {
    justify-self: center;
    flex-direction: column;
    align-items: center;
  }
  /* Fixed vw-based width (not a percentage of the flex/grid container) so
     stages whose screen contains a nested grid (the in-phone .tabbar) can't
     shrink the device frame via intrinsic sizing — every phone in the
     "How it works" story is the same width regardless of its content.
     Sized down further per feedback — these don't need to be as large as
     the hero phone. */
  .stage-phone .device { width: min(230px, 66vw); max-width: none; flex: none; }
  /* "How it works" header stays, centered */
  .story .section-head { margin-bottom: 36px; }
  .story .section-head .h-sec { font-size: 26px; }
  .story .section-head .lead { font-size: 14px; max-width: 36ch; margin: 10px auto 0; }
  .faq-item summary { padding: 18px 0; font-size: 15px; }
  .faq-item p { padding-right: 0; font-size: 13px; }
}

/* ── Final CTA ── */
.cta {
  text-align: center;
  padding: clamp(100px, 18vh, 200px) var(--gutter);
  position: relative;
}
.cta .hero-glow { opacity: 0.7; }
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.cta h2 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  max-width: 14ch;
}
.cta .sub { font-size: 15px; color: var(--text-2); max-width: 40ch; }
.cta .btn { margin-top: var(--s-2); }
.cta .cta-discord { margin-top: var(--s-3); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-6) var(--gutter) var(--s-4);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-2);
  text-align: center;
  padding-bottom: var(--s-5);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.footer-brand .logo { width: 20px; height: 20px; }
.footer-brand .wordmark { height: 14px; width: auto; display: block; }
.footer-tag {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  color: var(--text-2);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
}
.footer-links { font-size: 12px; color: var(--text-3); display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; }
}
