/* ==============================================================
   LOAIX — SITE INSTITUCIONAL
   Baseado no Brand Guide oficial v1.0
   ============================================================== */


/* ==============================================================
   1. VARIÁVEIS (DESIGN TOKENS)
   Toda a identidade centralizada aqui — mude uma vez, aplica tudo
   ============================================================== */
:root {
  /* Cores da marca — 3 azuis oficiais */
  --blue-deep: #4E5DB2;
  --blue-mid:  #6C8BE4;
  --blue-soft: #8AA2DD;

  /* Neutros */
  --ink:       #0E1220;
  --gray-800:  #222632;
  --gray-700:  #3a3f52;
  --gray-500:  #6b7082;
  --gray-400:  #9099ab;
  --gray-300:  #b8bcc8;
  --gray-100:  #e8eaf0;
  --gray-50:   #f3f4f8;

  /* Fundos */
  --bg:        #fafafa;
  --bg-alt:    #f3f4f8;
  --white:     #fcfcfc;

  /* Tipografia */
  --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Espaçamento — escala consistente */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Bordas e raios */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Container */
  --container-max: 1240px;
  --container-padding: 2rem;

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* ==============================================================
   2. RESET E BASE
   ============================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Textura sutil de grão no fundo — dá profundidade ao off-white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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


/* ==============================================================
   3. LAYOUT UTILS
   ============================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}


/* ==============================================================
   4. COMPONENTES REUTILIZÁVEIS
   ============================================================== */

/* ---- Logo (símbolo + wordmark) ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--transition-fast);
}
.logo:hover { opacity: 0.85; }

.logo__symbol {
  width: 77px;
  height: 79px;
  flex-shrink: 0;
}

.logo__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.logo__lo { color: var(--blue-mid); }
.logo__ai { color: var(--blue-deep); }
.logo__x  { color: var(--blue-mid); }

/* ---- Eyebrow (label técnica acima de títulos) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow__line {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--gray-500);
}

/* ---- Seções: header comum ---- */
.section-header {
  max-width: 760px;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-title-accent {
  font-style: normal;
  font-weight: 400;
  color: var(--blue-deep);
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 0;
}
.btn--ghost:hover {
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--compact {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

.btn__arrow {
  transition: transform var(--transition-base);
}
.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}


/* ==============================================================
   5. HEADER
   ============================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--container-padding);
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 4rem;
}

.nav__link {
  font-size: 1.15rem;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}
.nav__link:hover {
  color: var(--blue-deep);
}

/* ---- Hambúrguer ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Menu mobile ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  min-height: -webkit-fill-available;
  background: var(--white);
  z-index: 200;
  padding: 6rem 2.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-left: 1px solid var(--gray-100);
  flex-direction: column;
  justify-content: space-between;
  display: none;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 32, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.mobile-menu__close:hover {
  color: var(--ink);
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.6;
}

.mobile-menu__brand svg {
  display: block;
  width: 28px;
  height: 29px;
  flex-shrink: 0;
}

.mobile-menu__brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.05em;
  color: var(--blue-deep);
  line-height: 1;
}

.mobile-menu__brand-name span {
  color: var(--blue-mid);
}

.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}

.mobile-menu__link {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--blue-deep);
}

/* Mobile */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: space-between; }
  .mobile-menu-overlay { display: block; }
  .header__cta { display: none; }
  .mobile-menu__cta { display: none; }

  html { scroll-padding-top: 10px; }

  .logo__symbol {
    width: 40px;
    height: 41px;
  }

  .logo__wordmark {
    font-size: 1.6rem;
  }
}


/* ==============================================================
   6. HERO
   ============================================================== */
.hero {
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  color: var(--ink);
}

.hero__title-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
}

.hero__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsividade do hero */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .btn--ghost {
    display: none;
  }
}


/* ==============================================================
   7. HERO VISUAL — LOGO ANIMADO
   As 3 pessoas (pétalas + cabeças) começam afastadas, convergem
   pro centro formando o logo, e se afastam novamente — loop 6s.
   ============================================================== */

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-scene {
  position: relative;
  width: 85%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(108, 139, 228, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.logo-animated {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow: visible;
  animation: logo-rotate 6s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes logo-rotate {
  0%, 100% { transform: rotate(-25deg); }
  50%       { transform: rotate(25deg); }
}

/* ---- Pessoas: convergência para o centro ---- */
.person {
  transform-origin: 60.09px 60.58px;
}

.person--1 { animation: person-hug-1 6s ease-in-out infinite; }
.person--2 { animation: person-hug-2 6s ease-in-out infinite; }
.person--3 { animation: person-hug-3 6s ease-in-out infinite; }

@keyframes person-hug-1 {
  0%, 100% { transform: translate(-18px, -16px); }
  45%, 55% { transform: translate(0, 0); }
}

@keyframes person-hug-2 {
  0%, 100% { transform: translate(18px, -16px); }
  45%, 55% { transform: translate(0, 0); }
}

@keyframes person-hug-3 {
  0%, 100% { transform: translate(0, 22px); }
  45%, 55% { transform: translate(0, 0); }
}


/* ==============================================================
   8. SERVIÇOS
   ============================================================== */
.services {
  padding: 7rem 0;
  border-top: 1px solid var(--gray-100);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 800px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Card de serviço ---- */
.service {
  background: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-base);
  position: relative;
}

.service:hover {
  background: var(--bg-alt);
}

.service__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  color: var(--blue-deep);
  transition: transform var(--transition-base);
}

.service:hover .service__icon {
  transform: translateY(-2px);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--blue-mid);
  margin-bottom: 1rem;
}

.service__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.service__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-500);
}


/* ==============================================================
   9. FAIXA DIFERENCIAL IA
   ============================================================== */
.ai-strip {
  margin-top: 5rem;
  padding: 3.5rem 3rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Efeito de luz sutil no canto */
.ai-strip::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, var(--blue-mid) 0%, transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

.ai-strip__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
  position: relative;
  z-index: 1;
}

.ai-strip__label-prefix {
  color: var(--blue-mid);
}

.ai-strip__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.ai-strip__text em {
  font-style: normal;
  font-weight: 500;
  color: var(--blue-mid);
}

@media (max-width: 768px) {
  .ai-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.5rem;
  }
}


/* ==============================================================
   10. CONTATO
   ============================================================== */
.contact {
  padding: 7rem 0;
  border-top: 1px solid var(--gray-100);
  background: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact__intro .section-title {
  margin-bottom: 1.5rem;
  max-width: 13ch;
}

.contact__lead {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 36ch;
}

.contact__meta {
  display: flex;
  gap: 2rem;
}

.contact__meta-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}
.contact__meta-link:hover {
  color: var(--blue-deep);
}

/* ---- Formulário ---- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.field__input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.field__input:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(78, 93, 178, 0.1);
}

.field__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
}

.form-status {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: none;
}
.form-status--success {
  display: block;
  background: #f0faf5;
  color: #16a34a;
  border: 1px solid #cce9d6;
}
.form-status--error {
  display: block;
  background: #fdf3f3;
  color: #dc2626;
  border: 1px solid #f2d5d5;
}


/* ==============================================================
   11. FOOTER
   ============================================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--gray-100);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  width: 28px;
  height: 29px;
}

.footer__wordmark {
  font-size: 1.1rem;
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}
.footer__link:hover {
  color: var(--blue-deep);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
}


/* ==============================================================
   12. ANIMAÇÕES DE ENTRADA
   Aplicadas apenas 1x no load — evita micro-animações por toda parte
   ============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==============================================================
   13. ACESSIBILIDADE
   ============================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visível */
:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
