
:root{
  --bg:#0a0a0f;
  --bg-soft:#111118;
  --panel:#15151e;
  --text:#f6f7fb;
  --muted:#a6a8b5;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.16);
  --purple:#7b6cff;
  --purple-2:#aa8cff;
  --cyan:#63dcff;
  --green:#70e2ad;
  --max:1180px;
}
*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;scroll-padding-top:88px;color-scheme:dark
}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
body.menu-open{
  overflow:hidden
}
a{
  color:inherit;text-decoration:none
}
button{
  font:inherit
}
img,svg{
  display:block
}
h1,h2,h3,p{
  margin-top:0
}
.container{
  width:min(var(--max),calc(100% - 48px));margin:0 auto
}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.skip-link{
  position:fixed;z-index:120;left:16px;top:-80px;padding:10px 14px;border-radius:10px;background:#fff;color:#11121a;font-size:12px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.25)
}
.skip-link:focus{
  top:14px
}
a:focus-visible,button:focus-visible{
  outline:3px solid #8f82ff;outline-offset:3px;border-radius:8px
}
.progress{
  position:fixed;z-index:100;inset:0 0 auto;height:2px;pointer-events:none
}
.progress span{
  display:block;width:0;height:100%;background:linear-gradient(90deg,var(--purple-2),var(--cyan));box-shadow:0 0 16px rgba(99,220,255,.45)
}

