/* Allpha Bolas · Linha Profissional Pró-X · Hero */

:root {
  --ink: #07040d;
  --ink-2: #0e0820;
  --roxo: #874bdd;          /* roxo da Linha Profissional (o mesmo da LP atual) */
  --roxo-luz: #a77bff;      /* roxo claro para destaque sobre fundo escuro */
  --roxo-escuro: #3a0c68;
  --roxo-ink: #12081f;
  --white: #f5f2fb;
  --mute: #a69dba;
  --line: rgba(245, 242, 251, 0.14);

  --pad: clamp(20px, 3.9vw, 56px);
  --ball: min(46vh, 34vw);
  --ball-y: 41%;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__inner { width: min(320px, 70vw); }
.loader__logo { width: 100%; height: auto; opacity: .95; }
.loader__bar { margin-top: 28px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--roxo-luz); transform: scaleX(0); transform-origin: left; }
.loader__meta {
  margin-top: 14px; display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.loader__count { color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 26px var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo img { width: 118px; height: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; margin-right: 8px; }
.nav__links a {
  position: relative; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245, 242, 251, .72); transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--roxo-luz); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border: 1px solid rgba(245, 242, 251, .28); border-radius: 999px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(7, 4, 13, .25);
  transition: background .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.nav__menu { display: none; width: 40px; height: 40px; position: relative; }
.nav__menu i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); }
.nav__menu i:first-child { top: 16px; }
.nav__menu i:last-child { top: 23px; right: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden; isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__arena {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  filter: saturate(.85) brightness(.9);
  transform-origin: 50% 40%;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 40%, rgba(7, 4, 13, .55) 78%, rgba(7, 4, 13, .9) 100%),
    linear-gradient(180deg, rgba(7, 4, 13, .55) 0%, transparent 18%, transparent 62%, rgba(7, 4, 13, .75) 100%);
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }

