/* ── TOKENS ────────────────────────────────────────────── */
:root {
  --bg:         #080d16;
  --surface:    #0f1724;
  --surface2:   #162035;
  --border:     #1e2d45;
  --brand-blue: #1a6fd4;
  --brand-navy: #0f3460;
  --accent:     #2e8ff5;
  --text:       #dde6f0;
  --muted:      #5a7898;
  --white:      #ffffff;

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

  --r:    8px;
  --r-lg: 14px;
  --ease: 0.25s cubic-bezier(.4,0,.2,1);
  --nav-h: 68px;

  /* layout */
  --content-max: 1280px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── BRAND WORDMARK ────────────────────────────────────── */
.brand-phaiffer { font-weight: 700; color: var(--white);      letter-spacing: -0.01em; }
.brand-tech     { font-weight: 700; color: var(--brand-blue); letter-spacing: -0.01em; }

/* ── NAV ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
}
#navbar.scrolled {
  background: rgba(8,13,22,0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-brand { font-size: 1.25rem; display: flex; align-items: center; }
.nav-links  { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color var(--ease); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 0.5rem 1.4rem;
  background: var(--brand-blue); color: var(--white);
  border-radius: var(--r); font-size: 0.875rem; font-weight: 600;
  transition: background var(--ease), transform var(--ease); display: inline-block;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(26,111,212,0.22) 0%, transparent 65%),
              var(--bg);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 5rem;
  width: 100%; max-width: 900px; margin: 0 auto;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.eyebrow-line {
  display: block; flex: 1; max-width: 60px; height: 1px;
  background: var(--accent); opacity: 0.4;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.06;
  color: var(--white); margin-bottom: 1.5rem; letter-spacing: -0.035em;
}
.hero-title .highlight {
  background: linear-gradient(95deg, var(--accent) 0%, #60b4ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted); max-width: 560px; margin: 0 auto 3rem;
  line-height: 1.75; font-weight: 400;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 5rem;
}
.btn-primary {
  padding: 0.85rem 2.25rem; background: var(--brand-blue); color: var(--white);
  border: none; border-radius: var(--r); font-size: 1rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; display: inline-block;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,111,212,0.35); }
.btn-ghost {
  padding: 0.85rem 2.25rem; background: transparent;
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r); font-size: 1rem; font-weight: 500;
  font-family: var(--font-body); cursor: pointer; display: inline-block;
  transition: border-color var(--ease), color var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll-hint span {
  display: block; width: 22px; height: 36px;
  border: 2px solid var(--border); border-radius: 11px; position: relative;
}
.hero-scroll-hint span::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; background: var(--accent); border-radius: 2px;
  animation: scrollHint 1.8s ease infinite;
}
@keyframes scrollHint {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ── LAYOUT BASE ───────────────────────────────────────── */
section { padding: 7rem var(--gutter); }
.section-alt { background: var(--surface); }
.section-inner { max-width: var(--content-max); margin: 0 auto; }

/* cabeçalho de seção */
.section-header { margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.6rem; opacity: 0.85;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800;
  color: var(--white); letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 0.85rem;
}
.section-desc {
  color: var(--muted); max-width: 620px; line-height: 1.75; font-size: 1rem;
}

/* ── SOBRE ─────────────────────────────────────────────── */
#sobre { background: var(--bg); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: start;
}
.sobre-text { padding-top: 0.5rem; }
.sobre-text p {
  color: var(--muted); line-height: 1.85; margin-bottom: 1.15rem; font-size: 1rem;
}
.sobre-text p strong { color: var(--text); font-weight: 600; }
.sobre-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem;
}
.tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); background: var(--surface); letter-spacing: 0.04em;
}

/* timeline */
.timeline-header {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.75rem; opacity: 0.8;
}
.sobre-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 1.5rem;
}
.sobre-timeline::before {
  content: ''; position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline-item { display: flex; gap: 1.25rem; padding-bottom: 1.75rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -1.5rem; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg); flex-shrink: 0; z-index: 1;
}
.timeline-item.active .timeline-dot {
  background: var(--accent); box-shadow: 0 0 0 4px rgba(46,143,245,0.18);
  border-color: var(--bg);
}
.timeline-item.muted .role { color: var(--muted); }
.timeline-content .role { font-weight: 600; color: var(--text); font-size: 0.9rem; line-height: 1.35; }
.timeline-content .company { color: var(--accent); font-size: 0.78rem; font-family: var(--font-mono); margin-top: 0.2rem; }
.timeline-content .period  { color: var(--muted); font-size: 0.73rem; margin-top: 0.2rem; }

