/* ===== Design tokens ===== */
:root {
  --primary: #E59606;         /* amarelo queimado */
  --primary-2: #F5B23A;
  --primary-soft: rgba(229, 150, 6, .14);

  --ink: #16181d;             /* escuro quase preto */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Dark (default) */
[data-theme="dark"] {
  --bg: #0e0f12;
  --bg-2: #14161b;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --text: #eef0f4;
  --muted: #9aa0ab;
  --header-bg: rgba(14, 15, 18, .62);
  --logo-dark: #e9ebef;       /* metade "escura" do logo vira clara no dark */
  --shadow: 0 30px 60px -25px rgba(0,0,0,.7);
  --orb-1: rgba(229,150,6,.22);
  --orb-2: rgba(90,110,170,.20);
}

/* Light */
[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --surface: rgba(16, 18, 24, .025);
  --surface-2: #ffffff;
  --border: rgba(16, 18, 24, .10);
  --text: #16181d;
  --muted: #5c626e;
  --header-bg: rgba(255, 255, 255, .72);
  --logo-dark: #2a2e37;
  --shadow: 0 24px 50px -28px rgba(20,25,45,.35);
  --orb-1: rgba(229,150,6,.28);
  --orb-2: rgba(90,120,200,.20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark-dark { fill: var(--logo-dark); transition: fill .4s var(--ease); }

/* ===== Background FX ===== */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .9; }
.orb-1 { width: 620px; height: 620px; background: var(--orb-1); top: -220px; right: -160px; animation: float1 18s var(--ease) infinite; }
.orb-2 { width: 540px; height: 540px; background: var(--orb-2); bottom: -240px; left: -160px; animation: float2 22s var(--ease) infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  opacity: .5;
}
@keyframes float1 { 50% { transform: translate(-40px, 60px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(50px, -40px) scale(1.1); } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { padding: .58rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #1a1206; box-shadow: 0 10px 30px -10px rgba(229,150,6,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(229,150,6,.75); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--primary); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 30px; height: auto; filter: drop-shadow(0 4px 10px rgba(229,150,6,.35)); }
.brand-name { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-name strong { font-weight: 700; color: var(--primary); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--muted);
  padding: .5rem .8rem; border-radius: 10px; position: relative; transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lang-btn { border: 0; background: transparent; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .02em; padding: .42rem .62rem; cursor: pointer; transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #1a1206; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: transform .3s var(--ease), border-color .2s, color .2s;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { stroke: currentColor; stroke-width: 1.8; fill: none; }
.ico-moon { fill: currentColor; stroke: none; }
[data-theme="dark"] .ico-sun { display: block; }
[data-theme="dark"] .ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 30px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  padding: .35rem .8rem; border: 1px solid var(--primary-soft); border-radius: 999px;
  background: var(--primary-soft); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 1.3rem; }
.grad-text { background: linear-gradient(120deg, var(--primary-2), var(--primary) 60%, #ffcf7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34ch; margin-bottom: 2rem; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-stats { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Hero art */
.hero-art { display: grid; place-items: center; }
.crown-stage { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.crown-big { width: 78%; position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(229,150,6,.35)); animation: bob 6s ease-in-out infinite; }
.crown-glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, var(--primary-soft), transparent 70%); filter: blur(30px); z-index: 1; animation: pulse 5s ease-in-out infinite; }
.crown-stage::before, .crown-stage::after {
  content: ""; position: absolute; border: 1px solid var(--border); border-radius: 50%;
}
.crown-stage::before { width: 100%; height: 100%; animation: spin 24s linear infinite; border-top-color: var(--primary); }
.crown-stage::after { width: 76%; height: 76%; animation: spin 18s linear infinite reverse; border-left-color: var(--primary); }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { margin-top: 3.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; 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); }
.marquee-track { display: flex; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-group { display: flex; flex-shrink: 0; font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: 1.05rem; }
.mq-group span::after { content: "·"; margin: 0 1.45rem; color: var(--primary); opacity: .5; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .8rem 0; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; padding: 2.2rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, background .4s;
  scroll-margin-top: 100px;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); margin-bottom: 1.3rem;
  transition: transform .4s var(--ease);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }
.card-ico svg { width: 28px; height: 28px; stroke: var(--primary); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.card p { color: var(--muted); margin-bottom: 1.3rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .8rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .6rem 0 1.2rem; }
.about-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.1rem; }
.about-features { display: grid; gap: 1rem; margin-top: 2rem; }
.feat { position: relative; padding-left: 1.6rem; }
.feat-dot { position: absolute; left: 0; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.feat b { font-family: var(--font-head); display: block; }
.feat small { color: var(--muted); font-size: .95rem; }

.about-art { display: grid; place-items: center; }
.about-card {
  width: 100%; max-width: 360px; aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; place-items: center; gap: 1rem; padding: 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.about-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, var(--primary-soft), transparent 60%); }
.about-mark { width: 45%; position: relative; z-index: 1; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 16px 30px rgba(229,150,6,.3)); }
.about-tagline { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 600; color: var(--muted); }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2.2rem, 5vw, 3.5rem); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: background .4s var(--ease), border-color .4s;
}
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--primary-soft), transparent 70%); top: -150px; right: -100px; }
.cta-copy { color: var(--text); position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--text); margin-bottom: .5rem; }
.cta-copy p { color: var(--muted); }
.cta-actions { position: relative; z-index: 1; text-align: center; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.7fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: var(--muted); }
.footer-slogan { margin-top: 1rem; white-space: nowrap; }
.footer-legal { margin-top: .5rem; font-size: .84rem; line-height: 1.6; opacity: .85; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 1rem; }
.footer-nav a { display: block; color: var(--muted); padding: .3rem 0; font-size: .95rem; transition: color .2s, transform .2s; }
.footer-nav a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 24px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); flex-wrap: wrap; gap: 1rem; }
.to-top { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-size: .85rem; transition: color .2s, border-color .2s, transform .2s; }
.to-top:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .crown-stage { width: 260px; }
  .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem 24px 1.5rem;
    gap: .2rem; transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .85rem .5rem; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-slogan { white-space: normal; }
  .hero-stats { gap: 1.2rem; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
