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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #6de3b4;
  --accent2: #3b82f6;
  --text: #e8e8f0;
  --muted: #6b6b80;
  --card: #13131c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 6vw;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

nav ul a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0a0a0f !important;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity .2s !important;
}

.nav-cta:hover { opacity: .85; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 6vw 6rem;
  position: relative;
  overflow: hidden;
}

/* Glow blobs */
#hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(109,227,180,.12) 0%, transparent 70%);
  top: 10%; left: -10%;
  pointer-events: none;
  animation: blobMove 8s ease-in-out infinite alternate;
}

.hero-blob2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%);
  bottom: 5%; right: -5%;
  pointer-events: none;
  animation: blobMove 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobMove {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp .9s .1s ease both;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  animation: fadeUp .9s .2s ease both;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 3px;
  background: var(--accent);
  opacity: .4;
  border-radius: 2px;
}

.hero-sub {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  animation: fadeUp .9s .35s ease both;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .9s .45s ease both;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 28px rgba(109,227,180,.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(109,227,180,.4);
}

.btn-ghost {
  color: var(--text);
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}

.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

/* ── SERVICES ── */
#servicos {
  padding: 7rem 6vw;
  position: relative;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 2.5rem;
  transition: background .2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109,227,180,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}

.service-card:hover { background: #161622; }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  background: rgba(109,227,180,.08);
  border: 1px solid rgba(109,227,180,.15);
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .7rem;
}

.service-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
#processo {
  padding: 7rem 6vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.step {
  position: relative;
  padding-left: 1.5rem;
}

.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: .8rem;
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.step p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

/* ── WHY ME ── */
#diferenciais {
  padding: 7rem 6vw;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diff-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diff-check {
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(109,227,180,.1);
  border: 1px solid rgba(109,227,180,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
}

.diff-item h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: .3rem;
  font-size: .95rem;
}

.diff-item p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.diff-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}

/* Fake code window */
.code-window {
  background: #0e0e17;
  border-radius: 12px;
  overflow: hidden;
  font-family: monospace;
  font-size: .82rem;
}

.code-bar {
  background: var(--border);
  padding: .7rem 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.code-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.code-body {
  padding: 1.5rem;
  line-height: 1.8;
}

.c-kw  { color: #c792ea; }
.c-fn  { color: #82aaff; }
.c-str { color: var(--accent); }
.c-muted { color: #546e7a; }

/* ── CONTACT ── */
#contato {
  padding: 7rem 6vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.contact-badges {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.badge {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: .88rem;
}

.badge-icon {
  font-size: 1.2rem;
}

.badge strong {
  display: block;
  font-weight: 600;
  margin-bottom: .1rem;
}

.badge span { color: var(--muted); font-size: .82rem; }

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .03em;
}

input, textarea, select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109,227,180,.1);
}

input::placeholder, textarea::placeholder { color: #40404f; }

textarea { resize: vertical; min-height: 130px; }

select option { background: var(--card); }

.btn-send {
  background: var(--accent);
  color: #0a0a0f;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 28px rgba(109,227,180,.2);
  letter-spacing: .01em;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(109,227,180,.35);
}

.form-note {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

/* SUCCESS */
#success-msg {
  display: none;
  background: rgba(109,227,180,.08);
  border: 1px solid rgba(109,227,180,.25);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  font-size: .95rem;
  margin-top: .5rem;
}

/* ── FOOTER ── */
footer {
  padding: 2.5rem 6vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

footer .logo { font-size: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .diff-grid, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .diff-visual { display: none; }
  nav ul { display: none; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
