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

:root {
  --blue-950: #050d1a;
  --blue-900: #0a1628;
  --blue-800: #0d2040;
  --blue-700: #0f2d5e;
  --blue-600: #1a3f80;
  --blue-500: #1e52a8;
  --blue-400: #2d6fd4;
  --blue-300: #4d8fe8;
  --blue-200: #7db3f5;
  --blue-100: #c2d9fb;
  --accent: #00c8ff;
  --accent2: #0ff4c6;
  --white: #f4f8ff;
  --gray: #8ba3c4;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--blue-950);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5%;
  background: rgba(5,13,26,0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(45,111,212,0.15);
  transition: background 0.3s;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--blue-950) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; color: var(--blue-950) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,111,212,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,111,212,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.12) 0%, transparent 70%);
  top: -150px; right: -200px;
  pointer-events: none;
  z-index: 1;
}

.hero-glow2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,82,168,0.2) 0%, transparent 70%);
  bottom: 0; left: -100px;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
  max-width: 680px;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 .line-accent { color: var(--accent); }

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--blue-950);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(0,200,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,200,255,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}

/* ─── STATS ─── */
.stats-strip {
  position: relative;
  z-index: 1;
  background: rgba(13,32,64,0.6);
  border-top: 1px solid rgba(45,111,212,0.2);
  border-bottom: 1px solid rgba(45,111,212,0.2);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(45,111,212,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  max-width: 580px;
}

/* ─── SERVICES ─── */
#servicos { background: var(--blue-900); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: rgba(45,111,212,0.15);
  border: 1px solid rgba(45,111,212,0.15);
  border-radius: 1.5rem;
  overflow: hidden;
}

.service-card {
  background: var(--blue-900);
  padding: 2.5rem;
  transition: background 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,200,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { background: var(--blue-800); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-card p { font-size: 0.9rem; line-height: 1.75; color: var(--gray); }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.18);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* ─── ABOUT ─── */
#sobre { background: linear-gradient(180deg, var(--blue-950) 0%, var(--blue-900) 100%); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }

.about-box {
  background: var(--blue-800);
  border: 1px solid rgba(45,111,212,0.3);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.about-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.15), transparent 70%);
}

.about-box-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.about-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.about-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--white); }

.about-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,200,255,0.5);
}

.about-text p { font-size: 1.05rem; line-height: 1.85; color: var(--gray); margin-bottom: 1.25rem; }

.about-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.about-highlight-icon { font-size: 1.8rem; }
.about-highlight-text { font-size: 0.9rem; line-height: 1.6; color: var(--gray); }
.about-highlight-text strong { display: block; color: var(--white); font-weight: 500; margin-bottom: 0.2rem; }

/* ─── CONTRATO ─── */
#contrato { background: var(--blue-950); }

.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; }

.contract-card {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border: 1px solid rgba(45,111,212,0.3);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contract-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

.contract-card.featured {
  background: linear-gradient(135deg, rgba(0,200,255,0.12), rgba(30,82,168,0.5));
  border-color: rgba(0,200,255,0.35);
}

.contract-card.featured::after {
  content: 'Mais Contratado';
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-950);
  background: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.contract-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.contract-card .subtitle { font-size: 0.85rem; color: var(--gray); margin-bottom: 2rem; }

.contract-features { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }

.contract-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--blue-100);
  line-height: 1.5;
}

.contract-features li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }

/* ─── CTA ─── */
#contato {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  border-top: 1px solid rgba(45,111,212,0.3);
}

.cta-inner { max-width: 800px; margin: 0 auto; padding: 7rem 5%; text-align: center; }
.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-inner .section-desc { margin: 0 auto 3rem; text-align: center; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(37,211,102,0.45); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: white; }

/* ─── FOOTER ─── */
footer {
  background: var(--blue-950);
  border-top: 1px solid rgba(45,111,212,0.15);
  padding: 3rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 32px; width: auto; object-fit: contain; }
.footer-copy { font-size: 0.8rem; color: var(--gray); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.82rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── GALLERY ─── */
#galeria { background: var(--blue-950); overflow: hidden; }

.gallery-header { max-width: 1200px; margin: 0 auto; padding: 6rem 5% 3rem; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 6rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item { border-radius: 1rem; overflow: hidden; position: relative; cursor: pointer; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s;
  filter: brightness(0.88) saturate(0.9);
}

.gallery-item:hover img { transform: scale(1.05); filter: brightness(1) saturate(1.1); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,13,26,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.gi-1 { grid-column: span 5; grid-row: span 2; height: 420px; }
.gi-2 { grid-column: span 4; height: 200px; }
.gi-3 { grid-column: span 3; height: 200px; }
.gi-4 { grid-column: span 7; height: 200px; }
.gi-5 { grid-column: span 5; height: 200px; }

.cable-card {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--blue-800);
  border: 1px solid rgba(45,111,212,0.3);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.cable-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.12), transparent 70%);
}

.cable-card-thumb { width: 100%; height: 120px; border-radius: 0.75rem; overflow: hidden; border: 2px solid rgba(0,200,255,0.25); }
.cable-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cable-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); }
.cable-card p { font-size: 0.85rem; line-height: 1.65; color: var(--gray); }

.cable-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(15,244,198,0.08);
  border: 1px solid rgba(15,244,198,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  width: fit-content;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-strip { flex-wrap: wrap; gap: 2rem; }
  .stat-item { border-right: none; max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contract-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5 { grid-column: span 2; height: 200px; grid-row: span 1; }
  .cable-card { grid-column: span 2; }
  #hero { padding: 7rem 5% 4rem; }
  h1 { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .hero-content { max-width: 100%; }
  .hero-desc { font-size: 0.95rem; }
}