/* =============================================================
   TRSYSTEM DESIGN PATTERN v2 — Evolution-style
   Calibrado a partir das screenshots reais do Evolution Foundation
   Mudanças vs v1:
   - Verde-mint #00ffa3 (não ciano)
   - Background azul-noite #0a0e14
   - Font-weight 700 nos títulos
   - Gradient roxo→ciano→verde nos topos dos cards
   - Spotlight effect que segue o cursor
   - Animações cubic-bezier suaves
   ============================================================= */

/* ==========  1. DESIGN TOKENS  ========== */
:root {
  /* === BACKGROUNDS === */
  --bg:           #0a0e14;
  --bg-card:      #11161f;
  --bg-card-hov:  #141b27;
  --bg-overlay:   rgba(11, 16, 24, 0.8);

  /* === BORDERS === */
  --border:       #1f2733;
  --border-hov:   #2d3849;

  /* === TEXT === */
  --text:         #f1f5f9;
  --text-mute:    #8b95a7;
  --text-dim:     #5a6478;

  /* === ACCENT (verde-mint Evolution) === */
  --accent:       #00ffa3;
  --accent-hov:   #00e695;
  --accent-soft:  rgba(0, 255, 163, 0.10);
  --accent-mid:   rgba(0, 255, 163, 0.25);
  --accent-text:  #032918;

  /* === GRADIENT SIGNATURE === */
  --gradient: linear-gradient(90deg, #b584ff 0%, #5acff0 50%, #00ffa3 100%);

  /* === RADIUS === */
  --r-sm:   8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-pill: 999px;

  /* === EASING (cubic-bezier suave da Apple/Linear) === */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === FONTS === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========  2. BASE  ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========  3. TIPOGRAFIA  ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.15;
}
h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 17px; }

.text-mute  { color: var(--text-mute); }
.text-dim   { color: var(--text-dim); }
.accent     { color: var(--accent); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ==========  4. NAVBAR FLUTUANTE  ========== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 18px;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-mid); }
  50%      { box-shadow: 0 0 18px var(--accent), 0 0 28px var(--accent-mid); }
}
.nav-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-pill);
  font-size: 13px;
}
.nav-pill-info .label { color: var(--text-mute); }
.nav-pill-info .value {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ==========  5. BOTÕES  ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease);
  padding: 11px 20px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-hov);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px var(--accent-mid);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hov);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn-pill {
  background: var(--accent);
  color: var(--accent-text);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
}
.btn-pill:hover {
  background: var(--accent-hov);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px var(--accent-mid);
  transform: translateY(-1px);
}

/* ==========  6. STATS BAR  ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 8px;
}

/* ==========  7. FEATURE CARD COM SPOTLIGHT  ==========
   A grande sacada visual:
   - Tira "::before" gradient no topo (revela em hover)
   - "::after" radial seguindo o cursor (efeito spotlight)
   - Lift de -2px + ícone vira accent
*/
.feature {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.feature::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    var(--accent-soft) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.feature:hover {
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
  transform: translateY(-2px);
}
.feature:hover::before { opacity: 1; }
.feature:hover::after  { opacity: 1; }
.feature:hover .feature-icon {
  color: var(--accent);
  transform: scale(1.05);
}
.feature-icon {
  width: 26px; height: 26px;
  color: var(--text);
  margin-bottom: 18px;
  transition: all 0.35s var(--ease);
}

/* ==========  8. PRICING TOGGLE  ========== */
.toggle-group {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease);
}
.toggle:not(.active):hover { color: var(--text); }
.toggle.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 12px var(--accent-mid);
}
.toggle-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(3, 41, 24, 0.3);
  border-radius: 4px;
}

/* ==========  9. PRICING PLAN CARDS  ========== */
.plan {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  transition: all 0.35s var(--ease);
}
.plan:hover {
  border-color: var(--border-hov);
  transform: translateY(-3px);
}
.plan.featured { border-color: var(--accent-mid); }
.plan.featured::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gradient);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.plan-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.plan-discount {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.plan-old {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 16px;
}
.plan-price .currency { font-size: 18px; font-weight: 600; }
.plan-price .value    { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price .period   { font-size: 14px; color: var(--text-mute); }
.plan-features {
  list-style: none;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
}
.plan-features .check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--accent);
  margin-top: 1px;
}
.plan-features .cross { color: var(--text-dim); }
.plan-features li.muted { color: var(--text-dim); }

/* ==========  10. ANIMAÇÕES DE ENTRADA (scroll reveal) ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* shimmer loading pra placeholders */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hov) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

/* ==========  11. RESPONSIVO  ========== */
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-num { font-size: 28px; }
  .nav { padding: 10px 6px 10px 14px; }
  .nav-pill-info { display: none; }
}