/* =========================================================
   MDE Operacional Web — site.css (Landing + SEO pages)
   - Dark/Light via html[data-theme]
   - Layout marketing (hero/sections/cta/faq)
   - Leve e escalável para páginas satélite
========================================================= */

/* ---------- THEME TOKENS ---------- */
:root{
  --bg:#0b1220;
  --bg2: rgba(34,197,94,.18);
  --bg3: rgba(96,165,250,.14);

  --surface:#0f172a;
  --card:#0b162b;

  --text:#e5e7eb;
  --muted: rgba(229,231,235,.75);

  --border: rgba(255,255,255,.10);

  --green:#22c55e;
  --blue:#60a5fa;
  --amber:#fbbf24;

  --shadow: 0 14px 34px rgba(0,0,0,.40);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;

  --pad: 18px;

  --focus: rgba(96,165,250,.45);
}

html[data-theme="light"]{
  --bg:#f1f5f9;
  --bg2: rgba(34,197,94,.08);
  --bg3: rgba(96,165,250,.08);

  --surface:#ffffff;
  --card:#ffffff;

  --text:#0f172a;
  --muted: rgba(15,23,42,.65);

  --border: rgba(15,23,42,.12);

  --shadow: 0 12px 28px rgba(15,23,42,.12);

  --focus: rgba(34,197,94,.35);
}

/* ---------- RESET ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 30% -10%, var(--bg2), transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, var(--bg3), transparent 60%),
    var(--bg);
}
a{ color:inherit; text-decoration:none; }
p{ margin:0; }
img{ max-width:100%; height:auto; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 64px;
}

.muted{ color: var(--muted); }
.divider{ height:1px; background: var(--border); margin:18px 0; }

/* ---------- TOPBAR ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}

.logo{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: #081018;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--green) 85%, transparent),
    color-mix(in srgb, var(--blue) 65%, transparent)
  );
}

.brand-title{ font-weight: 900; letter-spacing: -.2px; }
.brand-sub{ font-size: 12px; color: var(--muted); }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.pill{
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
  background: color-mix(in srgb, var(--green) 18%, transparent);
  color: var(--text);

  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: filter .15s ease, transform .05s ease, background .15s ease;
}

.btn:hover{ filter:brightness(1.06); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
}

.theme-toggle{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 9px 11px;
  border-radius: var(--r-md);
  cursor:pointer;
  transition: background .15s ease, transform .05s ease;
}
.theme-toggle:hover{ background: color-mix(in srgb, var(--text) 6%, transparent); }
.theme-toggle:active{ transform: translateY(1px); }

.btn:focus, .btn:focus-visible,
.theme-toggle:focus, .theme-toggle:focus-visible,
a:focus, a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
  border-color: color-mix(in srgb, var(--focus) 70%, var(--border));
}

/* ---------- HERO ---------- */
.hero{
  padding: 34px 0 18px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.h1{
  margin:0 0 10px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.lead{
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}

.panel{
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 88%, transparent),
    color-mix(in srgb, var(--card) 90%, transparent)
  );
  box-shadow: var(--shadow);
  padding: var(--pad);
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.note{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- SECTIONS ---------- */
.section{
  padding: 22px 0;
}

.section h2{
  margin: 0 0 8px;
  font-size: 22px;
}

.section p{
  line-height: 1.6;
}

.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 88%, transparent),
    color-mix(in srgb, var(--card) 90%, transparent)
  );
  box-shadow: var(--shadow);
  padding: 16px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  margin-bottom: 10px;
}

/* ---------- COMPARE ---------- */
.compare{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){
  .compare{ grid-template-columns: 1fr; }
}

.list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.list li{
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.list strong{ display:block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq{
  display:grid;
  gap: 10px;
}

details{
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

summary{
  cursor:pointer;
  font-weight: 900;
}

details p{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- FOOTER ---------- */
.footer{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;

  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- SEO PAGE HELPERS ---------- */
.seo-hero{
  padding: 18px 0 6px;
}
.seo-hero h1{
  margin:0 0 8px;
  font-size: 34px;
  letter-spacing: -0.6px;
}
.seo-hero .lead{
  margin-bottom: 12px;
}
.seo-cta{
  margin-top: 14px;
}
