:root {
  --bg-base: #07111f;
  --bg-elevated: rgba(9, 21, 38, 0.84);
  --bg-strong: #0d1b2d;
  --surface-soft: rgba(14, 30, 50, 0.72);
  --surface-muted: rgba(10, 23, 39, 0.92);
  --line-soft: rgba(120, 162, 214, 0.18);
  --line-strong: rgba(120, 162, 214, 0.28);
  --accent-cyan: #8cc4ff;
  --accent-blue: #4f8fd8;
  --accent-deep: #1f4f86;
  --text-main: #edf3fb;
  --text-soft: #bfd0e4;
  --text-muted: #89a0bb;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 45px rgba(2, 10, 20, 0.34);
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.75rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 196, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 196, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(79, 143, 216, 0.22), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(31, 79, 134, 0.24), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(140, 196, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #06101d 0%, #07111f 40%, #091727 100%);
  z-index: 0;
  pointer-events: none;
}

a {
  color: var(--accent-cyan);
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--text-main);
}

.title,
.subtitle {
  color: var(--text-main) !important;
}

.navbar,
main,
.footer-modern,
.error-shell {
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.84), rgba(10, 20, 35, 0.74));
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  display: block;
  z-index: 40;
  background: rgba(5, 12, 22, 0.72) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(140, 196, 255, 0.08);
  min-height: 5.25rem;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(5, 12, 22, 0.88) !important;
  border-bottom-color: rgba(140, 196, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.navbar > .container {
  position: relative;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  min-height: 5.25rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
  position: relative;
  z-index: 42;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main) !important;
}

/* Logo oficial é azul-marinho; no tema escuro vira branca via filtro */
.navbar-item .brand-logo,
.footer-logo {
  width: auto;
  max-height: none;
  filter: brightness(0) invert(1);
}

.navbar-item .brand-logo {
  height: 3rem;
}

.footer-logo {
  height: 2.2rem;
  margin-bottom: 0.5rem;
}

.navbar-item,
.navbar-link {
  color: var(--text-soft) !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
  background: transparent !important;
}

.navbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.navbar-item:hover,
.navbar-item:focus-visible,
.navbar-item.is-active {
  color: var(--text-main) !important;
}

.navbar-burger {
  color: var(--text-main) !important;
  height: 5rem;
}

.navbar-burger:hover {
  background: transparent !important;
}

.section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section[id] {
  scroll-margin-top: 6.75rem;
}

.hero-custom {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.7) 0%, rgba(7, 17, 31, 0.5) 45%, var(--bg-base) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

