/* ==========================================================================
   REAL CARTAXO — DESIGN TOKENS & BASE RESET
   Identidade Visual Oficial: Roxo dominante, Dourado de destaque, Branco nítido
   ========================================================================== */

:root {
  /* Paleta Oficial */
  --rc-deep: #300044;
  --rc-primary: #49005F;
  --rc-secondary: #65247A;
  --rc-gold: #D6AD43;
  --rc-gold-light: #E8CA74;
  --rc-gold-dim: rgba(214, 173, 67, 0.18);
  --rc-white: #FFFFFF;
  --rc-dark: #100B16;
  --rc-muted: #A7A0AD;

  /* Superfícies e Bordas */
  --rc-surface: #171020;
  --rc-surface-2: #1F152C;
  --rc-surface-3: #281B38;
  --rc-border: rgba(255, 255, 255, 0.08);
  --rc-border-purple: rgba(101, 36, 122, 0.45);
  --rc-border-gold: rgba(214, 173, 67, 0.4);

  /* Estados Semânticos */
  --rc-success: #22C55E;
  --rc-warning: #F59E0B;
  --rc-danger: #EF4444;
  --rc-info: #60A5FA;

  /* Tipografia */
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamento & Layout */
  --container-max: 1320px;
  --container-narrow: 920px;
  --header-height: 82px;

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 28px 70px -18px rgba(0, 0, 0, 0.85);
  --shadow-purple: 0 12px 44px -10px rgba(73, 0, 95, 0.65);
  --shadow-gold: 0 8px 30px -6px rgba(214, 173, 67, 0.35);

  /* Transições */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 320ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--rc-dark);
  color: var(--rc-white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--rc-dark);
  color: var(--rc-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

/* Acessibilidade */
:focus-visible {
  outline: 2px solid var(--rc-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--rc-gold);
  color: var(--rc-deep);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Tipografia Editorial */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.06;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rc-gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--rc-gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  color: var(--rc-white);
  margin-top: 12px;
}

.section-subtitle {
  color: var(--rc-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: 14px;
  line-height: 1.7;
}

.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 173, 67, 0.55) 50%, transparent 100%);
  border: 0;
}

.text-gold { color: var(--rc-gold); }
.text-muted { color: var(--rc-muted); }
.text-center { text-align: center; }

/* Scrollbar subtil */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--rc-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--rc-primary);
  border-radius: 99px;
  border: 2px solid var(--rc-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rc-secondary);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
