/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:      #145DFF;
  --purple:    #7B2CFF;
  --dark-blue: #081B52;
  --black:     #050810;
  --white:     #F0F4FF;
  --grey:      #8A93B0;
  --card-bg:   rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.08);
  --gradient:  linear-gradient(135deg, var(--blue), var(--purple));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* SELECTION */
::selection { background: var(--purple); color: #fff; }

/* TYPOGRAPHY HELPERS */
.syne { font-family: 'Space Grotesk', sans-serif; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradiente animado: azul → roxo → ciano → azul (hero title) */
.gradient-text-anim {
  background: linear-gradient(
    90deg,
    #50BEFF 0%,
    #145DFF 25%,
    #7B2CFF 50%,
    #145DFF 75%,
    #50BEFF 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 5s ease-in-out infinite;
}

@keyframes gradient-flow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 120px 0; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s;
}

/*
 * O blur/fundo do nav rolado vive num pseudo-elemento em vez de direto
 * no <nav>. filter/backdrop-filter num ancestral cria um novo containing
 * block para descendentes position:fixed (o menu mobile .nav-links mora
 * dentro de <nav>) — isso fazia o menu "quebrar" só depois do scroll,
 * quando .scrolled aplicava backdrop-filter no <nav>.
 */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  pointer-events: none;
}

nav.scrolled {
  padding: 14px 0;
}

nav.scrolled::before {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter:
    brightness(1.1)
    drop-shadow(0 0 8px rgba(20, 93, 255, 0.55))
    drop-shadow(0 0 20px rgba(123, 44, 255, 0.25));
  transition: filter 0.3s;
}

.nav-logo:hover img {
  filter:
    brightness(1.25)
    drop-shadow(0 0 14px rgba(20, 93, 255, 0.80))
    drop-shadow(0 0 32px rgba(123, 44, 255, 0.45));
}

.nav-logo-text {
  /* sempre visível — complementa a logo */
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 0%, #c0d8ff 50%, #a07bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
#hero {
  background: var(--black);
  position: relative;
  min-height: 100vh;          /* nunca menor que a viewport */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 92px 0 60px;
}

#vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, transparent 35%, rgba(5, 8, 16, 0.55) 100%),
    linear-gradient(to right, rgba(5, 8, 16, 0.98) 38%, rgba(5, 8, 16, 0.55) 58%, rgba(5, 8, 16, 0.1) 75%, transparent 100%);
  z-index: 1;
}

/* Grid 2 colunas: texto | vórtice */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}

.hero-content {
  padding: 0;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 93, 255, 0.12);
  border: 1px solid rgba(20, 93, 255, 0.3);
  color: #7AABFF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(20, 93, 255, 0.35);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 93, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 500;
}

/* SECTION HEADERS */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7AABFF;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.7;
}

/* SOBRE */
#sobre {
  background: var(--black);
  position: relative;
  padding: 80px 0;
}

#sobre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue), var(--purple), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
}

.about-card:last-child { margin-bottom: 0; }