.hero-shell {
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-shell > .columns,
.contact-panel > .columns {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(140, 196, 255, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.section-eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title,
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-title {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
}

.gradient-text {
  color: var(--accent-cyan);
}

.hero-subtitle,
.section-copy {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-actions,
.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-modern:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #5a93d4 0%, #8cc4ff 100%);
  color: #07111f !important;
  box-shadow: 0 18px 30px rgba(80, 132, 196, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 22px 34px rgba(80, 132, 196, 0.24);
}

.btn-secondary {
  background: rgba(9, 19, 32, 0.4);
  border-color: var(--line-soft);
  color: var(--text-main) !important;
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(17, 32, 52, 0.55);
}

.btn-icon {
  margin-right: 0.6rem;
}

.hero-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta span {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.55);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-aside,
.profile-card {
  height: 100%;
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100%;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 22, 38, 0.94), rgba(9, 18, 31, 0.9));
  border: 1px solid rgba(140, 196, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.profile-card-label,
.timeline-label {
  margin: 0;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-card-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.profile-card-text,
.timeline-content p:last-child,
.feature-card p,
.footer-copy {
  color: var(--text-muted);
}

.profile-card-text {
  margin: 0;
}

.profile-stats {
  display: grid;
  gap: 1rem;
}

.stat-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(140, 196, 255, 0.08);
}

.stat-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-block {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-title {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.cards-grid {
  margin-top: 0;
}

.feature-card {
  height: 100%;
  padding: 2rem;
  border-radius: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background: rgba(79, 143, 216, 0.14);
  border: 1px solid rgba(140, 196, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

.feature-card h3,
.timeline-content h3 {
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-card p,
.timeline-content p:last-child {
  margin: 0;
  font-size: 0.98rem;
}

.timeline-shell {
  position: relative;
  padding: 2.25rem;
}

.timeline-shell::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: 2.75rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(140, 196, 255, 0.28), rgba(140, 196, 255, 0.02));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-item + .timeline-item {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(140, 196, 255, 0.08);
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #74b1ef, #d4e8ff);
  box-shadow: 0 0 0 6px rgba(79, 143, 216, 0.08);
}

.timeline-content p,
.timeline-content h3 {
  margin-top: 0;
}

.contact-panel {
  padding: 2.75rem;
}

.contact-copy {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
}

.contact-links a:hover {
  border-bottom-color: var(--accent-cyan);
}

.footer-modern {
  padding: 2rem 1.5rem 2.5rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(140, 196, 255, 0.08);
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
}

.blob-1 {
  top: -10%;
  left: -8%;
  width: 23rem;
  height: 23rem;
  background: rgba(112, 164, 222, 0.8);
  animation: drift-1 22s ease-in-out infinite alternate;
}

.blob-2 {
  right: -6%;
  top: 18%;
  width: 20rem;
  height: 20rem;
  background: rgba(49, 93, 150, 0.95);
  animation: drift-2 26s ease-in-out infinite alternate;
}

.blob-3 {
  left: 35%;
  bottom: -12%;
  width: 22rem;
  height: 22rem;
  background: rgba(140, 196, 255, 0.5);
  animation: drift-3 24s ease-in-out infinite alternate;
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-shell {
  flex: 1;
  display: flex;
  min-height: 100vh;
}

.error-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.error-card {
  padding: 3rem;
  text-align: center;
}

.error-code {
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 700;
  color: var(--accent-cyan);
}

.error-title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.error-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.error-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(140, 196, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.55);
  color: var(--text-muted);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-in-up 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(80px, 50px, 0) scale(1.08);
  }
}

@keyframes drift-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-70px, 90px, 0) scale(1.04);
  }
}

@keyframes drift-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-60px, -40px, 0) scale(1.06);
  }
}

@media screen and (max-width: 1023px) {
  .navbar > .container {
    width: calc(100% - 1rem);
    gap: 0.75rem;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
    min-height: 4.5rem;
  }

  .navbar-burger {
    margin-left: auto;
  }

  .navbar-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    display: none;
    margin-top: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 17, 31, 0.995) !important;
    border-top: 1px solid rgba(140, 196, 255, 0.08);
    border-bottom: 1px solid rgba(140, 196, 255, 0.08);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-end {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    flex-direction: column;
    white-space: normal;
  }

  .navbar-item {
    display: flex;
    min-height: 2.9rem;
    align-items: center;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    border-radius: 12px;
  }

  .hero-shell {
    padding: 2rem;
  }

  .profile-card {
    margin-top: 1rem;
  }

  .section-title {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 5.75rem;
  }

  section[id] {
    scroll-margin-top: 5.75rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-custom {
    padding-top: 6.5rem;
    padding-bottom: 1rem;
  }

  .hero-shell,
  .contact-panel,
  .timeline-shell,
  .feature-card,
  .error-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .hero-shell::after {
    inset: 0.8rem;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(1.95rem, 9vw, 2.85rem);
    line-height: 1.04;
  }

  .hero-subtitle,
  .section-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-links,
  .footer-shell,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-modern,
  .contact-actions .btn-modern {
    width: 100%;
  }

  .hero-meta {
    gap: 0.55rem;
    justify-content: flex-start;
  }

  .hero-meta span {
    width: 100%;
  }

  .timeline-shell::before {
    left: 2rem;
  }

  .timeline-item {
    grid-template-columns: 1.5rem 1fr;
    gap: 1rem;
  }

  .error-hint {
    border-radius: 18px;
    text-align: left;
    align-items: flex-start;
  }
}

@media screen and (max-width: 380px) {
  .section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar > .container {
    width: calc(100% - 0.5rem);
  }

  .brand-mark {
    font-size: 1.2rem;
  }

  .hero-custom {
    padding-top: 6.1rem;
  }

  .hero-shell,
  .contact-panel,
  .timeline-shell,
  .feature-card,
  .error-card {
    padding: 1.1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8.2vw, 2.35rem);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1240px) {
  .navbar > .container {
    width: min(1120px, calc(100% - 1.5rem));
    gap: 1rem;
  }

  .navbar-item,
  .navbar-link {
    font-size: 0.84rem;
    padding-left: 0.42rem !important;
    padding-right: 0.42rem !important;
  }

  .brand-mark {
    font-size: 1.22rem;
  }

  .navbar-end {
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