/* Palavra gigante */
.hero__word {
  position: absolute; left: 0; right: 0; top: 13%;
  z-index: 1; display: flex; justify-content: center; pointer-events: none;
}
.hero__word-inner {
  display: flex; line-height: .8;
  font-size: var(--word-fs, 18vw);
  font-weight: 900; font-style: italic;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero__word span {
  display: inline-block;
  background: linear-gradient(180deg, rgba(236, 228, 255, .42) 0%, rgba(176, 140, 255, .16) 48%, rgba(120, 70, 220, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .02em;
  will-change: transform;
}

/* Bola */
.ball-wrap {
  position: absolute; left: 50%; top: var(--ball-y);
  width: var(--ball); height: var(--ball);
  margin: calc(var(--ball) / -2) 0 0 calc(var(--ball) / -2);
  z-index: 3; will-change: transform;
}
.ball-par, .ball-float { position: absolute; inset: 0; will-change: transform; }
.ball {
  position: absolute; inset: 0; border-radius: 50%;
  transform-origin: 50% 100%;
}
.ball__halo {
  position: absolute; inset: -38%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(167, 123, 255, .26), rgba(90, 40, 170, .14) 55%, transparent 75%);
  filter: blur(10px);
}
.ball__spin { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.ball__img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.ball__img.b1, .ball__img.b2 { opacity: 0; }
/* Luz fixa da cena (não gira com a bola) */
.ball__shade {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: multiply; pointer-events: none;
  background:
    radial-gradient(circle at var(--lx, 42%) var(--ly, 26%), transparent 34%, rgba(26, 14, 58, .18) 64%, rgba(10, 4, 26, .7) 100%),
    linear-gradient(180deg, transparent 38%, rgba(14, 6, 32, .55) 100%);
}
.ball__spec {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(42% 30% at var(--lx, 42%) calc(var(--ly, 26%) - 6%), rgba(238, 232, 255, .38), transparent 70%),
    radial-gradient(70% 22% at 50% 2%, rgba(214, 196, 255, .35), transparent 70%);
}
.ball__rim {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow:
    inset 0 calc(var(--ball) * .045) calc(var(--ball) * .05) calc(var(--ball) * -.035) rgba(222, 208, 255, .75),
    inset 0 calc(var(--ball) * -.09) calc(var(--ball) * .12) calc(var(--ball) * -.04) rgba(0, 4, 14, .7),
    0 0 0 1px rgba(255, 255, 255, .03);
}
.ball-shadow {
  position: absolute; left: 12%; right: 12%; top: 112%; height: 13%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 55%, transparent 100%);
  filter: blur(6px);
  transform-origin: 50% 50%;
}
.ball-ring {
  position: absolute; left: 50%; top: 118%; width: 60%; height: 12%;
  margin-left: -30%; border-radius: 50%;
  border: 1.5px solid rgba(167, 123, 255, .9);
  box-shadow: 0 0 24px rgba(167, 123, 255, .45);
  opacity: 0; transform: scale(.2);
}

/* Destaques */
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; display: flex; align-items: center; opacity: 0; }
.callout__dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--roxo-luz); box-shadow: 0 0 0 4px rgba(167, 123, 255, .2), 0 0 18px rgba(167, 123, 255, .6);
}
.callout__line { position: absolute; top: 0; height: 1px; background: linear-gradient(90deg, rgba(245,242,251,.7), rgba(245,242,251,.25)); transform-origin: left; }
.callout__label { position: absolute; top: -18px; white-space: nowrap; }
.callout__label b { display: block; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.callout__label small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.callout--pu { left: 50%; top: 9%; }
.callout--pu .callout__line { left: 10px; width: calc(var(--ball) * .62); }
.callout--pu .callout__label { left: calc(var(--ball) * .62 + 22px); }
/* 02/12/2026: a chamada "Linha Pró-X" foi para a direita da bola; à esquerda ela batia no texto novo da hero */
.callout--prox { left: 60%; top: 82%; }
.callout--prox .callout__line { left: 10px; width: calc(var(--ball) * .56); }
.callout--prox .callout__label { left: calc(var(--ball) * .56 + 22px); }
.callout--eco { left: 67%; top: 57%; }
.callout--eco .callout__line { left: 10px; width: calc(var(--ball) * .49); }
.callout--eco .callout__label { left: calc(var(--ball) * .49 + 22px); }

/* Texto */
.hero__copy {
  position: absolute; left: var(--pad); bottom: calc(var(--pad) + 46px); z-index: 4;
  width: min(560px, 40vw);
}
.eyebrow {
  margin: 0 0 18px; display: flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 242, 251, .8);
}
.eyebrow__mark { width: 8px; height: 8px; margin-right: 12px; background: var(--roxo-luz); transform: skewX(-12deg); flex: none; }
.eyebrow--long { max-width: 440px; align-items: flex-start; line-height: 1.55; letter-spacing: .15em; }
.eyebrow--long .eyebrow__mark { margin-top: .42em; }
.title {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 100px);
  line-height: .86; font-weight: 900; font-style: italic;
  font-variation-settings: "wdth" 82;
  letter-spacing: -.02em; text-transform: uppercase;
}
.line { display: block; overflow: hidden; padding: .04em .06em .02em 0; margin-bottom: -.04em; }
.line > span { display: block; will-change: transform; }
.title em, .film__title em { font-style: italic; color: var(--roxo-luz); }
.lede {
  margin: 22px 0 0; max-width: 430px;
  font-size: clamp(15px, 1.12vw, 17px); line-height: 1.55; color: #c3bad6;
  font-variation-settings: "wdth" 100;
}
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease); }
.btn--primary { background: var(--roxo); color: #fff; box-shadow: 0 10px 40px -10px rgba(135, 75, 221, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { color: var(--roxo-escuro); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { padding: 0 22px 0 8px; border: 1px solid rgba(245, 242, 251, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(7, 4, 13, .2); }
.btn--ghost:hover { border-color: rgba(245, 242, 251, .6); }
.btn__play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); }
.btn__play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.btn--ghost:hover .btn__play svg { transform: scale(1.15); }

/* Embaixador */
.ambassador {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) + 46px); z-index: 4;
  display: flex; align-items: center; gap: 14px; max-width: 300px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(7, 4, 13, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s;
}
.ambassador:hover { border-color: rgba(245, 242, 251, .4); }
.ambassador img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.ambassador strong { display: block; font-size: 14px; font-weight: 700; }
.ambassador small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--mute); }