.about-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card-title.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-card-text {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

.about-accent {
  position: absolute;
  top: -20px; right: -20px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(20, 93, 255, 0.12);
  border: 1px solid rgba(20, 93, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg { width: 18px; height: 18px; }

.value-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.value-text p {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.5;
}


.about-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.about-header-sub { max-width: 580px; margin: 0 auto; text-align: center; }

.about-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}

/* LEFT: pillars */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon.blue {
  background: rgba(20, 93, 255, 0.12);
  border: 1px solid rgba(20, 93, 255, 0.25);
}

.pillar-icon.purple {
  background: rgba(123, 44, 255, 0.12);
  border: 1px solid rgba(123, 44, 255, 0.25);
}

.pillar-icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.pillar-icon.purple svg { stroke: var(--purple); }

.pillar-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-content p {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.65;
  margin: 0;
}

/* RIGHT: bento */
.about-right { width: 100%; }

@media (max-width: 900px) {
  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* SERVIÇOS */
#servicos {
  background: linear-gradient(180deg, var(--black) 0%, #080c1a 100%);
  position: relative;
}

.services-header { text-align: center; margin-bottom: 70px; }
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: rgba(20, 93, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(20, 93, 255, 0.12);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .service-card-glow { opacity: 1; }

.service-card:nth-child(1) .service-card-glow { background: radial-gradient(circle, rgba(20,93,255,0.12) 0%, transparent 70%); }
.service-card:nth-child(2) .service-card-glow { background: radial-gradient(circle, rgba(123,44,255,0.12) 0%, transparent 70%); }
.service-card:nth-child(3) .service-card-glow { background: radial-gradient(circle, rgba(123,44,255,0.12) 0%, transparent 70%); }
.service-card:nth-child(4) .service-card-glow { background: radial-gradient(circle, rgba(20,93,255,0.12) 0%, transparent 70%); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(20, 93, 255, 0.1);
  border: 1px solid rgba(20, 93, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg { width: 24px; height: 24px; }

.service-icon.purple {
  background: rgba(123, 44, 255, 0.1);
  border-color: rgba(123, 44, 255, 0.2);
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7AABFF;
  background: rgba(20, 93, 255, 0.1);
  border: 1px solid rgba(20, 93, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

.service-tag.purple {
  color: #B47BFF;
  background: rgba(123, 44, 255, 0.1);
  border-color: rgba(123, 44, 255, 0.2);
}


/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
  border-color: rgba(20, 93, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 93, 255, 0.1);
}

/* O que entregamos */
.bento-what {
  grid-column: 1 / -1;
  background: linear-gradient(rgba(6,10,24,0.72), rgba(6,10,24,0.72)),
              url('assets/images/o que entregamos.png');
  background-size: cover;
  background-position: center;
}

.bento-what-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bento-what-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(20,93,255,0.15);
  border: 1px solid rgba(20,93,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bento-what h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
}

.bento-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-list li {
  background: rgba(20,93,255,0.1);
  border: 1px solid rgba(20,93,255,0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--grey);
}

/* Metric cards */
.bento-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 160px;
}

.bento-metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.bento-metric-label {
  font-size: 0.85rem;
  color: var(--grey);
  max-width: 160px;
}

/* Diferencial card */
.bento-diff-card {
  grid-column: 1 / -1;
  background: linear-gradient(rgba(6,10,24,0.72), rgba(6,10,24,0.72)),
              url('assets/images/diferencial.png');
  background-size: cover;
  background-position: center;
  border-color: rgba(20,93,255,0.14);
}

.bento-diff-tag {
  display: inline-block;
  background: rgba(20,93,255,0.15);
  border: 1px solid rgba(20,93,255,0.3);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5BB8FF;
  margin-bottom: 20px;
}

.bento-diff-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-diff-card p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 20px;
}

.bento-diff-dots {
  display: flex;
  gap: 8px;
}

.bento-diff-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.bento-diff-dots span:nth-child(1) { background: #145DFF; }
.bento-diff-dots span:nth-child(2) { background: #7B2CFF; }
.bento-diff-dots span:nth-child(3) { background: rgba(255,255,255,0.15); }

@media (max-width: 540px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-what { grid-column: 1 / -1; }
  .bento-diff-card { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* DIFERENCIAIS */
#diferenciais {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.diff-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(20, 93, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diff-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.diff-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  flex-shrink: 0;
  width: 48px;
}

.diff-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-content p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.7;
}

.diff-cards { display: grid; gap: 16px; }

.diff-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s;
}

.diff-card:hover { border-color: rgba(123, 44, 255, 0.3); }

.diff-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-card-icon.purple {
  background: linear-gradient(135deg, #7B2CFF, #9B4DFF);
}

.diff-card-icon svg { width: 22px; height: 22px; }

.diff-card-text h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.diff-card-text p {
  font-size: 0.82rem;
  color: var(--grey);
}

/* PROCESSO */
#processo {
  background: linear-gradient(180deg, #080c1a 0%, var(--black) 100%);
}

.process-header { text-align: center; margin-bottom: 70px; }
.process-header .section-sub { margin: 0 auto; }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue), var(--purple), transparent);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.step-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.process-step:hover .step-circle {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(20, 93, 255, 0.3);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.6;
}


.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.process-card:hover {
  border-color: rgba(20, 93, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 93, 255, 0.1);
}

.process-card:hover::before { transform: scaleX(1); }

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.process-card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
  transition: opacity 0.35s;
}

.process-card:hover .process-card-num { opacity: 0.55; }

.process-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(20, 93, 255, 0.1);
  border: 1px solid rgba(20, 93, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue);
}

.process-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.process-card-list {
  list-style: none;
  margin-bottom: 16px;
}

.process-card-list li {
  font-size: 0.82rem;
  color: var(--grey);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-card-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  opacity: 0.6;
}

.process-card-desc {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .process-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .process-cards-grid { grid-template-columns: 1fr; }
}

/* CTA FINAL */
#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#contato .container { position: relative; z-index: 1; }

#contato {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 27, 82, 0.8) 0%, rgba(20, 93, 255, 0.1) 50%, rgba(123, 44, 255, 0.15) 100%);
}

.cta-glow-1 {
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20, 93, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-glow-2 {
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-border {
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner .section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.cta-inner p {
  font-size: 1.1rem;
  color: var(--grey);
  line-height: 1.7;
  margin: 20px 0 44px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary { font-size: 1rem; padding: 18px 40px; }
.cta-buttons .btn-secondary { padding: 17px 40px; }

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--grey);
}

.cta-feature svg { width: 16px; height: 16px; color: var(--blue); }

.cta-price-note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  text-align: center;
}

/* FOOTER */
footer {
  background: #030508;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 36px; width: auto; }
.footer-logo-text {
  display: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy { font-size: 0.82rem; color: var(--grey); }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* SERVIÇOS CAROUSEL */
#servicos.carousel-section {
  background: linear-gradient(180deg, #080c1a 0%, var(--black) 100%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

#servicos.carousel-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue), var(--purple), transparent);
}

/* Controls bar */

/* Track */
.carousel-track {
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
}

/* Slides */
.carousel-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.carousel-slide.leaving {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  overflow: hidden;
}

.slide-visual-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slide-visual-glow.blue {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(20,93,255,0.14) 0%, transparent 70%);
}

.slide-visual-glow.purple {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(123,44,255,0.14) 0%, transparent 70%);
}

.slide-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  position: relative;
  z-index: 1;
}

.slide-content {
  padding: 40px 56px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.slide-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.78;
  margin-bottom: 28px;
  max-width: 420px;
}

.slide-content .service-tags { margin-bottom: 36px; }

.carousel-progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--blue), var(--purple));
  will-change: width;
}


