:root {
  --bg: #0B0D12;
  --bg-alt: #12151D;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.09);
  --ink: #F3F1EB;
  --muted: #9BA1AE;
  --muted-2: #6B7180;
  --accent-a: #FF7E3D;
  --accent-b: #3E7BFA;
  --accent-grad: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  --line: rgba(255, 255, 255, 0.10);
  --radius: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; color: var(--muted); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-a);
  font-weight: 600;
  margin: 0 0 16px;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-grad);
  z-index: 60;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[id] { scroll-margin-top: 100px; }

.site-header.scrolled {
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80px;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.nav a span { position: relative; }

.nav a:not(.nav-cta) span::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -4px;
  height: 1px;
  background: var(--accent-a);
  transition: left 0.25s ease, right 0.25s ease;
}

.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover span::after { left: 0; right: 0; }

.nav-cta {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--ink) !important;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover { border-color: var(--accent-a); background: var(--surface); }

/* Hero */

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: -14%;
  left: -12%;
  background: radial-gradient(circle at 30% 30%, var(--accent-a), transparent 70%);
}

.orb-b {
  width: 460px;
  height: 460px;
  bottom: -18%;
  right: -8%;
  background: radial-gradient(circle at 70% 70%, var(--accent-b), transparent 70%);
  animation-delay: -6s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -24px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-photo {
  max-width: 340px;
  justify-self: end;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 26px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn span { position: relative; z-index: 1; }

.btn-primary {
  background: var(--accent-grad);
  color: #0B0D12;
  border: none;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255, 126, 61, 0.55);
}

.btn-ghost {
  border-color: var(--surface-border);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent-a);
  transform: translateY(-2px);
}

.hero-photo-frame {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--accent-grad);
  box-shadow: 0 40px 90px -30px rgba(255, 126, 61, 0.4);
  transition: transform 0.4s ease;
}

.hero-photo-frame:hover { transform: rotate(-1deg) scale(1.015); }

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) + 3px);
  background: var(--bg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  z-index: 1;
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-a);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 16px; }
  100% { opacity: 0; top: 7px; }
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 18px 0;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  align-items: center;
}

.marquee-track span {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--muted-2);
  padding: 0 10px;
}

.marquee-track .accent-word { color: var(--accent-a); }

.marquee-track .dot { color: var(--muted-2); opacity: 0.5; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */

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

.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 32px;
  max-width: 640px;
  color: var(--ink);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.lead-p { color: var(--ink); font-size: 1.1rem; }

.sobre-texto p:last-child { margin-bottom: 0; }

.sobre-subtitulo {
  font-size: 1.2rem;
  margin: 32px 0 16px;
}

/* Linha do tempo (trajetória pessoal) */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--surface-border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-grad);
}

.timeline-ano {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.2rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.timeline-marco {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Artigos */

.artigos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.artigo-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  color: var(--ink);
}

.artigo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 126, 61, 0.4);
  background: var(--surface-strong);
}

.artigo-veiculo {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-a);
}

.artigo-titulo {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
  flex-grow: 1;
}

.artigo-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artigo-data {
  font-size: 0.85rem;
  color: var(--muted);
}

.artigo-rodape .arrow {
  color: var(--accent-a);
  transition: transform 0.25s ease;
}

.artigo-card:hover .arrow { transform: translateX(6px); }

/* Contact */

.contato-inner { max-width: 680px; }

.links-contato {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.links-contato a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.3rem;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.links-contato .arrow {
  font-family: 'Inter', sans-serif;
  color: var(--accent-a);
  transition: transform 0.25s ease;
}

.links-contato a:hover { color: var(--accent-a); padding-left: 10px; }
.links-contato a:hover .arrow { transform: translateX(6px); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.footer-inner p { margin: 0; font-size: 0.85rem; color: var(--muted-2); }

.footer-sub { margin-top: 4px; }

/* Botão flutuante de voltar ao topo */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: #0B0D12;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 12px 30px -10px rgba(255, 126, 61, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-3px); }

@media (max-width: 560px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Fade-in on scroll */

.fade-in {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .orb, .marquee-track, .scroll-cue span { animation: none; }
}

/* Responsive */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .artigos-grid { grid-template-columns: 1fr; }
  .nav span:not(.arrow) { display: inline; }
  .nav { gap: 4px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 84px 0 64px; }
  .section { padding: 76px 0; }
  .nav a { font-size: 0.8rem; padding: 8px 10px; }
  .nav-cta { padding: 8px 14px; }
  .links-contato a { font-size: 1.08rem; }
}
