/* =========================================================
   MR7 CODERS - PRO MULTIPAGE LANDING
   Dark/Light + Tech Grid + Motion + Glass UI
   ========================================================= */

:root{
  --max: 1180px;
  --radius: 18px;
  --radius2: 24px;

  --bg: #070b18;
  --bg2:#0b1230;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.10);

  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.08);

  --brand: #22c55e;     /* verde como ref */
  --brand2:#3b82f6;     /* azul */
  --accent:#a855f7;     /* violeta */
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --shadow2: 0 12px 30px rgba(0,0,0,.25);

  --grid-opacity:.20;
  --header-bg: rgba(8,12,28,.55);
}

html[data-theme="light"]{
  --bg:#f6f8ff;
  --bg2:#eef3ff;
  --text:#0f172a;
  --muted:#475569;
  --line: rgba(2,6,23,.12);
  --glass: rgba(255,255,255,.72);
  --glass2: rgba(255,255,255,.88);
  --shadow: 0 18px 45px rgba(2,6,23,.10);
  --shadow2: 0 12px 30px rgba(2,6,23,.08);
  --grid-opacity:.30;
  --header-bg: rgba(246,248,255,.78);
}

*{ 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);
  overflow-x:hidden;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(34,197,94,.22), transparent 60%),
    radial-gradient(880px 520px at 85% 10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(820px 520px at 80% 85%, rgba(168,85,247,.12), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), 92vw); margin:0 auto; }

.bg{
  position:fixed; inset:0;
  pointer-events:none; z-index:-2;
}

.fx-grid{
  opacity: var(--grid-opacity);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 44px);
}
html[data-theme="light"] .fx-grid{
  background:
    repeating-linear-gradient(0deg, rgba(2,6,23,.12) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(2,6,23,.12) 0 1px, transparent 1px 44px);
}

.fx-noise{
  opacity:.10;
  background-image: url("../img/bg-noise.png");
  mix-blend-mode: overlay;
  z-index:-1;
}

/* ---------- Header ---------- */
.header{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{
  width:44px; height:44px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(34,197,94,.18);
}
.brand__name{
  font-weight:1000;
  letter-spacing:.4px;
  font-size: 18px;
}
.brand__tag{
  font-weight:900;
  font-size: 12px;
  color: var(--muted);
  margin-top:2px;
}

.menu{
  display:flex;
  gap:18px;
  align-items:center;
}
.menu a{
  font-weight:1000;
  font-size:14px;
  color: var(--muted);
  position:relative;
  transition: color .14s ease, transform .14s ease;
}
.menu a:hover{
  color: var(--text);
  transform: translateY(-1px);
}
.menu a::after{
  content:"";
  position:absolute;
  left:0; bottom:-10px;
  height:2px; width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius:999px;
  transition: width .18s ease;
}
.menu a:hover::after{ width:100%; }

.nav__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight:1000;
  font-size:14px;
  box-shadow: var(--shadow2);
}
.pill .dot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}

.btn{
  border:1px solid transparent;
  border-radius:999px;
  padding: 11px 16px;
  font-weight:1100;
  font-size:14px;
  cursor:pointer;
  user-select:none;
  transition: transform .10s ease, filter .10s ease, background .12s ease, border-color .12s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--brand), #16a34a);
  color:#fff;
  box-shadow: 0 18px 36px rgba(34,197,94,.22);
}
.btn--primary:hover{ filter: brightness(1.05); }

.btn--ghost{
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover{ filter: brightness(1.05); }

.btn--icon{
  width:44px; height:44px;
  padding:0;
  display:grid; place-items:center;
  background: var(--glass);
  border-color: var(--line);
}

/* mobile */
.burger{ display:none; }
.mobile{
  display:none;
  border-top:1px solid var(--line);
  background: var(--header-bg);
}
.mobile__inner{
  padding: 12px 0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.mobile__inner a{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight:1100;
}

/* ---------- Hero (ref-like layout) ---------- */
.hero{
  padding: 62px 0 26px;
  position:relative;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items:center;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.24);
  background: rgba(34,197,94,.12);
  color: var(--text);
  font-weight:1100;
  width: fit-content;
}
.tag .dot{ width:10px; height:10px; border-radius:999px; background: var(--brand); }

.h1{
  margin: 14px 0 10px;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height:1.02;
  letter-spacing:-.9px;
}
.h1 .accent{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.desc{
  margin:0;
  max-width: 64ch;
  color: var(--muted);
  line-height:1.75;
  font-weight:900;
}

.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 16px;
}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight:1100;
}