/* ══════════════════════════════════════════════════════════════
   PROJETOS
══════════════════════════════════════════════════════════════ */

#projetos {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

#projetos::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(20, 93, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
  transform: translateY(-8px);
}

.browser-mockup {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c1120;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover .browser-mockup {
  border-color: rgba(20, 93, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(20, 93, 255, 0.12),
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(20, 93, 255, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.browser-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .browser-screen img {
  transform: translateY(-10%);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 2px;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Syne', var(--sans);
  margin: 0;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.83rem;
  color: var(--grey);
  line-height: 1.65;
  margin: 0;
}


/* ── Mobile ≤ 768px ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Base ── */
  .container { padding: 0 20px; }
  section    { padding: 72px 0; }

  /* ── Navbar ── */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 999;
    padding: 80px 32px 40px;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .nav-links .nav-cta {
    background: var(--blue);
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 1rem;
  }

  /* ── Hero ── */
  #hero { min-height: 100svh; padding: 100px 0 60px; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge { margin: 0 auto 20px; }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 1rem;
    margin: 0 auto 36px;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: 12px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
  }

  /* ── Sobre ── */
  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ── Serviços (carousel) ── */
  .carousel-section { padding: 48px 0 0; }

  .carousel-controls-bar { padding: 0 20px 24px; }

  .carousel-controls-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .carousel-heading { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .carousel-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .carousel-track {
    min-height: 320px;
    overflow: visible;
  }

  .slide-visual { display: none; }

  .slide-content {
    padding: 32px 20px 40px;
    gap: 20px;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .slide-content h2 { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }

  .carousel-nav-group { align-self: flex-end; }

  .carousel-progress-bar { margin-top: 0; }

  /* ── Bento ── */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-what,
  .bento-diff-card { grid-column: 1 / -1; }

  .bento-card { padding: 28px 24px; }

  .bento-canvas-wrap { height: 200px; }

  /* ── Diferenciais ── */
  .diff-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .diff-visual { display: none; }

  /* ── Projetos ── */
  #projetos { overflow: hidden; }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    overflow: hidden;
  }
  .project-card { max-width: 100%; overflow: hidden; }
  .browser-mockup {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
  }
  .browser-bar {
    background: #1a2236;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 8px 12px;
  }
  .browser-url { font-size: 0.62rem; }
  .browser-screen {
    position: relative;
    width: 100%;
    padding-top: 44%;   /* 16:7 aspect ratio via padding-top hack */
    height: 0;
    overflow: hidden;
  }
  .browser-screen img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* ── Processo ── */
  .process-cards-grid { grid-template-columns: 1fr; }

  .process-card { padding: 28px 24px; }

  /* ── CTA / Contato ── */
  #contato { padding: 80px 0; }

  .cta-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── Rodapé ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-links { justify-content: center; }

  /* ── Headings ── */
  .section-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .section-sub   { font-size: 0.95rem; }
}

/* ── Small phones ≤ 480px ───────────────────────────────── */
@media (max-width: 480px) {

  .container { padding: 0 16px; }
  section    { padding: 60px 0; }

  #hero { padding: 88px 0 48px; }

  .hero-title    { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .hero-sub      { font-size: 0.92rem; }

  .btn-primary, .btn-secondary { padding: 13px 22px; font-size: 0.88rem; }

  .slide-content { padding: 24px 16px 32px; }

  .cta-title { font-size: clamp(1.5rem, 8vw, 2rem); }

  .section-title { font-size: clamp(1.5rem, 7.5vw, 2rem); }

  .process-card  { padding: 22px 18px; }
  .diff-item     { flex-direction: column; gap: 10px; }
  .diff-number   { font-size: 2rem; }
}

