/* ============================================================
   X7 Tecnologia — styles.css
   Consolidação do CSS inline + camada responsiva
   Breakpoints: 1200 / 1024 / 900 / 768 / 480
   ============================================================ */

:root {
  --bg: #0A0A0B;
  --bg-1: #101013;
  --bg-2: #16161B;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #EDEDED;
  --ink-dim: #A8A8B0;
  --muted: #6B6B72;
  --accent: oklch(0.88 0.18 125);
  --accent-ink: #0A0A0B;
  --cyan: oklch(0.82 0.10 200);
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(180, 240, 90, 0.06), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(120, 200, 255, 0.035), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 2; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.tag::before { content: "["; color: var(--muted); margin-right: 2px; }
.tag::after { content: "]"; color: var(--muted); margin-left: 2px; }
.rule { height: 1px; background: var(--line); width: 100%; }

/* ——— NAV ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 11, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.logo-icon { height: 32px; width: auto; display: block; }
.logo-img { height: 22px; width: auto; display: block; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--mono); font-weight: 700; font-size: 13px;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.nav-links { display: flex; gap: 36px; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::before {
  content: attr(data-num); color: var(--muted); font-size: 10px; margin-right: 6px;
}
.nav-cta {
  font-family: var(--mono); font-size: 12px;
  padding: 10px 18px; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--ink);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-cta:hover .dot { background: var(--accent-ink); box-shadow: none; }

/* Hambúrguer — escondido em desktop */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: all 0.25s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ——— HERO ——— */
.hero {
  padding: 160px 0 120px;
  position: relative;
  min-height: 100vh;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  animation: gridDrift 40s linear infinite;
  opacity: 0.7;
}
@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, 80px 80px; }
}

.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 80px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.15em;
  gap: 16px; flex-wrap: wrap;
}
.hero-top .live {
  display: flex; align-items: center; gap: 10px; color: var(--ink-dim);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.5;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-headline {
  font-size: clamp(40px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 1160px;
  position: relative;
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > span {
  display: inline-block;
  animation: riseIn 1.2s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.hero-headline .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero-headline .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero-headline .line:nth-child(3) > span { animation-delay: 0.25s; }
@keyframes riseIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero-headline em {
  font-style: normal;
  font-family: var(--mono); font-weight: 400;
  font-size: 0.82em;
  color: var(--accent);
  position: relative;
  padding: 0 4px;
}
.hero-headline em::before, .hero-headline em::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--accent);
}
.hero-headline em::before { top: 8px; left: -4px; border-right: 0; border-bottom: 0; }
.hero-headline em::after { bottom: 8px; right: -4px; border-left: 0; border-top: 0; }

.hero-sub {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  align-items: start;
}
.hero-sub .desc { font-size: 18px; line-height: 1.5; color: var(--ink-dim); max-width: 420px; grid-column: 2; }
.hero-sub .desc strong { color: var(--ink); font-weight: 500; }
.hero-sub .meta {
  grid-column: 3;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-sub .meta span { color: var(--ink-dim); }

.hero-actions {
  margin-top: 56px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono); font-size: 13px;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero bottom strip */
.hero-ticker {
  position: absolute; bottom: 40px; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.ticker-track {
  display: flex; gap: 64px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  display: flex; align-items: center; gap: 16px;
}
.ticker-item::after { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— SECTION LABEL ——— */
.section { padding: 140px 0; position: relative; }
#sobre { padding-top: 180px; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 48px; margin-bottom: 80px; align-items: start; }
.section-label {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.18em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.section-label::before { content: "— "; color: var(--accent); }
.section-title {
  font-size: clamp(34px, 5.2vw, 68px); line-height: 0.96; letter-spacing: -0.035em;
  font-weight: 400; max-width: 900px;
}
.section-title em { font-style: normal; color: var(--muted); }

/* ——— SERVIÇOS ——— */
.services-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.services-intro { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; padding-top: 6px; }
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 60px;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: padding 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(180, 240, 90, 0.04), transparent);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; }
.service-row:hover { padding-left: 24px; padding-right: 24px; }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.service-name { font-size: clamp(26px, 3.5vw, 44px); letter-spacing: -0.03em; font-weight: 400; line-height: 1; }
.service-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.5; max-width: 380px; }
.service-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: all 0.3s;
  justify-self: end;
}
.service-row:hover .service-arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ——— STACK ——— */
.stack-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.stack-marquee {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 40px 0;
}
.stack-marquee:hover { animation-play-state: paused; }
.stack-item {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 22px; color: var(--ink-dim);
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s;
}
.stack-item:hover { color: var(--ink); border-color: var(--ink); background: var(--bg); }
.stack-item .bullet { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stack-categories {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.stack-cat {
  background: var(--bg-1);
  padding: 56px 40px;
  transition: background 0.3s;
}
.stack-cat:hover { background: var(--bg-2); }
.stack-cat-num { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 32px; display: block; }
.stack-cat-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px; }
.stack-cat-list { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); line-height: 2; }

/* ——— STATS BAR ——— */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(52px, 7.5vw, 96px); letter-spacing: -0.05em; font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num .suffix { color: var(--accent); font-size: 0.38em; letter-spacing: 0; font-family: var(--mono); font-weight: 400; margin-left: 6px; vertical-align: middle; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 16px; }

/* ——— CASES ——— */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.case {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-1);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.3s;
  cursor: pointer;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-2); }