.site-header{
  position:fixed;z-index:90;inset:0 0 auto;
  border-bottom:1px solid transparent;
  transition:background .25s ease,border-color .25s ease,backdrop-filter .25s ease;
}
.site-header.scrolled{
  background:rgba(10,10,15,.76);
  border-color:var(--line);
  backdrop-filter:blur(18px) saturate(140%);
}
.nav{
  height:76px;display:flex;align-items:center;gap:14px;min-width:0
}
.brand{
  display:flex;align-items:center;gap:10px;font-size:13px;font-weight:720;letter-spacing:-.02em;min-width:0;flex-shrink:1
}
.brand b{
  color:#b8b0ff
}
.brand-text{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0
}
.brand-icon{
  width:34px;height:34px;display:block;flex:0 0 auto;object-fit:contain;border-radius:10px;
  box-shadow:0 10px 26px rgba(42,35,105,.22)
}
.lang-switcher{
  display:inline-flex;align-items:center;padding:3px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);margin-left:auto;gap:2px;
  flex-shrink:0
}
.lang-btn{
  border:0;background:transparent;color:var(--muted);padding:4px 8px;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.03em;cursor:pointer;transition:all .18s ease;line-height:1;
}
.lang-btn:hover{
  color:var(--text);background:rgba(255,255,255,.08);
}
.lang-btn.active{
  background:rgba(255,255,255,.16);color:#fff;font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.25);
}
.lang-switcher + .theme-toggle{
  margin-left:0;flex-shrink:0
}
.theme-toggle{
  flex-shrink:0
}
.nav-links{
  display:flex;align-items:center;gap:24px;color:#b9bbc8;font-size:12px;font-weight:700
}
.nav-links>a:not(.nav-install){
  transition:color .2s ease
}
.nav-links>a:not(.nav-install):hover{
  color:white
}
.nav-install{padding:10px 15px;border-radius:11px;color:#101018;background:white;box-shadow:0 10px 30px rgba(111,95,255,.15);font-weight:700;transition:transform .2s ease,box-shadow .2s ease}.nav-install:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(111,95,255,.28)}
.menu-button{
  display:none;padding:8px;border:0;background:none;cursor:pointer;flex-shrink:0
}
.menu-button>span:not(.sr-only){
  display:block;width:22px;height:2px;margin:4px 0;background:white;border-radius:2px
}

.hero{
  position:relative;overflow:hidden;
  padding:150px 0 100px;
  background:
    radial-gradient(circle at 82% 22%,rgba(86,211,255,.08),transparent 24%),
    radial-gradient(circle at 15% 18%,rgba(123,108,255,.13),transparent 28%),
    linear-gradient(180deg,#0a0a0f 0%,#0d0d14 100%);
}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(to bottom,#000,transparent 82%);
}
.hero-light{
  position:absolute;border-radius:50%;filter:blur(8px);pointer-events:none
}
.hero-light-a{
  width:460px;height:460px;right:-160px;top:80px;background:radial-gradient(circle,rgba(119,102,255,.16),transparent 68%)
}
.hero-light-b{
  width:360px;height:360px;left:-140px;bottom:-120px;background:radial-gradient(circle,rgba(99,220,255,.08),transparent 70%)
}

/* Spot violet interactif & illumination dynamique du quadrillage */
.hero-mouse-glow{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(
    250px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    rgba(142, 108, 255, 0.16) 0%,
    rgba(118, 75, 245, 0.08) 35%,
    rgba(80, 50, 220, 0.02) 55%,
    transparent 70%
  );
  opacity:var(--mouse-glow-opacity, 0.55);
  transition:opacity .35s ease;
  will-change:background;
}
.hero-grid-spotlight{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  background-image:
    linear-gradient(rgba(182, 160, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 160, 255, 0.12) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(
    200px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    black 0%,
    rgba(0, 0, 0, 0.5) 45%,
    transparent 75%
  );
  -webkit-mask-image:radial-gradient(
    200px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    black 0%,
    rgba(0, 0, 0, 0.5) 45%,
    transparent 75%
  );
  opacity:var(--mouse-grid-opacity, 0.40);
  transition:opacity .35s ease;
  will-change:mask-image, -webkit-mask-image;
}
.hero-grid{
  position:relative;z-index:2;display:grid;grid-template-columns:.92fr 1.08fr;gap:60px;align-items:center
}
.amo-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 11px;border:1px solid var(--line);border-radius:999px;
  color:#c4c5d0;background:rgba(255,255,255,.035);
  font-size:11px;font-weight:760
}
.amo-pill>span:first-child{
  width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(112,226,173,.08)
}
.hero h1{
  margin:24px 0 22px;max-width:700px;
  font-size:clamp(56px,6.7vw,88px);
  line-height:.94;letter-spacing:-.07em;font-weight:820
}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(110deg,#b5a7ff 5%,#7b6cff 42%,#63dcff 86%);
  -webkit-background-clip:text;background-clip:text;color:transparent
}
.hero-text{
  max-width:620px;color:#b6b8c4;font-size:18px;line-height:1.72
}
.hero-text strong{
  color:white
}
.hero-actions{
  display:flex;gap:12px;flex-wrap:wrap;margin-top:30px
}
.button{
  min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:0 20px;border-radius:13px;font-size:13px;font-weight:800;transition:.2s ease
}
.button:hover{
  transform:translateY(-2px)
}
.button-primary{
  color:#0f1015;background:linear-gradient(135deg,#fff,#e7e2ff 58%,#c9f2ff);box-shadow:0 17px 40px rgba(93,91,255,.16)
}
.button-secondary{
  color:#dadbe4;border:1px solid var(--line);background:rgba(255,255,255,.035)
}
.button-outline{
  color:var(--text);border:1px solid var(--line-strong);background:rgba(255,255,255,.02)
}
.button-outline:hover{
  background:rgba(255,255,255,.06);border-color:var(--purple-2);color:#fff
}
.button-white{
  color:#101018;background:white
}
.firefox-mark{
  width:27px;height:27px;display:grid;place-items:center;border-radius:9px;color:white;background:linear-gradient(135deg,#ff7d4f,#ff4aad 50%,#755cff)
}

.hero-visual{
  position:relative;min-height:640px;
  --cursor-target-x:55%;
  --cursor-target-y:52%;
  isolation:isolate;
  min-width:0;min-height:660px;
  display:flex;flex-direction:column;
}
#demo{
  scroll-margin-top:92px
}
.youtube-page-mock{
  position:absolute;z-index:2;left:0;top:0;width:97%;
  height:446px;min-height:446px;max-height:446px;
  overflow:hidden;border:1px solid rgba(255,255,255,.085);border-radius:19px;
  background:#0f0f0f;box-shadow:0 30px 72px rgba(0,0,0,.44),0 1px 0 rgba(255,255,255,.025) inset;
  transform:none;
  transition:transform .65s cubic-bezier(.2,.75,.2,1),opacity .65s ease,filter .65s ease;
}
.yt-appbar{
  height:56px;display:grid;grid-template-columns:124px minmax(0,1fr) 124px;align-items:center;gap:10px;
  padding:0 13px;background:#0f0f0f
}
.yt-left,.yt-logo,.yt-top-actions,.yt-search-wrap{
  display:flex;align-items:center
}
.yt-left{
  gap:12px;min-width:0
}
.yt-menu{
  width:20px;color:#e2e2e2;font-size:13px;text-align:center;
  display:grid;place-items:center
}
.yt-logo{
  gap:5px;min-width:0
}
.yt-logo svg{
  width:21px;flex:0 0 auto
}
.yt-logo b{
  font-size:9.5px;line-height:1;letter-spacing:-.045em;color:#f1f1f1;
  font-size:10.5px
}
.yt-search-wrap{
  justify-self:center;width:min(100%,360px);gap:7px
}
.yt-search{
  flex:1;min-width:0;height:36px;display:flex;align-items:center;justify-content:space-between;
  overflow:hidden;border:1px solid #303030;border-radius:999px;background:#121212;color:#8b8b8b;
  box-shadow:0 1px 2px rgba(0,0,0,.25) inset;font-size:8px;
  font-size:9px
}
.yt-search>span{
  padding-left:13px
}
.yt-search>b{
  height:100%;width:44px;display:grid;place-items:center;align-content:center;justify-content:center;flex:0 0 auto;
  border-left:1px solid #303030;background:#222;color:#d2d2d2;font-size:14px;font-weight:500
}
.yt-voice{
  width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;
  background:#272727;color:#bdbdbd;font-size:5px;box-shadow:0 0 0 1px rgba(255,255,255,.015) inset
}
.yt-top-actions{
  justify-content:flex-end;gap:8px;color:#ddd;font-size:8px;
  font-size:8.6px
}
.yt-create{
  height:30px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:#272727;font-weight:750;white-space:nowrap;
  font-size:8.4px
}
.yt-bell{
  width:27px;height:27px;display:grid;place-items:center;color:#dedede;font-size:11px
}
.yt-profile{
  width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,#745fff,#59cfff);box-shadow:0 0 0 1px rgba(255,255,255,.08) inset
}
.yt-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:14px;padding:10px 12px 14px;
  grid-template-columns:minmax(0,1fr) clamp(150px,28%,176px)
}
.yt-watch{
  min-width:0
}
.yt-player{
  position:relative;width:100%;aspect-ratio:16/9;max-height:215px;overflow:hidden;border-radius:12px;background:#171717;
  box-shadow:0 1px 0 rgba(255,255,255,.025) inset
}
.yt-player::after{
  content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:34%;
  background:linear-gradient(to top,rgba(0,0,0,.62),transparent);pointer-events:none
}
.yt-scene{
  position:absolute;inset:0;display:grid;place-items:center;
  background:
    radial-gradient(circle at 27% 30%,rgba(122,95,255,.36),transparent 27%),
    radial-gradient(circle at 75% 67%,rgba(73,205,255,.18),transparent 25%),
    linear-gradient(140deg,#272938,#16171e 72%)
}
.scene-orb{
  position:absolute;border:1px solid rgba(255,255,255,.045);border-radius:50%
}
.scene-orb-a{
  width:160px;height:160px;left:14%;top:13%;box-shadow:0 0 0 34px rgba(255,255,255,.012),0 0 0 68px rgba(255,255,255,.008)
}
.scene-orb-b{
  width:95px;height:95px;right:18%;bottom:13%;background:radial-gradient(circle,rgba(92,220,255,.08),transparent 65%)
}
.player-center{
  position:relative;z-index:3;width:48px;height:48px;display:grid;place-items:center;padding-left:2px;
  border-radius:50%;background:rgba(255,255,255,.93);color:#151515;font-size:12px;
  box-shadow:0 14px 34px rgba(0,0,0,.3)
}
.yt-progress-track{
  position:absolute;z-index:4;left:11px;right:11px;bottom:31px;height:2px;border-radius:99px;background:rgba(255,255,255,.27)
}
.yt-progress-track i{
  display:block;width:38%;height:100%;border-radius:inherit;background:#f00
}
.yt-controls{
  position:absolute;z-index:4;left:11px;right:11px;bottom:8px;display:flex;align-items:center;gap:9px;
  color:#fff;font-size:8px;text-shadow:0 1px 2px rgba(0,0,0,.5);
  font-size:9px
}
.yt-controls small{
  color:#efefef;font-size:6.8px;
  font-size:7.6px
}
.yt-controls>div{
  margin-left:auto;display:flex;align-items:center;gap:9px;color:#f3f3f3;font-size:7px;
  font-size:7.8px
}
.yt-title{
  margin:10px 0 8px;color:#f1f1f1;font-size:12.2px;font-weight:700;line-height:1.25;letter-spacing:-.02em;
  max-width:100%;
  font-size:13.2px;line-height:1.28
}
.yt-info-row{
  display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;
  align-content:flex-start
}
.yt-channel{
  display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 100%
}
.yt-avatar{
  width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;
  background:linear-gradient(135deg,#8f78ff,#59d0ff);font-size:8px;font-weight:850;
  font-size:9px
}
.yt-channel>div{
  min-width:0;line-height:1.1;
  flex:0 1 auto
}
.yt-channel strong{
  display:block;max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0f0f0;font-size:8.4px;
  font-size:9.2px
}
.yt-channel small{
  display:block;margin-top:3px;color:#8a8a8a;font-size:6.1px;white-space:nowrap;
  font-size:7px
}
.yt-subscribe{
  height:30px;display:inline-flex;align-items:center;flex:0 0 auto;padding:0 10px;border-radius:999px;
  background:#f2f2f2;color:#0f0f0f;font-size:7.3px;font-weight:800;
  font-size:8px
}
.yt-actions-row{
  display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;flex:1 1 100%;overflow:visible;
  flex-wrap:wrap;
  row-gap:6px;overflow:visible
}
.yt-actions-row>span,.yt-resume-action{
  height:30px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 10px;border-radius:999px;
  background:#272727;color:#e3e3e3;font-size:7.3px;font-weight:760;white-space:nowrap;
  flex:0 0 auto;
  line-height:1;
  font-size:8px
}
.yt-actions-row>span:first-child{
  padding-inline:10px
}
.yt-resume-action{
  position:relative;color:#fff;background:linear-gradient(135deg,#765fff,#9258d7);
  box-shadow:0 7px 20px rgba(118,95,255,.28);
  transition:transform .16s ease,box-shadow .18s ease
}
.yt-resume-action>b{
  font-size:8px;
  font-size:9px
}
.yt-resume-action>i{
  position:absolute;inset:-4px;border:1px solid rgba(166,146,255,.46);border-radius:999px;opacity:0;
}
.yt-actions-row .yt-more{
  width:30px;padding:0;justify-content:center
}
.yt-description{
  margin-top:9px;padding:9px 10px;border-radius:10px;background:#272727;color:#b0b0b0;font-size:6.4px;line-height:1.42;
  min-width:0;
  font-size:7.2px;line-height:1.46
}
.yt-description strong{
  display:block;margin-bottom:2px;color:#e0e0e0
}
.yt-description span{
  display:block
}
.yt-sidebar{
  min-width:0;padding-top:1px
}
.yt-filter{
  height:26px;display:inline-flex;align-items:center;margin-bottom:9px;padding:0 9px;border-radius:8px;
  background:#f1f1f1;color:#0f0f0f;font-size:6px;font-weight:800;
  font-size:7px
}
.yt-rec{
  display:grid;grid-template-columns:78px minmax(0,1fr);gap:7px;margin-bottom:7px
}
.thumb{
  position:relative;aspect-ratio:16/9;height:auto;overflow:hidden;border-radius:7px;background:#202020
}
.thumb span{
  position:absolute;right:3px;bottom:3px;padding:1px 3px;border-radius:3px;background:rgba(0,0,0,.78);
  color:#fff;font-size:4.7px;font-style:normal;font-weight:750;line-height:1.35;
  font-size:6px
}
.thumb-a{
  background:linear-gradient(135deg,#755fff,#202532)
}
.thumb-b{
  background:linear-gradient(135deg,#24384e,#67cbe9)
}
.thumb-c{
  background:linear-gradient(135deg,#42324c,#d878c2)
}
.thumb-d{
  background:linear-gradient(135deg,#393939,#7a7a7a)
}
.yt-rec>div{
  min-width:0;padding-top:1px
}
.yt-rec b,.yt-rec small,.yt-rec em{
  display:block;border-radius:99px;background:#373737
}
.yt-rec b{
  height:5px;margin-bottom:5px
}
.yt-rec b:nth-child(2){
  width:82%
}
.yt-rec small{
  width:58%;height:4px;margin-top:7px;background:#2c2c2c
}
.yt-rec em{
  width:72%;height:4px;margin-top:4px;background:#262626
}


.handoff-arrow{
  position:absolute;z-index:6;right:12%;bottom:115px;width:24%;color:#8e84e4;transform:rotate(7deg);
  opacity:0;transform:rotate(7deg) scale(.92);
  transition:opacity .24s ease,transform .55s ease;
}
.handoff-arrow svg{
  width:100%
}
.handoff-arrow>span{
  position:absolute;left:3%;top:45%;width:6px;height:6px;border-radius:50%;background:#8d7dff;box-shadow:0 0 14px rgba(141,125,255,.7);
}
.gemini-app-mock{
  position:absolute;z-index:7;right:0;bottom:0;width:74%;height:385px;display:grid;grid-template-columns:116px minmax(0,1fr);
  overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:20px;background:#1e1f20;
  box-shadow:0 30px 72px rgba(0,0,0,.5);
  opacity:0;pointer-events:none;
  transition:opacity .38s ease,box-shadow .4s ease;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}
.gemini-sidebar-mock{
  position:relative;padding:12px 9px;border-right:1px solid rgba(255,255,255,.07);background:#17181c;color:#aeb0b8;
  display:flex;flex-direction:column;
}
.gemini-side-brand{
  display:flex;align-items:center;gap:7px;color:#e7e8ec;font-size:10px;white-space:nowrap;
}
.gemini-side-brand svg{width:16px;height:16px}
.gemini-new-chat{
  display:flex;align-items:center;gap:5px;margin-top:13px;padding:6px 9px;border-radius:999px;background:#282a2d;color:#e3e3e3;font-size:9px;font-weight:700;cursor:default;
}
.gemini-sidebar-mock>small{
  display:block;margin:14px 0 7px;padding-left:2px;color:#80868b;font-size:8px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;
}
.gemini-history{
  padding:0 2px;display:flex;flex-direction:column;gap:6px;
}
.gemini-history i{
  display:block;height:6px;border-radius:99px;background:#2b2c31;width:95%;
}
.gemini-history i:nth-child(2){width:80%}
.gemini-history i.short{width:56%}
.gemini-side-settings{
  position:absolute;left:10px;bottom:10px;color:#797c86;width:20px;height:20px;display:grid;place-items:center;
}
.gemini-main-mock{
  position:relative;min-width:0;background:#1e1f20;display:flex;flex-direction:column;height:100%;
}
.gemini-topbar-mock{
  height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.06);flex:0 0 auto;
}
.gemini-model-pill{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:rgba(255,255,255,.08);color:#f0f4f9;font-size:11.5px;font-weight:700;
}
.gemini-model-pill .chevron{font-size:10px;opacity:.7}
.gemini-account{
  width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#7664ff,#55d1ff);color:white;font-size:10px;font-weight:800;
}
.gemini-thread{
  position:absolute;left:0;right:0;top:44px;bottom:50px;overflow-y:auto;padding:12px 14px;
}
.gemini-user-message{
  max-width:88%;margin-left:auto;padding:9px 12px;border-radius:16px 16px 4px 16px;background:#2b2c30;color:#edf0f4;
  opacity:0;transition:opacity .28s ease;
}
.gemini-yt-chip{
  display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.08);font-size:10px;font-weight:600;color:#c4c7c5;margin-bottom:5px;
}
.gemini-yt-chip svg{width:14px;height:14px;flex-shrink:0}
.user-prompt-text{
  display:block;font-weight:700;font-size:11.5px;line-height:1.35;color:#fff;
}
.gemini-thinking{
  display:flex;align-items:center;gap:8px;margin-top:10px;color:#d6d8df;opacity:0;transition:opacity .28s ease;
}
.hero-visual[data-flow-phase="answer"] .gemini-thinking{
  display:none;
}
.gemini-glyph{
  width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;background:linear-gradient(135deg,#6f82ff,#ad6eea);color:white;font-size:11px;
}
.gemini-thinking strong{
  display:block;font-size:10.5px;font-weight:600;color:#c4c7c5;
}
.thinking-dots{
  display:flex;gap:3px;margin-top:4px;
}
.thinking-dots i{
  width:4px;height:4px;border-radius:50%;background:#9da0a9;animation:geminiDot 1s ease-in-out infinite;
}
.thinking-dots i:nth-child(2){animation-delay:.15s}
.thinking-dots i:nth-child(3){animation-delay:.3s}
.gemini-response{
  position:relative;margin-top:12px;color:#e8e9ed;opacity:0;transition:opacity .3s ease;
}
.gemini-response-brand{
  display:flex;align-items:center;gap:7px;margin-bottom:6px;
}
.gemini-response-brand .gemini-glyph{width:20px;height:20px;font-size:10px}
.gemini-response-brand strong{font-size:11.5px;font-weight:700;color:#f0f4f9}
.gemini-response-title{
  margin:0 0 5px;font-size:12px;font-weight:700;letter-spacing:-.01em;color:#f0f4f9;line-height:1.25;
}
.gemini-response p{
  margin:0 0 6px;color:#c4c7c5;font-size:10px;line-height:1.42;
}
.gemini-response ul{
  margin:0 0 6px;padding-left:14px;
}
.gemini-response li{
  margin:0 0 4px;color:#c4c7c5;font-size:9.5px;line-height:1.38;
}
.gemini-response li b{color:#f0f4f9;font-weight:700}
.gemini-response-actions{
  display:flex;gap:10px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.06);font-size:11px;opacity:.75;
}
.gemini-composer{
  position:absolute;left:12px;right:12px;bottom:8px;height:40px;display:flex;align-items:center;gap:8px;padding:0 10px;
  border:1px solid #3b3c42;border-radius:20px;background:#282a2d;box-shadow:0 5px 18px rgba(0,0,0,.2);
}
.gemini-add,.gemini-mic{
  width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#b9bbc4;font-size:11px;
}
.gemini-add{background:#34353a}
.gemini-composer-copy{
  position:relative;flex:1;min-width:0;height:22px;display:flex;align-items:center;
}
.composer-placeholder,.composer-prompt{
  position:absolute;left:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px;line-height:1.3;
}
.composer-placeholder{color:#8d9099;opacity:1;transition:opacity .18s ease}
.composer-prompt{color:#e5e7ec;opacity:0;transition:opacity .18s ease}
.composer-prompt b{color:#9fa3ae;font-weight:600}
.gemini-send-animated{
  position:relative;width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;
  background:#3a3b40;color:#777a83;font-size:10px;font-weight:800;
  transition:background .2s ease,color .2s ease,transform .16s ease,box-shadow .2s ease;
}
.gemini-send-animated i{
  position:absolute;inset:-4px;border:1px solid rgba(176,164,255,.55);border-radius:50%;opacity:0;;
  opacity:0;transform:scale(.7)
}

.how{
  padding:82px 0;background:#0d0d14;border-top:1px solid var(--line);border-bottom:1px solid var(--line)
}
.section-title{
  max-width:720px;margin-bottom:30px
}
.kicker{
  display:inline-flex;color:#a99fff;text-transform:uppercase;letter-spacing:.14em;font-size:9px;font-weight:850
}
.kicker.light{
  color:rgba(255,255,255,.72)
}
.section-title h2,.benefit-copy h2,.install h2{
  margin:0;font-size:clamp(38px,4.7vw,58px);line-height:1.04;letter-spacing:-.055em
}
.section-title p{
  max-width:620px;margin:0;color:var(--muted);font-size:15px
}
.steps{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px
}
.step{
  position:relative;min-height:185px;padding:24px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012))
}
.number{position:absolute;right:22px;top:19px;color:#8f93a7;font-size:11px;font-weight:800;letter-spacing:.12em}
.step-icon{
  width:44px;height:44px;display:grid;place-items:center;margin-bottom:28px;border:1px solid var(--line);border-radius:14px;background:#15161f
}
.step-icon svg{
  width:23px
}
.gemini-mini{
  color:#a89fff;font-size:16px;
  background:linear-gradient(135deg,rgba(95,124,255,.08),rgba(154,99,233,.05))
}
.gemini-mini svg{
  width:28px;height:28px
}
.step h3{
  margin:0;font-size:18px;letter-spacing:-.025em
}
.step p{margin:8px 0 0;color:#9698a7;font-size:13px;line-height:1.5}
.step strong{
  color:#d8d9e2
}

.benefits{
  padding:74px 0;background:#09090e
}
.benefits-grid{
  display:grid;grid-template-columns:1.35fr .65fr;gap:14px;align-items:start
}
.benefit-main,.benefit-side{
  border:1px solid var(--line);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012))
}
.benefit-main{
  display:grid;grid-template-columns:1fr .95fr;gap:30px;align-items:start;padding:32px
}
.benefit-copy h2{
  font-size:clamp(34px,4vw,48px);line-height:1.04
}
.benefit-copy p{
  margin:0;color:#9799a8;font-size:14px
}

/* Demo Controls Bar placed cleanly above the stage */
.demo-controls-bar{position:relative;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;width:100%}
.demo-modes{display:inline-flex;padding:3px;border-radius:11px;background:rgba(10,10,15,.88);backdrop-filter:blur(12px);border:1px solid var(--line)}
.demo-mode-tab{border:0;background:none;color:#a6a8b5;padding:5px 12px;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer;transition:background .18s ease,color .18s ease}
.demo-mode-tab:hover{color:#fff}
.demo-mode-tab.active{background:rgba(255,255,255,.14);color:#fff}
.demo-actions{display:flex;gap:6px}
.demo-ctrl-btn{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:rgba(10,10,15,.88);backdrop-filter:blur(12px);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .15s ease,background .15s ease}
.demo-ctrl-btn:hover{transform:scale(1.05);background:rgba(255,255,255,.16)}
.demo-ctrl-btn .icon-play{display:none}
.demo-ctrl-btn.is-paused .icon-pause{display:none}
.demo-ctrl-btn.is-paused .icon-play{display:block}
.demo-stage{position:relative;width:100%;height:590px;min-height:590px}
.demo-highlight{animation:demoHighlightPulse 1.2s ease-out}
@keyframes demoHighlightPulse{
  0%{box-shadow:0 0 0 0 rgba(123,108,255,.6)}
  40%{box-shadow:0 0 0 14px rgba(99,220,255,.25)}
  100%{box-shadow:0 0 0 0 rgba(99,220,255,0)}
}

/* YouTube Real Action Pills & Injected Button */
.yt-pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:15px;background:rgba(255,255,255,.1);color:#fff;font-size:10.5px;font-weight:600;white-space:nowrap;flex-shrink:0}
.yt-pill-like{padding:0 9px;gap:6px}
.yt-like-sep{width:1px;height:14px;background:rgba(255,255,255,.2);margin:0 1px}
.yt-resume-action{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 13px;border-radius:15px;background:rgba(255,255,255,.15);color:#fff;font-size:11px;font-weight:700;border:1px solid rgba(170,140,255,.45);box-shadow:0 0 16px rgba(123,108,255,.28);position:relative;white-space:nowrap;flex-shrink:0}
.yt-summary-svg{width:16px;height:16px;fill:currentColor;flex-shrink:0}

/* Gemini Real Interface Details */
.gemini-model-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:7px;background:rgba(255,255,255,.07);color:var(--text);font-size:11px;font-weight:700}
.gemini-model-pill .chevron{font-size:9px;opacity:.7}
.gemini-brand-badge{font-weight:800;font-size:12.5px;background:linear-gradient(135deg,#4f8cff 0%,#8d6df1 50%,#e46fc6 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.gemini-yt-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.07);font-size:9.5px;font-weight:600;color:#c8cad5;margin-bottom:4px}
.user-prompt-text{display:block;font-weight:700;font-size:11.5px;color:#fff}
.gemini-response-actions{display:flex;gap:9px;margin-top:9px;padding-top:7px;border-top:1px solid rgba(255,255,255,.06);font-size:11px;opacity:.7}

/* Studio de Personnalisation du Prompt (0px layout shift) */
.prompt-studio{margin-top:16px;padding:22px;border-radius:20px;background:rgba(255,255,255,.025);border:1px solid var(--line);min-height:330px}
.studio-header{margin-bottom:14px}
.studio-title{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:var(--purple-2);margin-bottom:10px}
.studio-preset-list{display:flex;flex-wrap:wrap;gap:7px;min-height:64px}
.preset-chip{padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#d0d2df;font-size:11.5px;font-weight:700;cursor:pointer;transition:all .18s ease;white-space:nowrap}
.preset-chip:hover{background:rgba(255,255,255,.09);border-color:var(--line-strong);color:#fff;transform:translateY(-1px)}
.preset-chip.active{background:linear-gradient(135deg,#7b6cff,#63dcff);color:#0a0a0f;font-weight:700;border-color:transparent;box-shadow:0 6px 20px rgba(99,220,255,.25)}
.studio-editor{margin:14px 0}
.studio-editor label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:var(--text)}
.studio-editor textarea{width:100%;height:72px;min-height:72px;max-height:72px;resize:none;padding:10px 12px;border-radius:11px;border:1px solid var(--line-strong);background:rgba(0,0,0,.35);color:var(--text);font-family:inherit;font-size:13px;line-height:1.5;outline:none;overflow-y:auto;transition:border-color .2s ease,box-shadow .2s ease}
.studio-editor textarea:focus{border-color:#8f82ff;box-shadow:0 0 0 3px rgba(143,130,255,.2)}
.studio-hint{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
.studio-preview-card{height:88px;min-height:88px;max-height:88px;padding:12px 14px;border-radius:11px;background:rgba(0,0,0,.45);border:1px solid var(--line);overflow-y:auto;display:flex;flex-direction:column}
.preview-badge{display:inline-block;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#70e2ad;margin-bottom:5px;flex:0 0 auto}
.studio-preview-text{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:#e4e6f0;white-space:pre-wrap;word-break:break-all;flex:1 1 auto}
.benefit-lead{margin:10px 0 0;color:#9698a7;font-size:14px;line-height:1.6}
.benefit-lead strong{color:var(--text)}
.benefit-privacy-link{display:inline-flex;align-items:center;gap:4px;margin-top:10px;color:#b7afff;font-size:12px;font-weight:800;transition:color .15s ease}
.benefit-privacy-link:hover{color:#fff}

.benefit-side{
  padding:30px
}
.privacy-icon{
  width:50px;height:50px;display:grid;place-items:center;margin-bottom:18px;border:1px solid rgba(99,220,255,.12);border-radius:17px;background:rgba(99,220,255,.055)
}
.privacy-icon svg{
  width:25px;fill:#68dafa
}
.benefit-side h3{
  margin:0 0 10px;font-size:27px;line-height:1.12;letter-spacing:-.04em
}
.benefit-side p{
  color:#9698a7;font-size:13px
}
.benefit-side a{
  display:inline-flex;margin-top:7px;color:#b7afff;font-size:11px;font-weight:800
}

.install{
  padding:12px 0 68px;background:#09090e
}
.install-card{
  position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:34px;
  padding:32px 36px;border-radius:28px;
  background:radial-gradient(circle at 80% 10%,rgba(99,220,255,.2),transparent 30%),linear-gradient(125deg,#6657df 0%,#7658d8 45%,#4c78bf 100%);
  box-shadow:0 28px 70px rgba(50,48,130,.2)
}
.install-card::after{
  content:"";position:absolute;width:320px;height:320px;right:-130px;top:-160px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 60px rgba(255,255,255,.03)
}
.install-copy{
  position:relative;z-index:2;display:flex;align-items:center;gap:20px
}
.install-copy img{
  width:72px;height:72px;border-radius:18px;box-shadow:0 18px 36px rgba(34,28,102,.25)
}
.install h2{
  margin:0;font-size:clamp(32px,4vw,48px)
}
.install p{
  margin:0;color:rgba(255,255,255,.75);font-size:13px
}
.install-actions{
  position:relative;z-index:2;display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:190px
}
.code-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:8px;text-align:center;color:rgba(255,255,255,.8);font-size:12px;font-weight:700;transition:color .15s ease,background .15s ease}.code-link:hover{color:#fff;background:rgba(255,255,255,.08)}

footer{
  padding:34px 0 25px;border-top:1px solid var(--line);background:#07070b
}
.footer-row{
  display:flex;justify-content:space-between;gap:30px;color:#8d8f9d;font-size:12px;font-weight:700
}
.footer-row>div{
  display:flex;gap:18px;flex-wrap:wrap
}
.footer-row a:hover{
  color:white
}
.legal-line{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.05);color:#9698a8;font-size:11px;line-height:1.5}

.reveal{
  opacity:1;transform:none
}
.js .reveal{
  opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease
}
.js .reveal.visible{
  opacity:1;transform:translateY(0)
}


@keyframes geminiDot{
  0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}
}


@keyframes caret{
  0%,49%{opacity:1}50%,100%{opacity:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
  .gemini-user-message,.gemini-response,.response-line{opacity:1!important;transform:none!important}
  .gemini-thinking{opacity:0!important}
  .composer-placeholder{opacity:0!important}
  .composer-prompt{opacity:1!important}
}


@media (max-width:760px){
  .container{width:min(var(--max),calc(100% - 30px))}
  .hero{padding:120px 0 75px}
  .hero h1{font-size:clamp(48px,14vw,66px)}
  .hero-text{font-size:16px}
  .hero-actions .button{width:100%}
  .steps{grid-template-columns:1fr}
  .step{min-height:170px}
  .step-icon{margin-bottom:22px}
  .benefit-main{grid-template-columns:1fr}
  .install-card{align-items:flex-start;flex-direction:column;padding:32px 26px}
  .install-actions{width:100%}
  .button-white{width:100%}
  .footer-row{flex-direction:column}
}

@media (max-width:500px){
  .hero h1{font-size:clamp(44px,13vw,58px)}
  .brand-text,.brand>span:last-child{max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .how{padding:68px 0}
  .benefits{padding:64px 0}
  .benefit-main,.benefit-side{padding:25px}
  .install-copy{align-items:flex-start}
  .install-copy img{width:60px;height:60px}
}

/* Privacy page */
.privacy-page{
  min-height:100vh;background:radial-gradient(circle at 50% -10%,rgba(123,108,255,.12),transparent 27%),var(--bg)
}
.narrow{
  max-width:820px
}
.privacy-hero{
  padding:150px 0 52px;border-bottom:1px solid var(--line);text-align:center
}
.privacy-hero h1{
  margin:12px 0 14px;font-size:clamp(42px,5.4vw,66px);line-height:1;letter-spacing:-.06em
}
.privacy-hero p{
  margin:0;color:var(--muted)
}
.privacy-content{
  padding:58px 0 90px
}
.privacy-summary{
  margin-bottom:38px;padding:20px 22px;border:1px solid rgba(112,226,173,.16);border-radius:18px;background:rgba(112,226,173,.045)
}
.privacy-summary strong{
  display:block;margin-bottom:5px;color:#9de4c1;font-size:11px;text-transform:uppercase;letter-spacing:.12em
}
.privacy-summary p{
  margin:0;color:#b3c9bf;font-size:14px;line-height:1.65
}
.privacy-content section{
  padding:0 0 26px;margin-bottom:26px;border-bottom:1px solid var(--line)
}
.privacy-content h2{
  margin-bottom:10px;font-size:21px;letter-spacing:-.03em
}
.privacy-content p,.privacy-content li{
  color:#a1a3b1;font-size:15px;line-height:1.7
}
.privacy-content ul{
  padding-left:20px
}
.privacy-content a{
  color:#b8b0ff;font-weight:750
}
@media(max-width:760px){
  .privacy-hero{padding:125px 0 42px}
  .privacy-content{padding:44px 0 72px}
}


/* Unified YouTube → Gemini workflow demo */
.demo-cursor{
  position:absolute;z-index:30;left:28%;top:31%;width:25px;height:31px;
  opacity:0;pointer-events:none;filter:drop-shadow(0 7px 12px rgba(0,0,0,.45));
  transform:translate(-4px,-3px) scale(.92);
  transition:left .85s cubic-bezier(.2,.8,.2,1),top .85s cubic-bezier(.2,.8,.2,1),opacity .22s ease,transform .22s ease;
}
.demo-cursor svg{
  width:100%;height:100%
}
.cursor-click-ring{
  position:absolute;left:4px;top:2px;width:22px;height:22px;border:2px solid rgba(159,143,255,.8);border-radius:50%;
  opacity:0;transform:scale(.35);box-shadow:0 0 18px rgba(128,106,255,.3)
}
.transfer-packet{
  position:absolute;z-index:3;left:0;top:50%;display:flex;align-items:center;justify-content:center;
  width:8px;height:8px;border-radius:50%;background:#8e7eff;color:transparent;
  opacity:0;box-shadow:0 0 18px rgba(142,126,255,.8);
  transform:translate(-50%,-50%);
}
.transfer-packet b{
  position:absolute;left:50%;top:-24px;transform:translateX(-50%);padding:4px 7px;border:1px solid rgba(255,255,255,.1);
  border-radius:999px;background:#151621;color:#b9bbca;font-size:5px;white-space:nowrap;opacity:0;
}
.composer-caret{
  display:none;width:1px;height:13px;margin-left:1px;background:#9f94ff;animation:caret .8s steps(1) infinite;
  height:15px
}
.gemini-user-message,.gemini-thinking,.gemini-response{
  opacity:0;transform:translateY(7px);
  transition:opacity .34s ease,transform .34s ease
}

/* 1 — cursor arrives on the extension button */
.hero-visual[data-flow-phase="approach"] .demo-cursor,
.hero-visual[data-flow-phase="click"] .demo-cursor{
  left:var(--cursor-target-x);top:var(--cursor-target-y);opacity:1;transform:translate(-4px,-3px) scale(1)
}
.hero-visual[data-flow-phase="click"] .demo-cursor{
  transform:translate(-4px,-3px) scale(.86)
}
.hero-visual[data-flow-phase="click"] .cursor-click-ring{
  animation:phaseClickRing .55s ease-out both
}
.hero-visual[data-flow-phase="click"] .yt-resume-action{
  transform:scale(.94);box-shadow:0 0 0 7px rgba(122,99,255,.13),0 9px 25px rgba(118,95,255,.42)
}

/* 2 — the action leaves YouTube and Gemini opens */
.hero-visual[data-flow-phase="transfer"] .demo-cursor,
.hero-visual[data-flow-phase="compose"] .demo-cursor,
.hero-visual[data-flow-phase="send"] .demo-cursor,
.hero-visual[data-flow-phase="thinking"] .demo-cursor,
.hero-visual[data-flow-phase="answer"] .demo-cursor{
  opacity:0
}
.hero-visual[data-flow-phase="transfer"] .youtube-page-mock,
.hero-visual[data-flow-phase="compose"] .youtube-page-mock,
.hero-visual[data-flow-phase="send"] .youtube-page-mock,
.hero-visual[data-flow-phase="thinking"] .youtube-page-mock,
.hero-visual[data-flow-phase="answer"] .youtube-page-mock{
  transform:translateX(-5%) rotate(-1.7deg) scale(.94);opacity:.72;filter:saturate(.78) brightness(.78)
}
.hero-visual[data-flow-phase="transfer"] .gemini-app-mock,
.hero-visual[data-flow-phase="compose"] .gemini-app-mock,
.hero-visual[data-flow-phase="send"] .gemini-app-mock,
.hero-visual[data-flow-phase="thinking"] .gemini-app-mock,
.hero-visual[data-flow-phase="answer"] .gemini-app-mock{
  opacity:1;transform:translate3d(0,0,0) rotate(1.3deg) scale(1);
  box-shadow:0 34px 82px rgba(0,0,0,.5),0 0 0 1px rgba(133,113,255,.05)
}
.hero-visual[data-flow-phase="transfer"] .handoff-arrow{
  opacity:1;transform:rotate(7deg) scale(1)
}
.hero-visual[data-flow-phase="transfer"] .transfer-packet{
  animation:phaseTransferPacket 1.05s cubic-bezier(.35,.05,.2,1) both
}
.hero-visual[data-flow-phase="transfer"] .transfer-packet b{
  animation:phaseTransferLabel 1.05s ease both
}

/* 3 — extension injects the prompt */
.hero-visual[data-flow-phase="compose"] .composer-placeholder,
.hero-visual[data-flow-phase="send"] .composer-placeholder,
.hero-visual[data-flow-phase="thinking"] .composer-placeholder,
.hero-visual[data-flow-phase="answer"] .composer-placeholder{
  opacity:0
}
.hero-visual[data-flow-phase="compose"] .composer-prompt,
.hero-visual[data-flow-phase="send"] .composer-prompt{
  opacity:1
}
.hero-visual[data-flow-phase="compose"] .composer-caret{
  display:inline-block
}

/* 4 — automatic send */
.hero-visual[data-flow-phase="send"] .gemini-send-animated{
  background:#dfe1e6;color:#24252a;transform:scale(.86);box-shadow:0 0 0 7px rgba(151,135,255,.1)
}
.hero-visual[data-flow-phase="send"] .gemini-send-animated i{
  animation:phaseSendRing .65s ease-out both
}

/* 5 — Gemini receives the user message and analyses the video */
.hero-visual[data-flow-phase="thinking"] .gemini-user-message,
.hero-visual[data-flow-phase="answer"] .gemini-user-message{
  opacity:1;transform:translateY(0)
}
.hero-visual[data-flow-phase="thinking"] .gemini-thinking{
  opacity:1;transform:translateY(0)
}
.hero-visual[data-flow-phase="thinking"] .thinking-dots i{
  animation:geminiDot 1s ease-in-out infinite
}
.hero-visual[data-flow-phase="thinking"] .thinking-dots i:nth-child(2){
  animation-delay:.15s
}
.hero-visual[data-flow-phase="thinking"] .thinking-dots i:nth-child(3){
  animation-delay:.3s
}

/* 6 — Gemini writes the summary progressively */
.hero-visual[data-flow-phase="answer"] .gemini-response{
  opacity:1;transform:translateY(0)
}
.hero-visual[data-flow-phase="answer"] .response-intro{
  opacity:1;transform:translateY(0);transition-delay:.15s
}
.hero-visual[data-flow-phase="answer"] .response-one{
  opacity:1;transform:translateY(0);transition-delay:.55s
}
.hero-visual[data-flow-phase="answer"] .response-two{
  opacity:1;transform:translateY(0);transition-delay:.95s
}
.hero-visual[data-flow-phase="answer"] .response-three{
  opacity:1;transform:translateY(0);transition-delay:1.35s
}

@keyframes phaseClickRing{
  0%{opacity:0;transform:scale(.35)}
  25%{opacity:1;transform:scale(.65)}
  100%{opacity:0;transform:scale(1.55)}
}
@keyframes phaseTransferPacket{
  0%{left:2%;opacity:0;transform:translate(-50%,-50%) scale(.6)}
  10%{opacity:1}
  48%{transform:translate(-50%,-82%) scale(1.15)}
  88%{left:94%;opacity:1;transform:translate(-50%,-50%) scale(1)}
  100%{left:98%;opacity:0;transform:translate(-50%,-50%) scale(.7)}
}
@keyframes phaseTransferLabel{
  0%,8%{opacity:0;transform:translateX(-50%) translateY(4px)}
  22%,72%{opacity:1;transform:translateX(-50%) translateY(0)}
  100%{opacity:0;transform:translateX(-50%) translateY(-3px)}
}
@keyframes phaseSendRing{
  0%{opacity:0;transform:scale(.65)}
  25%{opacity:1}
  100%{opacity:0;transform:scale(1.55)}
}

@media (prefers-reduced-motion:reduce){
  .demo-cursor,.handoff-arrow{display:none!important}
  .youtube-page-mock{transform:translateX(-5%) rotate(-1.7deg) scale(.94)!important;opacity:.72!important;filter:saturate(.78) brightness(.78)!important}
  .gemini-app-mock{opacity:1!important;transform:translate3d(0,0,0) rotate(1.3deg) scale(1)!important}
  .composer-placeholder{opacity:0!important}
  .composer-prompt{opacity:1!important}
  .gemini-user-message,.gemini-response,.response-line{opacity:1!important;transform:none!important}
  .gemini-thinking{opacity:0!important}
}

@media (max-width:760px){
  .demo-cursor{width:23px;height:29px}
}
@media (max-width:500px){
  .demo-cursor{width:21px;height:27px}
  .handoff-arrow{right:22%;bottom:88px;width:28%}
}


/* Theme switcher */
.theme-toggle{position:relative;width:44px;height:38px;display:grid;place-items:center;flex:0 0 auto;margin-left:auto;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.045);color:var(--text);cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.theme-toggle:hover{
  transform:translateY(-1px)
}
.theme-icon{position:absolute;transition:opacity .2s ease,transform .25s ease;color:currentColor}
.theme-icon-sun{
  opacity:0;transform:rotate(-35deg) scale(.75)
}
.theme-icon-moon{
  opacity:1;transform:rotate(0) scale(1)
}
html[data-theme="light"] .theme-icon-sun{
  opacity:1;transform:rotate(0) scale(1)
}
html[data-theme="light"] .theme-icon-moon{
  opacity:0;transform:rotate(35deg) scale(.75)
}

html[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f8fc;
  --bg-soft:#eef1f7;
  --panel:#ffffff;
  --text:#151720;
  --muted:#656a78;
  --line:rgba(19,24,38,.11);
  --line-strong:rgba(19,24,38,.18);
}
html[data-theme="light"] body{
  background:#f7f8fc;color:var(--text)
}
html[data-theme="light"] .site-header.scrolled{
  background:rgba(247,248,252,.84);border-color:var(--line)
}
html[data-theme="light"] .nav-links{
  color:#5f6472
}
html[data-theme="light"] .nav-links>a:not(.nav-install):hover{
  color:#171922
}
html[data-theme="light"] .menu-button>span:not(.sr-only){
  background:#171922
}
html[data-theme="light"] .theme-toggle{
  background:#fff;box-shadow:0 5px 18px rgba(31,38,55,.07)
}
html[data-theme="light"] .hero{
  background:
    radial-gradient(circle at 82% 22%,rgba(86,211,255,.16),transparent 25%),
    radial-gradient(circle at 15% 18%,rgba(123,108,255,.13),transparent 30%),
    linear-gradient(180deg,#fbfbfe 0%,#f3f5fb 100%)
}
html[data-theme="light"] .hero::after{
  background-image:linear-gradient(rgba(20,24,35,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(20,24,35,.035) 1px,transparent 1px)
}
html[data-theme="light"] .hero-mouse-glow{
  background:radial-gradient(
    220px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    rgba(130, 110, 255, 0.12) 0%,
    rgba(155, 135, 255, 0.05) 35%,
    transparent 68%
  );
}
html[data-theme="light"] .hero-grid-spotlight{
  background-image:
    linear-gradient(rgba(115, 85, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 85, 235, 0.12) 1px, transparent 1px);
  mask-image:radial-gradient(
    190px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    black 0%,
    rgba(0, 0, 0, 0.5) 40%,
    transparent 75%
  );
  -webkit-mask-image:radial-gradient(
    190px circle at var(--mouse-x, 48%) var(--mouse-y, 35%),
    black 0%,
    rgba(0, 0, 0, 0.5) 40%,
    transparent 75%
  );
}
html[data-theme="light"] .amo-pill,
html[data-theme="light"] .button-secondary{
  color:#565b68;background:rgba(255,255,255,.72);border-color:rgba(20,24,35,.09)
}
html[data-theme="light"] .hero-text{
  color:#5f6471
}
html[data-theme="light"] .hero-text strong{
  color:#171922
}
html[data-theme="light"] .how{
  background:#f0f2f8;border-color:var(--line)
}
html[data-theme="light"] .benefits,
html[data-theme="light"] .install{
  background:#f7f8fc
}
html[data-theme="light"] .step,
html[data-theme="light"] .benefit-main,
html[data-theme="light"] .benefit-side{
  background:#fff;border-color:rgba(20,24,35,.09);box-shadow:0 12px 34px rgba(35,40,58,.045)
}
html[data-theme="light"] .step p,
html[data-theme="light"] .benefit-copy p,
html[data-theme="light"] .benefit-side p{
  color:#686d7a
}
html[data-theme="light"] .prompt-demo{
  background:#fff;border-color:rgba(20,24,35,.09)
}
html[data-theme="light"] .prompt-demo>div{
  background:#f1f3f8
}
html[data-theme="light"] .prompt-demo p{
  color:#252833
}
html[data-theme="light"] footer{
  background:#eef1f6;border-color:var(--line)
}
html[data-theme="light"] .footer-row{
  color:#656a77
}
html[data-theme="light"] .privacy-page{
  background:radial-gradient(circle at 50% -10%,rgba(123,108,255,.14),transparent 28%),#f7f8fc
}
html[data-theme="light"] .privacy-summary{
  background:rgba(48,160,105,.07);border-color:rgba(48,160,105,.18)
}
html[data-theme="light"] .privacy-content p,
html[data-theme="light"] .privacy-content li{
  color:#626775
}

/* YouTube mock: light mode mirrors YouTube's light surface without changing the demo layout. */
html[data-theme="light"] .youtube-page-mock,
html[data-theme="light"] .yt-appbar{
  background:#fff
}
html[data-theme="light"] .youtube-page-mock{
  border-color:rgba(0,0,0,.1);box-shadow:0 28px 66px rgba(31,35,48,.18)
}
html[data-theme="light"] .yt-menu,
html[data-theme="light"] .yt-logo b,
html[data-theme="light"] .yt-title,
html[data-theme="light"] .yt-channel strong{
  color:#0f0f0f
}
html[data-theme="light"] .yt-search{
  background:#fff;border-color:#d3d3d3;color:#606060;box-shadow:0 1px 2px rgba(0,0,0,.05) inset
}
html[data-theme="light"] .yt-search>b{
  background:#f8f8f8;border-left-color:#d3d3d3;color:#222
}
html[data-theme="light"] .yt-voice,
html[data-theme="light"] .yt-create,
html[data-theme="light"] .yt-actions-row>span{
  background:#f2f2f2;color:#0f0f0f
}
html[data-theme="light"] .yt-bell{
  color:#222
}
html[data-theme="light"] .yt-channel small{
  color:#606060
}
html[data-theme="light"] .yt-description{
  background:#f2f2f2;color:#525252
}
html[data-theme="light"] .yt-description strong{
  color:#202020
}
html[data-theme="light"] .yt-filter{
  background:#0f0f0f;color:#fff
}
html[data-theme="light"] .yt-rec b,
html[data-theme="light"] .yt-rec small,
html[data-theme="light"] .yt-rec em{
  background:#dadde3
}
html[data-theme="light"] .yt-rec small{
  background:#e4e6eb
}
html[data-theme="light"] .yt-rec em{
  background:#eceef2
}

/* Gemini mock follows the selected site theme too. */
html[data-theme="light"] .gemini-app-mock{
  background:#fff;border-color:rgba(0,0,0,.1);box-shadow:0 30px 70px rgba(31,35,48,.2)
}
html[data-theme="light"] .gemini-sidebar-mock{
  background:#f0f3f8;border-right-color:#e3e6ec;color:#626775
}
html[data-theme="light"] .gemini-side-brand{
  color:#242731
}
html[data-theme="light"] .gemini-new-chat{
  background:#e7eaf0;color:#313540
}
html[data-theme="light"] .gemini-history i{
  background:#d9dde5
}
html[data-theme="light"] .gemini-main-mock{
  background:#fff
}
html[data-theme="light"] .gemini-topbar-mock{
  border-bottom-color:#eceef2
}
html[data-theme="light"] .gemini-topbar-mock strong{
  color:#232630
}
html[data-theme="light"] .gemini-user-message{
  background:#eef0f4;color:#22252e
}
html[data-theme="light"] .user-prompt-text{
  color:#1f2328
}
html[data-theme="light"] .gemini-yt-chip{
  background:rgba(0,0,0,.06);color:#444746
}
html[data-theme="light"] .gemini-thinking strong{
  color:#444746
}
html[data-theme="light"] .gemini-thinking,
html[data-theme="light"] .gemini-response{
  color:#282b35
}
html[data-theme="light"] .gemini-response-brand strong{
  color:#1f2328
}
html[data-theme="light"] .gemini-response-title{
  color:#1f2328
}
html[data-theme="light"] .gemini-response p,
html[data-theme="light"] .gemini-response li{
  color:#4f5460
}
html[data-theme="light"] .gemini-response li b{
  color:#1f2328
}
html[data-theme="light"] .gemini-composer{
  background:#f1f3f6;border-color:#d9dce3
}
html[data-theme="light"] .composer-placeholder{
  color:#7a7f89
}
html[data-theme="light"] .composer-prompt{
  color:#30333c
}
/* Additional YouTube overflow protection */
.yt-watch,.yt-info-row,.yt-actions-row,.yt-channel{
  max-width:100%
}
.yt-title,.yt-description span{
  overflow-wrap:anywhere
}

.yt-search>b svg{
  width:16px;height:16px
}
.yt-voice svg{
  width:14px;height:14px
}
.yt-bell svg{
  width:16px;height:16px
}
@media(max-width:500px){
  .yt-search>b svg{width:15px;height:15px}
  .yt-voice svg{width:13px;height:13px}
}


/* Alternate YouTube feed scenario */
.youtube-feed-mock{
  position:absolute;z-index:2;left:0;top:0;width:97%;
  height:446px;min-height:446px;max-height:446px;
  overflow:hidden;border:1px solid rgba(255,255,255,.085);border-radius:19px;
  background:#0f0f0f;box-shadow:0 30px 72px rgba(0,0,0,.44),0 1px 0 rgba(255,255,255,.025) inset;
  opacity:0;pointer-events:none;transform:none;transform-origin:center;
  transition:transform .65s cubic-bezier(.2,.75,.2,1),opacity .55s ease,filter .65s ease
}
.yt-feed-top{
  height:56px;display:grid;grid-template-columns:124px minmax(0,1fr) 112px;align-items:center;gap:10px;
  padding:0 13px;background:#0f0f0f
}
.yt-feed-brand,.yt-feed-actions{
  display:flex;align-items:center
}
.yt-feed-brand{
  gap:12px
}
.yt-feed-actions{
  justify-content:flex-end;gap:8px
}
.yt-feed-search{
  justify-self:center;width:min(100%,360px);height:36px;display:flex;align-items:center;justify-content:space-between;
  padding-left:13px;overflow:hidden;border:1px solid #303030;border-radius:999px;background:#121212;color:#8b8b8b;font-size:8px;
  font-size:9px
}
.yt-feed-search svg{
  width:16px;height:16px;margin:0 13px 0 10px;flex:0 0 auto
}
.yt-chips-bar{
  display:flex;align-items:center;gap:8px;padding:2px 13px 8px;overflow-x:hidden
}
.yt-chip{
  padding:3px 9px;border-radius:8px;background:rgba(255,255,255,.09);color:#f1f1f1;font-size:7.5px;font-weight:600;white-space:nowrap
}
.yt-chip.active{
  background:#fff;color:#0f0f0f;font-weight:700
}
.yt-feed-layout{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 11px;padding:6px 12px 15px;
  align-items:start
}
.yt-card{
  position:relative;min-width:0
}
.featured-card{
  grid-column:span 1
}
.yt-card-thumb{
  position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#202020;
  box-shadow:0 1px 0 rgba(255,255,255,.02) inset
}
.yt-card-thumb span{
  position:absolute;right:4px;bottom:4px;padding:1px 4px;border-radius:4px;background:rgba(0,0,0,.78);
  color:#fff;font-size:5px;font-weight:800;line-height:1.45;
  font-size:6px
}
.yt-card-meta{
  display:grid;grid-template-columns:28px minmax(0,1fr) 24px;gap:7px;align-items:start;margin-top:8px
}
.yt-card-avatar{
  width:28px;height:28px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(135deg,#8f78ff,#59d0ff);color:#fff;font-size:7px;font-weight:850;
  font-size:8px
}
.yt-card-copy{
  min-width:0
}
.yt-card-copy b{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  color:#f1f1f1;font-size:7.4px;line-height:1.3;letter-spacing:-.01em;
  font-size:8.6px;line-height:1.34
}
.yt-card-copy small{
  display:block;margin-top:3px;color:#898989;font-size:5.7px;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:6.8px;line-height:1.4
}
.yt-card-more,.yt-card-dots{
  width:24px;height:24px;display:grid;place-items:center;border-radius:50%;
  color:#d8d8d8;font-size:13px;line-height:1;user-select:none;
  font-size:14px
}
.yt-card-menu{
  position:absolute;z-index:12;right:0;top:calc(100% - 14px);width:142px;padding:6px;
  border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#212226;
  box-shadow:0 18px 48px rgba(0,0,0,.42);opacity:0;
  pointer-events:none;transition:opacity .18s ease;
  max-width:calc(100% + 40px);
}
.yt-card-menu span,.yt-card-menu strong{
  min-height:29px;display:flex;align-items:center;padding:0 9px;border-radius:8px;
  color:#ececef;font-size:6.8px;font-weight:700;white-space:nowrap;
  font-size:7.8px
}
.yt-card-menu span:hover{
  background:#303136
}
.yt-card-resume{
  margin-top:2px;background:linear-gradient(135deg,#765fff,#9258d7);color:#fff!important;
  box-shadow:0 6px 18px rgba(118,95,255,.22);
  transition:transform .16s ease,box-shadow .18s ease
}

/* Alternate the two YouTube surfaces */
.hero-visual[data-flow-mode="watch"] .youtube-page-mock{
  opacity:1;visibility:visible
}
.hero-visual[data-flow-mode="watch"] .youtube-feed-mock{
  opacity:0;visibility:hidden
}
.hero-visual[data-flow-mode="feed"] .youtube-page-mock{
  opacity:0;visibility:hidden;pointer-events:none
}
.hero-visual[data-flow-mode="feed"] .youtube-feed-mock{
  opacity:1;visibility:visible
}

/* Feed scenario: open ⋮ then click Résumer */
.hero-visual[data-flow-mode="feed"][data-flow-phase="approach"] .demo-cursor,
.hero-visual[data-flow-mode="feed"][data-flow-phase="click"] .demo-cursor,
.hero-visual[data-flow-mode="feed"][data-flow-phase="select"] .demo-cursor{
  left:var(--cursor-target-x);top:var(--cursor-target-y);opacity:1
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="click"] .cursor-click-ring,
.hero-visual[data-flow-mode="feed"][data-flow-phase="select"] .cursor-click-ring{
  animation:phaseClickRing .55s ease-out both
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="click"] .yt-card-menu,
.hero-visual[data-flow-mode="feed"][data-flow-phase="select"] .yt-card-menu,
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .yt-card-menu{
  opacity:1;transform:translateY(0) scale(1)
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="select"] .yt-card-resume{
  transform:none!important;box-shadow:0 0 0 7px rgba(122,99,255,.13),0 9px 25px rgba(118,95,255,.42)
}

/* Feed → Gemini uses the exact same downstream extension flow */
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="compose"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="send"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="thinking"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="answer"] .youtube-feed-mock{
  transform:translateX(-5%) rotate(-1.7deg) scale(.94);opacity:.72;filter:saturate(.78) brightness(.78)
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="compose"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="send"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="thinking"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="answer"] .gemini-app-mock{
  opacity:1;transform:translate3d(0,0,0) rotate(1.3deg) scale(1)
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .handoff-arrow{
  opacity:1;transform:rotate(7deg) scale(1)
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .transfer-packet{
  animation:phaseTransferPacket 1.05s cubic-bezier(.35,.05,.2,1) both
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .transfer-packet b{
  animation:phaseTransferLabel 1.05s ease both
}

/* Light theme for feed */
html[data-theme="light"] .youtube-feed-mock,
html[data-theme="light"] .yt-feed-top{
  background:#fff
}
html[data-theme="light"] .youtube-feed-mock{
  border-color:rgba(0,0,0,.1);box-shadow:0 28px 66px rgba(31,35,48,.18)
}
html[data-theme="light"] .yt-feed-search{
  background:#fff;border-color:#d3d3d3;color:#606060
}
html[data-theme="light"] .yt-feed-brand .yt-logo b,
html[data-theme="light"] .yt-card-copy b{
  color:#0f0f0f
}
html[data-theme="light"] .yt-card-copy small{
  color:#606060
}
html[data-theme="light"] .yt-card-more,
html[data-theme="light"] .yt-card-dots{
  color:#222
}
html[data-theme="light"] .yt-card-menu{
  background:#fff;border-color:rgba(0,0,0,.1);box-shadow:0 18px 42px rgba(31,35,48,.18)
}
html[data-theme="light"] .yt-card-menu span{
  color:#25272e
}
html[data-theme="light"] .yt-card-menu span:hover{
  background:#f1f2f5
}

@media(max-width:760px){
  .yt-feed-top{grid-template-columns:110px minmax(0,1fr) 96px}
  .yt-feed-search{width:min(100%,300px)}
  .yt-feed-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .featured-card{grid-column:span 2}
}
@media(max-width:500px){
  .youtube-feed-mock{top:6px;border-radius:16px}
  .yt-feed-top{height:46px;grid-template-columns:auto 1fr;gap:10px;padding:0 10px}
  .yt-feed-actions{display:none}
  .yt-feed-search{justify-self:end;width:min(100%,190px);height:30px}
  .yt-feed-search svg{width:15px;height:15px;margin-right:10px}
  .yt-feed-layout{grid-template-columns:1fr 1fr;gap:9px;padding:8px}
  .featured-card{grid-column:span 2}
  .yt-card-meta{grid-template-columns:25px minmax(0,1fr) 20px;gap:6px;margin-top:6px}
  .yt-card-avatar{width:25px;height:25px}
  .yt-card-copy b{font-size:6.7px}
  .yt-card-copy small{font-size:5.2px}
  .yt-card-menu{right:3px;top:calc(100% - 18px);width:118px}
  .yt-card-menu span,.yt-card-menu strong{min-height:27px;font-size:6.2px}
}


/* Final layout QA / overflow hardening */
.hero-copy{
  min-width:0
}
.youtube-page-mock,.youtube-feed-mock,.gemini-app-mock{
  max-width:100%
}

/* Keep the watch layout proportional instead of letting the sidebar crush the player. */
.yt-watch,.yt-sidebar{
  min-width:0
}

/* Make the feed cards resilient to long titles and metadata. */
.yt-card,.yt-card-meta,.yt-card-copy{
  min-width:0;max-width:100%
}

/* Give Gemini enough room so response lines do not collide with the composer. */

/* The two-column hero gets cramped on small laptops before 1000px. */
@media (max-width:1100px){
  .hero-grid{grid-template-columns:1fr;gap:42px}
  .hero-copy{max-width:780px}
  .hero-visual{width:min(660px,100%);margin:0 auto}
  .benefits-grid{grid-template-columns:1fr}
}

/* Switch the header to its compact navigation before links start colliding. */
@media (max-width:920px){
  .nav{gap:8px}
  .brand{min-width:0;flex-shrink:1}
  .brand-text,.brand>span:last-child{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lang-switcher{flex-shrink:0;margin-left:auto}
  .theme-toggle{flex-shrink:0}
  .menu-button{display:block;flex-shrink:0}
  .nav-links{
    position:fixed;z-index:95;inset:76px 0 auto;display:none;flex-direction:column;align-items:stretch;gap:4px;
    padding:18px 18px 24px;border-bottom:1px solid var(--line);
    background:rgba(10,10,15,.97);backdrop-filter:blur(18px);
    max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:11px 12px;border-radius:10px}
  .nav-install{text-align:center}
  html[data-theme="light"] .nav-links{
    background:rgba(247,248,252,.97);border-color:rgba(19,24,38,.1);
    box-shadow:0 18px 34px rgba(31,38,55,.08)
  }
}

/* Responsive adjustments for demo stage & mockups */
@media (max-width:760px){
  .demo-stage{height:570px;min-height:570px}
  .youtube-page-mock,.youtube-feed-mock{width:98%;height:410px;min-height:410px;max-height:410px}
  .yt-player{max-height:200px}
  .gemini-app-mock{width:78%;height:375px;grid-template-columns:80px minmax(0,1fr)}
  .yt-title{font-size:12.4px}
  .yt-channel strong{font-size:8.8px}
  .yt-channel small{font-size:6.8px}
  .yt-actions-row>span,.yt-resume-action{font-size:7.6px}
  .yt-feed-top{grid-template-columns:110px minmax(0,1fr) 96px}
  .yt-feed-search{width:min(100%,300px)}
  .yt-feed-layout{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
  .featured-card{grid-column:span 1}
  .yt-card-copy b{font-size:8.2px}
  .yt-card-copy small{font-size:6.5px}
}

@media (max-width:620px){
  .hero-visual{min-height:580px}
  .demo-stage{height:550px;min-height:550px}
  .youtube-page-mock,.youtube-feed-mock{width:98%;height:375px;min-height:375px;max-height:375px;border-radius:18px;top:0}
  .yt-appbar{height:46px;padding:0 10px;grid-template-columns:auto 1fr auto}
  .yt-layout{grid-template-columns:1fr;padding:8px 10px}
  .yt-sidebar{display:none}
  .yt-player{max-height:180px}
  .yt-title{margin:6px 0 4px;font-size:11.4px;line-height:1.25}
  .yt-info-row{gap:6px;flex-wrap:nowrap}
  .yt-channel{flex:1 1 auto;gap:6px}
  .yt-avatar{width:26px;height:26px;font-size:8px}
  .yt-channel strong{font-size:8.5px;max-width:80px}
  .yt-channel small{font-size:6.5px}
  .yt-subscribe{height:26px;padding:0 8px;font-size:7.5px}
  .yt-actions-row{flex:0 0 auto;gap:4px;overflow:visible;flex-wrap:nowrap}
  .yt-actions-row>span,.yt-resume-action{height:26px;padding:0 8px;font-size:7.5px}
  .yt-actions-row>span:nth-child(3){display:none}
  .yt-description{margin-top:6px;padding:6px 8px;font-size:6.8px;line-height:1.35}

  .yt-feed-top{height:46px;padding:0 10px}
  .yt-chips-bar{padding:2px 10px 6px;gap:6px}
  .yt-chip{padding:2px 7px;font-size:7px}
  .yt-feed-layout{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px;padding:4px 8px 10px}
  .featured-card{grid-column:span 1}
  .yt-card-meta{grid-template-columns:20px minmax(0,1fr) 16px;gap:4px;margin-top:4px}
  .yt-card-avatar{width:20px;height:20px;font-size:7px}
  .yt-card-copy b{font-size:7.5px;line-height:1.25}
  .yt-card-copy small{font-size:6px}
  .yt-card-more,.yt-card-dots{width:16px;height:16px;font-size:11px}
  .yt-card-menu{width:125px;padding:4px;left:0;right:auto;top:calc(100% - 8px)}
  .yt-card-menu span,.yt-card-menu strong{min-height:25px;font-size:6.8px;padding:0 6px}

  .gemini-app-mock{width:92%;height:355px;grid-template-columns:46px minmax(0,1fr);border-radius:18px}
  .gemini-sidebar-mock{padding:8px 4px;align-items:center}
  .gemini-side-brand{justify-content:center}
  .gemini-brand-badge{display:none}
  .gemini-new-chat{width:30px;height:30px;padding:0;justify-content:center;margin-top:10px;font-size:13px}
  .gemini-new-chat span{display:none}
  .gemini-sidebar-mock>small{display:none}
  .gemini-history{margin-top:10px;align-items:center;width:100%}
  .gemini-history i{width:24px;height:4px}
  .gemini-side-settings{position:static;margin-top:auto}

  .gemini-topbar-mock{height:42px;padding:0 10px}
  .gemini-model-pill{font-size:9.5px;padding:3px 7px}
  .gemini-account{width:22px;height:22px;font-size:9px}

  .gemini-thread{top:42px;bottom:48px;padding:8px 10px}
  .gemini-user-message{padding:6px 9px;border-radius:12px 12px 3px 12px;max-width:92%}
  .gemini-yt-chip{font-size:8.5px;padding:2px 6px;margin-bottom:3px}
  .gemini-yt-chip svg{width:12px;height:12px}
  .user-prompt-text{font-size:9.5px;line-height:1.3}

  .gemini-response{margin-top:8px}
  .gemini-response-brand{margin-bottom:4px;gap:5px}
  .gemini-response-brand .gemini-glyph{width:16px;height:16px;font-size:8px}
  .gemini-response-brand strong{font-size:10px}
  .gemini-response-title{font-size:10.5px;margin-bottom:3px}
  .gemini-response p{font-size:9px;line-height:1.35;margin-bottom:4px}
  .gemini-response ul{padding-left:12px;margin-bottom:4px}
  .gemini-response li{font-size:8.8px;line-height:1.32;margin-bottom:3px}
  .gemini-response li b{font-size:8.8px}
  .gemini-response-actions{margin-top:4px;padding-top:4px;font-size:10px;gap:8px}

  .gemini-composer{height:36px;left:8px;right:8px;bottom:6px;padding:0 8px}
  .gemini-add{width:20px;height:20px;font-size:10px}
  .composer-placeholder,.composer-prompt{font-size:9px}
  .gemini-send-animated{width:22px;height:22px;font-size:9px}
  .handoff-arrow{right:21%;bottom:95px;width:28%}
}

@media (max-width:500px){
  .nav{gap:6px}
  .brand{gap:6px}
  .brand-icon{width:28px;height:28px}
  .brand-text,.brand>span:last-child{max-width:85px;font-size:11.5px}
  .lang-switcher{padding:2px;gap:1px}
  .lang-btn{padding:3px 6px;font-size:10px}
  .theme-toggle{width:36px;height:32px}
  .menu-button{padding:6px;flex-shrink:0}
  .yt-actions-row{overflow:visible;flex-wrap:nowrap}
  .yt-actions-row>span,.yt-resume-action{min-width:0;font-size:7.2px}
  .youtube-page-mock,.youtube-feed-mock{left:0}
  .yt-logo b{font-size:9px}
  .yt-search,.yt-feed-search{font-size:8px}
  .yt-title{font-size:10.4px}
  .yt-channel strong{font-size:8.2px}
  .yt-channel small{font-size:6.5px}
  .yt-subscribe{font-size:7.2px}
  .yt-card-copy b{font-size:7.5px}
  .yt-card-copy small{font-size:6.1px}
  .yt-card-menu span,.yt-card-menu strong{font-size:7px}
}

@media (max-width:390px){
  .container{width:calc(100% - 18px)}
  .nav{gap:4px}
  .brand{gap:5px}
  .brand-icon{width:26px;height:26px}
  .brand-text,.brand>span:last-child{max-width:65px;font-size:10.5px}
  .lang-switcher{padding:2px;gap:1px}
  .lang-btn{padding:2px 4px;font-size:9px}
  .theme-toggle{width:32px;height:30px}
  .menu-button{padding:4px;flex-shrink:0}
  .hero h1{font-size:40px;letter-spacing:-.055em}
  .hero-text{font-size:15px}
  .yt-feed-search,.yt-search-wrap{width:min(100%,158px)}
  .yt-search>span,.yt-feed-search>span{font-size:7px}
}

@media (max-width:380px){
  .gemini-response p{font-size:8.6px}
  .gemini-response li{font-size:8.4px}
  .gemini-response li b{font-size:8.4px}
  .user-prompt-text{font-size:9px}
  .yt-search,.yt-feed-search{font-size:7.6px}
  .yt-title{font-size:10px}
  .yt-actions-row>span,.yt-resume-action{font-size:6.8px}
  .yt-card-copy b{font-size:7.2px}
}


/* Crisp Gemini rendering: avoid transformed text layers at 100% browser zoom */
.hero-visual[data-flow-phase="transfer"] .gemini-app-mock,
.hero-visual[data-flow-phase="compose"] .gemini-app-mock,
.hero-visual[data-flow-phase="send"] .gemini-app-mock,
.hero-visual[data-flow-phase="thinking"] .gemini-app-mock,
.hero-visual[data-flow-phase="answer"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="compose"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="send"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="thinking"] .gemini-app-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="answer"] .gemini-app-mock{
  right:-1%;
  opacity:1;
  transform:none!important;
}

/* Phase visibility stays animated, but text itself is never transformed. */
.hero-visual[data-flow-phase="thinking"] .gemini-user-message,
.hero-visual[data-flow-phase="answer"] .gemini-user-message,
.hero-visual[data-flow-phase="thinking"] .gemini-thinking,
.hero-visual[data-flow-phase="answer"] .gemini-response{
  transform:none!important
}
.hero-visual[data-flow-phase="answer"] .response-intro,
.hero-visual[data-flow-phase="answer"] .response-one,
.hero-visual[data-flow-phase="answer"] .response-two,
.hero-visual[data-flow-phase="answer"] .response-three{
  transform:none!important
}

@media(prefers-reduced-motion:reduce){
  .gemini-app-mock{right:-1%!important;transform:none!important}
  .gemini-user-message,.gemini-response,.response-line{transform:none!important}
}


/* Crisp YouTube rendering: keep text off rotated/scaled compositor layers */
.youtube-page-mock,
.youtube-feed-mock{
  left:0;
  transform:none!important;
  transform-origin:center;
  transition:left .55s cubic-bezier(.2,.75,.2,1),opacity .45s ease,box-shadow .45s ease;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  backface-visibility:visible;
}

/* Keep YouTube opaque behind Gemini so background lights do not bleed through */
.hero-visual[data-flow-phase="transfer"] .youtube-page-mock,
.hero-visual[data-flow-phase="compose"] .youtube-page-mock,
.hero-visual[data-flow-phase="send"] .youtube-page-mock,
.hero-visual[data-flow-phase="thinking"] .youtube-page-mock,
.hero-visual[data-flow-phase="answer"] .youtube-page-mock{
  left:-3%;
  transform:none!important;
  opacity:1!important;
  filter:brightness(.65) saturate(.85)!important;
}
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="compose"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="send"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="thinking"] .youtube-feed-mock,
.hero-visual[data-flow-mode="feed"][data-flow-phase="answer"] .youtube-feed-mock{
  left:-3%;
  transform:none!important;
  opacity:1!important;
  filter:brightness(.65) saturate(.85)!important;
}

/* Watch page typography: large enough to render sharply at 100% zoom. */

/* Feed page typography. */
.hero-visual[data-flow-mode="feed"][data-flow-phase="click"] .yt-card-menu,
.hero-visual[data-flow-mode="feed"][data-flow-phase="select"] .yt-card-menu,
.hero-visual[data-flow-mode="feed"][data-flow-phase="transfer"] .yt-card-menu{
  transform:none!important
}

/* Click feedback without scaling text-bearing buttons. */
.hero-visual[data-flow-phase="click"] .yt-resume-action{
  transform:none!important;
}
/* Preserve sharp rendering in light mode too. */
html[data-theme="light"] .youtube-page-mock,
html[data-theme="light"] .youtube-feed-mock{
  transform:none!important
}

@media(prefers-reduced-motion:reduce){
  .youtube-page-mock,.youtube-feed-mock{
    transform:none!important;
    filter:none!important
  }
}


/* Extension logo in the 3-step flow */
.extension-mini{
  padding:0;
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}
.extension-mini img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(42,35,105,.22);
}
html[data-theme="light"] .extension-mini{
  background:transparent;border:0
}
@media(max-width:500px){
  .extension-mini img{width:42px;height:42px}
}


/* Stable inline SVG icons across platforms */
.yt-menu svg{
  width:17px;height:17px
}
.player-center svg{
  width:18px;height:18px
}
.yt-control-icon{
  display:grid;place-items:center
}
.yt-control-icon svg{
  width:12px;height:12px
}
.yt-action-icon{
  width:13px;height:13px;flex:0 0 auto
}
.gemini-side-brand>span:first-child{
  width:18px;height:18px;display:grid;place-items:center;flex-shrink:0
}
.gemini-side-brand>span:first-child svg{
  width:15px;height:15px
}
.gemini-side-settings svg{
  width:15px;height:15px
}
.gemini-mic svg{
  width:14px;height:14px
}


/* Light theme accessibility and high-contrast palette */
html[data-theme=light] .brand b{color:#5243d2}
html[data-theme=light] .kicker{color:#5243d2}
html[data-theme=light] .benefit-privacy-link,
html[data-theme=light] .benefit-side a,
html[data-theme=light] .privacy-content a{color:#5243d2;font-weight:800}
html[data-theme=light] .benefit-privacy-link:hover,
html[data-theme=light] .benefit-side a:hover,
html[data-theme=light] .privacy-content a:hover{color:#3a2eb2}
html[data-theme=light] .privacy-summary{background:rgba(34,197,94,.09);border-color:rgba(34,197,94,.28)}
html[data-theme=light] .privacy-summary strong{color:#0f4a2d}
html[data-theme=light] .privacy-summary p{color:#195938}
html[data-theme=light] .footer-row a:hover{color:#171922}
html[data-theme=light] .privacy-icon{background:rgba(82,67,210,.08);border-color:rgba(82,67,210,.2)}
html[data-theme=light] .privacy-icon svg{fill:#5243d2}
html[data-theme=light] .amo-pill{color:#252936;border-color:rgba(19,24,38,.14);background:#fff}
html[data-theme=light] .amo-pill>span:first-child{background:#15803d;box-shadow:0 0 0 5px rgba(21,128,61,.12)}
html[data-theme=light] .number{color:#555b6c}
html[data-theme=light] .legal-line{color:#5c6172;border-top-color:rgba(19,24,38,.08)}
html[data-theme=light] .nav-install{background:#5243d2;color:#fff}
html[data-theme=light] .nav-install:hover{background:#4335ba}
html[data-theme=light] .demo-modes{background:rgba(255,255,255,.9);border-color:rgba(19,24,38,.12);box-shadow:0 4px 14px rgba(0,0,0,.06)}
html[data-theme=light] .demo-mode-tab{color:#555b6c}
html[data-theme=light] .demo-mode-tab:hover{color:#171922}
html[data-theme=light] .demo-mode-tab.active{background:#5243d2;color:#fff}
html[data-theme=light] .demo-ctrl-btn{background:rgba(255,255,255,.9);border-color:rgba(19,24,38,.12);color:#171922;box-shadow:0 4px 14px rgba(0,0,0,.06)}
html[data-theme=light] .demo-ctrl-btn:hover{background:#f0f2f8}
html[data-theme=light] .yt-pill{background:rgba(0,0,0,.06);color:#0f0f0f}
html[data-theme=light] .yt-like-sep{background:rgba(0,0,0,.14)}
html[data-theme=light] .yt-resume-action{background:rgba(82,67,210,.09);color:#3526aa;border-color:rgba(82,67,210,.32);box-shadow:0 0 16px rgba(82,67,210,.18)}
html[data-theme=light] .gemini-model-pill{background:rgba(0,0,0,.04);color:#171922}
html[data-theme=light] .gemini-yt-chip{background:rgba(0,0,0,.06);color:#30333c}
html[data-theme=light] .user-prompt-text{color:#171922}
html[data-theme=light] .gemini-response-actions{border-top-color:rgba(0,0,0,.08);opacity:.85}
html[data-theme=light] .studio-title{color:#5243d2}
html[data-theme=light] .prompt-studio{background:#fff;border-color:rgba(19,24,38,.1);box-shadow:0 12px 34px rgba(35,40,58,.04)}
html[data-theme=light] .preset-chip{background:#f1f3f8;border-color:rgba(19,24,38,.1);color:#252833}
html[data-theme=light] .preset-chip:hover{background:#e6e9f2;color:#171922}
html[data-theme=light] .preset-chip.active{background:#5243d2;color:#fff;box-shadow:0 6px 18px rgba(82,67,210,.25)}
html[data-theme=light] .studio-editor textarea{background:#f7f8fc;border-color:rgba(19,24,38,.16);color:#171922}
html[data-theme=light] .studio-editor textarea:focus{border-color:#5243d2;box-shadow:0 0 0 3px rgba(82,67,210,.15)}
html[data-theme=light] .studio-preview-card{background:#edf0f6;border-color:rgba(19,24,38,.1)}
html[data-theme=light] .preview-badge{color:#15803d}
html[data-theme=light] .studio-preview-text{color:#161922}
html[data-theme=light] .benefit-lead{color:#4b505e}
html[data-theme=light] .benefit-lead strong{color:#171922}
html[data-theme=light] .step p{color:#555b6c}
html[data-theme="light"] .lang-switcher{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.08)}
html[data-theme="light"] .lang-btn{color:#5b6070}
html[data-theme="light"] .lang-btn:hover{color:#111218;background:rgba(0,0,0,.06)}
html[data-theme="light"] .lang-btn.active{background:#fff;color:#111218;box-shadow:0 1px 4px rgba(0,0,0,.08)}
html[data-theme="light"] .button-outline{border-color:rgba(0,0,0,.15);color:#111218;background:transparent}
html[data-theme="light"] .button-outline:hover{background:rgba(0,0,0,.04);border-color:#7b6cff}
html[data-theme="light"] .yt-chip{background:rgba(0,0,0,.06);color:#0f0f0f}
html[data-theme="light"] .yt-chip.active{background:#0f0f0f;color:#fff}
@media(max-width:540px){
  .lang-btn{padding:3px 6px;font-size:10px}
}
