/* --- base.css --- */
/* ── Tema claro (padrão) ── */
:root {
  --bg-dark: #ffffff;
  --bg-light: #f8fafc;
  --bg-muted: #f1f5f9;

  --brand: #2563EB;
  --brand-light: #3B82F6;
  --brand-soft: rgba(37, 99, 235, 0.1);
  --accent: #F59E0B;
  --accent-soft: rgba(245, 158, 11, 0.1);

  --text-primary: #0f172a;
  --text-light: #334155;
  --text-muted: #64748b;
  --white: #ffffff;

  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.07);
  --glass-blur: blur(16px);

  --hero-bg: linear-gradient(135deg, #f0f6ff, #e8f0fe 60%, #fef9ee);
  --hero-glow-1: rgba(37, 99, 235, 0.12);
  --hero-glow-2: rgba(245, 158, 11, 0.08);
  --hero-text: #0f172a;
  --hero-subtitle: #475569;

  --nav-text: #0f172a;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.92);
  --nav-scrolled-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  --nav-scrolled-text: #334155;
  --nav-icon-bg: rgba(0, 0, 0, 0.06);
  --nav-icon-bg-hover: rgba(0, 0, 0, 0.12);
  --nav-icon-color: #0f172a;

  --section-brand-from: #1e3a8a;
  --section-brand-to: #1e40af;

  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  --card-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --service-hover-shadow: 0 18px 30px rgba(0, 0, 0, 0.1), 0 0 24px rgba(37, 99, 235, 0.08);
  --project-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 24px rgba(37, 99, 235, 0.07);
  --benefit-hover-shadow: 0 16px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(37, 99, 235, 0.08);
  --terminal-backdrop: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.85));
}

/* ── Tema escuro ── */
html.dark {
  --bg-dark: #0d1117;
  --bg-light: #161b22;
  --bg-muted: #090d13;

  --brand: #58a6ff;
  --brand-light: #79c0ff;
  --brand-soft: rgba(88, 166, 255, 0.15);
  --accent: #e3b341;
  --accent-soft: rgba(227, 179, 65, 0.12);

  --text-primary: #f0f6fc;
  --text-light: #c9d1d9;
  --text-muted: #8b949e;
  --white: #ffffff;

  --glass-bg: rgba(22, 27, 34, 0.8);
  --glass-border: rgba(48, 54, 61, 0.8);
  --glass-blur: blur(16px);

  --hero-bg: linear-gradient(135deg, #0d1117 0%, #0d1a2e 60%, #0d1117 100%);
  --hero-glow-1: rgba(88, 166, 255, 0.35);
  --hero-glow-2: rgba(227, 179, 65, 0.18);
  --hero-text: #f0f6fc;
  --hero-subtitle: #8b949e;

  --nav-text: #f0f6fc;
  --nav-scrolled-bg: rgba(13, 17, 23, 0.88);
  --nav-scrolled-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(48, 54, 61, 0.6);
  --nav-scrolled-text: #8b949e;
  --nav-icon-bg: rgba(48, 54, 61, 0.6);
  --nav-icon-bg-hover: rgba(48, 54, 61, 1);
  --nav-icon-color: #c9d1d9;

  --section-brand-from: #0d1117;
  --section-brand-to: #0d1f3c;

  --card-shadow: 0 1px 0 rgba(48, 54, 61, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
  --card-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --service-hover-shadow: 0 18px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(88, 166, 255, 0.12);
  --project-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(88, 166, 255, 0.1);
  --benefit-hover-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 166, 255, 0.1);
  --terminal-backdrop: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(13, 17, 23, 0.92));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* --- nav.css --- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 24px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: var(--nav-scrolled-shadow);
}

.nav__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--nav-text);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav.is-scrolled .brand {
  color: var(--text-primary);
}

.brand__prompt {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  transform: translateY(-2px);
}

.brand__text {
  transform: translateY(2px);
}

.brand__cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-text);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav.is-scrolled .nav__link {
  color: var(--nav-scrolled-text);
}

.nav__link:hover {
  color: var(--accent);
  opacity: 1;
}

.nav__icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav__icons a,
.nav__theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nav-icon-bg);
  color: var(--nav-icon-color);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav__icons a:hover,
.nav__theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--nav-icon-bg-hover);
}

.nav.is-scrolled .nav__icons a,
.nav.is-scrolled .nav__theme-toggle {
  background: var(--nav-icon-bg);
  color: var(--nav-icon-color);
}

.nav__icons i,
.nav__theme-toggle i {
  font-size: 16px;
}

.nav__icons--panel {
  display: none;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--nav-icon-bg);
  color: var(--nav-icon-color);
  border: none;
  cursor: pointer;
  font-family: inherit;
  z-index: 11;
}

.nav__toggle i {
  font-size: 18px;
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
    order: 3;
  }

  .nav__content {
    flex-wrap: wrap;
  }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80%);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 100px 28px 28px;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--nav-scrolled-text, var(--nav-text));
  }

  .nav__icons--top {
    display: none;
  }

  .nav__icons--panel {
    display: flex;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
  }
}

/* --- components.css --- */
/* Window dots (estilo editor de código) */

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #22c55e; }

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn--light {
  background: var(--brand);
  color: var(--white);
}

html.dark .btn--light {
  background: var(--brand);
  color: var(--white);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.btn--ghost {
  border: 1px solid rgba(226, 232, 240, 0.4);
  color: var(--text-light);
}

.btn--ghost:hover {
  background: rgba(226, 232, 240, 0.1);
}

.btn--brand {
  background: var(--brand);
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.btn--brand:hover {
  transform: translateY(-2px);
  background: var(--brand-light);
}

/* Ícones */

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon--sm {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

/* Card genérico (Diferenciais) */

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-bottom: 20px;
  font-weight: 600;
}

/* Checklist */

.checklist {
  display: grid;
  gap: 16px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-icon {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 2px;
}

/* Tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span,
.tag-list a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.tag-list a:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
}

.tag-list a i {
  font-size: 0.75em;
  opacity: 0.7;
}

.tag-list--compact span,
.tag-list--compact a {
  font-size: 0.75rem;
  padding: 6px 10px;
}

/* --- footer.css --- */
.footer {
  background: #0a1122;
  color: var(--white);
  padding: 96px 0 48px;
  position: relative;
  overflow: hidden;
}

.footer__content {
  position: relative;
  z-index: 1;
}

.footer__cta-block {
  text-align: center;
  display: grid;
  gap: 24px;
  margin-bottom: 72px;
}

.footer__cta-block h2 {
  font-family: "Geist", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.footer__cta-block p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.footer__cta {
  width: fit-content;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 1rem;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer__brand-prompt {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__brand-text {
  transform: translateY(2px);
}

.footer__brand-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

.footer__tagline {
  margin-top: 12px;
  max-width: 300px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__nav-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 14px;
}

.footer__nav a {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  color: #64748b;
  width: 100%;
}

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 30px rgba(34, 197, 94, 0.35);
  z-index: 20;
}

.whatsapp-float i {
  font-size: 26px;
  color: currentColor;
}

.whatsapp-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: whatsappPing 1.6s ease-out infinite;
  z-index: -1;
}

/* --- animations.css --- */
@keyframes whatsappPing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: var(--o, 0.1);
  }
  90% {
    opacity: var(--o, 0.1);
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .hero__copy {
    order: 0;
  }

  .hero__card {
    order: 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .profile-header {
    --profile-avatar: 56px;
    --profile-gap: 16px;
    align-items: flex-start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .terminal-card__inner {
    margin: 16px;
    padding: 28px;
  }
}
