/* LifeStory — Landing Page · Tokens */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");

:root {
  --n0: #ffffff; --n50: #f6f7f8; --n100: #eef0f2; --n200: #e2e5e9; --n300: #cdd2d8;
  --n400: #a7aeb7; --n500: #7b828c; --n800: #272c33; --n900: #171a1f; --n950: #0c0e11;
  --accent-50: #eef0f3; --accent-300: #939cab; --accent-500: #4c5567;
  --ink: var(--n900); --ink-hover: var(--n800);
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--n50); color: var(--n800);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; }
a { color: var(--accent-500); }
a:hover { color: var(--n900); }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  display: inline-block; line-height: 1; letter-spacing: normal; text-transform: none;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 15px 24px; border-radius: 11px; text-decoration: none; font-family: var(--font-sans);
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn-ink { background: var(--ink); color: var(--n0); }
.btn-ink:hover { background: var(--ink-hover); color: var(--n0); }
.btn-light { background: #fff; color: var(--n950); }
.btn-light:hover { opacity: .88; color: var(--n950); }
.btn-outline { background: transparent; color: var(--n900); border: 1px solid var(--n300); }
.btn-outline:hover { border-color: var(--n900); color: var(--n900); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.7); color: #fff; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-500); font-weight: 600;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--n200);
}
.nav-inner {
  max-width: none; margin: 0 auto; padding: 0 clamp(24px, 5vw, 72px); height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: height .3s ease;
}
.nav.scrolled .nav-inner { height: 64px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: auto; display: block; transition: height .3s ease; }
.nav-logo .logo-light { height: 44px; }
.nav-logo .logo-dark { height: 26px; display: none; }
.nav.scrolled .nav-logo .logo-light { display: none; }
.nav.scrolled .nav-logo .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); text-decoration: none;
  padding: 8px 13px; border-radius: 8px; transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--n500); }
.nav.scrolled .nav-links a:hover { color: var(--n900); }
.nav-cta {
  padding: 10px 17px; border-radius: 9px; font-size: 14px; flex-shrink: 0;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.nav-cta:hover { background: rgba(255,255,255,.26); color: #fff; }
.nav.scrolled .nav-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink-hover); color: #fff; }
.nav-cta .material-symbols-outlined { font-size: 18px; }

/* ── Hero (Partículas) ── */
.hero {
  position: relative; overflow: hidden; background: var(--n950); color: #fff;
  min-height: 96vh; display: flex; align-items: center; padding: 132px 0 96px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(10,12,15,.7) 100%);
}
.hero-inner {
  position: relative; max-width: none; margin: 0 auto; width: 100%; padding: 0 clamp(24px, 5vw, 72px);
  box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center; pointer-events: none;
}
.hero-content { flex: 1.2 1 420px; pointer-events: auto; }
.hero-content .kicker { color: var(--accent-300); letter-spacing: .22em; margin-bottom: 24px; animation: lsRise .6s ease both; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(44px, 6.6vw, 92px); line-height: .98;
  letter-spacing: -.04em; font-weight: 700; margin: 0 0 26px; animation: lsRise .7s ease both;
}
.hero h1 .hl { color: var(--accent-300); }
.hero-lead {
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: rgba(255,255,255,.62);
  max-width: 46ch; margin: 0 0 36px; animation: lsRise .8s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; animation: lsRise .9s ease both; }
.hero-spacer { flex: .8 1 300px; min-height: 320px; pointer-events: none; }
.hero-photo {
  position: absolute; bottom: 0; right: -114px; height: 96%; max-height: 100%; max-width: 68vw;
  object-fit: contain; object-position: bottom right; pointer-events: none; z-index: 3;
  filter: brightness(.88) contrast(1.08) saturate(.82) drop-shadow(0 30px 60px rgba(0,0,0,.6));
}

/* ── Sections ── */
.section { max-width: 1180px; margin: 0 auto; padding: 104px 30px; }
.section-alt { border-top: 1px solid var(--n200); background: var(--n100); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 52px;
}
.section-head .kicker, .head-center .kicker { display: block; margin-bottom: 16px; }
h2 {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05;
  letter-spacing: -.03em; color: var(--n900); font-weight: 700; margin: 0;
}
.section-lead { font-size: 16px; line-height: 1.6; color: var(--n500); max-width: 34ch; margin: 0; }
.head-center { text-align: center; margin-bottom: 56px; }
.head-center h2 { margin: 0 auto; max-width: 20ch; }

/* Serviços */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.card {
  flex: 0 1 calc(25% - 12px); min-width: 240px;
  border: 1px solid var(--n200); border-radius: 16px; padding: 28px; background: var(--n0);
  transition: border-color .2s ease, transform .2s ease;
}
@media (max-width: 560px) { .card { flex-basis: 100%; min-width: 0; } }
.card:hover { border-color: var(--n300); transform: translateY(-4px); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--accent-50); color: var(--accent-500);
}
.card-icon .material-symbols-outlined { font-size: 24px; }
.card-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--n400); }
.card h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; color: var(--n900); font-weight: 600; margin: 0 0 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--n500); margin: 0; }

