/* =========================================================
   Hemaco IT — landing page
   Custom CSS além do Tailwind: tokens, focus, animações,
   componentes pequenos (chips, divisores, motif).
   ========================================================= */

:root {
  color-scheme: dark;
  --bg-base: #0B1622;
  --bg-surface: #11202F;
  --bg-surface-2: #16293C;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #E6EDF3;
  --text-secondary: #9BA8B6;
  --text-muted: #8593A2;
  --accent-teal: #22A06B;
  --accent-teal-soft: #1B7B52;
  --accent-teal-glow: rgba(34, 160, 107, 0.18);
  --paper: #E8DCC7;
  --paper-warm: #D7C3A0;
  --paper-ink: #152231;
  --accent-warm: #D9A441;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-teal);
  color: #0B1622;
}

/* Focus visível consistente em toda a página */
:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-teal);
  color: #0B1622;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* =========================================================
   Motif — divisor com nó (referência ao logo)
   ========================================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--border-strong);
  margin-bottom: 64px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.section-divider .node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-teal);
  background: var(--bg-base);
  box-shadow: 0 0 0 4px var(--bg-base);
  flex-shrink: 0;
}

/* =========================================================
   Status pill (disponível para projetos)
   ========================================================= */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(34, 160, 107, 0.35);
  background: rgba(34, 160, 107, 0.08);
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.status-pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2DD78B;
  box-shadow: 0 0 0 3px rgba(45, 215, 139, 0.18);
}

/* =========================================================
   Texto destaque (substitui <em> visualmente)
   ========================================================= */
.text-strong {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px dashed rgba(34, 160, 107, 0.45);
  padding-bottom: 1px;
}

/* =========================================================
   Princípios — cards manifesto
   ========================================================= */
.principle {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  transition: border-color 220ms ease;
}
.principle:hover { border-color: rgba(34, 160, 107, 0.35); }
.principle .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent-teal);
  letter-spacing: -0.02em;
}
.principle h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.principle p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   Featured project (Checklist Gala)
   ========================================================= */
.project-featured {
  background:
    radial-gradient(900px 320px at 100% 0%, rgba(34, 160, 107, 0.08), transparent 60%),
    var(--bg-surface);
  border: 1px solid rgba(34, 160, 107, 0.22);
}
.project-featured:hover {
  border-color: rgba(34, 160, 107, 0.5);
}
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2DD78B;
}
.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2DD78B;
  box-shadow: 0 0 0 3px rgba(45, 215, 139, 0.18);
}

/* Numeração de seção: // 01 ─o─ sobre */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.section-label .num { color: var(--accent-teal); }
.section-label .dash {
  width: 24px;
  height: 1px;
  background: var(--border-strong);
  position: relative;
}
.section-label .dash::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent-teal);
  background: var(--bg-base);
}

/* =========================================================
   Cards — base com micro-hover de borda (anti glassmorphism)
   ========================================================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
  position: relative;
}
.card:hover {
  border-color: rgba(34, 160, 107, 0.45);
  background: var(--bg-surface-2);
}

/* =========================================================
   Service cards - tiny workflow animations
   ========================================================= */
