/* ═══════════════════════════════════════════════
   SERGIO ARÁNDIGA — mesma pegada da NiuNex
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080809; --bg2: #101013; --card: #141418;
  --fg: #ffffff; --off: rgba(255,255,255,.62); --dim: rgba(255,255,255,.3);
  --border: rgba(255,255,255,.14); --bh: rgba(255,255,255,.24);
  --blue: #2563eb; --blue-l: #60a5fa; --gold: #f5b942;
  --grad: linear-gradient(125deg,#fff 0%,#a8c8ff 45%,#2563eb 100%);
  --nav-h: 68px; --pad: 120px; --max: 1220px; --r: 24px;
  --display: 'Ethnocentric Rg', 'Ethnocentric', 'Inter', sans-serif;
}
html[data-theme="light"] {
  --bg: #ffffff; --bg2: #f4f4f2; --card: #f6f6f4;
  --fg: #0a0a0a; --off: rgba(10,10,10,.62); --dim: rgba(10,10,10,.32);
  --border: rgba(10,10,10,.12); --bh: rgba(10,10,10,.22);
  --grad: linear-gradient(125deg,#0a0a0a 0%,#1e3a8a 50%,#2563eb 100%);
}
html.theme-anim body, html.theme-anim .sec, html.theme-anim #nav, html.theme-anim .edu-card,
html.theme-anim .tl-item, html.theme-anim .country, html.theme-anim .honor-chips li {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--fg); font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: ping 1.8s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }

/* ── NAV ── */
#nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); }
#nav::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--border); opacity: 0; transition: opacity .3s; }
#nav.scrolled::before { opacity: 1; }
.nav-inner { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; }
.nav-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 400 13px/1 var(--display); letter-spacing: .04em; }
.nav-name { font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--bh); display: grid; place-items: center; position: relative; overflow: hidden; }
.tt-icon { position: absolute; display: grid; place-items: center; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s; }
html[data-theme="light"] .tt-sun, html[data-theme="dark"] .tt-moon { transform: translateY(26px) rotate(90deg); opacity: 0; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--bh); position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .3s; }
.hamburger span:first-child { top: 16px; } .hamburger span:last-child { top: 22px; }
.hamburger.open span:first-child { transform: translateY(3px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--nav-h) + 30px) 24px 30px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mm-link { display: block; padding: 14px 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; border-bottom: 2px solid var(--border); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 30px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.hero::after { content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -12vw; top: -14vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.22), rgba(37,99,235,0)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-bottom: 36px; container-type: inline-size; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--bh); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-name { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: -.01em; display: flex; flex-direction: column; }
.fit-line { display: block; width: max-content; max-width: none; white-space: nowrap; font-size: 15.4cqw; }
.fit-line:last-child { font-size: 11.6cqw; color: var(--blue); }
.fit-line .ch { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(18%); transition: opacity .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.fit-line:last-child .ch { background: var(--grad); background-size: 900% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-name.in .ch { opacity: 1; filter: blur(0); transform: none; }
.hero::after { display: none; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; margin-top: 30px; }
.hero-lead { font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; max-width: 620px; }
.hero-lead b { font-weight: 800; }
.btn-round { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--bh); display: grid; place-items: center; transition: background .25s, color .25s, transform .25s; }
.btn-round:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.ticker { position: relative; z-index: 1; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: tick 38s linear infinite; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--blue); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
.sec { position: relative; padding: var(--pad) 0; background: var(--bg); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--off); margin-bottom: 28px; }
.kicker b { padding: 6px 11px; border-radius: 999px; border: 2px solid var(--bh); color: var(--fg); }
.h2 { font-size: clamp(34px, 5vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--off); max-width: 760px; margin-top: 22px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* sobre */
.statement { font-size: clamp(26px, 3.9vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.14; }
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.about-cols p { padding: 26px; border-radius: var(--r); border: 2px solid var(--border); background: var(--card); font-size: 17px; color: var(--off); }

/* números */
.stats-sec { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 30px 26px; border-radius: var(--r); border: 2px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat b { font-size: clamp(42px, 5vw, 72px); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--off); font-weight: 500; }

/* mundo */
.world-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.world-lead { font-size: 18px; color: var(--off); margin: 22px 0 30px; }
.country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.country { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; border: 2px solid var(--border); background: var(--card); text-align: left; transition: border-color .3s, transform .3s, background .3s; }
.country:hover { transform: translateY(-2px); }
.country.is-on { border-color: var(--blue-l); background: color-mix(in srgb, var(--blue) 14%, var(--card)); }
.flag { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; background: var(--fg); color: var(--bg); }
.country.is-on .flag { background: var(--blue); color: #fff; }
.c-body { display: flex; flex-direction: column; min-width: 0; }
.c-body b { font-size: 16px; }
.c-body small { font-size: 13px; color: var(--off); }
.globe-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
#globe { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globe-badge { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--bh); background: var(--card); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

/* clientes */
.clients-title .big-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-marquee { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lm-row { display: flex; gap: 16px; width: max-content; animation: lm var(--dur, 60s) linear infinite; }
.lm-row--rev { animation-direction: reverse; }
.logo-marquee:hover .lm-row { animation-play-state: paused; }
@keyframes lm { to { transform: translateX(-50%); } }
.lm-tile { width: 200px; height: 112px; flex: 0 0 auto; border-radius: 22px; background: #fff; border: 2px solid rgba(10,10,10,.08); display: grid; place-items: center; padding: 18px 22px; transition: transform .3s; }
.lm-tile:hover { transform: translateY(-4px) scale(1.03); }
.lm-tile img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }

/* formação */
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.edu-card { position: relative; overflow: hidden; grid-column: span 2; padding: 30px; border-radius: var(--r); border: 2px solid var(--border); background: var(--card); min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.edu-card--big { min-height: 280px; }
.edu-card h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; position: relative; z-index: 1; }
.edu-card p { color: var(--off); font-size: 16px; position: relative; z-index: 1; }
.edu-place { position: absolute; top: 24px; left: 30px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-l); }
.edu-deco { position: absolute; right: -10px; top: 6px; font: 400 clamp(70px, 9vw, 130px)/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--border); pointer-events: none; }
.more { margin-top: 20px; border-radius: var(--r); border: 2px solid var(--border); background: var(--card); overflow: hidden; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; font-weight: 700; font-size: 17px; }
.more summary::-webkit-details-marker { display: none; }
.more summary i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bh); display: grid; place-items: center; font-size: 20px; transition: transform .3s; }
.more[open] summary i { transform: rotate(45deg); }
.more-list { list-style: none; padding: 0 28px 10px; display: grid; gap: 0; }
.more-list li { padding: 14px 0; border-top: 2px solid var(--border); color: var(--off); font-size: 15px; }
.more-list b { color: var(--fg); font-weight: 700; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 28px 26px; }
.langs span { padding: 9px 15px; border-radius: 999px; border: 2px solid var(--bh); font-size: 13px; color: var(--off); }
.langs b { color: var(--fg); margin-right: 4px; }

