
/* ==========================================================================
   ATLAS HOME V6.1 — INTRO CINÉMATIQUE & OUTILS
   ========================================================================== */

html.atlas-intro-lock,
body.atlas-intro-lock{
  overflow:hidden!important;
  overscroll-behavior:none;
}

.atlas-intro{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
  background:#030304;
  color:#f4f1ec;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .8s cubic-bezier(.16,1,.3,1),visibility .8s;
}

.atlas-intro.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.atlas-intro.is-leaving{
  opacity:0;
  pointer-events:none;
}

.atlas-intro-video{
  position:absolute;
  inset:-4%;
  width:108%;
  height:108%;
  object-fit:cover;
  filter:brightness(.22) saturate(.75) contrast(1.2);
  transform:scale(1.05);
  animation:introVideoBreath 8s ease-in-out infinite alternate;
}

@keyframes introVideoBreath{
  to{transform:scale(1.12)}
}

.atlas-intro-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(3,3,4,.97),rgba(3,3,4,.47) 55%,rgba(3,3,4,.82)),
    radial-gradient(circle at 66% 46%,rgba(227,6,19,.26),transparent 28%),
    linear-gradient(to bottom,rgba(0,0,0,.25),transparent 30%,rgba(0,0,0,.7));
}

.atlas-intro-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.05) 48%,transparent 62%);
  transform:translateX(-120%);
  animation:introScan 3.4s cubic-bezier(.16,1,.3,1) infinite;
}

@keyframes introScan{
  0%,20%{transform:translateX(-130%)}
  70%,100%{transform:translateX(130%)}
}

.atlas-intro-grid{
  position:absolute;
  inset:52% -25% -45%;
  opacity:.16;
  transform:perspective(700px) rotateX(70deg);
  transform-origin:center top;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(transparent,#000 17%,transparent 92%);
}

.atlas-intro-sphere{
  position:absolute;
  right:7vw;
  top:50%;
  width:min(43vw,650px);
  aspect-ratio:1;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
}

.atlas-intro-sphere::before{
  content:"";
  position:absolute;
  inset:19%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(227,6,19,.22),rgba(227,6,19,.04) 35%,transparent 66%);
  filter:blur(4px);
  animation:introCorePulse 2.2s ease-in-out infinite;
}

@keyframes introCorePulse{
  50%{transform:scale(1.13);opacity:.62}
}

.atlas-intro-sphere i{
  position:absolute;
  inset:0;
  border:1px solid rgba(227,6,19,.22);
  border-radius:50%;
  box-shadow:0 0 70px rgba(227,6,19,.06),inset 0 0 70px rgba(227,6,19,.035);
  animation:introSphereSpin 18s linear infinite;
}

.atlas-intro-sphere i:nth-child(2){
  inset:10%;
  border-color:rgba(255,255,255,.12);
  transform:rotateX(68deg);
  animation-duration:12s;
  animation-direction:reverse;
}

.atlas-intro-sphere i:nth-child(3){
  inset:22%;
  border-color:rgba(227,6,19,.38);
  animation-duration:8s;
}

.atlas-intro-sphere i:nth-child(4){
  inset:35%;
  border-style:dashed;
  border-color:rgba(255,255,255,.22);
  animation-duration:5s;
  animation-direction:reverse;
}

@keyframes introSphereSpin{
  to{rotate:360deg}
}

.atlas-intro-core{
  position:relative;
  z-index:2;
  width:94px;
  height:94px;
  display:grid;
  place-items:center;
  border:1px solid rgba(227,6,19,.48);
  border-radius:50%;
  background:rgba(5,5,6,.55);
  box-shadow:0 0 45px rgba(227,6,19,.25),inset 0 0 25px rgba(227,6,19,.09);
  backdrop-filter:blur(12px);
  font:700 34px/1 "Space Grotesk",sans-serif;
  color:#fff;
}