.service-card {
  overflow: hidden;
}
.service-motion {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(232, 220, 199, 0.08), transparent 42%),
    rgba(8, 18, 29, 0.42);
}
.motion-paper,
.motion-panel,
.motion-orbit,
.motion-bars {
  position: relative;
  display: block;
  flex-shrink: 0;
}
.motion-paper {
  width: 58px;
  height: 42px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 22px -18px #000;
  animation: paperNudge 4.2s ease-in-out infinite;
}
.motion-paper::before,
.motion-paper::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: rgba(21, 34, 49, 0.38);
}
.motion-paper::before { top: 15px; }
.motion-paper::after { top: 26px; right: 18px; }
.motion-link {
  height: 2px;
  min-width: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 160, 107, 0), rgba(34, 160, 107, 0.86), rgba(34, 160, 107, 0));
  background-size: 180% 100%;
  animation: signalSweep 2.8s ease-in-out infinite;
}
.motion-panel {
  width: 82px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(34, 160, 107, 0.34);
  background: rgba(18, 39, 55, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.motion-panel span {
  position: absolute;
  left: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(230, 237, 243, 0.22);
}
.motion-panel span:first-child {
  top: 14px;
  width: 46px;
}
.motion-panel span:last-child {
  top: 28px;
  width: 58px;
  background: rgba(34, 160, 107, 0.34);
  animation: panelFill 3.2s ease-in-out infinite;
}
.motion-orbit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(34, 160, 107, 0.44);
  animation: orbitSpin 4.8s linear infinite;
}
.motion-orbit::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(34, 160, 107, 0.18);
}
.motion-orbit span {
  position: absolute;
  top: -4px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DD78B;
  box-shadow: 0 0 14px rgba(45, 215, 139, 0.65);
}
.service-card--automation .service-motion {
  grid-template-columns: auto 1fr;
}
.service-card--automation .motion-panel {
  justify-self: end;
}
.motion-bars {
  width: 58px;
  height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(232, 220, 199, 0.12);
}
.motion-bars span {
  width: 9px;
  border-radius: 999px 999px 2px 2px;
  background: var(--accent-teal);
  opacity: 0.72;
  animation: barRise 3.4s ease-in-out infinite;
}
.motion-bars span:nth-child(1) { height: 14px; }
.motion-bars span:nth-child(2) { height: 24px; animation-delay: 160ms; }
.motion-bars span:nth-child(3) { height: 18px; animation-delay: 320ms; background: var(--accent-warm); }

@keyframes paperNudge {
  0%, 100% { transform: translateX(0) rotate(-1deg); }
  48% { transform: translateX(7px) rotate(1deg); }
}
@keyframes signalSweep {
  0%, 100% { background-position: 100% 0; opacity: 0.46; }
  50% { background-position: 0 0; opacity: 1; }
}
@keyframes panelFill {
  0%, 100% { width: 28px; opacity: 0.45; }
  50% { width: 58px; opacity: 1; }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes barRise {
  0%, 100% { transform: scaleY(0.72); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Card com seta de saída para links (contato) */
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link .arrow {
  transition: transform 200ms ease;
  display: inline-block;
}
.card-link:hover .arrow {
  transform: translateX(4px);
}
.card-link:hover {
  transform: translateY(-2px);
}

/* =========================================================
   Tech chips
   ========================================================= */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: border-color 180ms ease, color 180ms ease;
}
.tech-chip:hover {
  border-color: rgba(34, 160, 107, 0.5);
  color: var(--text-primary);
}
.tech-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-teal);
  opacity: 0.7;
}

/* Tag pequena dentro de cards de projeto */
.tag-mono {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: var(--accent-teal-glow);
  padding: 4px 8px;
  border-radius: 4px;
}

/* =========================================================
   CTAs
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn.hidden {
  display: none;
}
@media (min-width: 768px) {
  .btn.md\:inline-flex {
    display: inline-flex;
  }
}
.btn::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.btn:hover::after {
  transform: scaleX(1);
}
.btn-primary {
  background: var(--accent-teal);
  color: #051712;
  border: 1px solid var(--accent-teal);
}
.btn-primary:hover {
  background: var(--accent-teal-soft);
  border-color: var(--accent-teal-soft);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* =========================================================
   Header — comportamento ao rolar
   ========================================================= */
.site-header {
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background-color: rgba(11, 22, 34, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--border-subtle);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--accent-teal);
  transition: width 200ms ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="location"] {
  color: var(--text-primary);
}
.nav-link[aria-current="location"]::after {
  width: 100%;
  background: var(--accent-teal);
}

/* Menu mobile fullscreen */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 96px 32px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  display: block;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-teal);
  margin-right: 12px;
}

/* =========================================================
   Hero - planilha e papel viram sistema
   ========================================================= */