/* trajetória */
.tl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tl-arrows { display: flex; gap: 10px; }
.tl { margin-top: 48px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; cursor: grab; padding: 0 max(32px, calc((100vw - var(--max)) / 2 + 32px)); scroll-padding: 0 max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.tl::-webkit-scrollbar { display: none; }
.tl.drag { cursor: grabbing; scroll-snap-type: none; }
.tl-track { display: flex; gap: 16px; width: max-content; position: relative; padding-top: 34px; }
.tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--bh); border-radius: 2px; }
.tl-item { position: relative; width: 300px; flex: 0 0 auto; scroll-snap-align: start; padding: 26px; border-radius: var(--r); border: 2px solid var(--border); background: var(--card); user-select: none; }
.tl-item::before { content: ''; position: absolute; top: -32px; left: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue-l); }
.tl-item--hot { background: linear-gradient(150deg, #1d4ed8, #0b1d4f); border-color: transparent; color: #fff; }
.tl-item--hot p { color: rgba(255,255,255,.8) !important; }
.tl-item--hot .tl-year { color: #bfdbfe !important; }
.tl-year { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-l); }
.tl-item h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; }
.tl-item p { font-size: 14px; color: var(--off); }

/* honrarias */
.honor-feature { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 36px; border-radius: var(--r); background: linear-gradient(140deg, #111827, #1e3a8a); color: #fff; }
.hf-iq { display: flex; flex-direction: column; }
.hf-iq b { font: 400 clamp(54px, 7vw, 100px)/1 var(--display); }
.hf-iq span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 8px; }
.honor-feature p { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 1.4; }
.honor-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.honor-chips li { padding: 12px 18px; border-radius: 999px; border: 2px solid var(--border); background: var(--card); font-size: 14px; font-weight: 600; transition: border-color .25s, transform .25s; }
.honor-chips li:hover { border-color: var(--blue-l); transform: translateY(-2px); }

/* fórmula */
.formula-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 44px; border-radius: 32px; border: 2px solid var(--border); background: var(--card); }
.formula-logo img { width: 100%; height: 100%; object-fit: contain; }
.formula-logo { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 28px; background: #fff; display: grid; place-items: center; padding: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.formula-text { position: relative; z-index: 1; }
.formula-text .h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: 0; }
.formula-text p { font-size: 18px; color: var(--off); margin-top: 18px; max-width: 560px; }
.formula-orbit { position: absolute; right: -140px; bottom: -140px; width: 440px; height: 440px; pointer-events: none; }
.formula-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--border); animation: spin 40s linear infinite; }
.formula-orbit i:nth-child(2) { inset: 60px; animation-duration: 28s; animation-direction: reverse; border-color: rgba(96,165,250,.35); }
.formula-orbit i:nth-child(3) { inset: 120px; animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }
.brands-title { margin-top: 70px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--off); }
.logo-marquee--brands { margin-top: 24px; }

