:root {
  --bg-0: #07101d;
  --bg-1: #0b1730;
  --bg-2: #152142;
  --panel: rgba(10, 19, 37, 0.72);
  --panel-strong: rgba(14, 25, 48, 0.96);
  --panel-soft: rgba(45, 61, 102, 0.32);
  --line: rgba(146, 173, 223, 0.14);
  --line-strong: rgba(146, 173, 223, 0.24);
  --text: #edf4ff;
  --muted: #95a7c6;
  --muted-strong: #cad5ea;
  --title: #fbfdff;
  --accent: #6f78ff;
  --accent-2: #66d0ff;
  --accent-3: #5fd8ad;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(rgba(5, 11, 25, 0.76), rgba(5, 11, 25, 0.9)),
    url("../assets/bg-tech-matrix.png"),
    radial-gradient(circle at 12% 8%, rgba(102, 208, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 9%, rgba(111, 120, 255, 0.22), transparent 32%),
    radial-gradient(circle at 60% 36%, rgba(72, 108, 192, 0.14), transparent 28%),
    linear-gradient(180deg, #091123 0%, #0c1430 42%, #07101d 100%);
  background-size: cover, cover, auto, auto, auto, auto;
  background-position: center top, center top, 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed, fixed, scroll, scroll, scroll, scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 154, 193, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 154, 193, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background:
    radial-gradient(circle at 12% 18%, rgba(67, 200, 255, 0.18), transparent 0 140px),
    radial-gradient(circle at 76% 16%, rgba(67, 200, 255, 0.14), transparent 0 150px),
    radial-gradient(circle at 64% 60%, rgba(111, 107, 255, 0.12), transparent 0 180px);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero,
section,
footer {
  position: relative;
}

.hero {
  padding: 30px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 0;
}

.brand img {
  display: block;
  width: 208px;
  max-width: 100%;
  height: auto;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(147, 197, 253, 0.08);
  border-radius: 999px;
  background: rgba(9, 17, 33, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.topbar-links a:hover {
  color: var(--title);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(146, 173, 223, 0.14);
  background: rgba(17, 28, 53, 0.52);
  color: #bccae2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 24px;
  color: var(--title);
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #6272ff 0%, #7a84ff 48%, #55c6ff 100%);
  box-shadow: 0 20px 42px rgba(89, 106, 255, 0.28);
}

.button-secondary,
.button-ghost {
  color: #dce6f8;
  background: rgba(59, 74, 109, 0.24);
  border-color: rgba(147, 197, 253, 0.1);
}

.button-secondary:hover,
.button-ghost:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.highlight-item {
  padding: 18px 18px 20px;
  border: 1px solid rgba(140, 168, 220, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 25, 47, 0.42), rgba(12, 20, 38, 0.22));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.highlight-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--title);
  font-size: 0.95rem;
}

.highlight-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-visual {
  width: 100%;
}

.hero-window {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(147, 197, 253, 0.1);
  background:
    radial-gradient(circle at 78% 12%, rgba(67, 200, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(24, 35, 64, 0.9), rgba(10, 18, 36, 0.96));
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.06);
  background: linear-gradient(180deg, rgba(55, 69, 105, 0.36), rgba(36, 48, 78, 0.2));
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-bar span:nth-child(1) {
  background: #ff6b6b;
}

.window-bar span:nth-child(2) {
  background: #f7c948;
}

.window-bar span:nth-child(3) {
  background: #34d399;
}

.hero-panel {
  padding: 32px;
}

.hero-kpi-card {
  padding: 26px 24px;
  border: 1px solid rgba(140, 168, 220, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 27, 51, 0.56), rgba(12, 21, 40, 0.34));
}

.kpi-label,
.insight-card span {
  display: block;
  margin-bottom: 12px;
  color: #97a9ca;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kpi-card strong,
.insight-card strong {
  display: block;
  color: var(--title);
  font-size: 1.35rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.hero-kpi-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0;
  padding: 8px 0 4px;
}

.flow-node {
  min-width: 106px;
  padding: 15px 18px;
  text-align: center;
  color: var(--muted-strong);
  border: 1px solid rgba(140, 168, 220, 0.12);
  border-radius: 18px;
  background: rgba(14, 24, 45, 0.42);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flow-node-primary {
  background: linear-gradient(135deg, rgba(97, 113, 255, 0.88), rgba(67, 200, 255, 0.62));
  color: #ffffff;
  border-color: rgba(124, 151, 255, 0.38);
  box-shadow: 0 18px 34px rgba(71, 110, 242, 0.24);
}

.flow-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 200, 255, 0.12), rgba(111, 107, 255, 0.28));
}

.hero-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.insight-card {
  padding: 20px;
  border: 1px solid rgba(140, 168, 220, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 25, 47, 0.44), rgba(10, 18, 35, 0.26));
  min-height: 118px;
}

main {
  display: grid;
  gap: 28px;
  padding-bottom: 32px;
}

section {
  padding: 34px;
  border: 1px solid rgba(146, 173, 223, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 24, 44, 0.86), rgba(9, 17, 33, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at top right, rgba(102, 208, 255, 0.08), transparent 24%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

h2 {
  margin: 16px 0 0;
  color: var(--title);
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  color: var(--title);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

p,
li {
  color: var(--muted);
  line-height: 1.8;
}

a {
  color: var(--accent-2);
}

.intro-grid,
.focus-grid,
.project-grid,
.services-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-card,
.service-card,
.focus-item,
.projeto {
  position: relative;
}

.intro-card {
  padding: 28px;
  border: 1px solid rgba(146, 173, 223, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 28, 53, 0.82), rgba(10, 19, 37, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.intro-label,
.card-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(146, 173, 223, 0.12);
  background: rgba(71, 95, 150, 0.14);
  color: #d6e1f4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.focus-item,
.projeto {
  padding: 26px;
  border: 1px solid rgba(146, 173, 223, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 29, 54, 0.9), rgba(10, 18, 35, 0.78));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.service-card:hover,
.focus-item:hover,
.projeto:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 120, 255, 0.28);
  background: linear-gradient(180deg, rgba(22, 35, 64, 0.92), rgba(11, 20, 39, 0.82));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-section p {
  max-width: 720px;
  margin-bottom: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  text-decoration: none;
  color: var(--muted-strong);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .services-grid,
  .focus-grid,
  .intro-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
  }

  .topbar-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .brand img {
    width: 176px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-highlights,
  .hero-insights {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-line {
    width: 1px;
    height: 18px;
    margin: 0 auto;
  }

  section {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .intro-card,
  .service-card,
  .focus-item,
  .projeto {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}
