/* Domus — usedomus.app. Cores e fontes do app (src/assets/main.css do domus). */
:root {
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --surface: #111113;
  --line: #1f1f23;
  --line-2: #27272a;
  --line-3: #3f3f46;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --gold: #f59e0b;
  --gold-hi: #fbbf24;
  --indigo: #818cf8;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fde68a; }
h1, h2, h3 { font-family: Outfit, sans-serif; margin: 0; letter-spacing: -0.02em; }
h2 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
h3 { font-weight: 600; font-size: 1.375rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack-sm { display: flex; flex-direction: column; gap: 18px; }
.muted { color: var(--muted); font-size: 1.125rem; }
.gold { color: var(--gold); }

/* Barra de progresso da rolagem */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--indigo));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* Topo: ganha fundo e borda quando a página rola */
.topbar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.topbar.scrolled {
  background: rgba(9, 9, 11, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span { font-family: Outfit, sans-serif; font-weight: 600; font-size: 22px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn-sm { min-height: 44px; padding: 0 20px; border-radius: 10px; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(245, 158, 11, .6); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: #71717a; transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 640px;
  transform: translateX(-50%) translateY(calc(var(--scroll, 0) * 0.25px));
  background: radial-gradient(closest-side, rgba(245, 158, 11, .18), rgba(99, 102, 241, .08) 55%, transparent 75%);
  pointer-events: none;
}
.hero-text { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 14px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 0 rgba(99, 102, 241, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); } 70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }
.hero h1 { max-width: 900px; font-weight: 700; font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; }
.lead { max-width: 680px; font-size: 1.1875rem; color: var(--muted); }

/* Capturas de tela */
.shot { border: 1px solid var(--line-2); border-radius: 18px; padding: 10px; background: var(--surface); }
.shot img { border-radius: 10px; }
.shot-hero {
  position: relative;
  box-shadow: 0 40px 120px -40px rgba(245, 158, 11, .25), 0 0 0 1px rgba(255, 255, 255, .02);
  transform: perspective(1400px) rotateX(var(--tilt, 14deg)) scale(var(--zoom, .94));
  transform-origin: 50% 0;
  will-change: transform;
}

/* Faixas */
.band { border-top: 1px solid var(--line); background: var(--bg-2); padding: 104px 0; }
.section { border-top: 1px solid var(--line); padding: 104px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.eyebrow.indigo { color: var(--indigo); }

.cards, .gallery, .tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: rgba(245, 158, 11, .45); transform: translateY(-4px); }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card svg.indigo { stroke: var(--indigo); }
.card p, .tile p { color: var(--muted); }
.gallery figure { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .shot { padding: 6px; border-radius: 14px; overflow: hidden; }
.gallery .shot img { transition: transform .6s var(--ease); }
.gallery figure:hover .shot img { transform: scale(1.04); }
figcaption { font-size: 14px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .stack-sm { flex: 1 1 380px; min-width: 0; }
.split > .shot { flex: 1 1 480px; min-width: 0; transform: translateY(var(--py, 0px)); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.tiles .tile {
  flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border: 1px solid var(--line-2); border-radius: 14px;
  transition: background .3s, border-color .3s;
}
.tiles .tile:hover { background: var(--surface); border-color: var(--line-3); }
.tile h3 { font-size: 1.1875rem; }
.tile p { font-size: 15px; }

.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta-logo { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }

/* Animações de entrada na rolagem (ligadas pelo main.js; sem JS, tudo aparece) */
.js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-zoom {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal { transform: translateY(28px); }
.js .reveal-left { transform: translateX(-40px); }
.js .reveal-right { transform: translateX(40px) translateY(var(--py, 0px)); }
.js .reveal-zoom { transform: scale(.96); }
.js .shot-hero.reveal-zoom { transform: perspective(1400px) rotateX(var(--tilt, 14deg)) scale(.9); }
.js .is-in { opacity: 1; }
.js .reveal.is-in, .js .reveal-left.is-in { transform: none; }
.js .reveal-right.is-in { transform: translateY(var(--py, 0px)); }
.js .reveal-zoom.is-in { transform: none; }
.js .shot-hero.reveal-zoom.is-in { transform: perspective(1400px) rotateX(var(--tilt, 14deg)) scale(var(--zoom, .94)); transition: opacity 1s var(--ease), transform .15s linear; }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .band, .section { padding: 72px 0; }
  .nav-links { gap: 4px 18px; }
  .nav-links a:not(.btn) { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-zoom { opacity: 1; transform: none; }
  .shot-hero, .js .shot-hero.reveal-zoom, .js .shot-hero.reveal-zoom.is-in { transform: none; }
  .glow { transform: translateX(-50%); }
}
