:root {
  --black: #000000;
  --panel: #0a0a0d;
  --panel-2: #101015;
  --line: #1e1f26;
  --blue: #0058e5;
  --blue-soft: rgba(0, 88, 229, 0.14);
  --blue-glow: rgba(0, 88, 229, 0.45);
  --white: #ffffff;
  --ivory: #f4f4f2;
  --muted: #8b8d98;
  --muted-2: #5b5d68;
  --dot: #2a2b33;
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(0, 0, 0, 0.72);
  --shadow-mock: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4);

  --f-display: "Space Grotesk", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --container: 1180px;
}

html[data-theme="light"] {
  --black: #ffffff;
  --panel: #f5f5f5;
  --panel-2: #ececec;
  --line: #dedede;
  --blue: #0058e5;
  --blue-soft: rgba(0, 88, 229, 0.08);
  --blue-glow: rgba(0, 88, 229, 0.3);
  --white: #000000;
  --ivory: #0e0e10;
  --muted: #57585f;
  --muted-2: #8a8b92;
  --dot: #c9c9cc;
  --grid-line: rgba(0, 0, 0, 0.045);
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow-mock: 0 30px 70px -30px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
::selection {
  background: var(--blue);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- background texture ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    black 10%,
    transparent 75%
  );
  transition: background-image 0.35s ease;
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.eyebrow .idx {
  color: var(--muted-2);
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------- header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .dot {
  color: var(--blue);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -6px var(--blue-glow);
}
.nav-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--white);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.theme-toggle .icon-moon {
  display: none;
}
html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 190px 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, var(--blue-soft) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
  margin-bottom: 26px;
}
.hero h1 .accent {
  color: var(--blue);
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--blue-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.hero-meta {
  display: flex;
  gap: 36px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted-2);
}
.hero-meta strong {
  color: var(--white);
  font-size: 20px;
  font-family: var(--f-display);
  display: block;
  font-weight: 600;
}

/* ---------- browser mockup (signature element) ---------- */
.mock {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-mock);
  transition: box-shadow 0.35s ease;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}
.mock-url {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  background: var(--black);
  padding: 5px 12px;
  border-radius: 5px;
  flex: 1;
}
.mock-body {
  padding: 26px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-line1 {
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--muted);
  min-height: 24px;
}
.mock-line1 .caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--blue);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.mock-stat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.mock-stat .n {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--white);
  font-weight: 600;
}
.mock-stat .l {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}
.mock-bars span {
  flex: 1;
  background: linear-gradient(to top, var(--blue), var(--blue-glow));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

/* ---------- section shell ---------- */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 16px;
  max-width: 520px;
}
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- sobre ---------- */
.sobre {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.sobre-photo {
  aspect-ratio: 4/5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sobre-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, var(--blue-soft) 100%);
}
.sobre-photo span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-2);
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.sobre-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 22px;
}
.sobre-text p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 540px;
}
.sobre-text p strong {
  color: var(--white);
  font-weight: 600;
}
.sobre-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.sobre-tags span {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
}

/* ---------- serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--panel);
  padding: 40px 32px;
  transition: background 0.25s ease;
}
.service-card:hover {
  background: var(--panel-2);
}
.service-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.service-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
}
.service-card p.desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-list li {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- diferencial ---------- */
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.diff-visual {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px;
}
.diff-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.diff-row + .diff-row {
  border-top: 1px solid var(--line);
}
.diff-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
}
.diff-row div p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}
.diff-row div h4 {
  font-size: 15.5px;
  color: var(--white);
  font-weight: 600;
  font-family: var(--f-body);
}
.diff-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 22px;
}
.diff-text p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 14px;
}
.diff-text .highlight {
  color: var(--white);
  font-weight: 500;
  border-left: 2px solid var(--blue);
  padding-left: 18px;
  margin-top: 26px;
  font-size: 16px;
}

/* ---------- portfolio ---------- */
.portfolio-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ptab {
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.2s ease;
}
.ptab.active,
.ptab:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue-soft);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pf-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.pf-card:hover {
  transform: translateY(-4px);
  border-color: #2c2e38;
}
.pf-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--panel-2), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pf-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 88, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 88, 229, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.pf-thumb span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-2);
  z-index: 1;
}
.pf-info {
  padding: 20px 22px;
}
.pf-cat {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pf-info h4 {
  font-size: 16px;
  color: var(--white);
  margin-top: 8px;
  font-weight: 600;
  font-family: var(--f-body);
}
.portfolio-note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted-2);
  font-family: var(--f-mono);
}

/* ---------- como funciona ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}
.t-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.t-step:last-child {
  border-bottom: 1px solid var(--line);
}
.t-num {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--blue);
  padding-top: 2px;
}
.t-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.t-content p {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
}

/* ---------- autoridade ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  padding: 48px 36px;
  text-align: left;
  position: relative;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat .n {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .n .plus {
  color: var(--blue);
}
.stat .l {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--white);
}
.faq-q .plus {
  font-family: var(--f-mono);
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item.open .plus {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 24px;
  max-width: 640px;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--blue-soft), transparent 70%);
}
.cta-final h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 18px;
  position: relative;
}
.cta-final p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 480px;
  margin: 0 auto 38px;
  position: relative;
}
.cta-final .btn {
  position: relative;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 30px;
}
.foot-brand .logo {
  margin-bottom: 10px;
}
.foot-brand p {
  color: var(--muted-2);
  font-size: 13.5px;
  max-width: 280px;
}
.foot-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 11px;
  transition: color 0.2s ease;
}
.foot-col a:hover {
  color: var(--white);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .sobre,
  .diff {
    grid-template-columns: 1fr;
  }
  .sobre-photo {
    max-width: 320px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .foot-links {
    gap: 36px;
  }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px 28px;
    gap: 22px;
    align-items: flex-start;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
  }
  .nav-toggle span {
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }
  .hero {
    padding: 150px 0 80px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-meta {
    gap: 24px;
    flex-wrap: wrap;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 80px 0;
  }
  .cta-final {
    padding: 56px 28px;
  }
  .t-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .diff-visual {
    padding: 28px;
  }
}