.case.large { grid-column: 1 / -1; }
.case-media {
  height: 440px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.case.small .case-media { height: 320px; }
.case-visual {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.case-meta {
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end;
}
.case-cat { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }
.case-title { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 500; line-height: 1.1; }
.case-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.5; max-width: 340px; }
.case-year { font-family: var(--mono); font-size: 12px; color: var(--muted); align-self: end; }

/* Case 1: IA Agents — animated orbit */
.viz-orbit { width: 100%; height: 100%; position: relative; background: radial-gradient(circle at 50% 50%, rgba(180,240,90,0.12), transparent 60%); }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 60px var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--mono); font-weight: 600; font-size: 18px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 60px var(--accent); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 90px var(--accent); }
}
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed var(--line-2); border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring.r1 { width: 180px; height: 180px; }
.orbit-ring.r2 { width: 280px; height: 280px; }
.orbit-ring.r3 { width: 420px; height: 420px; }
.orbiter {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform-origin: 0 0;
}
.orbiter.r1 { animation: orbit 18s linear infinite; }
.orbiter.r2 { animation: orbit 30s linear infinite reverse; }
.orbiter.r3 { animation: orbit 50s linear infinite; }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbiter .orbit-node {
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 16px var(--ink);
  top: -5px; left: -5px;
}
.orbit-node.alt { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.orbit-node.dim { background: var(--muted); box-shadow: none; }

/* Case 2: Sistema ERP — dashboard mock */
.viz-dash { width: 100%; height: 100%; background: var(--bg-2); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.viz-dash-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.viz-dash-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; flex: 1; }
.viz-tile { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 16px; position: relative; overflow: hidden; }
.viz-tile-label { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.viz-tile-val { font-size: 28px; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.viz-tile-val.accent { color: var(--accent); }
.viz-tile.chart { grid-column: 1 / -1; height: 120px; display: flex; align-items: flex-end; gap: 4px; padding: 16px 20px; }
.viz-bar { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; transition: background 0.3s; animation: barGrow 2s ease-out both; transform-origin: bottom; }
.viz-bar.hi { background: var(--accent); }
@keyframes barGrow { from { transform: scaleY(0); } }

/* Case 3: App Mobile */
.viz-phone { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(180deg, transparent, rgba(180,240,90,0.04)); }
.phone-frame {
  width: 200px; height: 420px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 32px;
  padding: 20px 16px;
  position: relative;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; background: var(--bg-2); border-radius: 3px; }
.phone-screen-head { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
.phone-big-num { font-size: 48px; letter-spacing: -0.04em; margin-top: 24px; font-variant-numeric: tabular-nums; }
.phone-small { font-family: var(--mono); font-size: 10px; color: var(--ink-dim); margin-top: 4px; }
.phone-chart { height: 70px; margin-top: 20px; display: flex; align-items: flex-end; gap: 3px; }
.phone-chart .b { flex: 1; background: var(--accent); border-radius: 1px; opacity: 0.4; }
.phone-chart .b.on { opacity: 1; }
.phone-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.phone-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; padding: 8px; background: var(--bg-1); border-radius: 6px; }
.phone-row span:last-child { color: var(--accent); }

/* Case 4: DevOps pipeline */
.viz-pipe { width: 100%; height: 100%; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 20px; background: var(--bg-2); }
.pipe-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pipe-stage {
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-1);
  color: var(--ink-dim);
  position: relative;
}
.pipe-stage.active { border-color: var(--accent); color: var(--accent); }
.pipe-stage.active::before {
  content: ""; position: absolute; inset: -1px; border-radius: 10px;
  border: 1px solid var(--accent);
  animation: pulseBorder 2s ease-in-out infinite;
}
@keyframes pulseBorder { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.pipe-arrow { color: var(--muted); font-family: var(--mono); }
.pipe-log { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 20px; line-height: 1.8; }
.pipe-log .ok { color: var(--accent); }

/* ——— SOBRE (about) ——— */
.about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; align-items: start; }
.about-col { display: flex; flex-direction: column; gap: 20px; }
.about-tag { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about-lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-weight: 400; }
.about-lead strong { color: var(--accent); font-weight: 500; }
.about-body { font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.about-body strong { color: var(--ink); font-weight: 500; }
.about-pillars { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pillar { background: var(--bg-1); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: background 0.3s; }
.pillar:hover { background: var(--bg-2); }
.pillar-num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.pillar-name { font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }

/* ——— EQUIPE ——— */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: all 0.3s;
  background: var(--bg-1);
  overflow: hidden;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.team-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.team-card:hover::after { opacity: 1; }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 24px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
}
.team-avatar::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px dashed var(--line-2);
  opacity: 0; transition: opacity 0.3s;
  animation: spin 20s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.team-card:hover .team-avatar::before { opacity: 1; }
.team-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.team-role { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.team-meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.team-meta span:last-child { color: var(--ink-dim); }

/* ——— CTA ——— */
.cta-section { padding: 180px 0; position: relative; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}
.cta-content { position: relative; text-align: center; }
.cta-title {
  font-size: clamp(64px, 14vw, 180px); line-height: 0.85; letter-spacing: -0.05em; font-weight: 400;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 50%, rgba(237,237,237,0.2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-title em { font-style: normal; color: var(--accent); -webkit-text-fill-color: var(--accent); font-family: var(--mono); font-size: 0.7em; }
.cta-sub { font-family: var(--mono); font-size: 14px; color: var(--ink-dim); margin-top: 40px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-actions { margin-top: 56px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ——— FOOTER ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg-1);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 80px; }
.footer-about h3 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em; font-weight: 400; margin-bottom: 20px; max-width: 400px; }
.footer-about p { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  gap: 16px; flex-wrap: wrap;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Cursor glow */
.cursor-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 240, 90, 0.08), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ============================================================
   RESPONSIVO — breakpoints 1200 / 1024 / 900 / 768 / 480
   ============================================================ */

/* ——— ≤ 1200px: ajustes de padding/tipografia largo ——— */
@media (max-width: 1200px) {
  .wrap { padding: 0 32px; }
  .section { padding: 110px 0; }
  .cta-section { padding: 140px 0; }
  .section-head { grid-template-columns: 160px 1fr; gap: 32px; margin-bottom: 60px; }
  .services-grid { grid-template-columns: 160px 1fr; gap: 32px; }
  .service-row { grid-template-columns: 60px 1fr 1fr 50px; gap: 32px; padding: 32px 0; }
  .stack-cat { padding: 44px 28px; }
  .hero { padding: 140px 0 140px; }
  .hero-sub { gap: 32px; }
  .stats { gap: 32px; padding: 64px 0; }
}

/* ——— ≤ 1024px: tablets em paisagem ——— */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  .nav-inner { height: 60px; }
  .nav-links { gap: 24px; }

  .hero-sub {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .hero-sub .desc  { grid-column: 1; max-width: none; font-size: 16px; }
  .hero-sub .meta  { grid-column: 2; }

  .stack-categories { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; margin-bottom: 16px; }

  .case-media { height: auto; min-height: 400px; }
  .case.small .case-media { height: auto; min-height: 340px; }
  .case.large .case-media[style] { height: auto !important; min-height: 360px; }
  .viz-dash { padding: 24px; gap: 12px; }
  .viz-dash-body { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .viz-tile-val { font-size: clamp(18px, 2.6vw, 26px); }
  .orbit-ring.r3 { width: 340px; height: 340px; }
  .orbiter.r3 .orbit-node { transform: translateX(170px) !important; }

  .service-row { grid-template-columns: 50px 1fr 1fr 44px; gap: 24px; }
  .service-desc { max-width: 280px; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-pillars { grid-column: 1 / -1; flex-direction: row; }
  .about-pillars .pillar { flex: 1; }
}

/* ——— ≤ 900px: tablets em retrato / mobile grande ——— */
@media (max-width: 900px) {
  /* Nav vira hambúrguer */
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 24px 28px 32px;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
    font-size: 18px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .hero { padding: 120px 0 180px; min-height: auto; }
  .hero-top { margin-bottom: 48px; }
  .hero-top > span:nth-child(3) { display: none; }

  .hero-sub { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .hero-sub .desc { grid-column: 1; }
  .hero-sub .meta { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }

  .hero-actions { margin-top: 40px; }
  .btn { padding: 16px 24px; font-size: 12px; }

  .hero-ticker { bottom: 0; padding: 14px 0; }
  .ticker-track { gap: 40px; animation-duration: 25s; }

  .section { padding: 88px 0; }
  .cta-section { padding: 100px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .section-label { padding-top: 10px; }

  /* Serviços em coluna única */
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num  name  arrow"
      "desc desc  desc";
    gap: 12px 16px;
    padding: 28px 0;
  }
  .service-num  { grid-area: num; align-self: center; }
  .service-name { grid-area: name; }
  .service-arrow{ grid-area: arrow; align-self: center; width: 38px; height: 38px; }
  .service-desc { grid-area: desc; max-width: none; margin-top: 4px; }
  .service-row:hover { padding-left: 12px; padding-right: 12px; }

  /* Stats 2x2 + espaçamento reduzido entre Serviços → Stats → Sobre */
  #servicos { padding-bottom: 40px; }
  #sobre { padding-top: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 32px 0 24px; }

  /* Stack em coluna única */
  .stack-categories { grid-template-columns: 1fr; }
  .stack-cat { padding: 36px 24px; }
  .stack-cat-num { margin-bottom: 20px; }
  .stack-item { font-size: 16px; padding: 10px 18px; }
  .stack-marquee { gap: 32px; padding: 28px 0; }

  /* Cases em coluna única — conteúdo dita a altura */
  .cases-grid { grid-template-columns: 1fr; gap: 24px; }
  .case.large { grid-column: auto; }
  .case-media,
  .case.small .case-media,
  .case.large .case-media,
  .case-media[style] { height: auto !important; min-height: 320px; }
  .case-meta { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .case-year { justify-self: start; }

  /* Case IA — órbitas escaladas */
  .viz-orbit { min-height: 340px; padding: 28px 0; }
  .orbit-ring.r1 { width: 130px; height: 130px; }
  .orbit-ring.r2 { width: 210px; height: 210px; }
  .orbit-ring.r3 { width: 300px; height: 300px; }
  .orbit-core { width: 60px; height: 60px; font-size: 15px; }
  .orbiter.r1 .orbit-node { transform: translateX(65px) !important; }
  .orbiter.r2 .orbit-node { transform: translateX(105px) !important; }
  .orbiter.r2 .orbit-node[style*="180deg"] { transform: translateX(105px) rotate(180deg) !important; }
  .orbiter.r3 .orbit-node { transform: translateX(150px) !important; }

  /* Case ERP — 3 cols compactas + chart full-width, sem cortar */
  .viz-dash { padding: 20px; gap: 10px; min-height: 320px; }
  .viz-dash-head { font-size: 10px; }
  .viz-dash-body { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .viz-tile { padding: 12px 10px; overflow: hidden; }
  .viz-tile-label { font-size: 9px; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .viz-tile-val { font-size: clamp(14px, 3.6vw, 20px); margin-top: 4px; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .viz-tile.chart { grid-column: 1 / -1; height: 96px; padding: 14px 16px; }

  /* Case App — phone escalado proporcional */
  .viz-phone { min-height: 400px; padding: 20px 0; }
  .phone-frame { width: 180px; height: 380px; }
  .phone-big-num { font-size: 38px; margin-top: 18px; }

  /* Case DevOps — pipeline em wrap + log encurtado */
  .viz-pipe { padding: 20px; gap: 14px; min-height: 280px; }
  .pipe-row { gap: 8px; justify-content: flex-start; }
  .pipe-stage { padding: 9px 13px; font-size: 10.5px; border-radius: 8px; }
  .pipe-arrow { display: none; }
  .pipe-log { font-size: 10px; margin-top: 10px; line-height: 1.65; }
  .pipe-log div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Sobre empilhado */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-pillars { flex-direction: column; }

  /* Equipe 2 colunas */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card { padding: 22px; }
  .team-avatar { width: 64px; height: 64px; font-size: 20px; margin-bottom: 18px; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-bottom: 48px; }
  .footer-about { grid-column: 1 / -1; margin-bottom: 0; }

  /* Cursor glow atrapalha em touch */
  .cursor-glow { display: none; }
  body { cursor: auto !important; }
}

/* ——— ≤ 768px: mobiles grandes ——— */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .logo-img { height: 16px; }
  .logo-icon { height: 32px; }

  .hero { padding: 100px 0 150px; }
  .hero-top { font-size: 10px; gap: 12px; }
  .hero-top > span:nth-child(1) { order: 1; }
  .hero-top .live { order: 2; }

  .hero-sub .desc { font-size: 15px; }

  .btn { padding: 14px 20px; font-size: 11px; width: 100%; justify-content: center; }
  .btn.btn-ghost { width: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  .case-media,
  .case.small .case-media,
  .case.large .case-media { min-height: 300px; }
  .case-meta { padding: 20px; }

  /* Orbit ligeiramente menor */
  .viz-orbit { min-height: 320px; }
  .orbit-ring.r1 { width: 120px; height: 120px; }
  .orbit-ring.r2 { width: 195px; height: 195px; }
  .orbit-ring.r3 { width: 280px; height: 280px; }
  .orbiter.r1 .orbit-node { transform: translateX(60px) !important; }
  .orbiter.r2 .orbit-node { transform: translateX(97px) !important; }
  .orbiter.r2 .orbit-node[style*="180deg"] { transform: translateX(97px) rotate(180deg) !important; }
  .orbiter.r3 .orbit-node { transform: translateX(140px) !important; }

  /* ERP mais compacto */
  .viz-dash { padding: 16px; gap: 10px; min-height: 300px; }
  .viz-dash-head { font-size: 9.5px; }
  .viz-dash-body { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .viz-tile { padding: 10px 8px; }
  .viz-tile-label { font-size: 8.5px; }
  .viz-tile-val { font-size: clamp(13px, 3.4vw, 17px); }
  .viz-tile.chart { height: 88px; padding: 12px 14px; }

  /* Phone */
  .viz-phone { min-height: 380px; }
  .phone-frame { width: 168px; height: 358px; }
  .phone-big-num { font-size: 34px; margin-top: 16px; }

  /* Pipeline ainda mais compacto */
  .viz-pipe { padding: 16px; gap: 12px; min-height: 260px; }
  .pipe-stage { padding: 8px 12px; font-size: 10px; }
  .pipe-log { font-size: 9.5px; margin-top: 8px; }

  .stack-item { font-size: 14px; padding: 8px 14px; gap: 10px; }
  .stack-marquee { gap: 24px; padding: 20px 0; }

  /* Aperta espaço vertical entre Serviços → Stats → Sobre */
  #servicos { padding-bottom: 24px; }
  #sobre { padding-top: 40px; }

  /* Stats empilhados em cards — centralizados com borda */
  .stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0 24px;
    border-bottom: 0;
  }
  .stats > div {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-1);
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.3s, transform 0.3s;
  }
  .stats > div:hover { border-color: var(--line-2); }
  .stat-num { font-size: clamp(48px, 12vw, 72px); line-height: 1; }
  .stat-num .suffix { margin-left: 4px; }
  .stat-label { margin-top: 4px; }

  .cta-section { padding: 80px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ——— ≤ 480px: mobiles pequenos ——— */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  .hero { padding: 90px 0 130px; }
  .hero-top { margin-bottom: 32px; }
  .hero-top > span:nth-child(1) { font-size: 9px; }
  .hero-top .live { font-size: 9px; }

  .hero-sub { margin-top: 32px; gap: 20px; }
  .hero-sub .meta { flex-direction: column; gap: 6px; }

  /* Nav ajustes */
  .nav-inner { height: 56px; }
  .nav-links { top: 56px; padding: 20px 20px 28px; font-size: 16px; }
  .nav-toggle { width: 40px; height: 40px; }

  /* Stats em 1 coluna */
  #servicos { padding-bottom: 16px; }
  #sobre { padding-top: 32px; }
  .stats { gap: 12px; padding: 16px 0 20px; }
  .stats > div { padding: 28px 20px; border-radius: 12px; }
  .stat-num { font-size: 44px; }

  /* Team 1 coluna */
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 20px; }

  /* Footer 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Cases — versão compacta */
  .case-media,
  .case.small .case-media,
  .case.large .case-media { min-height: 280px; }
  .case-meta { padding: 18px; gap: 10px; }
  .case-title { font-size: 17px; }
  .case-desc { font-size: 13px; }
  .case-cat { font-size: 10px; letter-spacing: 0.12em; }

  /* IA órbitas — versão mini */
  .viz-orbit { min-height: 290px; padding: 20px 0; }
  .orbit-ring.r1 { width: 100px; height: 100px; }
  .orbit-ring.r2 { width: 165px; height: 165px; }
  .orbit-ring.r3 { width: 240px; height: 240px; }
  .orbit-core { width: 52px; height: 52px; font-size: 13px; }
  .orbiter.r1 .orbit-node { transform: translateX(50px) !important; }
  .orbiter.r2 .orbit-node { transform: translateX(82px) !important; }
  .orbiter.r2 .orbit-node[style*="180deg"] { transform: translateX(82px) rotate(180deg) !important; }
  .orbiter.r3 .orbit-node { transform: translateX(120px) !important; }

  /* ERP — mantém 3 cols com tipografia mini (não corta) */
  .viz-dash { padding: 14px; gap: 8px; min-height: 280px; }
  .viz-dash-head { font-size: 9px; gap: 8px; }
  .viz-dash-head span:last-child { font-size: 8px; }
  .viz-dash-body { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .viz-tile { padding: 9px 7px; border-radius: 8px; }
  .viz-tile-label { font-size: 7.5px; letter-spacing: 0.06em; }
  .viz-tile-val { font-size: clamp(11px, 3.2vw, 14px); margin-top: 3px; letter-spacing: -0.04em; }
  .viz-tile.chart { grid-column: 1 / -1; height: 70px; padding: 10px 12px; }

  /* Phone — escala mínima */
  .viz-phone { min-height: 330px; padding: 16px 0; }
  .phone-frame { width: 148px; height: 300px; padding: 14px 10px; border-radius: 26px; }
  .phone-small { font-size: 9px; }
  .phone-big-num { font-size: 28px; margin-top: 12px; }
  .phone-chart { height: 48px; margin-top: 12px; }
  .phone-list { margin-top: 14px; gap: 6px; }
  .phone-row { font-size: 9px; padding: 6px 8px; }

  /* Pipeline — caber em largura estreita */
  .viz-pipe { padding: 14px; gap: 10px; min-height: 250px; }
  .pipe-row { gap: 6px; }
  .pipe-stage { padding: 7px 11px; font-size: 9.5px; }
  .pipe-log { font-size: 9px; line-height: 1.55; margin-top: 6px; }

  .cta-sub { font-size: 13px; margin-top: 28px; }
  .cta-actions { margin-top: 40px; }
}

/* Acessibilidade: respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow { display: none; }
}
