/* ==========================================================================
   imemorIA — Landing page
   ========================================================================== */

:root {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --brand-light: #a78bfa;
  --ink: #1f2333;
  --ink-soft: #565b72;
  --paper: #ffffff;
  --paper-soft: #f6f5fb;
  --ring: rgba(109, 40, 217, 0.18);

  --junina: linear-gradient(135deg, #f97316, #facc15);
  --formatura: linear-gradient(135deg, #1e3a8a, #3b82f6);
  --pascoa: linear-gradient(135deg, #34d399, #fde68a);
  --maes: linear-gradient(135deg, #fb7185, #fbcfe8);
  --pais: linear-gradient(135deg, #0ea5e9, #93c5fd);
  --mais: linear-gradient(135deg, #6d28d9, #c084fc);

  --shadow-md: 0 12px 30px -12px rgba(31, 35, 51, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(31, 35, 51, 0.35);

  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--ring);
}
.btn-ghost:hover { background: var(--paper-soft); transform: translateY(-2px); }
.btn-lg { padding: 0.95em 1.9em; font-size: 1.05rem; }

/* ---------------------------------- Navbar ---------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(31, 35, 51, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1.5rem;
}
.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo span { color: var(--brand); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:not(.btn) { color: var(--ink-soft); transition: color 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--brand-dark); }
.nav-cta { padding: 0.6em 1.3em; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 8vw, 5rem);
  background: radial-gradient(1200px 600px at 80% -10%, var(--ring), transparent),
              linear-gradient(180deg, var(--paper-soft), var(--paper) 60%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-content { max-width: 560px; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(109, 40, 217, 0.09);
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1.4em;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.highlight {
  background: linear-gradient(135deg, var(--brand), #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.1rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.hero-visual {
  display: flex;
  justify-content: center;
  animation: hero-float 9s ease-in-out infinite;
}
.hero-visual svg {
  width: min(420px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px -20px rgba(76, 29, 149, 0.35));
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-blobs.subtle { opacity: 0.5; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 360px; height: 360px; right: -80px; top: -100px; background: var(--brand-light); }
.blob-2 { width: 280px; height: 280px; left: -60px; bottom: -80px; background: #f9a8d4; animation-delay: -5s; }
.blob-3 { width: 220px; height: 220px; right: 20%; bottom: -120px; background: #fde68a; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

/* ---------------------------------- Section shells ---------------------------------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-eyebrow {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6em;
}
.section-sub { max-width: 64ch; font-size: 1.05rem; }

/* ---------------------------------- Journey cards ---------------------------------- */
.jornada { background: var(--paper); }
.journey-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
@media (min-width: 760px) {
  .journey-track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .journey-track { grid-template-columns: 1fr; }
}
.journey-card {
  position: relative;
  overflow: hidden;
  padding: 1.8rem 1.6rem;
  border-radius: 22px;
  background: var(--paper-soft);
  border: 1px solid rgba(31, 35, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.journey-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-glow {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}
.theme-junina .card-glow { background: var(--junina); }
.theme-formatura .card-glow { background: var(--formatura); }
.theme-pascoa .card-glow { background: var(--pascoa); }
.theme-maes .card-glow { background: var(--maes); }
.theme-pais .card-glow { background: var(--pais); }
.theme-mais .card-glow { background: var(--mais); }

.card-emoji {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}
.journey-card h3, .journey-card p { position: relative; }
.journey-card p { margin-bottom: 0; }

/* ---------------------------------- Steps ---------------------------------- */
.como-funciona { background: linear-gradient(180deg, var(--paper), var(--paper-soft)); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(31, 35, 51, 0.06);
  box-shadow: var(--shadow-md);
}
.step-number {
  position: absolute;
  top: -14px;
  left: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}
.step-emoji { display: block; font-size: 1.8rem; margin: 0.6em 0 0.5em; }
.step p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------------------------------- Benefits ---------------------------------- */
.beneficios { background: var(--paper); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.benefit {
  padding: 1.8rem 1.6rem;
  border-radius: 20px;
  background: var(--paper-soft);
  border: 1px solid rgba(31, 35, 51, 0.06);
}
.benefit-emoji { font-size: 1.8rem; display: inline-block; margin-bottom: 0.5em; }
.benefit p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------------------------------- Final CTA ---------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.82); max-width: 56ch; margin-inline: auto; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.45);
}
.cta-final .btn-primary:hover { color: var(--brand); }
.cta-final .blob { opacity: 0.35; }

/* ---------------------------------- Footer ---------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
.footer .logo { color: #fff; }
.footer .logo span { color: var(--brand-light); }
.footer-tagline { color: rgba(255,255,255,0.6); margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; font-weight: 600; font-size: 0.92rem; margin-block: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.78); transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ---------------------------------- Reveal-on-scroll ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: none; margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .hero-visual svg { width: min(320px, 80%); }

  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.2rem 6%;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(31,35,51,0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 60;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta { align-self: flex-start; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .hero-visual { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