/* Sobre */
.about-inner {
  max-width: 1180px; margin: 0 auto; padding: 104px 30px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.about-text { flex: 1 1 380px; }
.about-text .kicker { display: block; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 22px; max-width: 18ch; }
.about-text p { font-size: 16.5px; line-height: 1.65; color: var(--n500); margin: 0 0 18px; max-width: 52ch; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; }
.stats .sep { width: 1px; background: var(--n200); }
.stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--n900); letter-spacing: -.02em; }
.stat-label { font-size: 13.5px; color: var(--n500); margin-top: 2px; }
.about-grid {
  flex: 1 1 320px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr;
  gap: 14px; max-width: 520px;
}
.about-grid img { width: 100%; object-fit: cover; border-radius: 18px; }
.about-grid .tall { height: 100%; grid-row: span 2; object-position: center top; }
.about-grid .wide { aspect-ratio: 4 / 3; }

/* Processo */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--n300); }
.step-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--accent-500); font-weight: 600; margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -.01em; color: var(--n900); font-weight: 600; margin: 0 0 10px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--n500); margin: 0; }

/* FAQ */
.faq-inner { max-width: 820px; margin: 0 auto; padding: 104px 30px; }
.faq-inner .head-center { margin-bottom: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--n200); border-radius: 14px; background: var(--n0); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px; background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans);
}
.faq-q span:first-child { font-size: 16.5px; font-weight: 600; color: var(--n900); line-height: 1.35; }
.faq-toggle {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-50); color: var(--accent-500);
}
.faq-toggle .material-symbols-outlined { font-size: 20px; }
.faq-a { display: none; padding: 0 24px 24px; }
.faq-a p { font-size: 15px; line-height: 1.65; color: var(--n500); margin: 0; max-width: 62ch; }
.faq-item.open .faq-a { display: block; }

/* Contato */
.cta-section { max-width: 1180px; margin: 0 auto; padding: 60px 30px 100px; }
.cta-card {
  position: relative; overflow: hidden; background: var(--n950); color: var(--n0);
  border-radius: 26px; padding: clamp(48px, 7vw, 88px) clamp(30px, 6vw, 72px);
  display: flex; align-items: center; min-height: 440px;
}
.cta-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta-content { position: relative; z-index: 2; max-width: 56%; }
.cta-photo {
  position: absolute; bottom: 0; right: clamp(8px, 4vw, 56px); height: 92%; max-width: 38%;
  object-fit: contain; object-position: bottom; z-index: 1; pointer-events: none;
  filter: brightness(.92) contrast(1.05) saturate(.85) drop-shadow(0 24px 50px rgba(0,0,0,.55));
}
.cta-card .kicker { display: block; color: rgba(255,255,255,.55); letter-spacing: .22em; margin-bottom: 22px; }
.cta-card h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; max-width: 16ch; }
.cta-card p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,.62); max-width: 48ch; margin: 0 0 38px; }
.cta-card .btn { font-size: 16px; padding: 17px 30px; border-radius: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--n200); background: var(--n0); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 52px 30px 40px;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; justify-content: space-between;
}
.footer-brand { max-width: 340px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: var(--n500); margin: 0; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links .btn { padding: 12px 18px; font-size: 14px; }
.footer-links .material-symbols-outlined { font-size: 19px; }
.footer-bar { border-top: 1px solid var(--n200); }
.footer-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 20px 30px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
}
.footer-bar-inner span { font-size: 13px; color: var(--n400); }
.footer-bar-inner .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ── Animações ── */
@keyframes lsRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
[data-reveal] {
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
html.reveal-armed [data-reveal] { opacity: 0; transform: translateY(26px); }
html.reveal-armed [data-reveal].is-in { opacity: 1; transform: translateY(0); }
.services-grid > [data-reveal]:nth-child(2) { transition-delay: .06s; }
.services-grid > [data-reveal]:nth-child(3) { transition-delay: .12s; }
.services-grid > [data-reveal]:nth-child(4) { transition-delay: .18s; }
.services-grid > [data-reveal]:nth-child(5) { transition-delay: .06s; }
.services-grid > [data-reveal]:nth-child(6) { transition-delay: .12s; }
.services-grid > [data-reveal]:nth-child(7) { transition-delay: .18s; }
.steps-grid > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.steps-grid > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.steps-grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html.reveal-armed [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero .kicker, .hero h1, .hero-lead, .hero-actions { animation: none; }
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .hero-photo { display: none; }
  .hero-spacer { display: none; }
  .hero { min-height: 0; padding: 116px 0 80px; }
  .cta-photo { display: none; }
  .cta-content { max-width: 100%; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 20px; }
  .nav-logo .logo-light { height: 36px; }
  .hero-inner { padding: 0 20px; }
  .section, .about-inner, .faq-inner { padding: 72px 20px; }
  .cta-section { padding: 40px 20px 72px; }
  .about-inner { gap: 40px; }
  .stats { gap: 22px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .nav-cta { width: auto; }
  .footer-links { width: 100%; }
  .footer-links .btn { width: auto; flex: 1; }
}
