/* Landing page. Shared chrome (header, buttons, footer) lives in theme.css. */

html{scroll-behavior:smooth}

/* clip (not hidden) keeps the sticky workflow tabs working; hidden is the fallback. */
.massurge-site{overflow-x:hidden;overflow-x:clip}

/* ── Language switcher ── */
.language-switcher{
  height:38px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #ddd4e7;
  border-radius:6px;
  background:#fff;
  color:#5d397c;
  white-space:nowrap;
}
.language-switcher svg{width:15px;height:15px;flex:0 0 auto}
.language-switcher select{
  min-width:76px;
  border:0;
  background:transparent;
  color:#30283a;
  font-size:12px;
  font-weight:700;
  outline:none;
  cursor:pointer;
}
.language-switcher:focus-within{border-color:var(--purple);box-shadow:var(--focus-ring)}

/* ── Hero ── */
.hero{
  position:relative;
  max-width:1280px;
  margin:0 auto;
  padding:78px 28px 110px;
}
.hero::before{
  content:"";
  position:absolute;
  z-index:0;
  width:760px;
  height:760px;
  left:50%;
  top:260px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,#eee4ff 0,#f5efff 43%,rgba(255,255,255,0) 74%);
}
.hero-copy{position:relative;z-index:2;text-align:center}
.hero h1{
  max-width:970px;
  margin:0 auto;
  font-size:68px;
  line-height:1.04;
  font-weight:800;
}
.hero h1 em{font-style:normal;color:var(--purple-2)}
.hero-sub{max-width:790px;margin:23px auto 0}
.hero-sub > p{color:#665d73;font-size:17px;line-height:1.65}
.hero-actions{display:flex;justify-content:center;gap:12px;margin-top:26px}

/* ── Hero video reel ──
   The middle card is full size and opaque, its neighbours recede, and the row
   bleeds past both edges. Scale and opacity are set per frame from index.js
   through --card-scale / --card-opacity. */
.video-showcase{position:relative;z-index:2;margin-top:64px}
.video-showcase-glow{
  position:absolute;
  z-index:0;
  left:50%;
  top:46%;
  width:min(1100px,92vw);
  height:620px;
  transform:translate(-50%,-50%);
  pointer-events:none;
  background:radial-gradient(circle at center,rgba(139,92,246,0.14),rgba(139,92,246,0.05) 38%,transparent 64%);
  filter:blur(26px);
}
.video-showcase-sound{
  position:absolute;
  z-index:3;
  right:max(20px,calc((100% - 1224px) / 2));
  top:0;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:50%;
  background:rgba(255,255,255,0.92);
  color:#475569;
  box-shadow:0 6px 18px rgba(15,23,42,0.1);
  transition:color .2s ease,border-color .2s ease,transform .2s ease;
}
.video-showcase-sound svg{width:17px;height:17px}
.video-showcase-sound .sound-on{display:none}
.video-showcase-sound:hover{color:var(--purple-2);border-color:rgba(116,56,242,0.3);transform:scale(1.06)}
.video-showcase-sound[aria-pressed="true"]{border-color:rgba(116,56,242,0.45);background:var(--purple-2);color:#fff}
.video-showcase-sound[aria-pressed="true"] .sound-on{display:block}
.video-showcase-sound[aria-pressed="true"] .sound-off{display:none}
.video-showcase-stage{
  position:relative;
  z-index:1;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
  /* The drift writes scrollLeft every frame; smooth scrolling would fight it. */
  scroll-behavior:auto;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
}
.video-showcase-stage::-webkit-scrollbar{display:none}
.video-showcase-track{display:flex;gap:26px;width:max-content;padding:34px 0 44px}
.video-card{
  flex:0 0 auto;
  width:clamp(196px,21vw,292px);
  opacity:var(--card-opacity,1);
  transform:scale(var(--card-scale,1));
  transform-origin:center bottom;
  transition:opacity .18s linear,transform .18s linear;
  will-change:transform,opacity;
}
.video-card-inner{
  overflow:hidden;
  border:1px solid rgba(15,23,42,0.06);
  border-radius:22px;
  background:#fff;
  box-shadow:0 20px 60px rgba(15,23,42,0.1);
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease;
}
.video-card:hover .video-card-inner{transform:translateY(-7px);box-shadow:0 30px 72px rgba(15,23,42,0.16)}
.video-card-media{position:relative;aspect-ratio:9 / 16;background:linear-gradient(160deg,#f1ecfb,#e4ecf8)}
.video-card-media > video,.video-card-media > img{width:100%;height:100%;display:block;object-fit:cover}
.video-card-label{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#1e293b;
  font-size:13px;
  font-weight:700;
  letter-spacing:.2px;
}

/* ── Platform band ── */
.platform-band{
  padding:96px max(28px,calc((100vw - 1224px) / 2)) 112px;
  background:var(--plum);
  color:#fff;
}
.platform-heading{max-width:900px;margin:0 auto;text-align:center}
.platform-heading h2{font-size:60px;line-height:1.16;font-weight:800}
.platform-heading p{max-width:760px;margin:24px auto 0;color:#f5eefa;font-size:17px;line-height:1.65}
.platform-switcher{
  max-width:1224px;
  margin:76px auto 0;
  display:grid;
  grid-template-columns:390px minmax(0,1fr);
  gap:44px;
  align-items:center;
}
.platform-nav{display:flex;flex-direction:column;gap:8px}
.platform-nav button{
  height:50px;
  padding:0 27px;
  border:0;
  border-radius:28px;
  background:transparent;
  color:#c4b6ca;
  text-align:left;
  font-size:18px;
  font-weight:800;
  transition:background .2s,color .2s,box-shadow .2s;
}
.platform-nav button:hover{color:#fff}
.platform-nav button[aria-selected="true"]{background:#fff;color:#111;box-shadow:0 5px 20px rgba(0,0,0,0.12)}
.platform-nav button:focus-visible{outline-color:#fff}
.platform-video-slot{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:16px;
  background:#ddd;
  box-shadow:0 0 32px rgba(0,0,0,0.18);
}
.platform-video-slot::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,0.13),transparent 48%,rgba(31,13,42,0.15));
}
.platform-video-slot img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 28%}

/* ── Workflow ── */
.workflow-section{
  padding:102px max(28px,calc((100vw - 1224px) / 2)) 120px;
  background:var(--bg-1);
}
.workflow-tabs{
  position:sticky;
  top:14px;
  z-index:20;
  width:max-content;
  max-width:100%;
  margin:0 auto 72px;
  padding:6px;
  display:flex;
  border-radius:32px;
  background:#f1e8f7;
  box-shadow:0 4px 13px rgba(60,30,75,0.18);
}
.workflow-tabs button{
  height:47px;
  padding:0 22px;
  border:0;
  border-radius:25px;
  background:transparent;
  color:var(--plum-ink);
  font-weight:700;
}
.workflow-tabs button[aria-selected="true"]{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,0.13)}
.workflow-slide{
  min-height:640px;
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:75px;
  align-items:center;
  animation:workflow-in .32s ease both;
}
@keyframes workflow-in{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
.workflow-step{
  margin-bottom:18px;
  color:var(--purple-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}
.workflow-text h2{font-size:52px;line-height:1.09;font-weight:800}
.workflow-desc{margin-top:19px;color:#665d73;font-size:18px;line-height:1.7}
.point-list{margin-top:34px;list-style:none}
.point-list li{
  min-height:75px;
  padding:14px 4px;
  display:grid;
  grid-template-columns:38px 1fr;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.point-list li > i{font-style:normal;color:#768191;font-size:10px}
.point-list li > div{display:flex;flex-direction:column;gap:4px}
.point-list strong{font-size:15px}
.point-list small{color:#667080;font-size:12px;line-height:1.5}
.workflow-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:27px;
  color:var(--purple);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}
.workflow-link svg{width:17px;height:17px;margin-left:2px}
.workflow-link:hover{color:var(--purple-hover)}
.workflow-visual{
  min-height:570px;
  padding:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 32% 28%,#f2dff4 0,transparent 44%),
    radial-gradient(circle at 76% 40%,#e5d8fb 0,transparent 43%),
    #eee8fa;
}
.trend-board,.script-board,.repeat-board{
  width:100%;
  padding:34px;
  background:#fff;
  border:1px solid #d0d9e5;
  box-shadow:0 25px 60px rgba(25,40,65,0.15);
}
.trend-board > p,.script-board > p,.repeat-board > p,.produce-board p{
  color:#68748a;
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
}
.trend-board h3,.script-board h3,.repeat-board h3{margin:8px 0 25px;font-size:22px;font-weight:800}
.trend-board > div{
  display:grid;
  grid-template-columns:32px 1fr 35px;
  align-items:center;
  padding:18px 13px;
  border-bottom:1px solid var(--line);
  font-size:11px;
}
.trend-board > div:first-of-type{margin:0 -12px;border:0;background:#f1edff;color:#5e35bd}
.trend-board span,.trend-board em{font-style:normal;color:#68748a}
.script-board > div{
  padding:14px 0;
  display:flex;
  flex-direction:column;
  gap:5px;
  border-bottom:1px solid var(--line);
}
.script-board > div span{color:#68748a;font-size:8px;font-weight:700;letter-spacing:.6px}
.script-board > div b{font-size:12px}
.produce-board{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#0e1a2a;
  box-shadow:0 25px 60px rgba(25,40,65,0.15);
}
.produce-board > img{width:100%;height:390px;object-fit:cover;display:block}
.produce-board > div{padding:30px 20px;color:#fff}
.produce-board p{color:#a8b4c5}
.produce-board span{
  display:block;
  margin-top:15px;
  padding:12px;
  border:1px solid #324258;
  border-radius:4px;
  color:#a8b4c5;
  font-size:10px;
}
.produce-board span.active{border-color:#6d5ef1;background:#292750;color:#fff}
.repeat-board > div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.repeat-board img{width:100%;height:auto;aspect-ratio:4 / 5;object-fit:cover;display:block}
.repeat-board > span{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--green);
  font-size:10px;
  font-weight:800;
}
.repeat-board > span svg{width:16px;height:16px}

/* ── Final CTA ── */
.final-cta{
  padding:80px max(28px,calc((100vw - 1224px) / 2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  background:var(--plum-2);
  color:#fff;
}
.final-cta > div{max-width:820px}
.final-cta p{
  margin-bottom:16px;
  color:#d9bfe1;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
  text-transform:uppercase;
}
.final-cta h2{font-size:50px;line-height:1.1;font-weight:800}
.final-trust{
  margin-top:22px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  color:#d9bfe1;
  font-size:12px;
  font-weight:600;
}
.final-cta > a{
  flex:0 0 auto;
  height:52px;
  padding:0 22px;
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:4px;
  background:#fff;
  color:#2d1237;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition:background .18s;
}
.final-cta > a:hover{background:#f3e9f8}
.final-cta > a svg{width:18px;height:18px}

@media (max-width:980px){
  .platform-switcher{grid-template-columns:1fr;gap:35px}
  .platform-nav{display:grid;grid-template-columns:repeat(2,1fr)}
  .platform-nav button{height:46px}
  .workflow-slide{grid-template-columns:1fr;gap:35px}
}

@media (max-width:680px){
  .site-nav .logo img{width:104px}
  .site-nav .nav-login{display:none}
  .language-switcher{height:35px;padding:0 7px}
  .language-switcher select{min-width:61px;font-size:11px}

  .hero{padding:50px 20px 75px}
  .hero h1{font-size:43px}
  .hero-sub > p{font-size:15px}
  .hero-actions{flex-direction:column;align-items:stretch}

  .video-showcase{margin-top:44px}
  .video-showcase-stage{
    scroll-snap-type:x mandatory;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
    mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  }
  .video-showcase-track{gap:16px;padding:20px 0 30px}
  .video-card{width:min(64vw,260px);scroll-snap-align:center}
  .video-card-label{height:48px}

  .platform-band{padding:75px 20px 82px}
  .platform-heading h2{font-size:38px}
  .platform-heading p{font-size:15px}
  .platform-switcher{margin-top:48px}
  .platform-nav{grid-template-columns:1fr;gap:3px}
  .platform-nav button{height:45px;font-size:16px}
  .platform-video-slot{border-radius:12px}

  .workflow-section{padding:73px 20px}
  .workflow-tabs{
    top:7px;
    width:100%;
    margin-bottom:48px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .workflow-tabs button{min-width:0;padding:0 4px;font-size:12px}
  .workflow-slide{min-height:0}
  .workflow-text h2{font-size:37px}
  .workflow-desc{font-size:16px}
  .point-list strong{font-size:14px}
  .point-list small{font-size:11px}
  .workflow-visual{min-height:410px;padding:24px}
  .trend-board,.script-board,.repeat-board{padding:23px}
  .produce-board{grid-template-columns:1fr}
  .produce-board > img{height:310px}
  .produce-board > div{display:none}

  .final-cta{padding:65px 20px;display:block}
  .final-cta h2{font-size:35px}
  .final-cta > a{width:max-content;margin-top:28px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .video-card,.video-card-inner{transition:none}
  .workflow-slide{animation:none}
}
