/* =================================================================
   NEURA — AI bot platform landing
   Art direction: high-tech creative studio / editorial
   ================================================================= */

:root{
  --bg:        #07070a;
  --bg-2:      #0c0c11;
  --ink:       #f3efe6;        /* editorial cream */
  --ink-dim:   #a8a39a;
  --ink-mute:  #6a6862;
  --line:      rgba(243,239,230,.12);
  --line-soft: rgba(243,239,230,.06);
  --tg:        #2aabee;        /* telegram blue */
  --tg-2:      #229ed9;
  --acid:      #d6ff43;        /* sparing accent */
  --warm:      #ff6a3d;

  --ff-disp: "Unbounded", system-ui, sans-serif;
  --ff-serif:"Playfair Display", Georgia, serif;
  --ff-body: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(20px, 5vw, 90px);

  /* ---- type scale ---- */
  --fs-display: clamp(40px, 9vw, 118px);   /* hero + main CTA headline only */
  --fs-title:   clamp(33px, 6vw, 88px);    /* every section title — one size */
  --fs-sub:     clamp(20px, 2vw, 27px);    /* card / sub-headings */
  --fs-body:    clamp(15px, 1.6vw, 18px);  /* body / paragraph copy */
  --fs-cap:     13px;                       /* labels, captions, meta, tags */
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
/* scene snapping disabled for now — felt janky with the scrubbed animations */
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--ff-body);
  font-weight:400;
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  cursor:default;
}
body.loading{ overflow:hidden; height:100vh; }
a{ color:inherit; text-decoration:none; }
em{ font-style:italic; }
::selection{ background:var(--tg); color:#fff; }

/* =================================================================
   OVERLAYS
   ================================================================= */
.grain{
  position:fixed; inset:-200%; z-index:9000; pointer-events:none; opacity:.05;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 6s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)}
  40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,2%)}
  80%{transform:translate(4%,-2%)} 100%{transform:translate(0,0)}
}
.vignette{
  position:fixed; inset:0; z-index:8999; pointer-events:none;
  background:radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.cursor-glow{
  position:fixed; top:0; left:0; width:520px; height:520px; z-index:6000; pointer-events:none;
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle, rgba(42,171,238,.10), transparent 65%);
  opacity:0; transition:opacity .6s; mix-blend-mode:screen;
}

/* =================================================================
   LOADER
   ================================================================= */
.loader{
  position:fixed; inset:0; z-index:10000; background:var(--bg);
  display:flex; align-items:center; justify-content:center;
}
.loader__inner{ width:min(72vw,420px); text-align:center; }
.loader__mark{
  font-family:var(--ff-disp); font-weight:700; letter-spacing:.4em;
  font-size:clamp(20px,4vw,30px); display:block; margin-bottom:26px;
}
.loader__count{ font-family:var(--ff-serif); font-style:italic; font-size:64px; color:var(--ink-dim); display:block; line-height:1; }
.loader__bar{ margin-top:26px; height:1px; background:var(--line); position:relative; overflow:hidden; }
.loader__bar i{ position:absolute; inset:0; width:0; background:var(--ink); }

/* =================================================================
   PERSISTENT PHONE STAGE
   ================================================================= */
.stage{
  position:fixed; inset:0; z-index:60; pointer-events:none;
  display:flex; align-items:center; justify-content:center;
  will-change:transform;
}
.stage__halo{
  position:absolute; width:720px; height:720px; max-width:128vw; max-height:128vh; border-radius:50%;
  background:
    radial-gradient(38% 36% at 36% 30%, rgba(42,171,238,.36), transparent 70%),
    radial-gradient(34% 40% at 70% 68%, rgba(123,92,255,.28), transparent 72%),
    radial-gradient(circle, rgba(42,171,238,.10), transparent 60%);
  filter:blur(38px); opacity:0; will-change:transform;
}