/* ── SERVIÇOS ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,111,212,0.07), transparent 60%);
  opacity: 0; transition: opacity var(--ease);
}
.service-card:hover { border-color: var(--brand-blue); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(26,111,212,0.14); }
.service-card:hover::after { opacity: 1; }
.service-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--r);
  background: rgba(26,111,212,0.12); border: 1px solid rgba(26,111,212,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem; color: var(--accent);
}
.service-icon-wrap svg { width: 24px; height: 24px; }
.service-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem; line-height: 1.3; }
.service-desc  { font-size: 0.855rem; color: var(--muted); line-height: 1.75; flex: 1; }
.service-techs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.4rem; }
.tech-pill {
  font-family: var(--font-mono); font-size: 0.68rem; padding: 0.22rem 0.58rem;
  background: rgba(26,111,212,0.1); border: 1px solid rgba(26,111,212,0.25);
  border-radius: 4px; color: var(--accent); letter-spacing: 0.02em;
}

/* ── STACK ─────────────────────────────────────────────── */
#stack { background: var(--bg); }
.stack-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stack-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem;
  transition: border-color var(--ease);
}
.stack-group:hover { border-color: rgba(26,111,212,0.4); }
.stack-group-title {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.stack-items { display: flex; flex-direction: column; gap: 0.6rem; }
.stack-item  { display: flex; align-items: center; gap: 0.65rem; font-size: 0.875rem; color: var(--text); }
.stack-dot   { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-blue); flex-shrink: 0; }

/* ── BANNER ────────────────────────────────────────────── */
.banner-section { position: relative; overflow: hidden; height: 320px; }
.banner-section img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  display: block;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8,13,22,0.95) 0%,
    rgba(8,13,22,0.80) 40%,
    rgba(8,13,22,0.30) 70%,
    rgba(8,13,22,0.05) 100%
  );
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 var(--gutter); gap: 1.75rem;
}
.banner-cta-text {
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700; color: var(--white); max-width: 480px; line-height: 1.4;
}

/* ── CONTATO ───────────────────────────────────────────── */
.contato-wrapper {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 1rem; }
.contato-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.2rem 1.5rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); transition: border-color var(--ease), transform var(--ease);
}
.contato-card:hover { border-color: var(--brand-blue); transform: translateX(5px); }
.contato-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: rgba(26,111,212,0.12); border: 1px solid rgba(26,111,212,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.contato-icon svg { width: 20px; height: 20px; }
.contato-detail .label {
  font-size: 0.68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono);
}
.contato-detail .value { color: var(--white); font-weight: 500; font-size: 0.9rem; margin-top: 0.15rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.social-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); font-size: 0.85rem; font-weight: 500; color: var(--muted);
  transition: border-color var(--ease), color var(--ease);
}
.social-btn:hover { border-color: var(--brand-blue); color: var(--accent); }

/* form */
.form-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.25rem;
}
.form-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-mono); margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0.75rem 1rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 0.9rem; background: var(--brand-blue); color: var(--white);
  border: none; border-radius: var(--r); font-size: 0.95rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; margin-top: 0.5rem;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.form-submit:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,111,212,0.3); }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  padding: 2.25rem var(--gutter);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; background: var(--bg);
}
.footer-brand { font-size: 1.1rem; }
.footer-copy  { font-size: 0.75rem; color: var(--muted); }

/* ── REVEAL ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-groups  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sobre-grid     { grid-template-columns: 1fr; gap: 3.5rem; }
  .contato-wrapper{ grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  #navbar { padding: 0 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 4.5rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-groups  { grid-template-columns: 1fr; }
  .hero-stats    { gap: 1.5rem; }
  .stat-divider  { display: none; }
  .banner-section{ height: 200px; }
  .hero-title { font-size: 2.4rem; letter-spacing: -0.02em; }
  .hero-sub { font-size: 1rem; }
}