:root {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.10);
  --text: #f5f8fc;
  --text-soft: #aebbd0;
  --accent: #55d6be;
  --accent-strong: #30bca5;
  --max-width: 1180px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(85, 214, 190, 0.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(61, 126, 255, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(16px);
}

header > div {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

header strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

main {
  overflow: hidden;
}

section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 96px 0;
}

#inicio {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 120px;
}

#inicio::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3%;
  width: min(34vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(85, 214, 190, 0.18);
  border-radius: 36% 64% 58% 42% / 46% 38% 62% 54%;
  background:
    radial-gradient(circle at 34% 32%, rgba(85, 214, 190, 0.28), transparent 26%),
    radial-gradient(circle at 65% 68%, rgba(61, 126, 255, 0.24), transparent 32%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 0 100px rgba(85, 214, 190, 0.08),
    inset 0 0 80px rgba(61, 126, 255, 0.05);
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

#inicio > p:first-child {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

#inicio > p:not(:first-child) {
  max-width: 700px;
  margin: 30px 0 36px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

#inicio > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  margin: 0 12px 12px 0;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

#inicio > a:first-of-type {
  color: #061512;
  background: var(--accent);
}

#inicio > a:first-of-type:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

#inicio > a:last-of-type {
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

#inicio > a:last-of-type:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

section > p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.06rem;
}

#solucoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#solucoes > h2,
#solucoes > p {
  grid-column: 1 / -1;
}

#solucoes > p {
  margin: 0 0 28px;
}

article {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

article:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 214, 190, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

article h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

article p {
  margin: 0;
  color: var(--text-soft);
}

#sobre,
#contato {
  border-top: 1px solid var(--surface-border);
}

#contato a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--surface-border);
}

footer p {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  #inicio::after {
    display: none;
  }

  header > div {
    min-height: 64px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.82rem;
  }

  nav a:nth-child(2),
  nav a:nth-child(3) {
    display: none;
  }

  section {
    padding: 72px 0;
  }

  #inicio {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 90px;
  }

  #solucoes {
    grid-template-columns: 1fr;
  }

  #solucoes > h2,
  #solucoes > p {
    grid-column: auto;
  }

  article {
    min-height: auto;
  }
}
