/* =========================================
   Marmo IA + ERPedra — Landing Page
   ========================================= */

:root {
  --bg: #07080d;
  --bg-soft: #0d0f17;
  --surface: #11141f;
  --surface-2: #161a27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --text-muted: #9aa1b4;
  --primary: #00d97e;
  --primary-2: #22c55e;
  --accent: #6c8cff;
  --accent-2: #a070ff;
  --gradient: linear-gradient(135deg, #6c8cff 0%, #a070ff 50%, #00d97e 100%);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(108, 140, 255, 0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(108, 140, 255, 0.08);
  margin-bottom: 18px;
}
.eyebrow-light { color: #cdb8ff; background: rgba(160, 112, 255, 0.12); }
.eyebrow-on-light {
  color: #5b3fd6;
  background: rgba(108,140,255,0.12);
  border-color: rgba(108,140,255,0.25);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 28px; font-size: 1.02rem; }

.btn-primary {
  background: var(--primary);
  color: #00210f;
  box-shadow: 0 10px 30px -10px rgba(0, 217, 126, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 217, 126, 0.7); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

/* Brand logo */
.brand-logo { display: inline-flex; align-items: center; gap: 14px; }
.brand-marks { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.brand-img {
  width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(108,140,255,0.35));
}
.brand-img-ai { width: 46px; height: 46px; }
.brand-img-er { width: 38px; height: 38px; border-radius: 50%; }
.brand-plus {
  font-family: var(--font-display); font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.4rem;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; color: var(--text); }
.brand-text .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text em {
  font-style: normal; font-size: 0.7rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.brand-logo-sm .brand-img { width: 34px; height: 34px; }
.brand-logo-sm .brand-img-ai { width: 38px; height: 38px; }
.brand-logo-sm .brand-img-er { width: 30px; height: 30px; }

/* Hero */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: #6c8cff; top: -120px; left: -120px; }
.glow-2 { width: 480px; height: 480px; background: #00d97e; bottom: -180px; right: -100px; opacity: .35; }
.glow-3 { width: 600px; height: 600px; background: #a070ff; top: -200px; left: 50%; transform: translateX(-50%); opacity: .35; }

.hero-inner { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.badge-ai {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(160,112,255,0.1);
  border: 1px solid rgba(160,112,255,0.25);
  font-size: 0.82rem; color: #d6c4ff;
  margin-bottom: 26px;
  font-weight: 500;
}
.hero-title { margin-bottom: 22px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 0; }

.hero-image {
  margin: 48px auto 56px;
  max-width: 980px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 100px -30px rgba(160,112,255,0.4);
}
.hero-image img { width: 100%; height: auto; display: block; }

.hero-stats {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; max-width: 760px; margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.hero-stats li { text-align: center; }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { color: var(--text-muted); font-size: 0.82rem; }

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-soft { background: linear-gradient(180deg, var(--bg) 0%, #0a0c14 100%); }
.section-light {
  background: linear-gradient(180deg, #f6f7fb 0%, #eef0f7 100%);
  color: #0f1320;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.section-light h2, .section-light h3 { color: #0f1320; }
.section-light p { color: #51586b; }

.section-cream {
  background: linear-gradient(180deg, #fbfaf6 0%, #f3eee3 100%);
  color: #1a1408;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.section-cream h2, .section-cream h3 { color: #1a1408; }
.section-cream p { color: #5a4f3c; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; }

/* Pain cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(15,19,32,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -16px rgba(15,19,32,0.18);
  transition: transform .25s ease, border-color .25s ease;
}
.pain-card:hover { transform: translateY(-4px); border-color: rgba(108,140,255,0.4); }
.pain-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,140,255,0.12), rgba(160,112,255,0.12));
  color: #5b3fd6;
  margin-bottom: 16px;
}
.pain-card h3 { margin-bottom: 8px; }

/* Features (dark) */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  padding: 36px 28px;
  background: var(--bg-soft);
  transition: background .25s ease;
}
.feature:hover { background: var(--surface-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,140,255,0.18), rgba(160,112,255,0.18));
  color: #cdb8ff;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.feature h3 { margin-bottom: 8px; }

/* IA Section */
.ia-section {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(160,112,255,0.15), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0,217,126,0.12), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ia-copy h2 { margin-bottom: 18px; }
.ia-copy p { font-size: 1.05rem; margin-bottom: 22px; }
.ia-list { list-style: none; margin-bottom: 32px; }
.ia-list li {
  padding: 10px 0; color: var(--text);
  display: flex; align-items: flex-start; gap: 12px;
  border-bottom: 1px dashed var(--border);
}
.ia-list li:last-child { border-bottom: none; }
.ia-list span {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}

.ia-visual { position: relative; }
.ia-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg), 0 0 80px -20px rgba(160,112,255,0.4);
  position: relative;
}
.ia-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ia-card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2f40; }
.ia-card-head .dot:first-child { background: #ff5f57; }
.ia-card-head .dot:nth-child(2) { background: #febc2e; }
.ia-card-head .dot:nth-child(3) { background: #28c840; }
.ia-card-title { margin-left: auto; font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-display); }
.ia-msg { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 0.92rem; line-height: 1.5; }
.ia-msg.user {
  background: rgba(108,140,255,0.12);
  border: 1px solid rgba(108,140,255,0.25);
  color: var(--text);
  border-bottom-right-radius: 4px;
  margin-left: 30px;
}
.ia-msg.bot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  margin-right: 30px;
}
.ia-msg.bot strong { color: var(--primary); }
.ia-typing { display: flex; gap: 6px; padding: 6px 14px; }
.ia-typing span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: typing 1.2s infinite;
}
.ia-typing span:nth-child(2) { animation-delay: .2s; background: var(--accent-2); }
.ia-typing span:nth-child(3) { animation-delay: .4s; background: var(--primary); }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* Editor section */
.editor-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.editor-copy h2 { margin-bottom: 18px; }
.editor-copy p { font-size: 1.05rem; margin-bottom: 22px; }
.check-list { list-style: none; margin-bottom: 30px; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: #2a2417;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .i-check { color: #00a35d; flex-shrink: 0; }
.editor-visual { position: relative; }
.editor-frame {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(15,19,32,0.35);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform .4s ease;
}
.editor-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.editor-frame img { width: 100%; display: block; }
.editor-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, rgba(160,112,255,0.25), transparent 65%);
  filter: blur(40px); z-index: 1;
}

/* Benefits (light) */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px;
}
.benefit {
  padding: 32px 24px; text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15,19,32,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -16px rgba(15,19,32,0.18);
}
.benefit p { color: #51586b; }
.benefit-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}

.security-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sec-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(15,19,32,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -16px rgba(15,19,32,0.18);
}
.sec-card h3 { margin-bottom: 8px; color: #0f1320; }
.sec-card p { color: #51586b; }
.sec-card .sec-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,217,126,0.15), rgba(108,140,255,0.15));
  color: #00a35d;
  margin-bottom: 14px;
}

/* Logos / testimonials */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.logo-card {
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color .2s, border-color .2s;
}
.logo-card:hover { color: var(--text); border-color: var(--border-strong); }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial p { color: var(--text); font-size: 1.02rem; margin-bottom: 16px; }
.testimonial footer { color: var(--text-muted); font-size: 0.9rem; }
.testimonial em { color: var(--accent); font-style: normal; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--surface);
  margin-bottom: 12px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; }

.faq-light details {
  background: #ffffff;
  border: 1px solid rgba(15,19,32,0.08);
  box-shadow: 0 4px 14px -10px rgba(15,19,32,0.15);
}
.faq-light details[open] { border-color: rgba(108,140,255,0.4); }
.faq-light summary { color: #0f1320; }
.faq-light details p { color: #51586b; }

/* CTA final */
.cta-final {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cta-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.cta-inner h2 { margin: 14px 0 18px; }
.cta-inner p { font-size: 1.08rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  background: #050609;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-tag { max-width: 380px; margin-top: 12px; font-size: 0.92rem; }
.footer-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-link { color: var(--text-muted); font-family: var(--font-display); font-size: 0.92rem; }
.footer-link:hover { color: var(--text); }
.footer-base { padding-top: 24px; }
.footer-base small { color: var(--text-muted); font-size: 0.82rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #00210f;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px -8px rgba(0,217,126,0.5), 0 0 0 0 rgba(0,217,126,0.6);
  animation: pulse-wa 2.4s infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse-wa {
  0%   { box-shadow: 0 14px 32px -8px rgba(0,217,126,0.5), 0 0 0 0 rgba(0,217,126,0.6); }
  70%  { box-shadow: 0 14px 32px -8px rgba(0,217,126,0.5), 0 0 0 18px rgba(0,217,126,0); }
  100% { box-shadow: 0 14px 32px -8px rgba(0,217,126,0.5), 0 0 0 0 rgba(0,217,126,0); }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .features-grid, .benefits, .security-row, .logos, .testimonials { grid-template-columns: 1fr 1fr; }
  .ia-grid, .editor-grid { grid-template-columns: 1fr; gap: 40px; }
  .editor-frame { transform: none; }
  .brand-text em { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .features-grid, .benefits, .security-row, .logos, .testimonials { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
