/* =====================================================
   DESIGN SYSTEM V2 — Invictus Performance
   ===================================================== */

/* ===== TOKENS ===== */
:root {
  /* Backgrounds — variações sutis para separar seções */
  --bg-0: #080808;
  --bg-1: #0a0a0a;
  --bg-2: #0e0e0e;
  --bg-3: #111111;
  --bg-4: #131313;
  --bg-card: #141414;
  --bg-card-hover: #191919;
  --bg-input: #111111;

  /* Borders */
  --border-subtle: #1a1a1a;
  --border-default: #242424;
  --border-strong: #303030;

  /* Accent */
  --accent: #FFD100;
  --accent-dim: rgba(255, 209, 0, 0.12);
  --accent-glow: rgba(255, 209, 0, 0.22);
  --accent-hover: #F0C400;
  --accent-dark: #B89500;

  /* Text */
  --text-primary: #EFEFEF;
  --text-secondary: #9A9A9A;
  --text-tertiary: #606060;
  --text-inverse: #000000;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Type scale */
  --fs-hero: clamp(52px, 8.5vw, 100px);
  --fs-display: clamp(38px, 5.5vw, 72px);
  --fs-h1: clamp(32px, 4vw, 56px);
  --fs-h2: clamp(26px, 3vw, 40px);
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-xl: 20px;
  --fs-lg: 18px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-xxs: 11px;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px;  --s10: 40px;
  --s12: 48px; --s16: 64px; --s20: 80px;
  --s24: 96px; --s32: 128px;

  /* Border radius */
  --r1: 4px; --r2: 8px; --r3: 12px; --r4: 16px; --rp: 9999px;

  /* Layout */
  --max-w: 1320px;
  --px: clamp(20px, 5vw, 56px);

  /* Transitions */
  --ease: 0.22s cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-slow: 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 40px rgba(255,209,0,0.12);
  --shadow-glow: 0 0 40px rgba(255,209,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
    transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.96) translateY(12px); }
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Delay utilities */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 30px;
  border-radius: var(--r2);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border: 1.5px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-default);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
}

.btn-sm {
  font-size: var(--fs-sm);
  padding: 9px 20px;
}

/* ===== EYEBROW / SECTION LABELS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--s5);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r4);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.card:hover {
  border-color: rgba(255,209,0,0.25);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--r1);
  line-height: 1;
}
.badge-s1 { border: 1px solid var(--accent); color: var(--accent); }
.badge-s2 { background: rgba(255,209,0,0.18); color: var(--accent); }
.badge-s3 { background: var(--accent); color: #000; }
.badge-neutral { border: 1px solid var(--border-strong); color: var(--text-secondary); }

/* ===== ACCENT LINE ===== */
.accent-bar {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--s8);
}

/* ===== FORM ELEMENTS ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r2);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: var(--fs-base);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,209,0,0.08);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--bg-3); }

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
