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

:root {
  --brand-ink: #0c121f;
  --brand-ink-deep: #0b111e;
  --brand-ink-soft: #131d30;
  --brand-paper: #faf6f3;
  --brand-paper-muted: #bdccd4;
  --brand-line: rgba(250, 246, 243, 0.12);
  --brand-line-strong: rgba(250, 246, 243, 0.2);
  --brand-glow: rgba(189, 204, 212, 0.18);
  --page-gutter: clamp(32px, 7vw, 112px);
  --radius: 12px;
  --radius-lg: 20px;
  --section-gap: 104px;
}

@font-face {
  font-family: "Termina";
  font-style: normal;
  font-weight: 400;
  src:
    local("Termina Regular"),
    local("Termina-Regular");
}

@font-face {
  font-family: "Termina";
  font-style: normal;
  font-weight: 600 800;
  src:
    local("Termina Demi"),
    local("Termina-Demi");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Termina", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--brand-ink);
  color: var(--brand-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1240px);
  margin: 0 auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--brand-paper);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--brand-paper-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.text-gradient {
  color: var(--brand-paper);
  text-shadow: 0 0 34px var(--brand-glow);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 18, 31, 0.9);
  border-bottom-color: var(--brand-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 4px 0;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  color: var(--brand-paper);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 164px;
  height: auto;
  flex: 0 0 auto;
}

.brand-logo--footer {
  width: 148px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-ink);
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.hero__video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 72% 48%, rgba(189, 204, 212, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 50% at 28% 72%, rgba(250, 246, 243, 0.06), transparent 70%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(12, 18, 31, 0.86) 34%, rgba(12, 18, 31, 0.42)),
    linear-gradient(to bottom, rgba(12, 18, 31, 0.12), rgba(12, 18, 31, 0.88));
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  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.03'/%3E%3C/svg%3E");
  opacity: 0.36;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(250, 246, 243, 0.11) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 85% at 72% 46%, black 10%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 46%, black 10%, transparent 68%);
  animation: grid-drift 32s linear infinite;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: inherit;
  padding-top: 128px;
  padding-bottom: 96px;
}

.hero__content {
  max-width: 760px;
}

.hero__title {
  max-width: 740px;
  font-size: clamp(46px, 5.25vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__description {
  max-width: 600px;
  margin-bottom: 44px;
  color: rgba(250, 246, 243, 0.72);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.75;
}

.solucoes {
  padding: var(--section-gap) 0;
}

.solucoes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--brand-line);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
}

.solution-card {
  position: relative;
  background: var(--brand-ink);
  padding: 36px 32px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.solution-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-paper), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.solution-card:hover,
.solution-card--featured {
  background: var(--brand-ink-soft);
}

.solution-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(250, 246, 243, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.18);
}

.solution-card:hover::after,
.solution-card--featured::after {
  opacity: 1;
}

.solution-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(250, 246, 243, 0.08);
  color: var(--brand-paper);
}

.solution-card h3 {
  margin-bottom: 10px;
  color: var(--brand-paper);
  font-size: 17px;
  font-weight: 700;
}

.solution-card p {
  color: var(--brand-paper-muted);
  font-size: 14px;
  line-height: 1.72;
}

.footer {
  background: var(--brand-ink-deep);
  border-top: 1px solid var(--brand-line);
  padding: 64px 0 0;
}

.footer__inner {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--brand-line);
}

.footer__brand p {
  max-width: 320px;
  margin-top: 16px;
  color: var(--brand-paper-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom p {
  color: rgba(189, 204, 212, 0.62);
  font-size: 13px;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 44px;
  }
}

@media (max-width: 1024px) {
  :root {
    --page-gutter: clamp(28px, 5vw, 56px);
  }

  .hero {
    min-height: 88svh;
  }

  .hero__content {
    max-width: 700px;
  }

  .hero__title {
    font-size: clamp(42px, 7vw, 64px);
  }

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

@media (max-width: 768px) {
  :root {
    --page-gutter: 24px;
    --section-gap: 64px;
  }

  .navbar__inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 144px;
  }

  .hero {
    min-height: 86svh;
  }

  .hero__inner {
    align-items: flex-end;
    padding-top: 104px;
    padding-bottom: 64px;
  }

  .hero__title {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero__description {
    margin-bottom: 32px;
    max-width: 32rem;
    font-size: 15.5px;
    line-height: 1.68;
  }

  .section-header {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-sub {
    margin: 0;
  }

  .solucoes__grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 18px;
  }

  .hero__inner {
    padding-top: 96px;
    padding-bottom: 54px;
  }

  .hero__title {
    font-size: clamp(31px, 9.2vw, 40px);
  }

  .section-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .solution-card {
    padding: 26px 22px;
  }
}