/* citação */
.quote { text-align: center; padding: calc(var(--pad) * 1.2) 0; }
.quote::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.2), rgba(37,99,235,0)); pointer-events: none; }
.quote .container { position: relative; }
.quote-text { font-size: clamp(30px, 5.2vw, 78px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; min-height: 2.2em; }
.quote-text .caret { display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--blue-l); border-radius: 4px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.quote-sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--off); max-width: 640px; margin: 28px auto 0; }
.btn-big { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; padding: 20px 34px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 17px; transition: transform .25s; }
.btn-big:hover { transform: translateY(-3px); }

.footer { border-top: 2px solid var(--border); padding: 34px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-name { font: 400 16px/1 var(--display); }
.footer-copy { font-size: 13px; color: var(--off); }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ── MOBILE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .world-wrap { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .formula-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .formula-logo { max-width: 240px; }
}
@media (max-width: 640px) {
  :root { --pad: 96px; }
  .container, .nav-inner { padding: 0 16px; }
  .nav-name { display: none; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 90px); }
  .hero-bottom { margin-top: 22px; }
  .btn-round { width: 50px; height: 50px; }
  .country-list { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .edu-card { grid-column: auto; min-height: 150px; padding: 24px; }
  .edu-card--big { min-height: 210px; }
  .edu-place { left: 24px; top: 20px; }
  .stat { padding: 22px 18px; }
  .lm-tile { width: 150px; height: 86px; padding: 14px 16px; border-radius: 18px; }
  .tl { padding: 0 16px; scroll-padding: 0 16px; }
  .tl-item { width: 78vw; }
  .honor-feature { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .more summary { padding: 20px; } .more-list { padding: 0 20px 8px; } .langs { padding: 8px 20px 22px; }
  #nav::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fit-line .ch, .reveal, .statement .w { opacity: 1 !important; filter: none !important; transform: none !important; }
}