.hero__right{
  position:relative;
}

/* Browser mock like reference */
.mock{
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: var(--glass2);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: perspective(1100px) rotateY(-10deg) rotateX(3deg);
  transition: transform .35s ease;
}
.hero__right:hover .mock{
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg) translateY(-2px);
}
.mock__top{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight:1100;
}
.mac{ width:10px; height:10px; border-radius:999px; }
.mac.r{ background:#ef4444; } .mac.y{ background:#f59e0b; } .mac.g{ background:#22c55e; }
.url{
  margin-left:8px;
  font-size:13px;
}
.badge{
  margin-left:auto;
  padding: 8px 12px;
  border-radius:999px;
  background: rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.22);
  font-weight:1200;
  font-size:12px;
}
.mock__body{
  padding:14px;
  background:
    radial-gradient(420px 220px at 30% 20%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(520px 260px at 70% 80%, rgba(34,197,94,.12), transparent 60%);
}
.mock__img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 16px;
  border:1px solid var(--line);
}

/* Floating widgets */
.floatbar{
  position:absolute;
  left: 14%;
  bottom: -18px;
  display:flex;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.30);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .floatbar{ background: rgba(255,255,255,.70); }
.pulse{
  width:42px; height:10px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ filter: brightness(1); opacity:.75; }
  50%{ filter: brightness(1.15); opacity:1; }
}

/* ---------- Sections ---------- */
.section{ padding: 54px 0; }
.section--alt{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
html[data-theme="light"] .section--alt{ background: rgba(255,255,255,.55); }

.head{
  margin-bottom: 16px;
}
.head h2{
  margin:0 0 8px;
  font-size: 28px;
  letter-spacing:-.4px;
}
.head p{
  margin:0;
  color: var(--muted);
  line-height:1.7;
  max-width: 78ch;
  font-weight:900;
}

.grid{
  display:grid;
  gap:14px;
}
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--glass2);
  box-shadow: var(--shadow2);
  padding: 16px;
  position:relative;
  overflow:hidden;
  transition: transform .18s ease, filter .18s ease;
}
.card:hover{ transform: translateY(-3px); filter: brightness(1.03); }
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(420px 220px at 20% 10%, rgba(34,197,94,.10), transparent 60%),
              radial-gradient(420px 220px at 80% 90%, rgba(59,130,246,.10), transparent 60%);
  opacity:.8;
  pointer-events:none;
}
.card > *{ position:relative; }

.ico{
  width:46px; height:46px;
  border-radius: 16px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: rgba(59,130,246,.12);
  font-size:18px;
}
.card h3{ margin:10px 0 6px; font-size:16px; }
.card p{ margin:0; color: var(--muted); line-height:1.65; font-weight:900; }

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.product{
  padding: 16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: var(--glass2);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
  transition: transform .18s ease;
}
.product:hover{ transform: translateY(-4px); }
.product__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.kpi{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight:1100;
  font-size:12px;
}
.product__title{ margin:12px 0 8px; font-size:18px; font-weight:1200; }
.product__desc{ margin:0; color: var(--muted); line-height:1.7; font-weight:900; }
.product__actions{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom: 12px; }
label{ font-weight:1100; font-size:13px; }
input, textarea{
  border-radius: 14px;
  border:1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
  font-weight:1000;
}
textarea{ min-height: 120px; resize: vertical; }

.footer{
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight:1100;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.footer__links{ display:flex; gap:14px; }
.footer__links a:hover{ color: var(--text); }

/* WhatsApp float */
.wa{
  position:fixed;
  right:16px;
  bottom:16px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #22c55e;
  color:#fff;
  font-weight:1200;
  box-shadow: 0 18px 40px rgba(34,197,94,.30);
  border: 1px solid rgba(255,255,255,.18);
  z-index:60;
}

/* Reveal animation */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px){
  .menu{ display:none; }
  .burger{ display:grid; }
  .mobile{ display:block; }

  .hero__grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .mock{ transform:none; }
  .floatbar{ position:static; margin-top:12px; background: var(--glass); }
}
