/* ═══════════════════════════════════════════════════════════════════
   ASTRO 360 v2 — variables.css
   Caminho: Apple Vision Pro × Apothékary/Calm (orgânico + sereno)
   Tipografia: Fraunces (display) + Inter Tight (corpo) + JetBrains Mono (dados)
   Paleta: mantida (lilás profundo + dourado)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── PALETA LILÁS (escala refinada) ─────────────────────── */
  --lilas-void:    #0a0419;   /* preto-lilás absoluto */
  --lilas-deep:    #110826;   /* base do site */
  --lilas-rich:    #1d1138;   /* superfícies elevadas */
  --lilas-mid:     #36205a;   /* destaques médios */
  --lilas-soft:    #a78bfa;   /* roxo claro */
  --lilas-mist:    #d9d0f5;   /* texto secundário */
  --lilas-fog:     #e9e3ff;   /* texto neutro */

  /* ── DOURADO (refinado) ──────────────────────────────────── */
  --gold:          #c9a449;   /* dourado base (menos saturado, mais premium) */
  --gold-bright:   #e8c668;   /* highlights */
  --gold-deep:     #9c7e2c;   /* sombra de dourado */
  --gold-mist:     #f0e2b8;   /* dourado quase branco */

  /* ── NEUTROS ─────────────────────────────────────────────── */
  --white:         #ffffff;
  --cream:         #f5efe0;
  --bone:          #ebe4d0;

  /* ── GLASS ORGÂNICO (B - Vision Pro) ─────────────────────── */
  --glass-bg:      rgba(255, 255, 255, 0.045);
  --glass-bg-hi:   rgba(255, 255, 255, 0.075);
  --glass-border:  rgba(232, 198, 104, 0.18);
  --glass-border-hi: rgba(232, 198, 104, 0.38);
  --glass-blur:    24px;

  /* ── GLOW ORGÂNICO ───────────────────────────────────────── */
  --glow-gold:     0 0 60px rgba(232, 198, 104, 0.22);
  --glow-gold-hi:  0 0 80px rgba(232, 198, 104, 0.45);
  --glow-lilas:    0 0 80px rgba(167, 139, 250, 0.25);
  --glow-deep:     0 30px 80px rgba(10, 4, 25, 0.55);

  /* ── TIPOGRAFIA ──────────────────────────────────────────── */
  --serif-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:          'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --mono:          'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* ── ESPAÇAMENTO ─────────────────────────────────────────── */
  --section-pad:        140px 5%;
  --section-pad-mobile: 90px 5%;
  --container-max:      1240px;

  /* ── RADIUS ──────────────────────────────────────────────── */
  --r-xs:   6px;
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 100px;

  /* ── TRANSIÇÕES ──────────────────────────────────────────── */
  --tr-fast:   200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --tr-base:   400ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --tr-slow:   700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --tr-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--lilas-fog);
  background: var(--lilas-void);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--lilas-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lilas-mid), var(--lilas-rich));
  border-radius: 100px;
  border: 2px solid var(--lilas-void);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
::selection { background: var(--gold); color: var(--lilas-deep); }

/* ── LOADING STATE ─────────────────────────────────────── */
.app-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--lilas-void);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.5s ease;
}
.app-loading.hidden { opacity: 0; pointer-events: none; }
.app-loading img {
  width: 72px; height: 72px;
  filter: drop-shadow(var(--glow-gold-hi));
  animation: orbit 2.4s ease-in-out infinite;
}
@keyframes orbit {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.7; }
  50%      { transform: scale(1) rotate(180deg); opacity: 1; }
}
.app-loading span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

/* ── TOAST ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 90px; right: 24px; z-index: 10000;
  padding: 14px 22px;
  background: var(--glass-bg-hi);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 360px;
  box-shadow: var(--glow-deep);
  opacity: 0; transform: translateY(-12px);
  transition: var(--tr-base);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── HELPER CLASSES ────────────────────────────────────── */
.mono { font-family: var(--mono); letter-spacing: 0; }
.serif { font-family: var(--serif-display); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.eyebrow.center::before { display: none; }
.eyebrow.center {
  display: block;
  text-align: center;
}
