:root{
  --bg:#f7f7fa;
  --ink:#101116;
  --muted:#7d8390;
  --violet:#7768f3;
}

*{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  height:100%;
  margin:0;
}

body{
  overflow:hidden;

  background:
    radial-gradient(
      circle at 50% 38%,
      #fff 0%,
      #fbfbfd 48%,
      #eff0f5 100%
    );

  color:var(--ink);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}


/* =====================================================
   PAGE
   ===================================================== */

.page{
  position:relative;
  width:100%;
  min-height:100vh;

  overflow:hidden;
  isolation:isolate;
}


/* =====================================================
   SOFT BACKGROUND GLOW
   ===================================================== */

.page::before,
.page::after{
  content:"";

  position:absolute;

  width:360px;
  height:360px;

  border-radius:50%;

  filter:blur(90px);

  opacity:.11;

  pointer-events:none;

  z-index:0;
}

.page::before{
  left:28%;
  top:8%;
  background:#b8b0ff;
}

.page::after{
  right:28%;
  bottom:7%;
  background:#a9e4ed;
}


/* =====================================================
   MOVING TYPOGRAPHY
   Chữ lớn mờ phía sau
   ===================================================== */

.marquee{
  position:absolute;

  inset:0;

  /*
    Nằm trên background nhưng dưới LED
  */
  z-index:3;

  display:flex;
  align-items:center;

  overflow:hidden;

  pointer-events:none;

  -webkit-mask-image:linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.06) 7%,
    rgba(0,0,0,.35) 14%,
    rgba(0,0,0,.80) 24%,
    #000 32%,
    #000 68%,
    rgba(0,0,0,.80) 76%,
    rgba(0,0,0,.35) 86%,
    rgba(0,0,0,.06) 93%,
    transparent 100%
  );

  mask-image:linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.06) 7%,
    rgba(0,0,0,.35) 14%,
    rgba(0,0,0,.80) 24%,
    #000 32%,
    #000 68%,
    rgba(0,0,0,.80) 76%,
    rgba(0,0,0,.35) 86%,
    rgba(0,0,0,.06) 93%,
    transparent 100%
  );
}

.marquee-track{
  width:max-content;

  display:flex;

  white-space:nowrap;

  will-change:transform;

  animation:marquee 38s linear infinite;

  font-size:clamp(105px,15vw,245px);

  line-height:.84;

  font-weight:950;

  letter-spacing:-.075em;

  color:#111318;

  /*
    Tăng nhẹ để chữ mờ hai bên nhìn rõ hơn
  */
  opacity:.095;
}

.marquee-track span{
  display:inline-block;
  padding-right:2vw;
}

@keyframes marquee{
  from{
    transform:translateX(0);
  }

  to{
    transform:translateX(-50%);
  }
}


/* =====================================================
   3D SCENE
   ===================================================== */

#scene{
  position:absolute;

  inset:0;

  z-index:2;

  pointer-events:none;
}

#scene canvas{
  display:block;

  width:100% !important;
  height:100% !important;
}


/* =====================================================
   DAY SCENE
   ===================================================== */

.day-scene{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  overflow:hidden;
  background:transparent;
}


/* =====================================================
   DAY GRID
   ===================================================== */

.day-grid{
  position:absolute;

  inset:0;

  opacity:.16;

  background:
    linear-gradient(
      rgba(117,104,255,.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(117,104,255,.045) 1px,
      transparent 1px
    );

  background-size:70px 70px;

  -webkit-mask-image:
    radial-gradient(
      circle at center,
      black 0%,
      transparent 68%
    );

  mask-image:
    radial-gradient(
      circle at center,
      black 0%,
      transparent 68%
    );
}


/* =====================================================
   DAY HAZE
   ===================================================== */

.day-haze{
  position:absolute;

  border-radius:999px;

  filter:blur(35px);

  opacity:.65;
}

.day-haze-a{
  width:38vw;
  height:38vw;

  left:50%;
  top:47%;

  transform:translate(-50%,-50%);

  background:
    radial-gradient(
      circle,
      rgba(130,122,255,.12),
      rgba(130,122,255,0) 70%
    );
}

.day-haze-b{
  width:28vw;
  height:28vw;

  left:50%;
  top:60%;

  transform:translate(-50%,-50%);

  background:
    radial-gradient(
      circle,
      rgba(110,198,255,.10),
      rgba(110,198,255,0) 70%
    );
}


/* =====================================================
   LED TUNNEL
   Các thanh LED riêng biệt
   ===================================================== */

.light-tunnel{
  position:absolute;

  top:22%;

  width:420px;
  height:56%;

  z-index:4;

  pointer-events:none;

  /*
    Không dùng repeating-gradient nữa.
    Mỗi bên dùng pseudo elements để tạo
    nhiều thanh LED có phối cảnh.
  */

  background:transparent;

  overflow:visible;

  filter:
    drop-shadow(0 0 4px rgba(255,255,255,1))
    drop-shadow(0 0 10px rgba(255,255,255,.95))
    drop-shadow(0 0 22px rgba(205,210,228,.50))
    drop-shadow(0 0 38px rgba(190,195,220,.24));

  opacity:.92;

  animation:ledGroupPulse 5s ease-in-out infinite;
}


/* =====================================================
   TẠO HÌNH CỤM LED
   ===================================================== */

.light-tunnel::before,
.light-tunnel::after{
  content:"";

  position:absolute;

  pointer-events:none;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0),
      rgba(255,255,255,.96) 9%,
      rgba(255,255,255,1) 50%,
      rgba(255,255,255,.96) 91%,
      rgba(255,255,255,0)
    );

  border-radius:999px;

  box-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,.92),
    0 0 18px rgba(215,220,235,.66);

  opacity:.88;
}


