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

/* Variáveis de Cores Base */
:root {
  --lime:      #C8FF00;
  --topbar-h:  60px;

  /* Modo Claro (Padrão) */
  --bg-page:   #F5F5F3;
  --bg-card:   #FFFFFF;
  --black:     #0C0C0A;
  --white:     #FFFFFF;
  --gray:      rgba(12,12,10,0.6);
  --line:      rgba(12,12,10,0.1);
}

/* Classes para o Modo Escuro */
[data-theme="dark"] {
  --bg-page:   #121210;
  --bg-card:   #1C1C18;
  --black:     #F5F5F3;
  --white:     #0C0C0A;
  --gray:      rgba(245,245,243,0.6);
  --line:      rgba(245,245,243,0.1);
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-page);
  color: var(--black);
  transition: background 0.3s ease, color 0.3s ease;
}

/* ══ LOADER ══════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: #0C0C0A; z-index: 300;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}
.ld-mark {
  width: 56px; height: 56px;
  background: var(--lime); border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: #0C0C0A;
  opacity: 0;
  animation: popIn .55s .1s cubic-bezier(.34,1.7,.64,1) forwards;
}
@keyframes popIn {
  from { opacity:0; transform: scale(.3) rotate(-15deg); }
  to   { opacity:1; transform: scale(1)  rotate(0deg);  }
}
.ld-word { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; color: #FFFFFF; opacity: 0; animation: fadeSlide .4s .5s ease forwards; }
.ld-word span { color: var(--lime); }
.ld-bar-wrap { width: 140px; height: 2px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; opacity: 0; animation: fadeIn .3s .55s ease forwards; }
.ld-bar { height: 100%; background: var(--lime); width: 0%; border-radius: 2px; animation: barFill 1.2s .6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes barFill { to { width: 100%; } }
.ld-status { font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.25); opacity: 0; animation: fadeIn .3s .65s ease forwards; }
#loader.out { animation: loaderOut .65s cubic-bezier(.76,0,.24,1) forwards; }
@keyframes loaderOut   { to { transform: translateY(-100%); } }
@keyframes fadeSlide   { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn      { to   { opacity:1; } }

/* ══ LAYOUT ══════════════════════════════════════════════ */
.page { display: flex; flex-direction: column; min-height: 100vh; }

/* ══ TOPBAR ══════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--topbar-h);
  background: #0C0C0A;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--lime); border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 800; color: #0C0C0A;
}
.brand-name { font-size: .95rem; font-weight: 700; color: #FFFFFF; }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

/* Botão Tema */
.btn-theme {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: #FFFFFF; width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
  transition: background 0.2s;
}
.btn-theme:hover { background: rgba(255,255,255,0.1); }

.btn-login {
  display: flex; align-items: center; gap: 6px;
  background: var(--lime); color: #0C0C0A;
  border: none; border-radius: 10px; padding: 9px 18px;
  font-family: 'Poppins', sans-serif; font-size: .8rem; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: box-shadow .15s, transform .15s;
}
.btn-login:hover { box-shadow: 0 4px 16px rgba(200,255,0,.4); transform: translateY(-1px); }
.btn-login:active { transform: scale(.97); }

/* ══ MAIN ══════════════════════════════════════════════════ */
.main {
  flex: 1;
  padding: calc(var(--topbar-h) + 40px) 40px 48px;
  display: flex; flex-direction: column; gap: 48px;
  max-width: 1200px; margin: 0 auto; w-index: 100%;
}

/* ══ HERO SECTION ══════════════════════════════════════════ */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 0 20px; gap: 20px;
}
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.page-title span { color: #A6D400; }
[data-theme="dark"] .page-title span { color: var(--lime); }
.page-sub { font-size: clamp(0.95rem, 2vw, 1.15rem); color: var(--gray); max-width: 600px; line-height: 1.6; }

/* ══ CTA BUTTONS ══════════════════════════════════════════ */
.cta-group { display: flex; gap: 16px; margin-top: 10px; }
.action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 28px; min-height: 48px; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  background: #0C0C0A; color: var(--lime);
}
[data-theme="dark"] .action-btn { background: var(--lime); color: #0C0C0A; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.action-btn.secondary { background: var(--bg-card); color: var(--black); border: 1px solid var(--line); }

/* ══ SECTIONS ═════════════════════════════════════════════ */
.section-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); text-align: center; margin-bottom: 24px; }

/* ══ ADVANTAGES CARDS ═════════════════════════════════════ */
.grid-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.v-card {
  background: var(--bg-card); border-radius: 20px; border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s, box-shadow .2s;
}
.v-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.05); }
.v-icon {
  width: 48px; height: 48px; background: rgba(200,255,0,.15);
  border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem;
}
.v-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.v-desc { font-size: .88rem; color: var(--gray); line-height: 1.6; }

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .main { padding: calc(var(--topbar-h) + 20px) 16px 32px; gap: 36px; }
  .grid-cards { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; width: 100%; }
  .action-btn { width: 100%; justify-content: center; }
  .hero { padding: 20px 0; }
}