.phone{
  position:relative; width:330px; height:680px; will-change:transform,filter,opacity;
  transform-style:preserve-3d;
  visibility:hidden; /* revealed by JS (gsap autoAlpha) — prevents first-paint flash */
}
.phone__glow{
  position:absolute; inset:-44px; border-radius:64px;
  background:radial-gradient(circle at 50% 32%, rgba(42,171,238,.34), transparent 62%);
  opacity:.55; filter:blur(22px); will-change:transform;
}
.phone__frame{
  position:relative; width:100%; height:100%; border-radius:46px;
  background:linear-gradient(155deg,#2a2a30,#0e0e12 55%);
  padding:11px; box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 50px 90px -30px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.04);
}
.phone__notch{
  position:absolute; top:11px; left:50%; transform:translateX(-50%);
  width:120px; height:26px; background:#000; border-radius:0 0 18px 18px; z-index:5;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.phone__speaker{ width:34px; height:4px; border-radius:3px; background:#1c1c22; }
.phone__cam{ width:8px; height:8px; border-radius:50%; background:#15151b; box-shadow:0 0 0 2px #050507, inset 0 0 3px rgba(60,160,227,.6); }
.phone__screen{
  position:relative; width:100%; height:100%; border-radius:36px; overflow:hidden;
  background:#0e1621;
}
.phone__shadow{
  position:absolute; left:50%; bottom:-44px; transform:translateX(-50%);
  width:74%; height:40px; border-radius:50%; background:rgba(0,0,0,.6); filter:blur(26px); z-index:-1;
}

/* =================================================================
   TELEGRAM INTERFACE
   ================================================================= */
.tg{
  position:absolute; inset:0; display:flex; flex-direction:column;
  color:#fff; font-size:14.5px;
  background:
    radial-gradient(120% 80% at 50% 0%, #17212b 0%, #0e1621 60%),
    #0e1621;
}
.tg::before{ /* subtle telegram wallpaper pattern */
  content:""; position:absolute; inset:0; opacity:.05; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='8' y='28' font-size='22' fill='white'%3E%E2%9C%A6%3C/text%3E%3Ctext x='34' y='52' font-size='14' fill='white'%3E%E2%97%8B%3C/text%3E%3C/svg%3E");
}
.tg__status{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 22px 4px; font-size:13px; font-weight:600; flex-shrink:0; position:relative; z-index:3;
}
.tg__icons{ display:flex; align-items:center; gap:6px; color:#fff; }
.tg__header{
  display:flex; align-items:center; gap:11px; padding:6px 12px 10px;
  background:rgba(23,33,43,.96); flex-shrink:0; position:relative; z-index:3;
  border-bottom:1px solid rgba(0,0,0,.25);
}
.tg__back{ background:none; border:none; color:#5eb5f7; padding:4px; cursor:pointer; }
.tg__ava{
  width:38px; height:38px; border-radius:50%; flex-shrink:0; position:relative;
  background:linear-gradient(140deg,#2aabee,#7b5cff); display:grid; place-items:center;
  font-weight:700; font-size:16px; font-family:var(--ff-disp);
}
.tg__online{ position:absolute; right:-1px; bottom:-1px; width:11px; height:11px; border-radius:50%; background:#46d160; border:2px solid #17212b; }
.tg__meta{ flex:1; min-width:0; }
.tg__name{ font-weight:600; font-size:15px; display:flex; align-items:center; gap:5px; }
.tg__verified{ flex-shrink:0; }
.tg__status-text{ font-size:12.5px; color:#5eb5f7; }
.tg__back, .tg__menu{ color:#7d8e9e; }
.tg__menu{ background:none; border:none; padding:6px; cursor:pointer; }

.tg__feed{
  flex:1; overflow-y:auto; overflow-x:hidden; padding:14px 12px 6px;
  display:flex; flex-direction:column; gap:7px; position:relative; z-index:2;
  scrollbar-width:none;
}
.tg__feed::-webkit-scrollbar{ display:none; }
.tg__date{
  align-self:center; font-size:11.5px; color:#fff; background:rgba(0,0,0,.28);
  padding:3px 11px; border-radius:14px; margin:2px 0 8px; backdrop-filter:blur(4px);
}
.bubble{
  max-width:78%; padding:7px 11px 8px; border-radius:15px; font-size:14px; line-height:1.38;
  position:relative; word-wrap:break-word; opacity:0; transform:translateY(14px) scale(.96);
  box-shadow:0 1px 2px rgba(0,0,0,.2);
}
.bubble.in{ align-self:flex-start; background:#182533; border-bottom-left-radius:5px; }
.bubble.out{ align-self:flex-end; background:#2b5278; border-bottom-right-radius:5px; }
.bubble.show{ opacity:1; transform:none; transition:opacity .45s var(--ease), transform .45s var(--ease); }
.bubble__time{ font-size:10.5px; color:rgba(255,255,255,.55); float:right; margin:6px 0 -2px 10px; }
.bubble.out .bubble__time{ color:rgba(255,255,255,.65); }
.bubble__time svg{ vertical-align:-2px; margin-left:2px; }
.bubble--service{ /* Telegram-style service / system message (centred grey pill) */
  align-self:center; max-width:90%; margin:5px 0; text-align:center;
  opacity:0; transform:translateY(8px); transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.bubble--service.show{ opacity:1; transform:none; }
.bubble--service span{ display:inline-block; background:rgba(0,0,0,.34); color:#d2e2f0; font-size:12px; padding:5px 13px; border-radius:14px; backdrop-filter:blur(4px); }
.bubble strong{ font-weight:700; }

/* typing indicator (rendered as a transient bubble) */
.typing-bubble{ padding:11px 14px !important; }
.tg__dots{ display:flex; gap:4px; align-items:center; }
.tg__dots i{ width:7px; height:7px; border-radius:50%; background:#6a7d8e; animation:typing 1.2s infinite; }
.tg__dots i:nth-child(2){ animation-delay:.2s; }
.tg__dots i:nth-child(3){ animation-delay:.4s; }
@keyframes typing{ 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-5px);opacity:1} }

/* inline keyboard (Telegram-like quick replies) */
.tg__keyboard{
  display:flex; flex-wrap:wrap; gap:5px; align-self:stretch; margin:1px 0 4px;
  opacity:0; transform:translateY(8px); transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.tg__keyboard.show{ opacity:1; transform:none; }
.tg__kb{
  flex:1 1 auto; min-width:42%; font-family:var(--ff-body); font-size:13px; color:#9fd0ff;
  background:rgba(94,181,247,.13); border:none; border-radius:9px; padding:11px 10px; cursor:pointer;
  transition:background .2s, transform .15s; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.tg__kb:hover{ background:rgba(94,181,247,.26); }
.tg__kb:active{ transform:scale(.97); }

.tg__input{
  display:flex; align-items:center; gap:8px; padding:9px 12px 14px;
  background:rgba(23,33,43,.96); flex-shrink:0; position:relative; z-index:3;
}
.tg__attach,.tg__send{ background:none; border:none; color:#7d8e9e; padding:4px; cursor:pointer; flex-shrink:0; }
.tg__send{ color:#5eb5f7; transition:transform .2s; }
.tg__field, #tgField{
  flex:1; min-width:0; background:#0e1621; border:none; outline:none; color:#fff;
  font-family:var(--ff-body); font-size:14px; padding:10px 14px; border-radius:18px;
}
#tgField::placeholder{ color:#6a7d8e; }

/* phone is interactive only when JS adds this */
.stage.is-live{ pointer-events:none; }
.stage.is-live .phone__screen{ pointer-events:auto; }
.stage.is-live .tg__input{ cursor:text; }

/* =================================================================
   NAV
   ================================================================= */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px var(--pad); color:var(--ink);
  background:color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(1.2); backdrop-filter:blur(16px) saturate(1.2);
  border-bottom:1px solid var(--line);
  transition:padding .4s var(--ease), background .4s;
}
.nav__logo{ font-family:var(--ff-disp); font-weight:600; letter-spacing:.08em; font-size:18px; display:flex; align-items:center; gap:9px; }
.nav__logo i{ color:var(--tg); font-style:normal; }
.nav__logo-mark{ width:11px; height:11px; border-radius:3px; background:var(--ink); display:inline-block; }
.nav__links{ display:flex; gap:30px; font-size:13px; letter-spacing:.04em; }
.nav__links a{ position:relative; opacity:.85; transition:opacity .3s; }
.nav__links a::after{ content:""; position:absolute; left:0; bottom:-5px; width:0; height:1px; background:currentColor; transition:width .35s var(--ease); }
.nav__links a:hover{ opacity:1; }
.nav__links a:hover::after{ width:100%; }
.nav__cta{
  font-size:13px; letter-spacing:.03em; padding:8px 16px; border:1px solid var(--ink);
  border-radius:40px; transition:.35s var(--ease); white-space:nowrap;
}
.nav__cta:hover{ background:var(--ink); color:var(--bg); }

/* auth link in desktop nav */
.nav__auth{
  font-size:13px; letter-spacing:.03em; color:var(--ink-dim);
  transition:color .3s; white-space:nowrap;
}
.nav__auth:hover{ color:var(--ink); }

/* =================================================================
   NAV RIGHT + THEME TOGGLE
   ================================================================= */
.nav__right{ display:flex; align-items:center; gap:13px; }
.theme-toggle{
  position:relative; width:34px; height:34px; border:1px solid currentColor; border-radius:50%;
  background:none; color:inherit; cursor:pointer; display:grid; place-items:center; transition:background .3s;
  flex-shrink:0;
}
.theme-toggle:hover{ background:rgba(255,255,255,.08); }
body.light .theme-toggle:hover{ background:rgba(0,0,0,.06); }
.theme-toggle svg{ position:absolute; }
.theme-toggle__moon{ display:none; }
body.light .theme-toggle__sun{ display:none; }
body.light .theme-toggle__moon{ display:block; }

/* =================================================================
   MOBILE BURGER + NAV DRAWER
   ================================================================= */
.nav__burger{
  display:none; background:none; border:1px solid var(--line); border-radius:9px;
  color:var(--ink); width:38px; height:38px; cursor:pointer;
  align-items:center; justify-content:center; flex-shrink:0;
  transition:background .3s;
}
.nav__burger:hover{ background:rgba(255,255,255,.08); }
body.light .nav__burger:hover{ background:rgba(0,0,0,.06); }

/* drawer overlay */
.nav-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:250;
  width:min(84vw,320px); background:var(--bg);
  border-left:1px solid var(--line);
  transform:translateX(100%); transition:transform .38s var(--ease);
  display:flex; flex-direction:column;
  padding:72px 28px 40px;
}
.nav-drawer.is-open{ transform:none; }
.nav-drawer__close{
  position:absolute; top:16px; right:20px;
  background:none; border:1px solid var(--line); border-radius:50%;
  width:36px; height:36px; color:var(--ink); cursor:pointer;
  display:grid; place-items:center; transition:background .3s;
}
.nav-drawer__close:hover{ background:var(--line); }
.nav-drawer__links{ display:flex; flex-direction:column; gap:6px; }
.nav-drawer__link{
  display:block; padding:14px 6px; font-size:18px; font-weight:600;
  color:var(--ink-dim); border-bottom:1px solid var(--line-soft);
  transition:color .25s var(--ease), padding-left .25s var(--ease);
}
.nav-drawer__link:hover{ color:var(--ink); padding-left:10px; }
.nav-drawer__link--auth{
  margin-top:18px; color:var(--tg); border-bottom:none;
  font-family:var(--ff-disp); font-size:16px; letter-spacing:-.01em;
}
.nav-drawer__link--auth:hover{ color:var(--tg-2); }
.nav-drawer-scrim{
  position:fixed; inset:0; z-index:240;
  background:rgba(0,0,0,.45); backdrop-filter:blur(2px);
  opacity:0; visibility:hidden; transition:opacity .35s, visibility .35s;
}
.nav-drawer-scrim.is-open{ opacity:1; visibility:visible; }
/* prevent body scroll when drawer is open */
body.nav-drawer-open{ overflow:hidden; }

/* =================================================================
   SHARED BITS
   ================================================================= */
.section-label{
  font-size:var(--fs-cap); letter-spacing:.22em; text-transform:uppercase; color:var(--ink-mute);
  display:inline-flex; align-items:center; gap:9px;
}
.section-label::before{ content:""; width:26px; height:1px; background:var(--ink-mute); }

/* reveal utility — animated in by GSAP */
.reveal{ opacity:0; transform:translateY(24px); }

/* =================================================================
   ACT 01 — HERO
   ================================================================= */
.hero{
  position:relative; min-height:100svh; padding:120px var(--pad) 48px;
  display:flex; flex-direction:column; justify-content:center; gap:clamp(32px,6vh,80px); z-index:70;
}
.hero__title{
  font-family:var(--ff-disp); font-weight:300;
  font-size:var(--fs-display); line-height:1; letter-spacing:-.02em;
  margin:0; max-width:16ch; position:relative; z-index:72;
  mix-blend-mode:exclusion;
}
.hero__title .line{ display:block; overflow:hidden; padding:.08em 0 .18em; margin-bottom:-.16em; }
.hero__title .w{ display:inline-block; transform:translateY(118%); will-change:transform; }
.hero__title em{ font-family:var(--ff-serif); font-weight:400; font-style:italic; color:var(--tg); padding-right:.06em; }
.hero__title .line--mut{ color:var(--ink-dim); font-weight:200; }
.hero__bottom{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; flex-wrap:wrap; }
.hero__lead{ max-width:46ch; color:var(--ink-dim); font-size:var(--fs-body); line-height:1.6; }
.hero__edge{ position:absolute; bottom:48px; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-mute); opacity:.6; }
.hero__edge--l{ left:clamp(8px,1.2vw,18px); writing-mode:vertical-rl; top:140px; bottom:auto; }
.hero__edge--r{ right:clamp(8px,1.2vw,18px); writing-mode:vertical-rl; top:140px; bottom:auto; }

/* =================================================================
   ACT 02 — REVEAL
   ================================================================= */
.reveal-act{
  position:relative; min-height:100vh; padding:16vh var(--pad);
  display:flex; align-items:center; z-index:50;
}
.reveal-act__index{
  position:absolute; top:8vh; right:var(--pad);
  font-family:var(--ff-serif); font-style:italic; font-size:clamp(60px,12vw,180px);
  color:var(--line); line-height:1; pointer-events:none;
}
.reveal-act__text{ max-width:min(760px,48vw); }
.reveal-act__label{ font-size:var(--fs-cap); letter-spacing:.2em; text-transform:uppercase; color:var(--ink-mute); margin-bottom:24px; }
.reveal-act__head{
  font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title);
  line-height:1.02; letter-spacing:-.02em;
}
.reveal-act__head .ln{ display:block; overflow:hidden; }
.reveal-act__head em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.reveal-act__sub{ margin-top:30px; max-width:48ch; color:var(--ink-dim); font-size:var(--fs-body); line-height:1.6; }

/* =================================================================
   REVEAL-ACT STATS (three-up stat row inside .reveal-act__text)
   ================================================================= */
.reveal-act__stats{
  display:flex; gap:24px; flex-wrap:wrap; margin-top:36px;
}
.reveal-act__stat{
  display:flex; flex-direction:column; gap:6px; flex:1 1 150px; min-width:140px;
}
.reveal-act__num{
  font-family:var(--ff-disp); font-weight:300; font-size:clamp(24px,2.5vw,34px);
  line-height:1; letter-spacing:-.02em; color:var(--tg); white-space:nowrap;
}
.reveal-act__num span{ color:var(--tg); }
.reveal-act__cap{
  font-size:var(--fs-body); color:var(--ink-dim); line-height:1.45; max-width:22ch;
}
.reveal-act__stats-note{
  margin-top:14px; font-size:var(--fs-cap); letter-spacing:.06em; color:var(--ink-mute); font-style:italic;
  padding-top:10px; border-top:1px solid var(--line-soft);
}

/* =================================================================
   ACT 03 — LIVING SCRIPT
   ================================================================= */
.script{ position:relative; z-index:50; padding:8vh 0; }
.script__rail{ display:flex; flex-direction:column; }
.script__step{
  min-height:100vh; padding:0 var(--pad);
  display:flex; flex-direction:column; justify-content:center;
  max-width:min(560px,44vw);
}
.script__step:nth-child(even){ padding-left:calc(var(--pad) + 6vw); }
.script__num{ font-family:var(--ff-serif); font-style:italic; font-size:34px; color:var(--tg); display:block; margin-bottom:18px; }
.script__step h3{
  font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title);
  line-height:.98; letter-spacing:-.02em; margin-bottom:22px;
}
.script__step p{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.6; max-width:42ch; }

/* =================================================================
   SCRIPT NUMERIC STATS
   ================================================================= */
.script__stat{
  display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:32px; padding-top:24px;
  border-top:1px solid var(--line); max-width:44ch;
}
.script__stat b{
  font-family:var(--ff-disp); font-weight:300; font-size:clamp(34px,5vw,56px); line-height:1;
  color:var(--tg); letter-spacing:-.02em; white-space:nowrap;
}
.script__stat span{ font-size:var(--fs-body); color:var(--ink-dim); line-height:1.4; }

/* =================================================================
   ACT 04 — INTERACTIVE PLAY
   ================================================================= */
.play{ position:relative; z-index:50; min-height:100vh; padding:16vh var(--pad); display:flex; align-items:center; }
.play__inner{ max-width:min(560px,44vw); }
.play__title{
  font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title);
  line-height:.98; letter-spacing:-.02em; margin:26px 0 28px;
}
.play__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--acid); font-weight:400; }
.play__lead{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.6; max-width:44ch; }
.play__chips{ display:flex; flex-wrap:wrap; gap:10px; margin:30px 0 16px; }
.chip{
  font-family:var(--ff-body); font-size:13.5px; color:var(--ink);
  background:rgba(243,239,230,.04); border:1px solid var(--line); border-radius:40px;
  padding:10px 16px; cursor:pointer; transition:.3s var(--ease);
}
.chip:hover{ background:var(--ink); color:var(--bg); transform:translateY(-2px); border-color:var(--ink); }
.play__hint{ font-size:12.5px; color:var(--ink-mute); letter-spacing:.02em; }

/* =================================================================
   ACT 05 — SOLUTIONS
   ================================================================= */
.solutions{ position:relative; z-index:80; padding:14vh var(--pad); background:linear-gradient(180deg,transparent, var(--bg-2) 30%, var(--bg-2)); }
.solutions__head{ margin-bottom:64px; }
.solutions__title{
  font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title);
  line-height:.96; letter-spacing:-.02em; margin-top:22px; max-width:none;
}
.solutions__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.solutions__grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.sol{
  grid-column:span 2;
  background:var(--bg-2); padding:34px 30px 30px; min-height:300px;
  display:flex; flex-direction:column; position:relative; overflow:hidden;
  transition:background .5s var(--ease); cursor:pointer;
}
.sol::before{
  content:""; position:absolute; inset:0; opacity:0;
  background:radial-gradient(120% 120% at 0% 0%, rgba(42,171,238,.14), transparent 55%);
  transition:opacity .5s;
}
.sol:hover{ background:#10101a; }
.sol:hover::before{ opacity:1; }
.sol--half{ grid-column:span 3; } /* bottom row: two wider cards = balanced 3 + 2 */
.sol__top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:auto; }
.sol__tag{ font-size:var(--fs-cap); letter-spacing:.16em; text-transform:uppercase; color:var(--ink-mute); }
.sol__price{ font-family:var(--ff-serif); font-style:italic; font-size:21px; color:var(--ink); }
.sol__price i{ font-size:12px; color:var(--ink-mute); font-style:normal; }
.sol__name{ font-family:var(--ff-disp); font-weight:400; font-size:var(--fs-sub); line-height:1.05; margin:60px 0 14px; letter-spacing:-.01em; }
.sol__desc{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.55; max-width:34ch; }
.sol__line{ height:1px; background:var(--line); margin:22px 0 14px; transform-origin:left; transform:scaleX(0); transition:transform .6s var(--ease); }
.sol:hover .sol__line{ transform:scaleX(1); }
.sol__no{ font-size:var(--fs-cap); letter-spacing:.1em; color:var(--ink-mute); align-self:flex-start; }
@media(max-width:1024px){ .solutions__grid{ grid-template-columns:repeat(2,1fr); } .sol,.sol--half{ grid-column:span 1; } .sol--half:last-child{ grid-column:span 2; } }
@media(max-width:560px){ .solutions__grid{ grid-template-columns:1fr; } .sol,.sol--half,.sol--half:last-child{ grid-column:span 1; } .sol{ min-height:240px; } }

/* =================================================================
   WHO IT'S FOR
   ================================================================= */
.who{ position:relative; z-index:80; padding:14vh var(--pad); background:var(--bg); }
.who__head{ margin-bottom:48px; }
.who__title{ font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title); line-height:.98; letter-spacing:-.02em; margin-top:20px; }
.who__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.who__chips{ display:flex; flex-wrap:wrap; gap:12px; max-width:1000px; }
.whochip{
  font-size:clamp(14px,1.5vw,17px); color:var(--ink-dim); padding:12px 22px; border-radius:44px;
  border:1px solid var(--line); background:var(--bg-2); transition:.3s var(--ease); cursor:default;
}
.whochip:hover{ color:var(--ink); border-color:rgba(42,171,238,.5); transform:translateY(-2px); }
.whochip--more{ color:var(--acid); border-color:rgba(214,255,67,.35); background:rgba(214,255,67,.05); }

/* =================================================================
   LAUNCH ALGORITHM (pricing section)
   ================================================================= */
.pricing{ position:relative; z-index:80; padding:16vh var(--pad); background:var(--bg-2); }
.pricing__head{ margin-bottom:60px; }
.pricing__title{ font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title); line-height:.96; letter-spacing:-.02em; margin-top:22px; }
.pricing__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.pricing__sub{ color:var(--ink-dim); font-size:var(--fs-body); max-width:46ch; margin-top:18px; }
.pricing__list{ border-top:1px solid var(--line); }
.prow{
  display:grid; grid-template-columns:1.4fr 1.6fr auto 40px; align-items:center; gap:24px;
  padding:30px 8px; border-bottom:1px solid var(--line); position:relative;
  transition:padding .4s var(--ease); overflow:hidden;
}
.prow::before{ content:""; position:absolute; inset:0; background:var(--ink); transform:translateY(101%); transition:transform .5s var(--ease); z-index:-1; }
.prow:hover{ padding-left:26px; padding-right:26px; }
.prow:hover::before{ transform:translateY(0); }
.prow:hover *{ color:var(--bg); }
.prow:hover .prow__price i{ color:var(--bg); }
.prow__name{ font-family:var(--ff-disp); font-weight:400; font-size:clamp(18px,2.2vw,28px); letter-spacing:-.01em; transition:color .4s; }
.prow__desc{ color:var(--ink-mute); font-size:14px; transition:color .4s; }
.prow__price{ font-family:var(--ff-serif); font-style:italic; font-size:clamp(20px,2.4vw,30px); white-space:nowrap; transition:color .4s; }
.prow__price i{ font-size:13px; color:var(--ink-mute); font-style:normal; }
.prow__arr{ font-size:22px; text-align:right; transition:transform .4s var(--ease), color .4s; }
.prow:hover .prow__arr{ transform:translateX(6px); }
.prow--feat .prow__name{ color:var(--tg); }
.prow--feat:hover .prow__name{ color:var(--bg); }
@media(max-width:760px){
  .prow{ grid-template-columns:1fr auto; gap:8px 16px; padding:24px 6px; }
  .prow__desc{ grid-column:1/-1; order:3; }
  .prow__arr{ display:none; }
}

.launch{
  list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.launch__step{
  background:var(--bg); padding:40px 28px 34px; display:flex; flex-direction:column; gap:22px;
  position:relative; min-height:280px;
}
.launch__num{ font-family:var(--ff-serif); font-style:italic; font-size:48px; color:var(--ink-mute); line-height:1; }
.launch__body h3{ font-family:var(--ff-disp); font-weight:400; font-size:var(--fs-sub); margin-bottom:12px; letter-spacing:-.01em; }
.launch__body p{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.55; }
.launch__step--final{ background:linear-gradient(160deg, rgba(42,171,238,.14), transparent 80%); }
.launch__step--final .launch__num{ color:var(--tg); }
.launch__step::after{ content:"→"; position:absolute; top:48px; right:-11px; color:var(--ink-mute); font-size:18px; z-index:3; background:var(--bg-2); padding:2px; }
.launch__step:last-child::after{ display:none; }
.launch__cta{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; margin-top:48px; }
.launch__btn{ display:inline-flex; align-items:center; gap:10px; background:var(--ink); color:var(--bg); padding:16px 30px; border-radius:46px; font-weight:600; font-size:15px; transition:.3s var(--ease); }
.launch__btn span{ transition:transform .3s var(--ease); }
.launch__btn:hover{ background:var(--tg); color:#fff; }
.launch__btn:hover span{ transform:translateX(5px); }
.launch__note{ font-size:var(--fs-cap); color:var(--ink-mute); max-width:34ch; line-height:1.5; }
@media(max-width:900px){ .launch{ grid-template-columns:repeat(2,1fr);} .launch__step::after{ display:none; } }
@media(max-width:520px){ .launch{ grid-template-columns:1fr; } .launch__step{ min-height:auto; } }

/* =================================================================
   ACT 06 — DEPLOY / ARCHITECTURE
   ================================================================= */
.deploy{ position:relative; z-index:80; padding:16vh var(--pad); background:var(--bg); }
.deploy__head{ margin-bottom:70px; }
.deploy__title{ font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title); line-height:.96; letter-spacing:-.02em; margin-top:22px; }
.deploy__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.deploy__cols{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); margin-bottom:1px; }
.deploy__col{ background:var(--bg); padding:44px 40px; position:relative; }
.deploy__no{ position:absolute; top:34px; right:40px; font-family:var(--ff-serif); font-style:italic; font-size:40px; color:var(--line); }
.deploy__col h3{ font-family:var(--ff-disp); font-weight:400; font-size:var(--fs-sub); margin-bottom:30px; letter-spacing:-.01em; }
.toggle-pair{ display:flex; flex-direction:column; gap:18px; }
.tp{ padding:20px; border:1px solid var(--line); border-radius:14px; transition:.4s var(--ease); }
.tp:hover{ border-color:rgba(42,171,238,.5); background:rgba(42,171,238,.04); transform:translateX(6px); }
.tp strong{ display:block; font-family:var(--ff-disp); font-weight:400; font-size:17px; margin-bottom:7px; }
.tp span{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.5; }
@media(max-width:768px){ .deploy__cols{ grid-template-columns:1fr; } }

.admin{ margin-top:90px; }
.admin__label{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; font-family:var(--ff-disp); font-weight:300; font-size:clamp(20px,2.4vw,32px); margin-bottom:34px; }
.admin__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.admin__cell{ background:var(--bg); padding:28px 24px; min-height:160px; display:flex; flex-direction:column; transition:background .4s; }
.admin__cell:hover{ background:var(--bg-2); }
.admin__cell i{ font-family:var(--ff-serif); font-style:italic; font-size:22px; color:var(--ink-mute); margin-bottom:auto; }
.admin__cell b{ font-family:var(--ff-disp); font-weight:400; font-size:var(--fs-sub); margin:40px 0 8px; }
.admin__cell span{ color:var(--ink-dim); font-size:var(--fs-body); line-height:1.5; }
.admin__cell--accent{ background:rgba(214,255,67,.05); }
.admin__cell--accent i{ color:var(--acid); }
@media(max-width:900px){ .admin__grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .admin__grid{ grid-template-columns:1fr; } }

/* =================================================================
   REVIEWS
   ================================================================= */
.reviews{ position:relative; z-index:80; padding:14vh var(--pad); background:var(--bg-2); }
.reviews__head{ margin-bottom:54px; }
.reviews__title{ font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-title); line-height:.96; letter-spacing:-.02em; margin-top:22px; }
.reviews__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.reviews__grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:18px; align-items:start; }
.review{ background:var(--bg); border:1px solid var(--line); border-radius:18px; padding:30px 32px; }
.review p{ font-size:var(--fs-body); line-height:1.6; color:var(--ink-dim); }
.review--feat{ grid-row:span 2; background:linear-gradient(165deg, rgba(42,171,238,.10), transparent 70%); border-color:rgba(42,171,238,.25); }
.review--feat p{ font-family:var(--ff-disp); font-weight:300; font-size:clamp(19px,2.1vw,30px); line-height:1.32; color:var(--ink); letter-spacing:-.01em; }
.review footer{ display:flex; align-items:center; gap:14px; margin-top:24px; }
.review__ava{ width:46px; height:46px; border-radius:50%; flex-shrink:0; display:grid; place-items:center; font-family:var(--ff-disp); font-weight:600; font-size:15px; color:#fff; background:linear-gradient(140deg,#2aabee,#7b5cff); }
.review--feat .review__ava{ background:linear-gradient(140deg,#1f6b3f,#2e9e63); }
.review footer b{ display:block; font-weight:600; font-size:15px; }
.review footer span{ color:var(--ink-mute); font-size:var(--fs-cap); font-style:italic; }
@media(max-width:860px){ .reviews__grid{ grid-template-columns:1fr; } .review--feat{ grid-row:auto; } }

/* =================================================================
   CTA + FOOTER
   ================================================================= */
.cta{ position:relative; z-index:80; min-height:90vh; padding:18vh var(--pad); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; overflow:hidden; }
.cta__glow{ position:absolute; top:30%; left:50%; transform:translate(-50%,-50%); width:900px; height:900px; max-width:120vw; border-radius:50%; background:radial-gradient(circle, rgba(42,171,238,.16), transparent 60%); pointer-events:none; }
.cta__kicker{ font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--ink-mute); margin-bottom:30px; }
.cta__title{ font-family:var(--ff-disp); font-weight:300; font-size:var(--fs-display); line-height:.92; letter-spacing:-.03em; position:relative; }
.cta__title em{ font-family:var(--ff-serif); font-style:italic; color:var(--tg); font-weight:400; }
.cta__form{ display:flex; gap:10px; margin-top:50px; width:min(94vw,520px); flex-wrap:wrap; justify-content:center; position:relative; z-index:2; }
.cta__form input{ flex:1; min-width:220px; background:rgba(243,239,230,.05); border:1px solid var(--line); border-radius:46px; padding:17px 24px; color:var(--ink); font-family:var(--ff-body); font-size:15px; outline:none; transition:border-color .3s; }
.cta__form input:focus{ border-color:var(--tg); }
.cta__form button{ background:var(--ink); color:var(--bg); border:none; border-radius:46px; padding:17px 30px; font-family:var(--ff-body); font-weight:600; font-size:15px; cursor:pointer; display:flex; align-items:center; gap:8px; transition:.3s var(--ease); }
.cta__form button span{ transition:transform .3s var(--ease); }
.cta__form button:hover{ background:var(--tg); color:#fff; }
.cta__form button:hover span{ transform:translateX(5px); }
.cta__note{ margin-top:22px; font-size:13px; color:var(--ink-mute); }

.footer{ position:relative; z-index:80; padding:80px var(--pad) 40px; border-top:1px solid var(--line); background:var(--bg); }
.footer__top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:54px; border-bottom:1px solid var(--line); }
.footer__logo{ font-family:var(--ff-disp); font-weight:600; letter-spacing:.06em; font-size:clamp(40px,8vw,110px); }
.footer__logo i{ color:var(--tg); font-style:normal; }
.footer__top p{ color:var(--ink-dim); font-size:15px; line-height:1.6; align-self:flex-end; max-width:34ch; }
.footer__cols{ display:flex; gap:70px; flex-wrap:wrap; padding:54px 0; }
.footer__cols h4{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-mute); margin-bottom:18px; font-weight:600; }
.footer__cols a{ display:block; color:var(--ink-dim); font-size:14px; padding:5px 0; transition:color .3s; }
.footer__cols a:hover{ color:var(--ink); }
.footer__bottom{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:12px; color:var(--ink-mute); padding-top:34px; border-top:1px solid var(--line); }
.footer__dis{ max-width:50ch; text-align:center; }

/* =================================================================
   LIGHT THEME
   ================================================================= */
body.light{
  --bg:#f1ece2; --bg-2:#e7e1d4; --ink:#15140e; --ink-dim:#54514a; --ink-mute:#8a877c;
  --line:rgba(20,19,12,.14); --line-soft:rgba(20,19,12,.06);
  --acid:#5f9400; /* darker lime so accent text stays readable on light bg */
}
body.light .grain{ mix-blend-mode:multiply; opacity:.04; }
body.light .vignette{ background:radial-gradient(130% 100% at 50% 0%, transparent 62%, rgba(120,108,86,.16) 100%); }
body.light .cursor-glow{ mix-blend-mode:multiply; background:radial-gradient(circle, rgba(42,171,238,.16), transparent 65%); }
body.light .nav{ mix-blend-mode:normal; color:var(--ink); }
body.light .hero__title{ mix-blend-mode:normal; }
body.light .sol:hover{ background:#fff; }
body.light .cta__form input{ background:rgba(20,19,12,.04); }
body.light .loader{ background:var(--bg); color:var(--ink); }
/* phone keeps its native Telegram dark theme in both modes */
/* light mode: ensure readable contrast on cards and raised surfaces */
body.light .tp{ border-color:rgba(20,19,12,.18); }
body.light .tp:hover{ border-color:rgba(42,171,238,.6); background:rgba(42,171,238,.06); }
body.light .sol{ background:var(--bg-2); }
body.light .admin__cell{ background:var(--bg-2); }
body.light .review{ background:var(--bg); }
body.light .whochip{ background:var(--bg); }
/* collapsibles: chevron visible on light bg */
body.light .collapsible__chevron{ color:var(--ink-mute); }
/* reveal-act stats on light */
body.light .reveal-act__num{ color:var(--tg); }
/* nav-drawer on light */
body.light .nav-drawer{ background:var(--bg); }
body.light .nav-drawer-scrim{ background:rgba(20,18,10,.4); }
/* play arrows on light: keep tg accent, reduce glow */
body.light .play__arrow{ filter:drop-shadow(0 0 6px rgba(42,171,238,.7)); }
/* launch step arrow connector on light */
body.light .launch__step::after{ background:var(--bg-2); color:var(--ink-mute); }

/* =================================================================
   FLOATING MESSENGER ICONS
   All logos are softly blurred so they read as background texture.
   .orbit--blur (Instagram) gets extra blur (branding/regulatory).
   ================================================================= */
.bg-orbits{ position:fixed; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
/* base: all logos blurred so none render as crisp foreground objects */
.orbit{
  position:absolute; width:60px; height:60px; display:block; opacity:.22;
  filter:blur(3px) brightness(.88) saturate(.85) drop-shadow(0 14px 30px rgba(0,0,0,.5));
  will-change:transform;
}
.orbit svg{ width:100%; height:100%; display:block; }
/* Instagram: extra-blurred (branding + RF regulation) */
.orbit--blur{ filter:blur(9px) brightness(.86) saturate(.85); opacity:.17; }
body.light .orbit{ opacity:.36; filter:blur(3px) brightness(1.18) saturate(.95) drop-shadow(0 14px 28px rgba(80,70,50,.14)); }
body.light .orbit--blur{ filter:blur(9px) brightness(1.18) saturate(.9); opacity:.29; }
/* individual icon positions */
.orbit--1{ top:17%; left:7%;  width:58px; }
.orbit--2{ top:63%; left:11%; width:72px; }
.orbit--3{ top:28%; left:83%; width:62px; }
.orbit--4{ top:70%; left:79%; width:88px; }
.orbit--5{ top:11%; left:58%; width:50px; }
.orbit--6{ top:48%; left:91%; width:46px; }
.orbit--7{ top:40%; left:3%;  width:78px; }
.orbit--8{ top:85%; left:45%; width:56px; }
.orbit--9{ top:55%; left:68%; width:54px; }
.orbit--10{ top:32%; left:50%; width:48px; }

/* =================================================================
   PHONE — extra polish & interactive accent
   ================================================================= */
.phone__shine{ position:absolute; inset:11px; border-radius:36px; overflow:hidden; pointer-events:none; z-index:4; }
.phone__shine::before{
  content:""; position:absolute; top:-60%; width:45%; height:220%; transform:rotate(18deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  left:-50%; animation:shine 8s ease-in-out infinite;
}
@keyframes shine{ 0%{ left:-50%; } 16%{ left:130%; } 100%{ left:130%; } }

.phone__ring{ position:absolute; inset:-8px; border-radius:54px; border:2px solid transparent; pointer-events:none; opacity:0; transition:opacity .5s; }
.stage.is-live .phone__ring{ opacity:1; border-color:rgba(42,171,238,.55); animation:ringpulse 2.1s ease-in-out infinite; }
@keyframes ringpulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(42,171,238,.10), 0 0 42px rgba(42,171,238,.30); }
  50%{ box-shadow:0 0 0 9px rgba(42,171,238,.05), 0 0 75px rgba(42,171,238,.55); }
}
/* accent the input field when interactive */
.stage.is-live #tgField{ animation:fieldpulse 2.3s ease-in-out infinite; color:#fff; }
@keyframes fieldpulse{ 0%,100%{ box-shadow:0 0 0 1.5px rgba(42,171,238,.4); } 50%{ box-shadow:0 0 0 2.5px rgba(42,171,238,.85); } }
.stage.is-live .tg__send{ color:#5eb5f7; animation:sendpulse 1.7s ease-in-out infinite; }
@keyframes sendpulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.16); } }

/* animated arrows pointing toward the phone during the demo act */
.play__arrows{
  position:absolute; right:38vw; top:46%; transform:translateY(-50%);
  color:var(--tg); pointer-events:none; opacity:0; transition:opacity .7s var(--ease);
  display:flex; flex-direction:column; align-items:flex-end; gap:2px; z-index:55;
}
.play.is-active .play__arrows{ opacity:1; }
.play__arrow{ width:clamp(130px,13vw,210px); height:auto;
  filter:drop-shadow(0 0 9px rgba(42,171,238,.85)) drop-shadow(0 0 24px rgba(42,171,238,.5)); }
.play__arrow--2{ margin-right:34px; transform:scaleX(.9); }
.play__arrow .pa-line, .play__arrow .pa-head{ stroke-dasharray:420; stroke-dashoffset:420; animation:adraw 2.6s var(--ease) infinite; }
.play__arrow--2 .pa-line, .play__arrow--2 .pa-head{ animation-delay:.4s; }
@keyframes adraw{ 0%{ stroke-dashoffset:420; opacity:.2; } 35%{ stroke-dashoffset:0; opacity:1; } 72%{ stroke-dashoffset:0; opacity:1; } 100%{ stroke-dashoffset:0; opacity:0; } }
.play__arrows-cap{ font-family:var(--ff-serif); font-style:italic; font-size:clamp(18px,1.8vw,24px); color:var(--tg);
  text-shadow:0 0 16px rgba(42,171,238,.7); margin-top:4px; animation:capfloat 2.4s ease-in-out infinite; }
@keyframes capfloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-5px); } }