/* =====================================================
   LEFT LED
   ===================================================== */

.light-tunnel-left{
  left:-105px;

  transform:
    perspective(1000px)
    rotateY(18deg)
    rotateZ(-10deg);
}


/* Các thanh phụ bên trái */

.light-tunnel-left::before{
  width:5px;
  height:100%;

  left:52px;
  top:0;

  transform:
    rotate(-9deg);

  box-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,.94),
    0 0 20px rgba(215,220,235,.75),
    0 0 34px rgba(200,205,225,.30);
}

.light-tunnel-left::after{
  width:5px;
  height:78%;

  left:142px;
  top:11%;

  transform:
    rotate(-6deg);

  box-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,.94),
    0 0 18px rgba(215,220,235,.70),
    0 0 30px rgba(200,205,225,.28);
}


/* =====================================================
   RIGHT LED
   ===================================================== */

.light-tunnel-right{
  right:-105px;

  transform:
    perspective(1000px)
    rotateY(-18deg)
    rotateZ(10deg);

  animation-delay:-2.5s;
}

.light-tunnel-right::before{
  width:5px;
  height:100%;

  right:52px;
  top:0;

  transform:
    rotate(9deg);

  box-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,.94),
    0 0 20px rgba(215,220,235,.75),
    0 0 34px rgba(200,205,225,.30);
}

.light-tunnel-right::after{
  width:5px;
  height:78%;

  right:142px;
  top:11%;

  transform:
    rotate(6deg);

  box-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,.94),
    0 0 18px rgba(215,220,235,.70),
    0 0 30px rgba(200,205,225,.28);
}


/* =====================================================
   EXTRA LED LAYERS
   dùng box-shadow để tạo thêm thanh
   ===================================================== */

.light-tunnel-left{
  box-shadow:
    108px 8px 0 -1px rgba(255,255,255,.90),
    196px 28px 0 -1px rgba(255,255,255,.84),
    270px 55px 0 -1px rgba(255,255,255,.76),
    328px 88px 0 -1px rgba(255,255,255,.68);
}

.light-tunnel-right{
  box-shadow:
    -108px 8px 0 -1px rgba(255,255,255,.90),
    -196px 28px 0 -1px rgba(255,255,255,.84),
    -270px 55px 0 -1px rgba(255,255,255,.76),
    -328px 88px 0 -1px rgba(255,255,255,.68);
}


/* =====================================================
   LED PULSE
   ===================================================== */

@keyframes ledGroupPulse{

  0%,100%{
    opacity:.78;

    filter:
      drop-shadow(0 0 4px rgba(255,255,255,.95))
      drop-shadow(0 0 9px rgba(255,255,255,.82))
      drop-shadow(0 0 18px rgba(205,210,228,.42))
      drop-shadow(0 0 32px rgba(190,195,220,.18));
  }

  50%{
    opacity:1;

    filter:
      drop-shadow(0 0 5px rgba(255,255,255,1))
      drop-shadow(0 0 12px rgba(255,255,255,.98))
      drop-shadow(0 0 23px rgba(205,210,228,.62))
      drop-shadow(0 0 40px rgba(190,195,220,.28));
  }
}


/* =====================================================
   NIGHT
   ===================================================== */

