/* ===================================
   CRIATECH — Premium CSS
   =================================== */

:root {
  --blue: #0049ff;
  --cyan: #00d4ff;
  --purple: #a855f7;
  --dark: #050810;
  --dark2: #080d1a;
  --dark3: #0d1428;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #e8edf8;
  --muted: #6b7a99;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===================================
   CURSOR
   =================================== */
.cursor {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(0,73,255,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left 0.12s ease-out, top 0.12s ease-out, width 0.2s, height 0.2s;
}
body:hover .cursor { opacity: 1; }

/* ===================================
   PARTICLES
   =================================== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===================================
   HEADER
   =================================== */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#header.scrolled {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 38px; height: 38px; }
.logo-icon svg { width: 100%; height: 100%; border-radius: 50%;}
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.logo-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* impede de deformar */
}

.logo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.logo-accent { color: var(--cyan); }
.logo-sub { font-size: 0.7rem; color: var(--muted); display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover { background: #0040dd; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(0,73,255,0.35);
}
.btn-primary:hover {
  background: #003de0;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,73,255,0.5);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: var(--glass); }
.full-btn { width: 100%; justify-content: center; }
.small-btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ===================================
   HERO
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px; left: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,73,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,73,255,0.1);
  border: 1px solid rgba(0,73,255,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* LAPTOP MOCKUP */
.hero-mockup { flex: 1; display: flex; justify-content: center; min-width: 0; }
.laptop-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.laptop-glow {
  position: absolute;
  top: 20%; left: 10%;
  width: 80%; height: 60%;
  background: radial-gradient(ellipse, rgba(0,73,255,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.laptop {
  position: relative;
  z-index: 2;
  perspective: 1000px;
  animation: float-laptop 6s ease-in-out infinite;
}
@keyframes float-laptop {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-5deg); }
  50% { transform: translateY(-12px) rotateX(2deg) rotateY(-5deg); }
}
.laptop-screen {
  background: #0a0f1e;
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(255,255,255,0.1);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,73,255,0.15), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.screen-inner {
  background: var(--dark2);
  min-height: 280px;
  padding: 0;
}
.mock-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span {
  width: 8px; height: 8px; border-radius: 50%;
}
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28ca41; }
.mock-bar {
  flex: 1; height: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.mock-hero-img {
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #050810 100%);
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}
.mock-hero-img::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,73,255,0.4) 0%, transparent 70%);
}
.mock-overlay-text { z-index: 1; }
.mock-tag {
  background: var(--blue);
  color: #fff;
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.mock-overlay-text p {
  font-size: 9px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}
.mock-overlay-text strong { color: var(--cyan); }
.mock-person {
  position: absolute;
  right: 20px; bottom: 0;
  width: 60px; height: 90px;
  background: linear-gradient(to top, #0a1628, transparent);
  border-radius: 4px 4px 0 0;
}

.mock-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mock-nav-item {
  height: 6px; width: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.active-nav { background: var(--blue); width: 20px; }
.mock-cta-btn {
  margin-left: auto;
  height: 20px; width: 60px;
  background: var(--blue);
  border-radius: 4px;
  opacity: 0.9;
}

.mock-cards {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
}
.mock-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-icon-mock {
  width: 20px; height: 20px;
  border-radius: 5px;
}
.blue-icon { background: rgba(0,73,255,0.5); }
.cyan-icon { background: rgba(0,212,255,0.4); }
.purple-icon { background: rgba(168,85,247,0.4); }
.card-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-lines div { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.card-lines div:last-child { width: 60%; }
.pulse-card { animation: pulse-card 3s ease-in-out infinite; }
@keyframes pulse-card {
  0%, 100% { border-color: rgba(255,255,255,0.07); }
  50% { border-color: rgba(0,73,255,0.4); box-shadow: 0 0 12px rgba(0,73,255,0.2); }
}

.laptop-base {
  background: linear-gradient(to bottom, #1a1f2e, #0f1218);
  height: 24px;
  border-radius: 0 0 14px 14px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.laptop-notch {
  width: 60px; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,20,40,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 10;
}
.float-1 { top: 15%; right: -10%; animation: float-badge1 5s ease-in-out infinite; }
.float-2 { bottom: 20%; left: -8%; animation: float-badge2 5.5s ease-in-out infinite; }
@keyframes float-badge1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-badge2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.fb-icon { font-size: 1.25rem; }
.fb-title { font-size: 0.8rem; font-weight: 600; color: #fff; }
.fb-sub { font-size: 0.7rem; color: var(--muted); }

/* STATS */
.stats-bar {
  max-width: 1200px;
  margin: 3rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.stat-label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.stat-divider {
  width: 1px; height: 50px;
  background: var(--border);
}

/* ===================================
   SECTIONS
   =================================== */
.section { padding: 6rem 2rem; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   SERVICES
   =================================== */
.services { background: var(--dark2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card:hover .card-glow { opacity: 1; }

.featured-card {
  border-color: rgba(0,73,255,0.4);
  background: rgba(0,73,255,0.06);
}

.featured-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.svc-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(0,73,255,0.1);
  border: 1px solid rgba(0,73,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }

.svc-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.svc-list li {
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.svc-list li::before { content: '→'; color: var(--blue); font-size: 0.8rem; }

.svc-cta { margin-top: auto; }
.svc-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.svc-link:hover { gap: 8px; }

.card-glow {
  position: absolute;
  bottom: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.blue-glow { background: rgba(0,73,255,0.3); }
.purple-glow { background: rgba(168,85,247,0.3); }
.cyan-glow { background: rgba(0,212,255,0.3); }

/* ===================================
   PORTFOLIO
   =================================== */
.portfolio { background: var(--dark3); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.port-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.port-card:hover { transform: translateY(-6px); border-color: rgba(0,73,255,0.4); }

.port-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.port-img-1 { background: linear-gradient(135deg, #0f2d4a 0%, #1a4060 50%, #0a1a2e 100%); }
.port-img-2 { background: linear-gradient(135deg, #1a0a2e 0%, #2d1a4a 50%, #0a0a1e 100%); }
.port-img-3 { background: linear-gradient(135deg, #0a2040 0%, #0a3a50 50%, #050f20 100%); }
.port-img-4 { background: linear-gradient(135deg, #0a1a0a 0%, #1a3a1a 50%, #0a140a 100%); }
.port-img-5 { background: linear-gradient(135deg, #1a0a0a 0%, #3a1a1a 50%, #1a0a0a 100%); }

.port-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 8px
  );
}

.port-img-1::after {
  content: '';
  position: absolute;
  top: 20%; left: 15%;
  width: 70%; height: 60%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,73,255,0.2);
}

.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.port-card:hover .port-overlay { opacity: 1; }
.port-tag {
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.port-info { padding: 1rem 1.25rem; background: rgba(255,255,255,0.02); }
.port-info h4 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.port-info p { font-size: 0.8rem; color: var(--muted); }

.port-next {
  background: rgba(0,73,255,0.05);
  border-color: rgba(0,73,255,0.2);
  border-style: dashed;
  display: flex;
}
.port-next-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.5rem;
  width: 100%;
}
.port-next-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,73,255,0.15);
  border: 1px solid rgba(0,73,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.port-next-inner h4 { font-size: 0.95rem; font-weight: 600; color: #fff; }
.port-next-inner p { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.quote-block {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  max-width: 600px;
}
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.5;
  font-family: Georgia, serif;
}

/* ===================================
   PROCESS
   =================================== */
.process { background: var(--dark2); }
.process-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 200px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.process-step:hover { border-color: rgba(0,73,255,0.4); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0,73,255,0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.step-content p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.process-arrow {
  font-size: 1.5rem;
  color: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===================================
   TEAM
   =================================== */
.team { background: var(--dark3); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: rgba(0,73,255,0.4); transform: translateY(-4px); }

.team-photo-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.team-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--blue), var(--cyan), var(--blue));
  animation: spin-ring 4s linear infinite;
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.team-photo-placeholder {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  z-index: 1;
}
.team-photo {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  z-index: 2;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.team-info p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.team-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.team-tags span {
  background: rgba(0,73,255,0.1);
  border: 1px solid rgba(0,73,255,0.2);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ===================================
   CONTACT
   =================================== */
.contact { background: var(--dark2); }
.contact-bg-glow {
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,73,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-left .section-title { font-size: 2.5rem; }

.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.contact-link:hover { transform: translateX(6px); border-color: rgba(0,73,255,0.4); background: rgba(0,73,255,0.06); }
.cl-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-link .cl-icon { background: rgba(37,211,102,0.15); color: #25d366; }
.insta-link .cl-icon { background: rgba(193,53,132,0.15); color: #e1306c; }
.phone-link .cl-icon { background: rgba(0,73,255,0.15); color: var(--blue); }
.cl-label { font-size: 0.75rem; color: var(--muted); }
.cl-value { font-size: 0.9rem; font-weight: 600; color: #fff; }

/* FORM */
.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(0,73,255,0.06);
}
.form-group select option { background: #0d1428; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--cyan);
  text-align: center;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.small-logo { width: 28px; height: 28px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.footer-name span { color: var(--cyan); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ===================================
   REVEAL ANIMATIONS
   =================================== */
[data-reveal], [data-reveal-right] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal-right] { transform: translateX(40px); }
[data-reveal].revealed, [data-reveal-right].revealed {
  opacity: 1;
  transform: translate(0);
}

/* ===================================
   RESPONSIVE — TABLET (≤900px)
   =================================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    width: 100%;
    background: rgba(5,8,16,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    /* Esconde com max-height em vez de transform para evitar overflow */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open {
    max-height: 600px;
    opacity: 1;
    padding: 2rem;
    pointer-events: all;
  }
  .hamburger { display: flex; cursor: pointer; }

  .hero-inner { flex-direction: column; gap: 3rem; }
  .hero-mockup { width: 100%; }
  .float-1 { right: 0; top: 5%; }
  .float-2 { left: 0; bottom: 5%; }

  .stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.5rem;
  }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }

  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ===================================
   RESPONSIVE — MOBILE (≤600px)
   =================================== */
@media (max-width: 600px) {
  /* Impede scroll horizontal */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Global */
  .section { padding: 4rem 1.25rem; }
  .section-inner { width: 100%; }
  #header { padding: 0 1.25rem; }

  /* Hero */
  .hero { padding: 100px 1.25rem 2rem; overflow: hidden; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.95rem; max-width: 100%; }
  .hero-btns { flex-direction: column; }
  .btn-primary,
  .btn-ghost { width: 100%; justify-content: center; }

  /* Remove elementos que causam overflow */
  .float-badge { display: none; }
  .hero-bg-glow { display: none; }
  .contact-bg-glow { display: none; }

  /* Stats */
  .stats-bar { padding: 1.25rem; gap: 1rem; width: 100%; }
  .stat-num { font-size: 1.6rem; }

  /* Laptop mockup — desativa a rotação 3D que pode vazar */
  .laptop-wrap { max-width: 100%; overflow: hidden; }
  .laptop { animation: float-laptop-mobile 6s ease-in-out infinite; }
  @keyframes float-laptop-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }

  /* Team */
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
  .team-tags { justify-content: center; }

  /* Process */
  .process-step { min-width: unset; width: 100%; }

  /* Quote */
  .quote-block { flex-direction: column; gap: 0.5rem; padding: 2rem 1.25rem; }
  .quote-mark { font-size: 3rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; }

  /* Section title */
  .section-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .contact-left .section-title { font-size: clamp(1.75rem, 7vw, 2.2rem); }
}

/* ===================================
   RESPONSIVE — MOBILE PEQUENO (≤380px)
   =================================== */
@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .hero-badge { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
  .logo-name { font-size: 1rem; }
  .stat-num { font-size: 1.4rem; }
  .section-title { font-size: 1.65rem; }
  .team-card { padding: 1.5rem 1rem; }
  .contact-form { padding: 1.25rem; }
}