/* corner fly-through: raise the phone above the opaque sections */
.stage.stage--corner{ z-index:130; }

/* mobile: phone rendered inline inside the demo section only */
/* JS owns the transform:scale — do NOT override transform here */
.stage--inline{
  position:relative !important; display:block; width:100%; height:auto;
  margin:8px auto 0; pointer-events:auto; inset:auto;
}
.stage--inline .stage__halo,
.stage--inline .phone__shadow,
.stage--inline .phone__glow,
.stage--inline .phone__ring,
.stage--inline .phone__shine{ display:none; }
.stage--inline .phone{
  visibility:visible !important; opacity:1 !important; filter:none !important;
  /* JS sets width/height/transform via applyPhoneScale() */
}
/* all interactive children get pointer events */
.stage--inline,
.stage--inline *{ pointer-events:auto; }
.stage--inline .tg__feed{
  touch-action:pan-y; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}

/* =================================================================
   CORNER LIVE SUPPORT WIDGET (fab)
   Container never traps clicks — only the launcher button and the
   open panel have pointer-events (otherwise the invisible container
   covers the bottom-right and eats taps on the CTA/footer/cards).
   ================================================================= */
.fab{
  position:fixed; right:24px; bottom:24px; z-index:140;
  display:flex; flex-direction:column; align-items:flex-end; gap:14px;
  opacity:0; visibility:hidden; transform:translateY(10px) scale(.4); pointer-events:none;
  transform-origin:bottom right;
  transition:opacity .35s var(--ease), transform .5s cubic-bezier(.34,1.56,.64,1), visibility .5s;
}
.fab.fab--show{ opacity:1; visibility:visible; transform:none; }
.fab.fab--show .fab__btn{ pointer-events:auto; }

