/* ========================================
   CRIPTA DOCS - Landing Page
   Fonts: Fira Sans (headings) + Heebo (body)
   Colors: #204497 | #EBF0F5 | #323450
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #204497;
  --blue-dark: #1a3a7d;
  --light: #EBF0F5;
  --dark: #323450;
  --white: #ffffff;
  --green: #49DEC0;
  --shadow: 0 4px 24px rgba(32, 68, 151, 0.10);
  --shadow-lg: 0 8px 40px rgba(32, 68, 151, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Fira Sans', sans-serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  max-width: 680px;
}

/* Utility */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--light);
}

.section--dark {
  background: var(--blue);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--green);
  color: var(--dark);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(73, 222, 192, 0.35);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}

.microcopy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header--scrolled {
  background: rgba(32, 68, 151, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.header--scrolled .logo path[fill="#204497"] {
  fill: var(--white);
}

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  height: 34px;
  width: auto;
  display: block;
}

.logo path {
  transition: fill 0.3s ease;
}

.header-cta {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--green);
  color: var(--dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(73, 222, 192, 0.3);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('bg-hero.png') no-repeat center right / cover;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 36, 84, 0.92) 0%, rgba(13, 36, 84, 0.75) 35%, rgba(13, 36, 84, 0.3) 65%, rgba(13, 36, 84, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 560px;
  text-align: left;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 40px;
}

.hero .microcopy {
  color: var(--white);
  margin-top: 12px;
  opacity: 0.85;
}

/* ========================================
   SPLIT CONTAINER (Sections 2 & 4)
   ======================================== */
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1040px;
}

.split-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 500px;
}

.split-content--left {
  padding-right: 24px;
  text-align: left;
}

.split-content--right {
  padding-left: 24px;
  text-align: left;
}

/* ========================================
   CONEXÃO (Seção 2)
   ======================================== */
.conexao {
  padding: 100px 0 80px;
}

.conexao h2 {
  margin-bottom: 32px;
  color: var(--blue);
}

.conexao p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--dark);
}

/* ========================================
   PROBLEMA (Seção 3)
   ======================================== */
.problema {
  background: var(--light);
  padding: 80px 0;
}

.problema .container {
  max-width: 800px;
}

.problema h2 {
  text-align: center;
  margin-bottom: 48px;
  color: var(--blue);
}

.problema__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problema__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  transition: transform 0.2s ease;
}

.problema__item:hover {
  transform: translateX(4px);
}

.problema__icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: #e05555;
}

/* ========================================
   VIRADA (Seção 4)
   ======================================== */
.virada {
  padding: 100px 0;
  background: var(--white);
}

.virada h2 {
  color: var(--blue);
  margin-bottom: 28px;
}

.virada p {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

/* ========================================
   SOLUCAO (Seção 5)
   ======================================== */
.solucao {
  background: var(--blue);
  color: var(--white);
  padding: 90px 0;
}

.solucao .container {
  max-width: 850px;
}

.solucao h2 {
  text-align: center;
  margin-bottom: 20px;
}

.solucao>.container>p {
  text-align: center;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.solucao__subtitle {
  text-align: center;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--green);
}

.solucao__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.solucao__check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.98rem;
  line-height: 1.5;
}

.solucao__check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.solucao__check-icon svg {
  width: 12px;
  height: 12px;
}

/* ========================================
   MATERIALIZAÇÃO (Seção 6)
   ======================================== */
.materializacao {
  padding: 90px 0;
  background: var(--white);
}

.materializacao .container {
  max-width: 900px;
}

.materializacao h2 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 56px;
}

.materializacao__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.materializacao__card {
  flex: 1 1 240px;
  max-width: 310px;
  padding: 32px 28px;
  background: var(--light);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.materializacao__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.materializacao__card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.materializacao__card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.materializacao__card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.materializacao__card p {
  font-size: 0.92rem;
  color: #5a5d72;
  margin: 0 auto;
}

/* ========================================
   EMOCIONAL (Seção 7)
   ======================================== */
.emocional {
  position: relative;
  background: url('bg-family.png') no-repeat center center/cover;
  padding: 180px 0 80px;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: 550px;
}

.emocional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.emocional .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  text-align: left;
}

.emocional .container h2,
.emocional .container p {
  max-width: 700px;
}

.emocional h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.emocional p {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 750px;
  color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   PERGUNTA (Seção 8)
   ======================================== */
.pergunta {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.pergunta .container {
  max-width: 680px;
  text-align: center;
}

.pergunta h2 {
  color: var(--blue);
  margin-bottom: 32px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.pergunta p {
  margin: 0 auto 8px;
  font-size: 1.15rem;
  font-weight: 500;
}

.pergunta p:last-of-type {
  color: #7a7d8e;
}

/* ========================================
   CTA FINAL (Seção 9)
   ======================================== */
.cta-final {
  background: linear-gradient(160deg, #0d2454 0%, var(--blue) 50%, #2a55a8 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(73, 222, 192, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: center;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 40px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.cta-final .microcopy {
  color: var(--white);
  opacity: 0.85;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--light);
  color: var(--dark);
  padding: 60px 0 40px;
  text-align: center;
  font-size: 0.9rem;
}

.footer__logo {
  margin-bottom: 24px;
}

.footer__logo svg {
  height: 36px;
  width: auto;
  margin: 0 auto;
}

.footer__tagline {
  color: #5a5d72;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.footer__slogan {
  color: var(--dark);
  font-size: 0.95rem;
  margin: 0 auto 28px;
  text-align: center;
  line-height: 1.5;
}

.footer__slogan strong {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(32, 68, 151, 0.1);
  color: var(--blue);
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(32, 68, 151, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 100px;
  }

  .solucao__grid {
    grid-template-columns: 1fr;
  }

  .container--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-image--left {
    order: -1;
  }

  .materializacao__grid {
    flex-direction: column;
    align-items: center;
  }

  .conexao,
  .virada,
  .pergunta {
    padding: 70px 0;
  }

  .cta-final {
    padding: 80px 0;
  }

  .btn {
    padding: 14px 32px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .header-cta {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .header {
    padding: 20px 0;
  }

  .header--scrolled {
    padding: 14px 0;
  }

  .header .container {
    align-items: center;
  }

  .logo svg {
    height: 26px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .problema__item {
    padding: 16px 18px;
  }
}