/* ═══════════════════════════════════════════════════════════
   OSV — DESIGN SYSTEM FOUNDATION (v4.0)
   O Segredo do Viajante · Brand Identity System
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── PALETA OFICIAL OSV ── */
  --orange:         #F58E26;
  --orange-hover:   #F9A84A;
  --orange-press:   #C4700F;
  --orange-glow:    rgba(245,142,38,0.22);
  --orange-subtle:  rgba(245,142,38,0.08);
  --orange-border:  rgba(245,142,38,0.30);

  --green:          #4CAF50;
  --green-hover:    #6DC971;
  --green-press:    #2E7D32;
  --green-subtle:   rgba(76,175,80,0.10);
  --green-border:   rgba(76,175,80,0.28);

  --sepia:          #C8A96E;
  --sepia-dark:     #8B6914;
  --sepia-deep:     #5C4008;
  --sepia-subtle:   rgba(200,169,110,0.10);
  --sepia-border:   rgba(200,169,110,0.22);

  --indigo:         #2C4A7C;
  --indigo-mid:     #3D6BA8;
  --indigo-light:   #5B8CC4;
  --indigo-subtle:  rgba(44,74,124,0.14);
  --indigo-border:  rgba(61,107,168,0.26);

  --stone:          #F4F2EF;
  --stone-mid:      #ECEAE6;
  --stone-dark:     #D8D6D0;

  /* ── TIPOGRAFIA (Replacing DM with Inter/Bricolage) ── */
  --f-display:  'League Spartan', sans-serif;
  --f-heading:  'Bricolage Grotesque', sans-serif;
  --f-body:     'Inter', sans-serif; /* REPLACED DM SANS */
  --f-mono:     'Inter', monospace;  /* REPLACED DM MONO */
  --f-script:   Georgia, 'Times New Roman', serif;
  --f-oldstyle: 'IM Fell English', Georgia, serif;

  /* ── EASING ── */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-sharp:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

  /* ── TOKENS SEMÂNTICOS DEFAULT (DARK) ── */
  --bg-base:     #0D0D0D;
  --bg-page:     #121212;
  --bg-surface:  #1A1A1A;
  --bg-raised:   #202020;
  --bg-overlay:  #2A2A2A;
  --bg-nav:      rgba(13,13,13,0.96);

  --text-hi:     #FFFFFF;
  --text-mid:    rgba(255,255,255,0.60);
  --text-lo:     rgba(255,255,255,0.30);
  --text-faint:  rgba(255,255,255,0.14);

  --line:        rgba(255,255,255,0.07);
  --line-mid:    rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.20);

  --shadow:      0 4px 32px rgba(0,0,0,0.60);
  --shadow-lg:   0 8px 56px rgba(0,0,0,0.80);
}

[data-theme="light"] {
  --bg-base:     #EAE8E4;
  --bg-page:     #F4F2EF;
  --bg-surface:  #FFFFFF;
  --bg-raised:   #FDFCFB;
  --bg-overlay:  #ECEAE6;
  --bg-nav:      rgba(244,242,239,0.96);

  --text-hi:     #1A1008;
  --text-mid:    #3A3530;
  --text-lo:     #6E6A62;
  --text-faint:  #A8A49C;

  --line:        rgba(60,56,50,0.08);
  --line-mid:    rgba(60,56,50,0.14);
  --line-strong: rgba(60,56,50,0.24);

  --shadow:      0 2px 20px rgba(40,38,34,0.10);
  --shadow-lg:   0 6px 44px rgba(40,38,34,0.16);
}

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg-page);
  color: var(--text-hi);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN EFFECT ── */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022; pointer-events: none;
}
[data-theme="light"] body::before { opacity: 0.038; }

/* ── UTILITIES ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.heading-l {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-hi);
}

.heading-m {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-hi);
}

.text-gradient {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  opacity: 0.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--orange-hover);
  box-shadow: 0 8px 32px var(--orange-glow);
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-out);
}

.glass-card:hover {
  border-color: var(--line-mid);
  transform: translateY(-4px);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