.night-scene{
  position:absolute;

  inset:0;

  z-index:0;

  opacity:0;

  visibility:hidden;

  transition:
    opacity .8s ease,
    visibility .8s ease;

  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(64,67,129,.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(77,57,185,.16),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      #030711 0%,
      #070a16 47%,
      #050813 100%
    );
}


/* =====================================================
   STARS
   ===================================================== */

.stars{
  position:absolute;

  inset:0;

  background-image:
    radial-gradient(
      circle,
      rgba(255,255,255,.8) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle,
      rgba(174,165,255,.55) 0 1px,
      transparent 1.5px
    );

  background-size:
    170px 170px,
    230px 230px;

  background-position:
    0 0,
    80px 45px;

  opacity:.42;

  animation:starFloat 18s linear infinite;
}

.stars::before{
  content:"";

  position:absolute;

  inset:0;

  background-image:
    radial-gradient(
      circle,
      rgba(255,255,255,.55) 0 1px,
      transparent 1.3px
    );

  background-size:310px 310px;

  background-position:30px 110px;

  opacity:.55;
}


/* =====================================================
   NIGHT GLOW
   ===================================================== */

.night-glow{
  position:absolute;

  left:50%;
  bottom:20%;

  width:70vw;
  height:28vw;

  transform:translateX(-50%);

  background:
    radial-gradient(
      ellipse at center,
      rgba(118,102,255,.20) 0%,
      rgba(118,102,255,.09) 34%,
      transparent 72%
    );

  filter:blur(18px);
}


/* =====================================================
   PLANET
   ===================================================== */

.planet{
  position:absolute;

  left:50%;
  bottom:-35%;

  width:min(1200px,110vw);

  aspect-ratio:2.65/1;

  transform:translateX(-50%);

  border-radius:50% 50% 0 0;

  overflow:hidden;

  box-shadow:
    0 -28px 80px rgba(89,82,255,.16),
    0 -5px 30px rgba(122,112,255,.20);
}

.planet-surface{
  position:absolute;

  inset:0;

  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(86,104,146,.22) 0 1.5%,
      transparent 2%
    ),
    radial-gradient(
      circle at 38% 40%,
      rgba(116,124,157,.16) 0 2%,
      transparent 2.5%
    ),
    radial-gradient(
      circle at 64% 35%,
      rgba(57,75,120,.25) 0 2%,
      transparent 2.5%
    ),
    radial-gradient(
      circle at 78% 55%,
      rgba(121,126,152,.14) 0 1.5%,
      transparent 2.1%
    ),
    radial-gradient(
      ellipse at 50% 20%,
      #1b2c4d 0%,
      #0b1223 44%,
      #02040b 100%
    );
}

.planet-surface::after{
  content:"";

  position:absolute;

  inset:18% 0 0;

  background:
    repeating-radial-gradient(
      ellipse at 50% 110%,
      rgba(135,109,255,.05) 0 2px,
      transparent 2px 12px
    );

  opacity:.65;
}

.planet-atmosphere{
  position:absolute;

  z-index:2;

  left:-4%;
  right:-4%;

  top:-3%;

  height:18%;

  border-radius:50%;

  border-top:
    3px solid rgba(124,116,255,.95);

  box-shadow:
    0 -7px 22px rgba(114,101,255,.74),
    0 -16px 52px rgba(87,76,255,.32);
}

@keyframes starFloat{
  to{
    background-position:
      35px 45px,
      50px 0;
  }
}


/* =====================================================
   CENTER CONTENT
   ===================================================== */

.hero{
  position:relative;

  z-index:5;

  min-height:100vh;

  display:grid;

  place-items:center;

  padding:50px 24px 72px;

  pointer-events:none;
}

.hero-inner{
  width:min(900px,100%);

  text-align:center;
}

.eyebrow{
  display:inline-block;

  padding:9px 13px;

  border-radius:999px;

  background:#efedff;

  color:var(--violet);

  font-size:10px;

  font-weight:900;

  letter-spacing:.25em;

  text-transform:uppercase;

  opacity:0;

  transform:translateY(12px);

  animation:
    fadeUp .7s .1s ease forwards;
}

h1{
  margin:20px 0 0;

  font-size:clamp(62px,10.5vw,142px);

  line-height:.82;

  letter-spacing:-.075em;

  font-weight:950;

  opacity:0;

  transform:
    translateY(18px)
    scale(.985);

  animation:
    heroIn
    .9s
    .18s
    cubic-bezier(.2,.75,.2,1)
    forwards;
}