/* teaser bubble that explains the launcher is live support */
.fab__teaser{
  display:flex; align-items:center; gap:11px; align-self:flex-end;
  background:var(--bg-2); color:var(--ink); border:1px solid var(--line);
  border-radius:16px; padding:11px 16px; cursor:pointer; text-align:left;
  box-shadow:0 16px 40px -16px rgba(0,0,0,.45); white-space:nowrap; font-family:var(--ff-body);
  opacity:0; transform:translateX(14px) scale(.96); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.fab.fab--show .fab__teaser{ opacity:1; transform:none; pointer-events:auto; transition-delay:.7s; }
.fab.fab--open .fab__teaser{ opacity:0; transform:translateX(14px) scale(.96); pointer-events:none; transition-delay:0s; }
.fab__teaser:hover{ border-color:rgba(42,171,238,.5); }
.fab__teaser-dot{ width:9px; height:9px; border-radius:50%; background:#46d160; flex-shrink:0; box-shadow:0 0 0 0 rgba(70,209,96,.5); animation:onlinePulse 2s infinite; }
.fab__teaser-text{ display:flex; flex-direction:column; line-height:1.25; font-size:12px; color:var(--ink-mute); }
.fab__teaser-text b{ font-size:13.5px; color:var(--ink); font-weight:600; }
@keyframes onlinePulse{ 0%{ box-shadow:0 0 0 0 rgba(70,209,96,.5); } 70%{ box-shadow:0 0 0 8px rgba(70,209,96,0); } 100%{ box-shadow:0 0 0 0 rgba(70,209,96,0); } }
@media(max-width:560px){ .fab__teaser{ display:none; } }
.fab__btn{
  position:relative; width:62px; height:62px; border-radius:50%; border:none; cursor:pointer;
  background:linear-gradient(140deg,#2aabee,#7b5cff); color:#fff; display:grid; place-items:center;
  box-shadow:0 16px 36px -8px rgba(42,171,238,.6); transition:transform .3s var(--ease); align-self:flex-end;
}
.fab__btn:hover{ transform:scale(1.06); }
.fab__btn-ava{ font-family:var(--ff-disp); font-weight:700; font-size:22px; }
.fab__btn-dot{ position:absolute; top:8px; right:8px; width:12px; height:12px; border-radius:50%; background:#46d160; border:2px solid #0b0b10; }
.fab__btn-ring{ position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(42,171,238,.5); animation:ringpulse 2.2s ease-in-out infinite; }
.fab--open .fab__btn-ring{ display:none; }

.fab__panel{
  position:absolute; bottom:calc(100% + 14px); right:0;
  width:min(86vw,346px); height:min(72vh,500px); border-radius:22px; overflow:hidden;
  background:#0e1621; box-shadow:0 34px 80px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.05);
  display:flex; flex-direction:column; transform-origin:bottom right; color:#fff;
  opacity:0; transform:translateY(16px) scale(.9); pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.fab--open .fab__panel{ opacity:1; transform:none; pointer-events:auto; }
.fab__head{ display:flex; align-items:center; gap:10px; padding:12px 14px; background:#17212b; }
.fab__ava{ width:36px; height:36px; }
.fab__meta{ flex:1; min-width:0; }
.fab__name{ font-weight:600; font-size:14px; }
.fab__status{ font-size:12px; color:#5eb5f7; }
.fab__close{ background:none; border:none; color:#7d8e9e; cursor:pointer; padding:6px; display:grid; place-items:center; }
.fab__feed{ flex:1; overflow-y:auto; padding:14px 12px; display:flex; flex-direction:column; gap:7px;
  background:radial-gradient(120% 80% at 50% 0%, #17212b, #0e1621 60%); scrollbar-width:none; }
.fab__feed::-webkit-scrollbar{ display:none; }
.fab__input{ display:flex; align-items:center; gap:8px; padding:10px 12px; background:#17212b; }
.fab__input input{ flex:1; background:#0e1621; border:none; outline:none; color:#fff; font-family:var(--ff-body); font-size:14px; padding:10px 14px; border-radius:18px; }
.fab__input input::placeholder{ color:#6a7d8e; }
.fab__input .tg__send{ color:#5eb5f7; background:none; border:none; cursor:pointer; padding:4px; }
@media(max-width:560px){ .fab{ right:16px; bottom:16px; } }

@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.3} }

/* =================================================================
   MOBILE COLLAPSIBLE SPOILERS
   Only active when .collapsible class is added by JS on mobile
   ================================================================= */
.collapsible{ cursor:pointer; position:relative; user-select:none; }
.collapsible .collapsible__chevron{
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:20px; height:20px; display:flex; align-items:center; justify-content:center;
  color:var(--ink-mute); transition:transform .3s var(--ease); pointer-events:none;
  font-size:16px; line-height:1;
}
.collapsible.is-open .collapsible__chevron{ transform:translateY(-50%) rotate(180deg); }

/* Sol card collapsible — collapsed = compact header row only */
.sol.collapsible{
  min-height:auto; padding:20px 24px;
}
.sol.collapsible .sol__top{ margin-bottom:0; }
.sol.collapsible .sol__desc,
.sol.collapsible .sol__line,
.sol.collapsible .sol__no{
  overflow:hidden; max-height:0; opacity:0;
  transition:max-height .35s var(--ease), opacity .3s var(--ease);
}
.sol.collapsible.is-open .sol__desc,
.sol.collapsible.is-open .sol__line,
.sol.collapsible.is-open .sol__no{
  max-height:200px; opacity:1;
}
/* keep sol__name + sol__price header always visible */
.sol.collapsible .sol__name{ margin:12px 0 0; }

/* Launch step collapsible — compact: show num + h3 only */
.launch__step.collapsible{
  min-height:auto; padding:20px 22px; gap:12px;
}
.launch__step.collapsible .launch__body p{
  overflow:hidden; max-height:0; opacity:0;
  transition:max-height .35s var(--ease), opacity .3s var(--ease);
}
.launch__step.collapsible.is-open .launch__body p{
  max-height:200px; opacity:1;
}

/* Admin cell collapsible */
.admin__cell.collapsible .admin__cell-desc{
  overflow:hidden; max-height:0; opacity:0;
  transition:max-height .35s var(--ease), opacity .3s var(--ease);
}
.admin__cell.collapsible.is-open .admin__cell-desc{
  max-height:200px; opacity:1;
}
/* admin cell header row always visible */
.admin__cell.collapsible{ flex-direction:row; align-items:center; flex-wrap:wrap; gap:8px; min-height:auto; padding:18px 24px; }
.admin__cell.collapsible i{ margin-bottom:0; }
.admin__cell.collapsible b{ margin:0; font-size:15px; flex:1; }
.admin__cell.collapsible .admin__cell-desc{ flex-basis:100%; }

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media(prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal,.hero__title .w{ opacity:1 !important; transform:none !important; }
}

/* touch devices: reveal hover-only affordances, kill tilt jitter */
@media(hover:none){
  .sol__line{ transform:scaleX(1); }
  .whochip{ transition:none; }
}

/* =================================================================
   MOBILE — max-width: 880px
   Phone keeps its size; JS transform-scales it inline in #play.
   Sections flow without the fixed phone overlay.
   ================================================================= */
@media(max-width:880px){
  html, body{ overflow-x:hidden; }
  main{ overflow-x:hidden; }

  /* nav: hide desktop links; show burger; compact CTA stays visible */
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
  .nav__auth{ display:none; }  /* auth is in the drawer on mobile */
  .nav__cta{ padding:7px 13px; font-size:12.5px; }

  /* hero */
  .hero__edge{ display:none; }
  .hero__title{ mix-blend-mode:normal; margin:0; }
  .hero{ justify-content:flex-start; min-height:auto; gap:20px; }
  .hero__bottom{ margin-top:0; }

  /* reveal act */
  .reveal-act{ min-height:auto; padding:8vh var(--pad) 7vh; align-items:center; padding-top:7vh; }
  .reveal-act__index{ font-size:clamp(44px,15vw,84px); top:3vh; }
  .reveal-act__label{ margin-bottom:14px; }
  .reveal-act__sub{ margin-top:14px; }
  .reveal-act__stats{ gap:20px; margin-top:22px; }

  /* script */
  .script{ padding:3vh 0; }
  .script__step{ min-height:auto; padding:8vh var(--pad); justify-content:center; }
  .script__step h3{ margin-bottom:14px; }
  .script__num{ font-size:24px; margin-bottom:10px; }
  .script__stat{ margin-top:16px; padding-top:14px; gap:14px; }

  /* play / demo */
  .play{ flex-direction:column; align-items:stretch; padding:9vh var(--pad); min-height:auto; }
  .play__inner, .script__step, .reveal-act__text{ max-width:100%; }
  .play__title{ margin:16px 0; }
  .play__arrows{ display:none; }

  /* general sections */
  .solutions,.who,.pricing,.deploy,.reviews,.cta{ padding-top:9vh; padding-bottom:9vh; }
  .solutions__head,.deploy__head,.pricing__head,.who__head,.reviews__head{ margin-bottom:30px; }
  .whochip{ font-size:clamp(11px,3.2vw,14px); padding:9px 16px; }
  .admin{ margin-top:54px; }
  .deploy__col{ padding:32px 24px; }

  /* floating logos: small, static, lightly blurred — all logos blurred on mobile too */
  .orbit{ width:28px !important; height:28px !important; opacity:.1; filter:blur(2px) brightness(.88) saturate(.85) !important; will-change:auto; }
  /* Instagram logos MUST stay extra-blurred on mobile (RF regulation) */
  .orbit--blur{ filter:blur(8px) !important; opacity:.08 !important; width:36px !important; height:36px !important; }

  /* perf: drop the heaviest effects on mobile (fixed blurred layers repaint on scroll) */
  .phone__shine{ display:none; }
  .phone__glow{ display:none; }
  .phone__frame{ box-shadow:0 18px 40px -18px rgba(0,0,0,.8); }
  .grain, .vignette, .cursor-glow{ display:none; }
  .tg__date, .bubble--service span{ backdrop-filter:none; }
  .phone__ring{ display:none; }
  .stage.is-live #tgField, .stage.is-live .tg__send{ animation:none; }

  /* readable inputs (≥16px stops iOS auto-zoom) + comfortable tap targets */
  #tgField, #fabField, .cta__form input{ font-size:16px; }
  .chip{ min-height:44px; display:inline-flex; align-items:center; }
  .tg__send, .tg__attach, .fab__close{ min-width:44px; min-height:44px; }
  .launch__btn{ min-height:48px; }
}

/* =================================================================
   SMALL MOBILE — max-width: 560px
   ================================================================= */
@media(max-width:560px){
  :root{ --pad:18px; }
  .hero{ padding:104px 18px 30px; }
  .hero__title{ font-size:clamp(30px,8.6vw,46px); max-width:none; line-height:1.05; }
  .hero__title .line{ padding:.06em 0 .14em; margin-bottom:-.12em; }
  .nav{ padding:14px 16px; }
  .play__chips{ gap:8px; }
  .chip{ font-size:12.5px; padding:9px 13px; }
  .stat__num,.prow__name{ word-break:break-word; }
  .footer__logo{ font-size:clamp(36px,16vw,70px); }
  .reveal-act__stats{ flex-direction:row; flex-wrap:wrap; gap:14px 20px; }
  .reveal-act__stat{ flex:1 1 120px; }
}
