/* ================================================================
   MODUNEXO / INTRO — PERSONALIZAÇÃO DE CORES
   Paleta extraída visualmente das duas referências enviadas.
   Caso a marca possua um manual com HEX oficiais, ajuste aqui.
   ================================================================ */
:root {
  --background: #0d1423;
  --surface: #13213a;
  --surface-raised: #1b2b4c;
  --foreground: #f8faff;
  --muted: #9caac2;
  --accent: #2b7efd;
  --accent-strong: #226cf4;
  --line: rgba(235, 240, 250, 0.13);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--background); color: var(--foreground); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #0b0d10; background: var(--accent); }

/* A abertura ocupa a tela e é removida após a transição. */
.intro { display: none; position: fixed; inset: 0; z-index: 100; overflow: hidden; isolation: isolate; background: #0d1423; color: #fff; transform: translate3d(0, 0, 0); transition: transform 760ms var(--ease-reveal); }
.is-intro-playing .intro { display: block; }
.is-intro-playing:not(.intro-exiting) { overflow: hidden; }
.is-intro-playing.intro-exiting .intro { transform: translate3d(0, -105%, 0); }
.intro__gallery { position: absolute; inset: -20% -17%; z-index: -4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: clamp(8px, 1.1vw, 18px); transform: perspective(1500px) rotateX(11deg) rotateY(-12deg) rotateZ(-8deg) scale(1.18); filter: grayscale(1) brightness(0.7); animation: gallerySettle 1800ms var(--ease-out) both; }
.gallery-card { position: relative; min-height: 0; overflow: hidden; padding: 18px; border: 1px solid #59606c; background: #222832; box-shadow: inset 0 0 60px rgba(0, 0, 0, .34); }
.gallery-card:nth-child(2n) { background: #5a606a; }
.gallery-card:nth-child(3n) { background: #131920; }
.gallery-card__index, .gallery-card__footer { position: absolute; left: 19px; z-index: 2; color: #e8edf4; font-size: clamp(6px, .65vw, 11px); font-weight: 700; letter-spacing: .12em; }
.gallery-card__index { top: 19px; }
.gallery-card__footer { bottom: 19px; opacity: .72; }
.gallery-card__orbit { position: absolute; width: 56%; aspect-ratio: 1; left: 22%; top: 13%; border: 2px solid #c9d0d9; border-radius: 50%; }
.gallery-card__orbit i { position: absolute; inset: 8%; border: 1px solid #ccd0d7; border-radius: 50%; transform: rotateX(70deg) rotate(-30deg); }
.gallery-card__orbit i:nth-child(2) { transform: rotateY(70deg) rotate(28deg); }
.gallery-card__orbit i:nth-child(3) { inset: 27%; border-width: 9px; transform: none; }
.gallery-card__bars { position: absolute; top: 26%; left: 20%; right: 20%; bottom: 20%; display: flex; align-items: end; gap: 6%; }
.gallery-card__bars i { flex: 1; background: #d9dce2; height: 50%; }
.gallery-card__bars i:nth-child(2) { height: 85%; }
.gallery-card__bars i:nth-child(3) { height: 35%; }
.gallery-card__bars i:nth-child(4) { height: 70%; }
.gallery-card__word { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #edf0f5; font-size: clamp(65px, 12vw, 220px); font-weight: 900; line-height: 1; letter-spacing: -.12em; }
.gallery-card__window { position: absolute; left: 15%; right: 15%; top: 23%; bottom: 21%; border: 8px solid #bbc3ca; border-top-width: 30px; background: #171c25; }
.gallery-card__window i { display: block; height: 12%; margin: 12% 9%; background: #5c6672; }
.gallery-card__window i:first-child { width: 72%; background: #e4e7eb; }
.gallery-card__window i:nth-child(2) { width: 52%; }
.gallery-card__window i:nth-child(3) { width: 66%; }
.gallery-card__cross { position: absolute; width: 38%; aspect-ratio: 1; left: 31%; top: 27%; transform: rotate(45deg); border: 30px solid #e2e6ea; }
.gallery-card__rings { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 13%; border: 18px solid #adb5bf; border-radius: 50%; }
.gallery-card__rings i { position: absolute; inset: 18%; border: 14px solid #cfd5df; border-radius: 50%; }
.gallery-card__rings i:last-child { inset: 45%; border: 0; background: #cfd5df; }
.gallery-card__big { position: absolute; top: 48%; left: 48%; transform: translate(-50%, -50%); font-size: clamp(90px, 16vw, 260px); font-weight: 900; letter-spacing: -.1em; }
.gallery-card__big--outlined { color: transparent; -webkit-text-stroke: 2px #d4d9de; }
.gallery-card__lines { position: absolute; inset: 28% 18%; transform: rotate(-18deg); }
.gallery-card__lines i { display: block; width: 100%; height: 13%; margin-bottom: 7%; background: #d1d7df; }
.gallery-card__lines i:nth-child(2) { width: 78%; }
.gallery-card__lines i:nth-child(3) { width: 88%; }
.gallery-card__lines i:nth-child(4) { width: 58%; }
.intro__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8, 15, 31, .79), rgba(8, 15, 31, .6) 45%, rgba(8, 15, 31, .77)), linear-gradient(0deg, rgba(6, 11, 23, .92), transparent 28%, transparent 70%, rgba(6, 11, 23, .82)); }
.intro__grain { position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E"); }
.intro__watermark { position: absolute; top: 47%; left: 50%; z-index: 0; width: min(75vw, 660px); transform: translate(-50%, -50%); opacity: .18; pointer-events: none; filter: saturate(1.2); -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%); animation: introBrandGlow 1500ms var(--ease-out) both; }
.intro__topline, .intro__bottomline { position: absolute; left: clamp(24px, 5vw, 82px); right: clamp(24px, 5vw, 82px); display: flex; justify-content: space-between; align-items: center; }
.intro__topline { top: clamp(26px, 5.5vh, 64px); }
.intro__bottomline { bottom: clamp(30px, 6vh, 70px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 830; font-size: 14px; letter-spacing: .07em; white-space: nowrap; }
.wordmark__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 10px; font-size: 20px; font-weight: 900; letter-spacing: -.12em; }
.wordmark__icon span { color: var(--accent); }
.wordmark__icon-image { display: block; width: 44px; height: 44px; object-fit: contain; border-radius: 9px; }
.wordmark--intro { animation: introTopIn 670ms 90ms var(--ease-out) both; }
.intro__edition, .intro__bottom-label, .intro__loading { font-size: 10px; font-weight: 700; letter-spacing: .22em; color: #d3d6dc; }
.intro__edition { animation: introTopIn 670ms 130ms var(--ease-out) both; }
.edition-rule { display: inline-block; width: 28px; margin: 0 10px 3px; border-top: 1px solid #9ea3ac; }
.intro__copy { position: absolute; z-index: 1; top: 49%; left: 50%; width: 100%; max-width: 1350px; padding: 0 24px; transform: translate(-50%, -50%); text-align: center; }
.intro__eyebrow { display: inline-flex; align-items: center; gap: 12px; color: #e4e5e8; font-size: clamp(9px, .9vw, 12px); letter-spacing: .31em; font-weight: 720; animation: introEyebrowIn 560ms 130ms var(--ease-out) both; }
.signal { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 17px rgba(43, 126, 253, .62); }
.intro__title { margin: 13px 0 -5px; font-size: clamp(76px, 15vw, 220px); font-weight: 850; letter-spacing: -.102em; line-height: 1; text-shadow: 0 16px 80px rgba(0, 0, 0, .5); animation: introTitleIn 850ms 190ms var(--ease-out) both; }
.intro__period { color: var(--accent); }
.intro__subtitle { display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(23px, 4vh, 52px); padding: 11px 23px; border: 1px solid rgba(166, 199, 239, .8); border-radius: 100px; background: rgba(0, 0, 0, .4); color: #f4f7fa; backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; letter-spacing: .2em; animation: introBadgeIn 680ms 430ms var(--ease-out) both; }
.intro__subtitle-line { width: 18px; border-top: 2px solid var(--accent); }
.intro__subtitle-arrow { margin-left: 5px; color: var(--accent); font-size: 20px; font-weight: 300; line-height: 0; }
.intro__logo-reveal { position: relative; width: clamp(206px, 23vw, 285px); height: clamp(117px, 14vw, 176px); margin: clamp(12px, 2.3vh, 25px) auto 0; overflow: hidden; animation: introBadgeIn 690ms 570ms var(--ease-out) both; }
.intro__logo-reveal img { display: block; position: absolute; top: 50%; left: 50%; width: 100%; height: auto; transform: translate(-50%, -49%); -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 50%, transparent 78%); }
.intro__bottom-label span { color: var(--accent); margin: 0 7px; }
.intro__loading { display: flex; align-items: center; gap: 22px; }
.intro__track { width: 125px; height: 2px; background: rgba(240, 244, 250, .28); overflow: hidden; }
.intro__progress { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left center; animation: introProgress 1780ms linear both; }
.intro__bottomline { animation: introTopIn 700ms 220ms var(--ease-out) both; }

/* Conteúdo que aparece depois do deslocamento da abertura. */
.site-shell { min-height: 100vh; opacity: 1; transform: none; transition: opacity 810ms var(--ease-out), transform 960ms var(--ease-out); }
.is-intro-playing:not(.intro-exiting) .site-shell { opacity: 0; transform: translate3d(0, 28px, 0) scale(.986); }
.is-intro-playing.intro-exiting .site-shell { opacity: 1; transform: none; }
.skip-link { position: fixed; top: -70px; left: 24px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--foreground); color: var(--background); }
.skip-link:focus { top: 16px; }
.site-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; width: min(100% - 96px, 1480px); height: 100px; margin-inline: auto; border-bottom: 1px solid var(--line); }
.site-header__tag { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .2em; font-weight: 750; color: var(--muted); }
.site-header__tag .signal { width: 6px; height: 6px; }
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 100px); min-height: calc(100svh - 100px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 80% 47%, rgba(43, 126, 253, .17), transparent 38%), radial-gradient(ellipse at 17% 90%, rgba(43, 126, 253, .08), transparent 34%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; flex: 1; width: min(100% - 96px, 1480px); min-height: 600px; margin-inline: auto; }
.hero__content { position: relative; z-index: 1; padding: 70px 0 90px; }
.hero__kicker { display: flex; align-items: center; gap: 13px; margin: 0 0 28px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .26em; }
.hero__kicker-line { width: 27px; height: 2px; background: var(--accent); }
.hero__content h2 { max-width: 820px; margin: 0; font-size: clamp(60px, 6.9vw, 112px); line-height: .99; letter-spacing: -.085em; font-weight: 830; }
.hero__content h2 em { display: block; color: var(--accent); font-style: normal; }
.hero__content h2 em span { color: var(--foreground); }
.hero__description { max-width: 475px; margin: 35px 0 0; color: #a7acb7; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 39px; }
.replay-button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 203px; min-height: 52px; padding: 14px 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #ffffff; font-size: 12px; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.replay-button:hover { transform: translateY(-3px); background: var(--accent-strong); box-shadow: 0 12px 30px rgba(43, 126, 253, .2); }
.replay-button span { font-size: 19px; }
.hero__helper { color: #6f7685; font-size: 11px; letter-spacing: .08em; }
.hero__visual { position: relative; display: grid; place-items: center; height: min(610px, 58vw); min-height: 430px; }
.hero__visual-grid { position: absolute; inset: 8%; opacity: .14; background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px); background-size: 35px 35px; mask-image: radial-gradient(circle, black 12%, transparent 74%); }
.hero__visual-halo { position: absolute; width: 73%; aspect-ratio: 1; border: 1px solid rgba(43, 126, 253, .2); border-radius: 50%; box-shadow: 0 0 0 65px rgba(43, 126, 253, .035), 0 0 0 130px rgba(43, 126, 253, .024); }
.visual-card { position: absolute; display: flex; flex-direction: column; width: min(61%, 350px); height: min(63%, 395px); min-height: 280px; padding: 22px; border: 1px solid rgba(217, 228, 243, .17); border-radius: 14px; background: linear-gradient(140deg, #1a1f29, #0b0d12 73%); box-shadow: 0 24px 90px rgba(0, 0, 0, .55); }
.visual-card > span { font-size: 9px; color: #a2abb9; font-weight: 800; letter-spacing: .17em; }
.visual-card--back { transform: translate(28%, -8%) rotate(12deg); background: linear-gradient(145deg, #29303b, #11141b); }
.visual-card--back b { margin: auto 0; font-size: clamp(22px, 2.2vw, 35px); line-height: 1.1; letter-spacing: -.06em; }
.visual-card--back i { align-self: end; font-size: 33px; font-style: normal; color: var(--accent); }
.visual-card--front { transform: translate(-18%, 10%) rotate(-8deg); background: linear-gradient(150deg, #193050, #0d1423 77%); }
.visual-card__shape { position: absolute; top: 25%; left: 21%; width: 58%; aspect-ratio: 1; border: 18px solid rgba(43, 126, 253, .22); border-radius: 50%; box-shadow: 0 0 0 22px rgba(43, 126, 253, .06), inset 0 0 50px rgba(43, 126, 253, .1); }
.visual-card__shape span { position: absolute; inset: 22%; border: 2px solid var(--accent); border-radius: 50%; }
.visual-card--front strong { z-index: 1; margin: auto; font-size: clamp(70px, 9vw, 130px); font-weight: 900; letter-spacing: -.11em; }
.visual-card--front strong span { color: var(--accent); }
.visual-card__logo { position: relative; z-index: 1; display: block; align-self: center; width: 100%; max-width: 260px; height: auto; margin: auto; -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%); }
.visual-card--front small { font-size: 9px; font-weight: 750; letter-spacing: .24em; line-height: 1.5; }
.hero__visual-caption { position: absolute; bottom: 3%; right: 6%; display: flex; align-items: center; gap: 9px; color: #8b94a1; font-size: 10px; letter-spacing: .15em; }
.hero__visual-dot { width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.hero__footer { position: relative; display: flex; justify-content: space-between; align-items: center; width: min(100% - 96px, 1480px); min-height: 74px; margin: auto auto 0; border-top: 1px solid var(--line); color: #707784; font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.footer-accent { color: var(--accent); margin-left: 8px; }

@keyframes gallerySettle { from { transform: perspective(1500px) rotateX(13deg) rotateY(-16deg) rotateZ(-11deg) scale(1.35); filter: grayscale(1) brightness(.4) blur(8px); } to { transform: perspective(1500px) rotateX(11deg) rotateY(-12deg) rotateZ(-8deg) scale(1.18); filter: grayscale(1) brightness(.7) blur(0); } }
@keyframes introTopIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introEyebrowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introTitleIn { from { opacity: 0; transform: translateY(54px) scale(.94); filter: blur(9px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes introBadgeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introBrandGlow { from { opacity: 0; transform: translate(-50%, -50%) scale(.84); } to { opacity: .18; transform: translate(-50%, -50%) scale(1); } }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr .9fr; gap: 0; }
  .hero__content h2 { font-size: clamp(58px, 8vw, 85px); }
  .hero__visual { height: 480px; }
  .visual-card { min-height: 250px; width: 68%; }
  .intro__title { font-size: clamp(76px, 17vw, 160px); }
}

@media (max-width: 760px) {
  .intro__gallery { inset: -8% -42%; gap: 8px; transform: perspective(950px) rotateX(9deg) rotateY(-8deg) rotateZ(-7deg) scale(1.1); }
  .gallery-card { padding: 10px; }
  .gallery-card__index, .gallery-card__footer { left: 8px; font-size: 6px; }
  .gallery-card__index { top: 8px; }
  .gallery-card__footer { bottom: 8px; }
  .intro__topline, .intro__bottomline { left: 24px; right: 24px; }
  .intro__edition { display: none; }
  .intro__copy { padding: 0 16px; top: 48%; }
  .intro__eyebrow { font-size: 8px; letter-spacing: .16em; }
  .intro__title { margin: 24px 0 2px; font-size: clamp(58px, 15.3vw, 116px); letter-spacing: -.09em; }
  .intro__bottom-label { display: none; }
  .intro__loading { width: 100%; justify-content: space-between; gap: 16px; font-size: 8px; letter-spacing: .12em; }
  .intro__track { width: 90px; }
  .site-header, .hero__inner, .hero__footer { width: min(100% - 40px, 620px); }
  .site-header { height: 86px; }
  .site-header__tag { font-size: 8px; letter-spacing: .08em; }
  .site-header__tag .signal { display: none; }
  .wordmark { gap: 8px; font-size: 12px; }
  .wordmark__icon-image { width: 36px; height: 36px; }
  .hero { min-height: calc(100svh - 86px); }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 60px; }
  .hero__content { padding: 12px 0 5px; }
  .hero__content h2 { font-size: clamp(56px, 11.5vw, 78px); }
  .hero__description { margin-top: 25px; font-size: 16px; line-height: 1.65; }
  .hero__actions { gap: 15px; margin-top: 30px; }
  .hero__visual { height: 350px; min-height: 350px; margin-top: 25px; }
  .hero__visual-halo { width: 51%; box-shadow: 0 0 0 45px rgba(43, 126, 253, .035); }
  .visual-card { width: 190px; height: 250px; min-height: 250px; padding: 15px; }
  .visual-card--front strong { font-size: 83px; }
  .visual-card--back b { font-size: 22px; }
  .visual-card__shape { border-width: 12px; }
  .hero__visual-caption { bottom: 4%; right: 0; }
  .hero__footer { min-height: 65px; font-size: 8px; letter-spacing: .08em; }
}

@media (max-width: 400px) {
  .intro__title { font-size: 14.7vw; }
  .site-header__tag { max-width: 108px; line-height: 1.5; text-align: right; }
  .hero__content h2 { font-size: 13vw; }
  .hero__helper { width: 100%; }
}

/* Preferência de acessibilidade: não mostrar a abertura nem transições. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
  .site-shell { opacity: 1 !important; transform: none !important; }
  .replay-button { display: none; }
}