/* Rolagem */
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--pad) + 52px); z-index: 4; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--white), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Faixa de provas */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 46px;
  border-top: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(7,4,13,0), rgba(7,4,13,.5));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; flex: none; animation: tick 46s linear infinite; }
.ticker span {
  flex: none; padding: 0 28px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 242, 251, .58);
  display: inline-flex; align-items: center; gap: 28px;
}
.ticker span::after { content: ""; width: 5px; height: 5px; background: var(--roxo-luz); transform: skewX(-12deg); opacity: .8; margin-left: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Filme */
.film {
  position: absolute; inset: 0; z-index: 6;
  clip-path: circle(var(--r, 0px) at 50% var(--cy, 50%));
  visibility: hidden;
}
.film-ring {
  position: absolute; z-index: 7; left: 50%; top: var(--cy, 50%);
  width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(167, 123, 255, .85);
  box-shadow: 0 0 40px rgba(167, 123, 255, .35), inset 0 0 40px rgba(167, 123, 255, .2);
  opacity: 0;
}
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,13,.35) 0%, transparent 30%, transparent 50%, rgba(7,4,13,.82) 100%),
    radial-gradient(100% 70% at 50% 50%, transparent 50%, rgba(7,4,13,.5) 100%);
}
.film__copy { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 10px); }
.film__title {
  margin: 0; font-size: clamp(46px, 8.4vw, 150px); line-height: .86;
  font-weight: 900; font-style: italic; font-variation-settings: "wdth" 82;
  letter-spacing: -.02em; text-transform: uppercase;
}

/* Grão de filme sobre tudo (mesmo grão na bola e no fundo) */
.grain {
  position: fixed; inset: -100%; z-index: 60; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.25'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}


/* Estado inicial (JS revela) */
.js .hero__word span { transform: translateY(105%); }
.js .title .line > span, .js .film__title .line > span { transform: translateY(105%); }
.js .hero__copy .eyebrow, .js .hero .lede, .js .hero .ctas, .js .ambassador, .js .scroll-cue, .js .ticker, .js .nav, .js .film .eyebrow { opacity: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .callouts { display: none; }
  .ambassador { display: none; }
}

/* ---------- Celular / retrato ---------- */
@media (max-aspect-ratio: 4/5), (max-width: 767px) {
  :root { --ball: min(70vw, 38vh); --ball-y: 35%; }
  .hide-sm { display: none; }
  .hero__vignette {
    background:
      radial-gradient(120% 70% at 50% 30%, transparent 40%, rgba(7, 4, 13, .55) 80%, rgba(7, 4, 13, .9) 100%),
      linear-gradient(180deg, rgba(7, 4, 13, .5) 0%, transparent 16%, transparent 44%, rgba(7, 4, 13, .82) 66%, rgba(7, 4, 13, .96) 100%);
  }
  .nav { padding: 18px var(--pad); }
  .nav__logo img { width: 100px; }
  .nav__cta { display: none; }
  .nav__menu { display: block; margin-left: auto; }
  .hero__word { top: 8.5%; }
  .hero__copy { left: var(--pad); right: var(--pad); width: auto; bottom: calc(var(--pad) + 34px); }
  .eyebrow { font-size: 10.5px; letter-spacing: .16em; margin-bottom: 14px; }
  .title { font-size: clamp(40px, 12.4vw, 72px); font-variation-settings: "wdth" 74; }
  .lede { font-size: 15px; margin-top: 14px; }
  .ctas { margin-top: 20px; gap: 10px; }
  .btn { height: 52px; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .ctas .btn--ghost { flex: 0 0 auto; padding-right: 18px; }
  .scroll-cue { display: none; }
  .ticker { height: 34px; }
  .ticker span { font-size: 10px; padding: 0 18px; }
  .ticker span::after { margin-left: 18px; }
  .film__copy { bottom: calc(var(--pad) + 30px); }
  .film__title { font-size: 11.4vw; font-variation-settings: "wdth" 66; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .lede { display: none; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .grain, .ticker__track, .scroll-cue i { animation: none; }
}