.atlas-intro-topline,
.atlas-intro-bottom{
  position:absolute;
  left:4vw;
  right:4vw;
  z-index:3;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:rgba(255,255,255,.46);
  font:500 9px/1 "JetBrains Mono",monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.atlas-intro-topline{top:28px}
.atlas-intro-bottom{bottom:25px}

.atlas-intro-content{
  position:relative;
  z-index:4;
  width:min(720px,54vw);
  margin-left:8vw;
}

.atlas-intro-kicker{
  margin-bottom:19px;
  color:#e30613;
  font:600 10px/1 "JetBrains Mono",monospace;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.atlas-intro-content h1{
  margin:0;
  font:700 clamp(58px,9vw,145px)/.82 "Space Grotesk",sans-serif;
  letter-spacing:-.065em;
}

.atlas-intro-content h1 span,
.atlas-intro-content h1 em{display:block}

.atlas-intro-content h1 em{
  font-style:normal;
  color:transparent;
  -webkit-text-stroke:1px #e30613;
  filter:drop-shadow(0 0 24px rgba(227,6,19,.28));
}

.atlas-intro-content p{
  min-height:25px;
  margin:25px 0 16px;
  color:rgba(255,255,255,.68);
  font:500 12px/1.6 "JetBrains Mono",monospace;
  letter-spacing:.05em;
}

.atlas-intro-progress{
  width:min(560px,100%);
  height:3px;
  overflow:hidden;
  background:rgba(255,255,255,.11);
}

.atlas-intro-progress span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#e30613,#ff5260);
  box-shadow:0 0 18px rgba(227,6,19,.7);
  transition:width .3s ease;
}

.atlas-intro-percent{
  margin-top:10px;
  color:rgba(255,255,255,.45);
  font:500 9px/1 "JetBrains Mono",monospace;
  letter-spacing:.1em;
}

.atlas-intro-actions{
  position:absolute;
  right:4vw;
  bottom:55px;
  z-index:5;
  display:flex;
  gap:8px;
}

.atlas-intro-action{
  min-height:41px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(5,5,6,.42);
  color:rgba(255,255,255,.68);
  backdrop-filter:blur(15px);
  font:600 10px/1 Inter,sans-serif;
  cursor:pointer;
  transition:.3s;
}

.atlas-intro-action:hover{
  border-color:rgba(227,6,19,.58);
  color:#fff;
  background:rgba(227,6,19,.12);
}

.atlas-intro-skip{
  color:#fff;
  border-color:rgba(227,6,19,.35);
}

/* Tools home */
.atlas-tools-home{
  position:relative;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 8% 20%,rgba(227,6,19,.12),transparent 28%),
    rgba(255,255,255,.012);
}

.atlas-tools-home::before{
  content:"";
  position:absolute;
  width:38vw;
  height:38vw;
  right:-11vw;
  bottom:-22vw;
  border:1px solid rgba(227,6,19,.13);
  border-radius:50%;
}

.atlas-tools-home-grid{
  display:grid;
  grid-template-columns:1.25fr .9fr .9fr;
  gap:18px;
}

.atlas-tool-home-card{
  position:relative;
  min-height:390px;
  padding:27px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:23px;
  background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  color:#f4f1ec;
  text-decoration:none;
  box-shadow:0 25px 70px rgba(0,0,0,.28);
  transition:transform .5s cubic-bezier(.16,1,.3,1),border-color .4s,box-shadow .5s;
}

.atlas-tool-home-card:hover{
  transform:translateY(-8px);
  border-color:rgba(227,6,19,.45);
  box-shadow:0 34px 85px rgba(0,0,0,.42),0 0 38px rgba(227,6,19,.07);
}

.atlas-tool-home-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 31%,rgba(255,255,255,.065),transparent 69%);
  transform:translateX(-120%);
  transition:transform .9s cubic-bezier(.16,1,.3,1);
}

.atlas-tool-home-card:hover::before{transform:translateX(120%)}

.atlas-tool-home-featured{
  background:
    radial-gradient(circle at 72% 28%,rgba(227,6,19,.2),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.012));
}

.atlas-tool-home-index{
  position:absolute;
  top:20px;
  left:22px;
  color:rgba(255,255,255,.36);
  font:500 9px/1 "JetBrains Mono",monospace;
}

.atlas-tool-home-copy{
  position:relative;
  z-index:2;
}