.hero-section {
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 45%;
  height: 520px;
  background:
    radial-gradient(circle at 40% 40%, rgba(34, 160, 107, 0.16), transparent 34%),
    radial-gradient(circle at 72% 30%, rgba(217, 164, 65, 0.11), transparent 28%);
  filter: blur(24px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}
.paper-to-system-hero {
  display: block;
  width: min(100%, 650px);
  height: auto;
  margin-left: auto;
  overflow: visible;
}
.hero-grid > * {
  min-width: 0;
}
.hero-worktop {
  fill: rgba(17, 32, 47, 0.64);
  stroke: rgba(255, 255, 255, 0.08);
}
.paper-item,
.system-panel,
.system-card,
.flow-signal {
  transform-box: fill-box;
  transform-origin: center;
}
.paper-card {
  fill: var(--paper);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
}
.paper-card--warm {
  fill: var(--paper-warm);
}
.paper-label,
.system-title {
  fill: var(--paper-ink);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sheet-grid path,
.paper-rule {
  stroke: rgba(21, 34, 49, 0.34);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.sheet-cell {
  fill: rgba(34, 160, 107, 0.18);
}
.sheet-cell--hot {
  fill: rgba(217, 164, 65, 0.34);
}
.paper-pin {
  fill: var(--accent-warm);
  stroke: rgba(21, 34, 49, 0.25);
}
.check-mark {
  stroke: var(--accent-teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-line {
  stroke: var(--accent-teal);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.42;
}
.flow-line--main {
  stroke: rgba(34, 160, 107, 0.72);
}
.flow-signal {
  fill: #2DD78B;
  filter: drop-shadow(0 0 10px rgba(45, 215, 139, 0.72));
}
.system-shell {
  fill: #102031;
  stroke: rgba(34, 160, 107, 0.34);
  stroke-width: 1.2;
}
.system-topbar {
  fill: rgba(34, 160, 107, 0.12);
}
.system-title {
  fill: var(--text-primary);
}
.system-led {
  fill: #2DD78B;
  filter: drop-shadow(0 0 8px rgba(45, 215, 139, 0.68));
}
.system-card rect {
  fill: rgba(230, 237, 243, 0.07);
  stroke: rgba(255, 255, 255, 0.09);
}
.system-card text {
  fill: var(--text-primary);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.system-card path {
  stroke: rgba(155, 168, 182, 0.44);
  stroke-width: 2;
  stroke-linecap: round;
}
.system-card--accent rect {
  fill: rgba(34, 160, 107, 0.18);
  stroke: rgba(34, 160, 107, 0.4);
}
.system-card--accent text {
  fill: #DFF9EC;
}

@media (max-width: 1023px) {
  .paper-to-system-hero {
    margin: 10px auto 0;
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .hero-section {
    padding-top: 96px;
  }
  .hero-grid {
    gap: 2.25rem;
  }
  .paper-to-system-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .paper-label,
  .system-title {
    font-size: 18px;
  }
}

/* Headline display */
.headline {
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.headline .accent { color: var(--accent-teal); }
.subhead {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .card-link:hover {
    transform: none !important;
  }
  .service-motion *,
  .project-preview *,
  .motion-paper,
  .motion-orbit,
  .motion-bars span {
    animation: none !important;
  }
}

/* =========================================================
   Highlights / lista do "Sobre"
   ========================================================= */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.bullet-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-teal);
  background: var(--bg-base);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
}

/* =========================================================
   "Como trabalhamos" — passos numerados
   ========================================================= */
.process-wrap {
  position: relative;
}
.process-flow {
  position: absolute;
  top: -64px;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
  height: 110px;
  pointer-events: none;
  overflow: visible;
}
.process-flow-rail,
.process-flow-active {
  fill: none;
  stroke-linecap: round;
}
.process-flow-rail {
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 2;
}
.process-flow-active {
  stroke: rgba(34, 160, 107, 0.78);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(34, 160, 107, 0.28));
}
.process-node {
  fill: var(--bg-base);
  stroke: var(--accent-teal);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
}
.process-steps {
  position: relative;
  z-index: 1;
}
.step {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 26px 26px;
  transition: border-color 220ms ease, transform 220ms ease;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 160, 107, 0.78), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms ease;
}
.step:hover {
  border-color: rgba(34, 160, 107, 0.35);
  transform: translateY(-2px);
}
.step:hover::before {
  transform: scaleX(1);
}
.step .step-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.step p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   Botão flutuante WhatsApp (CTA persistente)
   ========================================================= */
@media (max-width: 767px) {
  .process-flow {
    display: none;
  }
  .process-steps {
    gap: 14px;
  }
  .step {
    border-left-color: rgba(34, 160, 107, 0.36);
  }
}

/* =========================================================
   Project preview - living checklist
   ========================================================= */
.project-preview {
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 160, 107, 0.24);
  background:
    radial-gradient(circle at 92% 18%, rgba(45, 215, 139, 0.18), transparent 24%),
    rgba(8, 18, 29, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.project-preview-top {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.project-preview-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(230, 237, 243, 0.28);
}
.project-preview-top span:first-child {
  background: var(--accent-teal);
  box-shadow: 0 0 12px rgba(45, 215, 139, 0.55);
}
.project-preview-row {
  display: grid;
  grid-template-columns: 22px 72px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(230, 237, 243, 0.06);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}
.preview-check {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(34, 160, 107, 0.5);
  background: rgba(34, 160, 107, 0.12);
}
.preview-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #2DD78B;
  border-bottom: 2px solid #2DD78B;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  animation: previewCheck 4.2s ease-in-out infinite;
}
.project-preview-row i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(230, 237, 243, 0.28);
  transform-origin: left;
  animation: previewLine 4.2s ease-in-out infinite;
}
.project-preview-row:nth-child(3) .preview-check::after,
.project-preview-row:nth-child(3) i {
  animation-delay: 380ms;
}
.project-preview-row:nth-child(4) .preview-check::after,
.project-preview-row:nth-child(4) i {
  animation-delay: 760ms;
}
.project-preview-row.is-live {
  background: rgba(34, 160, 107, 0.13);
}

@keyframes previewCheck {
  0%, 22% { transform: rotate(-45deg) scale(0); opacity: 0; }
  34%, 100% { transform: rotate(-45deg) scale(1); opacity: 1; }
}
@keyframes previewLine {
  0%, 20% { transform: scaleX(0.18); opacity: 0.35; }
  48%, 100% { transform: scaleX(1); opacity: 0.78; }
}

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: var(--accent-teal);
  color: #051712;
  border-radius: 999px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6),
              0 0 0 4px rgba(34, 160, 107, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease,
              opacity 220ms ease;
  opacity: 0;
  pointer-events: none;
}
.whatsapp-fab.visible {
  opacity: 1;
  pointer-events: auto;
}
.whatsapp-fab:hover {
  background: var(--accent-teal-soft);
  color: #fff;
  transform: translateY(-2px);
}
.whatsapp-fab .label { line-height: 1; }
@media (max-width: 480px) {
  .whatsapp-fab .label { display: none; }
  .whatsapp-fab { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab:hover { transform: none; }
}

/* =========================================================
   Disclosure técnica (esconde jargão do leigo, libera pro técnico)
   ========================================================= */
.tech-details {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}
.tech-details summary {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color 160ms ease;
}
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::before {
  content: "+";
  display: inline-block;
  font-size: 14px;
  color: var(--accent-teal);
  width: 10px;
  text-align: center;
  transition: transform 200ms ease;
}
.tech-details[open] summary::before { content: "−"; }
.tech-details summary:hover { color: var(--text-secondary); }
.tech-details p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* =========================================================
   Botão "ghost" (link discreto, ex.: "Ver código no GitHub")
   ========================================================= */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 160ms ease;
  border-radius: 6px;
}
.btn-ghost:hover { color: var(--accent-teal); }
.btn-ghost svg { color: currentColor; }

/* =========================================================
   Card secundário (LinkedIn / GitHub no Contato)
   ========================================================= */
.card-sm:hover { transform: none; }
.card-sm .arrow {
  transition: transform 200ms ease;
  display: inline-block;
}
.card-sm:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Pequenos ajustes utilitários
   ========================================================= */
.no-scroll { overflow: hidden; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* =========================================================
   Print stylesheet — imprime como cartão limpo
   ========================================================= */
@media print {
  :root { color-scheme: light; }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .site-header,
  .whatsapp-fab,
  .mobile-menu,
  .skip-link,
  .paper-to-system-hero,
  .reveal { display: none !important; opacity: 1 !important; transform: none !important; }
  .card,
  .principle,
  .step,
  .project-featured {
    background: #fff !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    box-shadow: none !important;
  }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after { content: ""; }
  .tech-chip { color: #000 !important; border-color: #999 !important; }
  .text-teal,
  .accent { color: #155 !important; }
  section { page-break-inside: avoid; }
  .tech-details { display: block; }
  .tech-details[open] p,
  .tech-details:not([open]) p { display: block; }
}
