/* ============================================
   CARVTECH SISTEMAS — CSS MODERNO
   ============================================ */

:root {
  --bg: #0f1623;
  --bg-2: #141e30;
  --bg-3: #1a2638;
  --surface: #1e2d42;
  --surface-2: #263651;
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.18);

  --accent: #4ade80;
  --accent-2: #22d3ee;
  --accent-dim: rgba(74, 222, 128, 0.35);
  --accent-glow: rgba(74, 222, 128, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.3);
  --green: #4ade80;

  --text: #f1f5f9;
  --text-2: #a8b8cc;
  --text-3: #5a7090;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px rgba(245, 158, 11, 0.1);

  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

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

.glass {
  background: rgba(20, 32, 52, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.gradient-text {
  background: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-label::before {
  display: none;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  color: #050810;
  box-shadow: 0 0 0 0 var(--accent-dim);
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-dim), 0 4px 16px rgba(74, 222, 128, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.2);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.nav-link.nav-cta {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  color: #050810;
  font-weight: 700;
  padding: 8px 20px;
}

.nav-link.nav-cta:hover {
  box-shadow: 0 0 20px var(--accent-dim);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 80px 24px 80px 24px;
  margin-left: max(24px, calc(50vw - 600px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-hover);
}

.hero-visual {
  position: absolute;
  right: max(24px, calc(50vw - 600px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
}

/* ---- HERO ILLUSTRATION ---- */
.hero-illustration {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ill-monitor {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}

.ill-monitor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10,18,32,0.8);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: #4ade80; }

.ill-file {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
  margin-left: 8px;
}

.ill-code {
  padding: 14px 16px;
  background: rgba(8,14,26,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.8;
  overflow: hidden;
}

.code-line { white-space: pre; }
.kw  { color: #818cf8; }
.mod { color: #22d3ee; }
.fn  { color: #4ade80; }
.str { color: #fb923c; }
.cm  { color: #5a7090; }
.vr  { color: #f1f5f9; }
.op  { color: #94a3b8; }
.nm  { color: #f472b6; }

.cursor-blink {
  display: inline-block;
  color: #4ade80;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }

.ill-panel {
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
}

.ill-panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.ill-meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.ill-meter { display: flex; align-items: center; gap: 10px; }

.meter-label {
  font-size: 11px;
  color: var(--text-3);
  width: 80px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.meter-bar {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.meter-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  width: 72px;
  text-align: right;
}

.meter-value span {
  color: var(--text-3);
  font-size: 10px;
}

.ill-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.status-ok {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.status-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
}

.ill-circuit {
  position: absolute;
  bottom: -20px;
  left: -60px;
  width: 200px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.tech-circle {
  position: relative;
  width: 400px;
  height: 400px;
}

.tc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tc-ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(245, 158, 11, 0.12);
  animation: spin 30s linear infinite;
}

.tc-ring-2 {
  width: 72%;
  height: 72%;
  border-color: rgba(245, 158, 11, 0.2);
  border-style: dashed;
  animation: spin 20s linear infinite reverse;
}

.tc-ring-3 {
  width: 44%;
  height: 44%;
  border-color: rgba(245, 158, 11, 0.3);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tc-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-icon {
  width: 80px;
  height: 80px;
  animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.tc-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.tc-orbit-1 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin 8s linear infinite;
}

.tc-orbit-2 {
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(60deg);
  animation: spin 12s linear infinite reverse;
}

.tc-planet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SOBRE
   ============================================ */

.sobre {
  padding: 120px 0;
  background: var(--bg-2);
}


.sobre-text p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
}

.sobre-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-card {
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.sobre-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.sobre-card .card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-card .card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sobre-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sobre-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   SOLUÇÕES
   ============================================ */

.solucoes {
  padding: 120px 0;
  background: var(--bg);
}

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solucao-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.solucao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.solucao-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-accent);
}

.solucao-card:hover::before {
  opacity: 1;
}

.solucao-card.featured {
  background: linear-gradient(135deg, rgba(13,21,37,0.8), rgba(74,222,128,0.05));
  border-color: rgba(74, 222, 128, 0.2);
}

.solucao-card.featured::before {
  opacity: 1;
}

.solucao-card.solucao-cta {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(99,102,241,0.08));
  border-color: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card-icon-lg {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon-lg svg {
  width: 32px;
  height: 32px;
}

.card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-content p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card-content-center {
  text-align: center;
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--blue-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}

.cta-icon svg {
  width: 36px;
  height: 36px;
}

.card-content-center h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-content-center p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================
   PROJETOS
   ============================================ */

.projetos {
  padding: 120px 0;
  background: var(--bg-2);
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projeto-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.projeto-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.projeto-img {
  height: 180px;
  overflow: hidden;
}

.proj-visual {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.proj-oil {
  background: linear-gradient(135deg, #1a1200, #2d1f00);
}

.proj-rede {
  background: linear-gradient(135deg, #0a1628, #0d1f3c);
}

.proj-sistema {
  background: linear-gradient(135deg, #0a1a12, #0d2a1a);
}

.proj-anim-1, .proj-anim-2 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.proj-oil .proj-anim-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent);
  top: -60px; right: -60px;
}

.proj-oil .proj-anim-2 {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent);
  bottom: -40px; left: -40px;
}

.proj-rede .proj-anim-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent);
  top: -60px; right: -60px;
}

.proj-sistema .proj-anim-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.15), transparent);
  bottom: -60px; left: -60px;
}

.proj-svg {
  width: 180px;
  height: auto;
  position: relative;
  z-index: 1;
}

.projeto-info {
  padding: 24px;
}

.projeto-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.projeto-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.projeto-info p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.projeto-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projeto-tech span {
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-3);
}

/* ============================================
   DIFERENCIAIS
   ============================================ */

.diferenciais {
  padding: 120px 0;
  background: var(--bg);
}

.dif-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.dif-text p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-top: 8px;
}

.dif-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dif-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dif-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dif-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dif-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dif-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   CONTATO
   ============================================ */

.contato {
  padding: 120px 0;
  background: var(--bg-2);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contato-info p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contato-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contato-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contato-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ci-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ci-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.ci-value:hover {
  color: var(--accent);
}

.contato-form-wrap {
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
  display: flex;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact a {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--transition);
  margin-bottom: 12px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

.footer-dev {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px !important;
  color: var(--text-3) !important;
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #050810;
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ============================================
   SOBRE — PAINEL INDUSTRIAL
   ============================================ */

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sobre-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.industrial-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10,18,32,0.7);
  border-bottom: 1px solid var(--border);
}

.ip-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ip-led {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

.ip-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ip-display {
  background: #061012;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(74,222,128,0.2);
}

.ip-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 80px;
}

.ip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.ip-leds {
  display: flex;
  gap: 4px;
}

.ip-led-item {
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
}

.ip-led-item.on {
  color: #4ade80;
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.1);
  box-shadow: 0 0 6px rgba(74,222,128,0.2);
}

.ip-led-item.off {
  color: var(--text-3);
  border-color: var(--border);
  background: transparent;
}

.ip-led-item.warn {
  color: #f59e0b;
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.1);
  animation: pulse-dot 1.5s infinite;
}

.ip-values {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.ip-val {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.ip-val span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ip-val em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

/* ============================================
   TECH STRIP
   ============================================ */

.tech-strip {
  padding: 48px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-strip-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.tech-strip-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition);
}

.tech-item:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74,222,128,0.08);
}

.tech-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.tech-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    margin: 0;
    padding: 80px 24px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .sobre-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .solucoes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .dif-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 18px;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .solucoes-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-badge {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .contato-form-wrap {
    padding: 24px;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .btn {
    justify-content: center;
  }
}

/* ============================================
   ANIMAÇÕES DE ENTRADA
   ============================================ */

[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
