:root {
  --accent: #5ad1e8;
  --accent-2: oklch(0.68 0.16 293);
  --bg: oklch(0.16 0.014 258);
  --bg-elevated: oklch(0.19 0.015 258);
  --text: oklch(0.96 0.004 258);
  --text-muted: oklch(0.75 0.015 258);
  --text-soft: oklch(0.78 0.015 258);
  --line: oklch(0.3 0.02 258);
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

@keyframes assemble {
  0% {
    transform: translate(var(--fx), var(--fy)) rotate(45deg) scale(0.4);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(45deg) scale(1);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(oklch(0.32 0.02 258 / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.32 0.02 258 / 0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black, transparent 72%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent);
}

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 22px;
  border-radius: 100px;
  background: oklch(0.19 0.015 258 / 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid oklch(0.36 0.02 258 / 0.6);
  box-shadow: 0 8px 30px oklch(0.05 0.01 258 / 0.4);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav__link {
  color: oklch(0.85 0.008 258);
  text-decoration: none;
  font-size: 14.5px;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__cta {
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease-out;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 128px;
  right: 0;
  width: 50%;
  height: 88%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.hero__squares {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__square {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  animation: assemble 1s ease-out forwards;
}

.hero__square--a {
  background: var(--accent);
  --fx: -60px;
  --fy: -30px;
}

.hero__square--b {
  background: oklch(0.32 0.02 258);
  --fx: 40px;
  --fy: -40px;
  animation-delay: 0.1s;
}

.hero__square--c {
  background: var(--accent-2);
  --fx: -20px;
  --fy: 50px;
  animation-delay: 0.2s;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 760px;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.4s forwards;
}

.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.5s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.6s forwards;
}

.btn {
  padding: 14px 26px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: transform 0.2s ease-out;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  border: 1px solid oklch(0.4 0.02 258);
  color: var(--text);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 16px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  overflow: hidden;
}

.section--sobre {
  background: var(--bg);
}

.section--produtos,
.section--contato {
  background: var(--bg-elevated);
}

.section__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.section__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.eyebrow--center {
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.section__title--center {
  text-align: center;
  margin: 0 0 56px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.prose p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.product-card__glow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  transition: opacity 0.25s ease-out;
}

.product-card__orb {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.product-card__body {
  position: relative;
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: drift 4s ease-in-out infinite;
}

.product-card__icon span {
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 3px;
  transform: rotate(45deg);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  background: oklch(0.3 0.03 258);
  color: oklch(0.8 0.02 258);
  font-weight: 500;
}

.product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(90, 209, 232);
  animation: pulseGlow 1.6s ease-in-out infinite;
}

.product-card__desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 24px;
  max-width: 480px;
}

.product-card__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tag {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-weight: 500;
}

.product-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.product-teaser {
  margin: 24px auto 0;
  max-width: 640px;
  width: 100%;
  border: 1px dashed oklch(0.38 0.02 258);
  border-radius: 18px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-teaser p {
  margin: 0;
  font-size: 15.5px;
  color: oklch(0.65 0.015 258);
}

.contact-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

.contact {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact .eyebrow,
.contact .section__title {
  text-align: center;
}

.contact .section__title {
  margin-bottom: 20px;
}

.contact__lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 32px;
  text-align: center;
  font-size: 13.5px;
  color: oklch(0.55 0.015 258);
  border-top: 1px solid oklch(0.28 0.02 258);
}

@media (max-width: 900px) {
  .hero__canvas {
    width: 100%;
    opacity: 0.35;
    right: 0;
    left: 0;
  }

  .nav {
    width: calc(100% - 24px);
    max-width: 560px;
    border-radius: 24px;
    justify-content: center;
  }

  .product-card {
    padding: 36px 24px;
  }
}