.rule{
  width:150px;

  height:1px;

  margin:27px auto 18px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(119,104,243,.6),
      transparent
    );

  opacity:0;

  animation:
    fadeIn .7s .4s ease forwards;
}

p{
  margin:0;

  color:#242730;

  font-size:clamp(17px,2.05vw,25px);

  font-weight:850;

  opacity:0;

  transform:translateY(12px);

  animation:
    fadeUp .7s .48s ease forwards;
}

small{
  display:block;

  margin-top:9px;

  color:var(--muted);

  font-size:11px;

  font-weight:650;

  letter-spacing:.14em;

  text-transform:uppercase;

  opacity:0;

  transform:translateY(10px);

  animation:
    fadeUp .7s .6s ease forwards;
}

footer{
  position:absolute;

  left:0;
  right:0;

  bottom:16px;

  z-index:7;

  text-align:center;

  color:#abb0ba;

  font-size:9px;

  letter-spacing:.24em;

  text-transform:uppercase;
}


/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeIn{
  to{
    opacity:1;
  }
}

@keyframes heroIn{
  to{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media(max-width:900px){

  .marquee-track{
    font-size:120px;
  }

  .light-tunnel{
    width:340px;
  }
}


@media(max-width:620px){

  body{
    overflow:hidden;
  }

  .marquee-track{
    font-size:72px;
  }

  .hero{
    padding-inline:18px;
  }

  h1{
    font-size:clamp(52px,15vw,94px);
  }

  p{
    font-size:17px;
  }

  small{
    font-size:9px;
  }

  .light-tunnel{
    top:27%;
    width:240px;
    height:48%;
  }

  .light-tunnel-left{
    left:-100px;
  }

  .light-tunnel-right{
    right:-100px;
  }

  footer{
    display:none !important;
  }
}


/* =====================================================
   RED WORD
   ===================================================== */

.sting{
  color:#e53935;
  font-weight:950;
}


/* =====================================================
   SECRET DOWNLOAD
   ===================================================== */

.secret-download{
  position:fixed;

  right:24px;
  bottom:22px;

  z-index:20;

  width:76px;
  height:38px;

  display:flex;

  align-items:center;
  justify-content:center;

  border:
    1px solid rgba(255,255,255,.55);

  border-radius:999px;

  background:
    rgba(255,255,255,.18);

  color:
    rgba(255,255,255,.24);

  box-shadow:
    0 8px 24px rgba(16,17,22,.02);

  font-size:18px;

  font-weight:800;

  line-height:1;

  text-decoration:none;

  opacity:.18;

  cursor:pointer;

  transition:
    opacity .22s ease,
    color .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;

  pointer-events:auto;

  -webkit-tap-highlight-color:transparent;
}

.secret-download:hover,
.secret-download:focus-visible{
  opacity:.95;

  color:#6f747f;

  background:
    rgba(255,255,255,.96);

  border-color:#dedfe5;

  box-shadow:
    0 10px 28px rgba(16,17,22,.08);

  transform:translateY(-1px);

  outline:none;
}

.secret-download:active{
  transform:translateY(0);
}


/* =====================================================
   SECRET ACTIONS
   ===================================================== */

.secret-actions{
  position:fixed;

  left:24px;
  right:24px;
  bottom:22px;

  z-index:20;

  display:flex;

  align-items:center;

  justify-content:space-between;

  pointer-events:none;
}

.secret-actions .secret-download{
  position:relative;

  right:auto;
  bottom:auto;

  pointer-events:auto;
}

.secret-obs{
  font-size:17px;
}


/* =====================================================
   SECRET ACTIONS MOBILE
   ===================================================== */

@media(max-width:620px){

  .secret-download{
    right:14px;
    bottom:14px;

    width:62px;
    height:34px;

    font-size:16px;

    opacity:.15;
  }

  .secret-actions{
    right:14px;

    bottom:14px;

    gap:6px;
  }

  .secret-actions .secret-download{
    width:62px;
    height:34px;
  }

  .secret-obs{
    font-size:16px;
  }
}


/* =====================================================
   MOBILE — HIDE QUICK ACTIONS
   ===================================================== */

@media(max-width:700px){

  .secret-actions{
    display:none !important;
  }

  footer{
    display:none !important;
  }
}


/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media(prefers-reduced-motion:reduce){

  .marquee-track,
  #scene canvas,
  .eyebrow,
  h1,
  .rule,
  p,
  small,
  .light-tunnel{
    animation:none !important;
  }

  .eyebrow,
  h1,
  .rule,
  p,
  small{
    opacity:1 !important;
    transform:none !important;
  }
}