/* ============================================================
   Roncer — Landing Page
   Brand: Sora · Navy #09002B · Purple #50139E · Gray #9C9C9C
   ============================================================ */

:root {
  --navy: #09002b;
  --navy-soft: #140a3d;
  --purple: #50139e;
  --purple-dark: #3e0f7c;
  --purple-light: #7b3fd1;
  --gray: #9c9c9c;
  --line: #e9e7f0;
}

* { -webkit-font-smoothing: antialiased; }

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

body {
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
}

::selection { background: var(--purple); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px -18px rgba(9, 0, 43, .35);
  border-bottom-color: var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(80, 19, 158, .7);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(80, 19, 158, .8); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(9, 0, 43, .18);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }

/* ---------- Badges / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
  background: rgba(80, 19, 158, .08);
  border: 1px solid rgba(80, 19, 158, .18);
  padding: .45rem .9rem; border-radius: 999px;
}
.eyebrow.on-dark { color: #c8b3ee; background: rgba(123, 63, 209, .16); border-color: rgba(123, 63, 209, .3); }

/* ---------- Section headings ---------- */
.h-section { font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(9, 0, 43, .35); border-color: rgba(80,19,158,.28); }

.feature-check {
  flex: none; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(80, 19, 158, .1); color: var(--purple);
  display: grid; place-items: center; margin-top: 2px;
}

/* ---------- Dark section ---------- */
.dark-section {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(80, 19, 158, .38) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(80, 19, 158, .22) 0%, transparent 50%),
    linear-gradient(180deg, #0c0136 0%, var(--navy) 60%, #06001c 100%);
  color: #fff;
  position: relative;
}
.dark-section .card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.dark-section .card:hover { border-color: rgba(123, 63, 209, .4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* ---------- Generic UI mockup chrome ---------- */
.mock {
  border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(9, 0, 43, .45);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #f7f6fb; border-bottom: 1px solid var(--line);
}
.mock-dot { width: 10px; height: 10px; border-radius: 999px; }
.mock-dot.r { background: #ff5f57; } .mock-dot.y { background: #febc2e; } .mock-dot.g { background: #28c840; }

.pill { border-radius: 999px; font-size: 11px; font-weight: 600; padding: 3px 10px; display: inline-flex; align-items: center; gap: 5px; }
.pill-purple { background: rgba(80,19,158,.1); color: var(--purple); }
.pill-green { background: rgba(40, 200, 100, .14); color: #1a8f4c; }
.pill-amber { background: rgba(255, 176, 32, .16); color: #b57400; }
.pill-blue  { background: rgba(37, 99, 235, .12); color: #2563eb; }
.pill-gray  { background: #f0eff5; color: #6b6880; }
.pill-red   { background: rgba(229, 72, 77, .12); color: #d1373c; }

.avatar { border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex: none; }

/* skeleton bars */
.sk { height: 8px; border-radius: 999px; background: #edecf3; display: block; }
.sk.dark { background: rgba(255,255,255,.1); }

/* channel chip */
.chan { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color:#fff; }

/* ---------- Flow builder (dark) mockup ---------- */
.flow-canvas {
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 22px 22px;
  background-color: rgba(6, 0, 25, .6);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.flow-node {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 10px 12px; color: #fff; font-size: 12px;
  backdrop-filter: blur(6px);
}
.flow-node.accent { border-color: rgba(123, 63, 209, .55); box-shadow: 0 0 0 3px rgba(123,63,209,.15); }

/* ---------- Flow builder (light window, real Roncer style) ---------- */
.flow-canvas-light {
  background-image: radial-gradient(circle at 1px 1px, rgba(9, 0, 43, .07) 1px, transparent 0);
  background-size: 20px 20px;
  background-color: #f4f3f8;
}
.flow-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 10px 24px -18px rgba(9, 0, 43, .4);
}
.flow-card-head {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; font-size: 11px; font-weight: 600; color: var(--navy);
  background: #faf9fd; border-bottom: 1px solid var(--line);
}
.flow-row {
  font-size: 10.5px; color: var(--navy); padding: 4px 8px;
  background: #f4f3f8; border-radius: 6px;
}

/* ---------- Status page (dark) ---------- */
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bars { display: flex; gap: 3px; }
.bar { width: 5px; height: 20px; border-radius: 2px; background: #27c86a; }
.bar.mid { background: #f5b544; } .bar.low { background: #e5484d; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .25s ease, box-shadow .25s ease; overflow: hidden; }
.faq-item[open] { border-color: rgba(80,19,158,.3); box-shadow: 0 20px 40px -28px rgba(9,0,43,.4); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; transition: transform .3s ease; color: var(--purple); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: #5b586b; line-height: 1.7; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { transition: opacity .3s ease, transform .3s ease; }
.mobile-menu.hidden-menu { opacity: 0; pointer-events: none; transform: translateY(-8px); }

/* ---------- Footer ---------- */
.footer-link { color: rgba(255,255,255,.62); transition: color .2s ease; }
.footer-link:hover { color: #fff; }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); transition: all .2s ease; }
.social-btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-3px); }

/* soft floating animation for hero */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-slow { animation: float 7s ease-in-out infinite; }

/* glow blob */
.blob { position: absolute; border-radius: 999px; filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none; }

/* selo Meta Business Partner (flutuante sobre o print do hero) */
.meta-badge {
  position: absolute; top: -18px; right: -8px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: #fff; border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -16px rgba(9, 0, 43, .28), 0 4px 12px -6px rgba(9, 0, 43, .12);
  animation: float 7s ease-in-out infinite;
}
.meta-badge-logo { flex-shrink: 0; }
.meta-badge-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.meta-badge-text b { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.meta-badge-text small { font-size: 11px; font-weight: 500; color: var(--gray); }
@media (max-width: 640px) {
  .meta-badge { top: -14px; right: -2px; gap: 7px; padding: 8px 11px; border-radius: 13px; }
  .meta-badge-logo { width: 24px; height: 15px; }
  .meta-badge-text b { font-size: 14px; }
  .meta-badge-text small { font-size: 9px; }
}
