/* ===================================================================
   STYLES.CSS — Tokens, Reset, Utilities
   Português Revisa · ALE-CE Landing Page
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────────── */
:root {
  --bg:          #0A1628;
  --bg-card:     #0E1D35;
  --bg-elevated: #132242;
  --bg-band:     #070F1E;

  --gold:        #D4A847;
  --gold-light:  #E8C46A;
  --gold-dark:   #B8902E;
  --gold-dim:    rgba(212,168,71,.10);
  --gold-glow:   rgba(212,168,71,.22);

  --cream:       #F5EDD9;
  --white:       #F9F9F9;
  --muted:       rgba(245,237,217,.60);
  --faint:       rgba(245,237,217,.35);

  --red:         #E05252;
  --red-dim:     rgba(224,82,82,.12);
  --green:       #4CAF7D;

  --border:       rgba(212,168,71,.20);
  --border-sub:   rgba(245,237,217,.07);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --r-sm:  6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-card: 0 4px 32px rgba(0,0,0,.35);
  --shadow-gold: 0 0 48px rgba(212,168,71,.18);

  --max-w: 1200px;
  --sec-pad: clamp(72px, 9vw, 128px);
  --h-pad:   clamp(20px, 5vw, 64px);
}

/* ─── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.18;
}
p { text-wrap: pretty; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

/* ─── COLOUR UTILS ────────────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(130deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strike {
  position: relative;
  opacity: .45;
}
.strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--h-pad);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 48px;
  align-items: start;
}

@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 24px; } }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light) 60%, var(--gold));
  background-size: 200% 100%;
  color: #080f1c;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--r-md);
  transition: transform .22s, box-shadow .22s, background-position .4s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--gold-glow);
  background-position: right center;
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: .03em;
  padding: 16px 33px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color .22s, background .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-dim);
}

.btn-cta-large {
  font-size: clamp(15px, 1.2vw, 18px);
  padding: 22px 48px;
  border-radius: var(--r-lg);
  letter-spacing: .06em;
}

/* ─── CARD ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* ─── CHIP / BADGE ────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ─── GOLDEN DIVIDER ──────────────────────────────────────────── */
.golden-divider {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: var(--border-sub);
}
.golden-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmerLine 3.5s linear infinite;
}

/* ─── SEAL (UNESP / UFMG) ─────────────────────────────────────── */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold-dim);
  animation: pulseSeal 2.8s ease-in-out infinite;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible     { opacity: 1; transform: none; }
.reveal-delay-1     { transition-delay: .08s; }
.reveal-delay-2     { transition-delay: .18s; }
.reveal-delay-3     { transition-delay: .28s; }
.reveal-delay-4     { transition-delay: .38s; }
.reveal-delay-5     { transition-delay: .48s; }
.reveal-delay-6     { transition-delay: .58s; }
/* Ensure visibility if JS/motion disabled */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes shimmerLine {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes pulseSeal {
  0%,100% { box-shadow: 0 0 0 3px rgba(212,168,71,.35); }
  50%     { box-shadow: 0 0 0 7px rgba(212,168,71,.12), 0 0 28px rgba(212,168,71,.28); }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes growBar {
  from { width: 0 !important; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes floatHero {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-10px); }
}

@keyframes glowPulse {
  0%,100% { opacity: .5; }
  50%     { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drawPath {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

/* ─── SECTION HELPERS ─────────────────────────────────────────── */
.section-heading {
  font-size: clamp(28px, 3.8vw, 52px);
  color: var(--cream);
  margin-bottom: 20px;
}
.section-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── STAT BADGE ──────────────────────────────────────────────── */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-top: 16px;
}

/* ─── GUARANTEE BADGE ─────────────────────────────────────────── */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 28px;
  max-width: 480px;
}

/* ─── ICON WRAPPER ────────────────────────────────────────────── */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 24px;
  flex-shrink: 0;
}

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── 480px SMALL PHONES ──────────────────────────────────────── */
@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary { white-space: normal; text-align: center; }
  .btn-cta-large { padding: 18px 28px; }
}
