/* =========================================
   TOKENS — troque aqui pra mudar o visual inteiro
   ========================================= */
:root {
  --bg: #12172B;
  --bg-alt: #1A2040;
  --paper: #F5F1E6;
  --text: #EDEAE2;
  --text-muted: #9AA3C4;
  --ink: #1B1B1B;
  --accent: #E8A33D;
  --accent-2: #4C7A82;
  --line: rgba(232, 163, 61, 0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

p { margin: 0 0 16px; color: var(--text-muted); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  position: sticky;
  top: 0;
  background: rgba(18, 23, 43, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
}
.nav__brand span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
}
.nav__links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: clamp(60px, 12vw, 120px) clamp(20px, 5vw, 60px) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 780px;
}
.hero__subtitle {
  max-width: 520px;
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 60px;
  flex-wrap: wrap;
}

.connector {
  display: block;
  width: 100%;
  height: 60px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }

/* ===== SEÇÕES ===== */
.section {
  padding: 80px clamp(20px, 5vw, 60px);
}
.section--alt { background: var(--bg-alt); }
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__lead {
  max-width: 560px;
  font-size: 1.02rem;
}

/* Sobre */
.sobre__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.facts li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.facts li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* Projeto / Case study */
.case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.case__card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 36px;
}
.case__card p { color: #4A4A4A; }
.case__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 6px;
  margin-top: 22px;
}
.case__label:first-child { margin-top: 0; }
.stats {
  display: flex;
  gap: 28px;
  margin: 4px 0 18px;
}
.stats__item {
  display: flex;
  flex-direction: column;
}
.stats__item strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-2);
  line-height: 1.1;
}
.stats__item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7A7A7A;
}

.case__links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.case__shot {
  display: flex;
  align-items: stretch;
}
.case__shot-placeholder {
  width: 100%;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 240px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(232, 163, 61, 0.12);
  color: var(--accent);
  border: 1px solid rgba(232, 163, 61, 0.3);
}
.tags--muted span {
  background: rgba(154, 163, 196, 0.1);
  color: var(--text-muted);
  border-color: rgba(154, 163, 196, 0.25);
}

/* Habilidades */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}
.skills__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 2px solid rgba(232, 163, 61, 0.3);
}
.timeline li {
  display: flex;
  gap: 24px;
  padding: 0 0 32px 28px;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 110px;
}
.timeline__title { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.timeline__desc { margin: 0; font-size: 0.92rem; }

/* Contato */
.section--contact { text-align: left; }
.contact__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer {
  text-align: center;
  padding: 32px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }

  .sobre__grid, .case, .skills {
    grid-template-columns: 1fr;
  }
  .case__shot { order: -1; }
  .case__shot-placeholder { min-height: 180px; }
}
