/* ── Reset & Tokens ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:        #2356d6;
  --azul-h:      #1f56c4;
  --azul-light:  #e9f0fe;
  --azul-mid:    #4f8cff;
  --verde:       #34d399;
  --verde-h:     #10b981;
  --bg:          #f4f6fb;
  --bg2:         #ffffff;
  --border:      #e2e8f0;
  --text:        #1a2340;
  --text2:       #4a5568;
  --text3:       #94a3b8;
  --success:     #16a34a;
  --danger:      #dc2626;
  --warning:     #d97706;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(47,111,230,0.08);
  --shadow-md:   0 6px 32px rgba(47,111,230,0.13);
  --nav-h:       64px;
}

[data-theme="dark"] {
  --azul:        #5b8af5;
  --azul-h:      #7aaaf7;
  --azul-light:  #1a2540;
  --azul-mid:    #4a78f5;
  --bg:          #0d0f17;
  --bg2:         #13151f;
  --border:      #1e2235;
  --text:        #e2e8f0;
  --text2:       #94a3b8;
  --text3:       #4a5878;
  --shadow:      0 2px 16px rgba(0,0,0,0.5);
  --shadow-md:   0 6px 32px rgba(0,0,0,0.65);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: var(--azul-light);
  color: var(--azul);
  padding: 2px 6px;
  border-radius: 4px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(47,111,230,0.10);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(13,15,23,0.88);
  box-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--azul); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
}
.nav-links {
  display: flex; list-style: none; gap: 6px; flex: 1;
}
.nav-links a {
  text-decoration: none; color: var(--text2);
  padding: 6px 12px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.nav-links a:hover { background: var(--azul-light); color: var(--azul); }

.theme-btn {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--azul-light); border: none; cursor: pointer;
  font-size: 1rem; transition: transform 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { transform: rotate(20deg) scale(1.1); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 48px;
  position: relative;
}
.hero-bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}
.hero-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.hero-left {
  flex: 1; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--azul-light); color: var(--azul);
  border: 1px solid rgba(47,111,230,0.18);
  border-radius: 20px; padding: 4px 14px;
  font-size: 0.75rem; font-weight: 700; width: fit-content;
  opacity: 0;
}
.hero-title {
  display: flex; flex-direction: column;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--text);
  /* sem opacity:0 aqui — GSAP anima o elemento inteiro diretamente */
}
.hero-title .accent { color: var(--azul); }
.hero-sub {
  font-size: 0.97rem; color: var(--text2); max-width: 480px;
  line-height: 1.6; opacity: 0;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 7px; opacity: 0;
}
.tag {
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.775rem; font-weight: 700;
}
.tag.blue   { background: #dbeafe; color: #1d4ed8; }
.tag.yellow { background: #fef9c3; color: #854d0e; }
.tag.teal   { background: #ccfbf1; color: #0f766e; }
.tag.green  { background: #dcfce7; color: #15803d; }
.tag.purple { background: #ede9fe; color: #7c3aed; }
.tag.orange { background: #ffedd5; color: #c2410c; }

[data-theme="dark"] .tag.blue   { background: #1e3a6e; color: #93c5fd; }
[data-theme="dark"] .tag.yellow { background: #2a2000; color: #fde047; }
[data-theme="dark"] .tag.teal   { background: #0d2e28; color: #5eead4; }
[data-theme="dark"] .tag.green  { background: #0a2a15; color: #4ade80; }
[data-theme="dark"] .tag.purple { background: #2d1b5e; color: #c4b5fd; }
[data-theme="dark"] .tag.orange { background: #2a1500; color: #fb923c; }

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; margin-top: 2px; }
.cta-primary {
  background: var(--azul); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cta-primary:hover { background: var(--azul-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(47,111,230,0.3); }
.cta-outline {
  background: transparent; color: var(--azul);
  border: 2px solid var(--azul);
  padding: 11px 24px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: all 0.15s;
}
.cta-outline:hover { background: var(--azul-light); }

/* ── Mockup ─────────────────────────────────────────────────── */
.hero-right {
  flex: 1; z-index: 1; opacity: 0;
  display: flex; justify-content: center; align-items: center;
}
.mockup-window {
  width: 100%; max-width: 520px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 80px rgba(47,111,230,0.22), 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  background: var(--bg2);
}
.mockup-bar {
  background: #f0f2f5; padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .mockup-bar { background: #1a1d2e; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mockup-url {
  flex: 1; text-align: center; font-size: 0.7rem;
  color: var(--text3); font-family: 'JetBrains Mono', monospace;
}
.mockup-body { display: flex; height: 320px; }

.mock-sidebar {
  width: 130px; flex-shrink: 0;
  background: linear-gradient(180deg, #3b82f6 0%, #2356d6 60%, #16399a 100%);
  display: flex; flex-direction: column; padding: 10px 0;
  overflow: hidden;
}
.mock-brand {
  padding: 6px 10px 10px; color: #fff; font-weight: 800;
  font-size: 0.72rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px; letter-spacing: 0.02em;
}
.mock-item {
  padding: 7px 10px; font-size: 0.65rem; color: rgba(255,255,255,0.65);
  cursor: default; transition: all 0.15s; white-space: nowrap; overflow: hidden;
  border-left: 2px solid transparent; display: flex; align-items: center;
  gap: 4px; justify-content: space-between;
}
.mock-item.active { color: #fff; background: rgba(52,211,153,0.18); border-left-color: #34d399; font-weight: 700; }
.mock-item.warn   { color: #fca5a5; }
.mock-badge { background: #dc2626; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 0.6rem; font-weight: 700; }

.mock-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mock-topbar {
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2);
}
.mock-title { font-size: 0.75rem; font-weight: 800; color: var(--azul); }
.mock-topbar-right { display: flex; align-items: center; gap: 8px; }
.mock-bell { font-size: 0.8rem; position: relative; }
.notif-dot { position: absolute; top: -1px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; }
.mock-avatar { width: 22px; height: 22px; border-radius: 6px; background: var(--azul); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; }

.mock-content { padding: 8px 10px; overflow: hidden; flex: 1; }
.mock-alert {
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: 7px;
  padding: 5px 9px; font-size: 0.62rem; color: #be123c; margin-bottom: 8px;
}
.mock-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-bottom: 8px;
}
.mock-stat { border-radius: 6px; padding: 6px 5px; text-align: center; }
.mock-stat b  { display: block; font-size: 1rem; font-weight: 900; line-height: 1; }
.mock-stat small { font-size: 0.55rem; color: var(--text3); display: block; }
.mock-stat.blue   { background: var(--azul-light); }  .mock-stat.blue   b { color: var(--azul); }
.mock-stat.orange { background: #ffedd5; }             .mock-stat.orange b { color: #c2410c; }
.mock-stat.blue2  { background: #dbeafe; }             .mock-stat.blue2  b { color: #1d4ed8; }
.mock-stat.green  { background: #dcfce7; }             .mock-stat.green  b { color: #15803d; }

.mock-section-title { font-size: 0.6rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px; }
.mock-table { display: flex; flex-direction: column; gap: 4px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; padding: 4px 6px; background: var(--bg); border-radius: 5px; color: var(--text2); }
.mk-badge { padding: 2px 6px; border-radius: 10px; font-size: 0.57rem; font-weight: 700; }
.mk-badge.green  { background: #dcfce7; color: #15803d; }
.mk-badge.orange { background: #ffedd5; color: #c2410c; }
.mk-badge.red    { background: #fee2e2; color: #dc2626; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--azul) 0%, #1e3fa5 100%);
  padding: 32px 24px;
}
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
}
.stat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-pill .count { font-size: 2.5rem; font-weight: 900; color: var(--verde); line-height: 1; }
.stat-pill small  { font-size: 0.8rem; color: rgba(255,255,255,0.7); font-weight: 500; text-align: center; }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--bg2); transition: background 0.3s; }

.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 12px;
}
.section-header p {
  font-size: 1rem; color: var(--text2);
  max-width: 560px; margin: 0 auto;
}
.sec-tag {
  display: inline-block; background: var(--azul-light); color: var(--azul);
  border-radius: 20px; padding: 4px 14px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 12px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── Sobre ──────────────────────────────────────────────────── */
.cards-2x2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.info-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s, background 0.3s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.info-card p  { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

/* ── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s, background 0.3s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feat-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.feat-icon-wrap.blue   { background: #dbeafe; }
.feat-icon-wrap.yellow { background: #fef9c3; }
.feat-icon-wrap.green  { background: #dcfce7; }
.feat-icon-wrap.red    { background: #fee2e2; }
.feat-icon-wrap.purple { background: #ede9fe; }
.feat-icon-wrap.orange { background: #ffedd5; }

[data-theme="dark"] .feat-icon-wrap.blue   { background: #1a3060; }
[data-theme="dark"] .feat-icon-wrap.yellow { background: #2a2000; }
[data-theme="dark"] .feat-icon-wrap.green  { background: #0a2018; }
[data-theme="dark"] .feat-icon-wrap.red    { background: #2a0a0a; }
[data-theme="dark"] .feat-icon-wrap.purple { background: #1e1040; }
[data-theme="dark"] .feat-icon-wrap.orange { background: #2a1000; }

.feat-card h3 { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.feat-card p  { font-size: 0.84rem; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.feat-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.feat-card li { font-size: 0.78rem; color: var(--text2); }

/* ── Flow ───────────────────────────────────────────────────── */
.flow-wrap {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; justify-content: center;
}
.flow-arr { font-size: 1.5rem; color: var(--text3); flex-shrink: 0; }
.flow-step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px;
  max-width: 190px; flex: 1; min-width: 150px;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s, background 0.3s;
}
.flow-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.flow-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--azul); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; margin-bottom: 10px;
}
.flow-role {
  display: inline-block; padding: 2px 9px; border-radius: 10px;
  font-size: 0.68rem; font-weight: 700; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.flow-role.master  { background: var(--azul-light); color: var(--azul); }
.flow-role.gerente { background: #dcfce7; color: #15803d; }
.flow-role.done    { background: #dcfce7; color: #15803d; }
.flow-body h3 { font-size: 0.85rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.flow-body p  { font-size: 0.75rem; color: var(--text2); line-height: 1.5; }

/* ── Stack ──────────────────────────────────────────────────── */
.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stack-col {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: background 0.3s;
}
.stack-col-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.stack-col-head span { font-size: 1.4rem; }
.stack-col-head h3   { font-size: 1rem; font-weight: 800; color: var(--text); }
.stack-list { display: flex; flex-direction: column; gap: 14px; }
.stack-row  { display: flex; align-items: flex-start; gap: 10px; }
.si { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.stack-row strong { font-size: 0.88rem; color: var(--text); font-weight: 700; display: block; margin-bottom: 2px; }
.stack-row p { font-size: 0.78rem; color: var(--text2); line-height: 1.5; }
.gsap-row { background: var(--azul-light); border-radius: 8px; padding: 8px 10px; margin: -2px 0; }

/* ── Perfis ─────────────────────────────────────────────────── */
.perfis-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.perfil-card {
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-md); border: 1px solid transparent;
  transition: box-shadow 0.2s, background 0.3s;
}
.master-card  { background: linear-gradient(135deg, #eef3ff 0%, #f0f7ff 100%); border-color: #c7d8ff; }
.gerente-card { background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf8 100%); border-color: #a7f3d0; }
.ti-card      { background: linear-gradient(135deg, #f3eeff 0%, #f7f2ff 100%); border-color: #ddd0ff; }
[data-theme="dark"] .master-card  { background: #0e1833; border-color: #1e2f5a; }
[data-theme="dark"] .gerente-card { background: #07211a; border-color: #134e3a; }
[data-theme="dark"] .ti-card      { background: #160e33; border-color: #2e1e5a; }
.perfil-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.perfil-av {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
}
.master-av  { background: var(--azul); color: #fff; }
.gerente-av { background: var(--verde); color: #fff; }
.ti-av      { background: #7c3aed; color: #fff; }
.perfil-head h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.perfil-head p  { font-size: 0.8rem; color: var(--text2); }
.perm-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.perm-list li { font-size: 0.82rem; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.perm-list li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.perm-list li.ok    { color: var(--text2); }
.perm-list li.ok::before { background: #dcfce7; border: 1.5px solid #4ade80; }
.perm-list li.no    { color: var(--text3); text-decoration: line-through; text-decoration-color: var(--border); }
.perm-list li.no::before { background: #fee2e2; border: 1.5px solid #f87171; }

/* ── Arquitetura ────────────────────────────────────────────── */
.arch {
  display: flex; flex-direction: column; gap: 0; align-items: center;
}
.arch-layer {
  width: 100%; border-radius: var(--radius);
  padding: 20px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: background 0.3s;
}
.client-layer { background: var(--bg2); }
.api-layer    { background: #f8faff; margin: 0 20px; }
.db-layer     { background: #f0fdf4; }
[data-theme="dark"] .api-layer { background: #0e1220; }
[data-theme="dark"] .db-layer  { background: #071209; }
.arch-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text3); margin-bottom: 14px;
}
.arch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.arch-box {
  flex: 1; min-width: 140px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; text-align: center;
  transition: background 0.3s;
}
.arch-box span   { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.arch-box strong { display: block; font-size: 0.82rem; color: var(--text); }
.arch-box small  { font-size: 0.7rem; color: var(--text3); }
.arch-box.highlight { background: var(--azul-light); border-color: rgba(47,111,230,0.2); }
.arch-connector {
  font-size: 0.78rem; font-weight: 700; color: var(--text3);
  padding: 10px 0; text-align: center;
}

/* ── Código ─────────────────────────────────────────────────── */
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.tab {
  padding: 10px 18px; border-radius: 8px 8px 0 0;
  background: none; border: 1px solid transparent; border-bottom: none;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
  color: var(--text3); transition: all 0.15s; font-family: inherit;
  position: relative; bottom: -2px;
}
.tab:hover { color: var(--azul); background: var(--azul-light); }
.tab.active {
  color: var(--azul); background: var(--bg2);
  border-color: var(--border); border-bottom-color: var(--bg2);
  box-shadow: 0 -2px 0 var(--azul) inset;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.code-meta {
  background: var(--bg2); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 22px;
}
.file-badge {
  display: inline-block;
  background: var(--azul-light); color: var(--azul);
  border-radius: 6px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.code-meta p { font-size: 0.875rem; color: var(--text2); line-height: 1.6; }

pre {
  margin: 0; border-radius: 0 0 var(--radius) var(--radius);
  max-height: 480px; overflow: auto;
  border: 1px solid var(--border); border-top: none;
}
pre code { font-size: 0.8rem !important; font-family: 'JetBrains Mono', monospace !important; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #3b82f6 0%, #2356d6 50%, #16399a 100%);
  padding: 56px 0 0;
  color: rgba(255,255,255,0.8);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-logo { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 0.84rem; line-height: 1.6; margin-bottom: 14px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-tags span {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  border-radius: 12px; padding: 2px 10px; font-size: 0.72rem; font-weight: 600;
}
.footer-col h4 { font-size: 0.78rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col li { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0; text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ── Scroll to Top ──────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--azul); color: #fff; border: none;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(47,111,230,0.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.15s;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { background: var(--azul-h); }

/* ── Reveal animations (initial state — GSAP drives them) ───── */
.reveal, .reveal-left, .reveal-right, .reveal-card {
  opacity: 0;
  will-change: opacity, transform;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .perfis-grid   { grid-template-columns: 1fr; }
  .stack-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: calc(var(--nav-h) + 24px); }
  .hero-right { display: none; }
  .perfis-grid  { grid-template-columns: 1fr; }
  .cards-2x2    { grid-template-columns: 1fr; }
  .flow-wrap    { flex-direction: column; }
  .flow-arr     { transform: rotate(90deg); }
  .flow-step    { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stack-grid   { grid-template-columns: 1fr; }
  .arch-row     { flex-direction: column; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .section      { padding: 60px 0; }
  .tabs         { overflow-x: auto; flex-wrap: nowrap; }
}
