/* ==========================================================================
   DatomIQ - Estilos Globais
   Estilos base e utilitários para toda a aplicação
   ========================================================================== */

/* ========================================
   BODY E HTML
   ======================================== */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--starlight-white);
  background-color: var(--deep-space);
  background-image: var(--gradient-space);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ========================================
   SECOES
   ======================================== */

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section--full-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--starlight-white);
  margin-bottom: var(--space-4);
}

h1,
.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
}

h2,
.h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h3,
.h3 {
  font-size: var(--text-3xl);
}

h4,
.h4 {
  font-size: var(--text-2xl);
}

h5,
.h5 {
  font-size: var(--text-xl);
}

h6,
.h6 {
  font-size: var(--text-lg);
}

/* Parágrafos */
p {
  margin-bottom: var(--space-4);
  color: var(--starlight-white-80);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead text */
.lead {
  font-size: var(--text-xl);
  font-weight: var(--font-light);
  line-height: var(--leading-relaxed);
  color: var(--starlight-white-90);
}

/* Small text */
.small {
  font-size: var(--text-sm);
}

/* ========================================
   LINKS
   ======================================== */

a {
  color: var(--starlight-white);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--nebula-purple);
}

.link {
  color: var(--nebula-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  color: var(--starlight-white);
}

/* ========================================
   TITULOS DE SECAO
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-12);
  }
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-button);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--stardust-grey);
  max-width: 600px;
  margin: var(--space-6) auto 0;
}

/* ========================================
   UTILITARIOS DE TEXTO
   ======================================== */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-white {
  color: var(--starlight-white);
}

.text-grey {
  color: var(--stardust-grey);
}

.text-purple {
  color: var(--nebula-purple);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-light {
  font-weight: var(--font-light);
}

.font-regular {
  font-weight: var(--font-regular);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* ========================================
   UTILITARIOS DE ESPACAMENTO
   ======================================== */

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* ========================================
   UTILITARIOS DE DISPLAY
   ======================================== */

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* Flexbox */
.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ========================================
   ANIMACOES DE ENTRADA
   ======================================== */

/* Fade in up - para elementos que aparecem ao scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow) var(--ease-out-expo),
    transform var(--transition-slow) var(--ease-out-expo);
}

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

/* Fade in - simples */
.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow) var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-slow) var(--ease-out-expo),
    transform var(--transition-slow) var(--ease-out-expo);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delay */
.stagger-1 {
  transition-delay: 100ms;
}

.stagger-2 {
  transition-delay: 200ms;
}

.stagger-3 {
  transition-delay: 300ms;
}

.stagger-4 {
  transition-delay: 400ms;
}

.stagger-5 {
  transition-delay: 500ms;
}

/* ========================================
   BACKGROUND DECORATIVO
   ======================================== */

/* Efeito de nebulosa no background */
.nebula-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.nebula-bg::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: var(--gradient-nebula);
  animation: nebulaPulse 15s ease-in-out infinite;
}

@keyframes nebulaPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.7;
  }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet */
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:grid {
    display: grid;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:text-center {
    text-align: center;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:grid {
    display: grid;
  }
}