.atlas-tool-home-copy>span{
  color:#e30613;
  font:600 9px/1 "JetBrains Mono",monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.atlas-tool-home-copy h3{
  margin:9px 0 12px;
  font:700 clamp(25px,3vw,39px)/1 "Space Grotesk",sans-serif;
}

.atlas-tool-home-copy p{
  max-width:530px;
  margin:0 0 22px;
  color:rgba(255,255,255,.53);
  line-height:1.65;
  font-size:13px;
}

.atlas-tool-home-copy strong{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
}

.atlas-tool-home-copy strong::after{
  content:"→";
  color:#e30613;
  transition:transform .3s;
}

.atlas-tool-home-card:hover strong::after{transform:translateX(4px)}

.atlas-tool-home-icon{
  position:absolute;
  right:35px;
  top:55px;
  width:150px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  opacity:.7;
}

.atlas-tool-home-icon span{
  width:7px;
  border-radius:999px;
  background:linear-gradient(to top,rgba(227,6,19,.12),#e30613,#fff);
  box-shadow:0 0 12px rgba(227,6,19,.4);
  animation:toolWave 1.8s ease-in-out infinite;
}
.atlas-tool-home-icon span:nth-child(1){height:30px}
.atlas-tool-home-icon span:nth-child(2){height:75px;animation-delay:-.2s}
.atlas-tool-home-icon span:nth-child(3){height:110px;animation-delay:-.4s}
.atlas-tool-home-icon span:nth-child(4){height:62px;animation-delay:-.6s}
.atlas-tool-home-icon span:nth-child(5){height:38px;animation-delay:-.8s}
@keyframes toolWave{50%{transform:scaleY(.4);opacity:.35}}

.atlas-tool-home-upload{
  position:absolute;
  right:28px;
  top:30px;
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border:1px solid rgba(227,6,19,.34);
  border-radius:28px;
  background:rgba(227,6,19,.08);
  color:#e30613;
  font:300 39px/1 "Space Grotesk",sans-serif;
  box-shadow:0 0 35px rgba(227,6,19,.09);
}

.atlas-tool-home-orbit{
  position:absolute;
  width:150px;
  height:150px;
  right:-20px;
  top:-15px;
}

.atlas-tool-home-orbit i{
  position:absolute;
  inset:0;
  border:1px solid rgba(227,6,19,.2);
  border-radius:50%;
  animation:introSphereSpin 14s linear infinite;
}
.atlas-tool-home-orbit i:nth-child(2){
  inset:27%;
  border-color:rgba(255,255,255,.13);
  animation-direction:reverse;
  animation-duration:8s;
}

@media(max-width:980px){
  .atlas-intro-content{width:min(680px,78vw);margin-left:7vw}
  .atlas-intro-sphere{right:-16vw;width:66vw;opacity:.65}
  .atlas-tools-home-grid{grid-template-columns:1fr 1fr}
  .atlas-tool-home-featured{grid-column:1/-1}
}

@media(max-width:680px){
  .atlas-intro-video{
    filter:brightness(.18) saturate(.7) contrast(1.18);
  }

  .atlas-intro-sphere{
    width:95vw;
    right:-48vw;
    top:37%;
    opacity:.46;
  }

  .atlas-intro-core{
    width:68px;
    height:68px;
    font-size:25px;
  }

  .atlas-intro-content{
    width:calc(100% - 34px);
    margin:0 17px;
    padding-top:35px;
  }

  .atlas-intro-content h1{
    font-size:clamp(55px,20vw,86px);
  }

  .atlas-intro-content p{
    max-width:85%;
    font-size:10px;
  }

  .atlas-intro-topline,
  .atlas-intro-bottom{
    left:17px;
    right:17px;
    font-size:7px;
  }

  .atlas-intro-actions{
    left:17px;
    right:17px;
    bottom:52px;
    justify-content:space-between;
  }

  .atlas-intro-action{
    min-height:39px;
    padding-inline:13px;
    font-size:9px;
  }

  .atlas-tools-home-grid{
    display:flex;
    gap:14px;
    overflow-x:auto;
    margin-inline:calc((100vw - 92vw) / -2);
    padding:4px 4vw 18px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }

  .atlas-tools-home-grid::-webkit-scrollbar{display:none}

  .atlas-tool-home-card,
  .atlas-tool-home-featured{
    flex:0 0 min(84vw,350px);
    min-height:385px;
    scroll-snap-align:center;
  }
}

@media(prefers-reduced-motion:reduce){
  .atlas-intro-video,
  .atlas-intro-overlay::before,
  .atlas-intro-sphere i,
  .atlas-intro-sphere::before,
  .atlas-tool-home-icon span,
  .atlas-tool-home-orbit i{
    animation:none!important;
  }
}
