/* =========================================================
   ROOT / RESET
   ========================================================= */

:root{
  --bg:#050507;
  --panel:rgba(15,23,42,.90);
  --panel2:rgba(0,0,0,.22);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --gold:#e5b85f;
  --gold2:#f4e4a6;
  --border:rgba(255,255,255,.12);
  --ring:rgba(229,184,95,.35);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

/* =========================================================
   BODY — FIX DEFINITIVO (SEM FLEX)
   ========================================================= */

body{
  min-height:100vh;
  background: radial-gradient(1000px 600px at 50% -200px, #111827 0%, #020305 55%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);

  /* CRÍTICO: nunca centrar a página inteira */
  display:block;

  padding:28px;
}

@supports (min-height: 100dvh){
  body{ min-height:100dvh; }
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

main{
  max-width:980px;
  width:100%;
  margin:0 auto;

  background:var(--panel);
  border:1px solid var(--border);
  border-radius:28px;

  padding:64px 56px;
  text-align:center;

  position:relative;
  overflow:hidden;
}

main::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(700px 300px at 30% 0%, rgba(229,184,95,.10), transparent 60%),
    radial-gradient(650px 280px at 90% 40%, rgba(20,184,166,.08), transparent 60%);
  pointer-events:none;
}

.inner{ position:relative; }

/* =========================================================
   UTILITIES / A11Y
   ========================================================= */

.is-hidden{ display:none !important; }

.sr-only{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:12px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(0,0,0,.75);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  z-index:50;
}

.skip-link:focus{
  left:12px;
  outline:2px solid var(--gold);
  outline-offset:4px;
  box-shadow:0 0 0 6px var(--ring);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1{
  font-size:clamp(2.35rem, 4vw, 3.6rem);
  line-height:1.06;
  font-weight:900;
  margin:0 0 22px;
  letter-spacing:-0.02em;
}

.highlight{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.lead{
  font-size:1.15rem;
  color:#e5e7eb;
  max-width:780px;
  margin:0 auto 18px;
  line-height:1.5;
}

.microtrust{
  font-size:.82rem;
  color:var(--muted);
  margin:0 auto 18px;
  max-width:780px;
}

.divider{
  height:1px;
  background:var(--border);
  margin:28px auto 30px;
  max-width:780px;
}

section{
  text-align:left;
  max-width:780px;
  margin:0 auto 34px;
}

section h2{
  font-size:1.18rem;
  font-weight:900;
  margin:0 0 10px;
  letter-spacing:-0.01em;
}

section p{
  font-size:.95rem;
  color:var(--muted);
  line-height:1.65;
  margin:0 0 12px;
}

ul{ padding-left:18px; margin:0; }
ul li{
  margin-bottom:10px;
  font-size:.92rem;
  color:var(--muted);
  line-height:1.55;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-wrap{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#000;
  font-weight:900;

  padding:18px 24px;
  border-radius:16px;
  text-decoration:none;
  font-size:1rem;

  border:0;
  cursor:pointer;
  min-height:48px;

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space:nowrap;
}

.cta:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 44px rgba(229,184,95,.45);
}

.cta:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:4px;
  box-shadow:0 0 0 6px var(--ring);
}

.cta-secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
  font-weight:700;
}

.cta-secondary:hover{
  border-color:var(--gold);
  box-shadow:0 14px 44px rgba(0,0,0,.15);
  transform:translateY(-1px);
}

.cta-sub-wrap{ width:100%; margin-top:10px; }
.cta-sub{ display:block; font-size:.78rem; color:var(--muted); line-height:1.4; }

/* =========================================================
   FOOTER
   ========================================================= */

.footer-links{
  margin-top:28px;
  font-size:.82rem;
  color:var(--muted);
  text-align:center;
}

.footer-links a{
  color:rgba(229,184,95,.95);
  text-decoration:none;
  font-weight:700;
}

.footer-links a:hover{ text-decoration:underline; }

.footer-sep{
  margin:0 10px;
  color:rgba(156,163,175,.85);
}

/* =========================================================
   DECISION MATRIX (INDEX)
   ========================================================= */

.matrix-wrap{
  background:var(--panel2);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px;
  margin-top:14px;
}

.matrix-container{
  margin:16px auto 0;
  max-width:640px;
  display:grid;
  grid-template-columns:44px 1fr;
  grid-template-rows:1fr 44px;
  gap:10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.y-axis{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  text-align:center;
  font-size:.68rem;
  color:rgba(229,184,95,.92);
  letter-spacing:.14em;
  user-select:none;
  padding:4px 0;
}

.x-axis{
  grid-column:2;
  text-align:center;
  font-size:.68rem;
  color:rgba(229,184,95,.92);
  letter-spacing:.14em;
  padding-top:10px;
  user-select:none;
}

.matrix-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:2px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}

.quadrant{
  background:rgba(0,0,0,.28);
  padding:18px 14px;
  text-align:left;
  transition:transform .16s ease, background .16s ease;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:120px;
}

.quadrant:hover{
  transform:translateY(-1px);
  background:rgba(229,184,95,.06);
}

.quad-title{
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:#f3f4f6;
  margin-bottom:6px;
}

.quad-desc{
  font-size:.78rem;
  color:rgba(229,231,235,.72);
  line-height:1.45;
  margin:0;
}

.extreme{
  outline:1px solid rgba(239,68,68,.35);
  outline-offset:-1px;
}

.extreme .quad-title{ color:#f87171; }

.quad-meta{
  margin-top:10px;
  font-size:.72rem;
  color:rgba(229,184,95,.90);
  font-weight:700;
}

.tech-stack{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.70rem;
  color:rgba(156,163,175,.85);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-top:14px;
  opacity:.9;
  line-height:1.55;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  z-index:2000;
}

.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  z-index:2001;
  padding:18px;
}

.modal-card{
  width:min(860px, 100%);
  background:rgba(0,0,0,.80);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  padding:16px;
  box-shadow:0 22px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:6px 6px 10px;
}

.modal-title{ font-weight:900; font-size:1.05rem; }
.modal-sub{ color:rgba(229,231,235,.72); font-size:.9rem; margin-top:4px; }

.modal-close{
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:var(--text);
  border-radius:14px;
  width:44px;
  height:44px;
  cursor:pointer;
  font-weight:900;
}

/* =========================================================
   FORM
   ========================================================= */

.form{ text-align:left; padding:6px; }

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.field{ display:block; margin-bottom:12px; }

.label{
  display:block;
  font-weight:800;
  font-size:.86rem;
  color:rgba(229,231,235,.88);
  margin-bottom:6px;
}

input, textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:var(--text);
  padding:12px 12px;
  font-size:.95rem;
  outline:none;
}

input:focus, textarea:focus{
  border-color:rgba(229,184,95,.75);
  box-shadow:0 0 0 6px rgba(229,184,95,.18);
}

textarea{ resize:vertical; }

.checks{ display:flex; flex-wrap:wrap; gap:10px; }

.check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.92rem;
  color:rgba(229,231,235,.78);
}

.check input{ width:18px; height:18px; }

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:900;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#000;
}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:800;
}

.btn-secondary:hover{ border-color:rgba(229,184,95,.75); }

.form-status{
  margin-top:12px;
  font-size:.92rem;
  color:rgba(229,231,235,.78);
}

.form-meta{
  margin-top:10px;
  font-size:.82rem;
  color:rgba(156,163,175,.92);
}

.form-meta a{
  color:rgba(229,184,95,.95);
  text-decoration:none;
  font-weight:800;
}

.form-meta a:hover{ text-decoration:underline; }

/* Honeypot hidden */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =========================================================
   CONSENT
   ========================================================= */

.consent{
  position:fixed;
  inset:auto 0 0 0;
  padding:14px;
  display:flex;
  justify-content:center;
  z-index:1500;
}

.consent-card{
  width:min(980px, 100%);
  background:rgba(0,0,0,.78);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:14px 14px 12px;
  box-shadow:0 20px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}

.consent-title{ font-weight:900; margin-bottom:6px; }

.consent-text{
  margin:0 0 10px;
  color:rgba(229,231,235,.78);
  line-height:1.45;
  font-size:.9rem;
}

.consent-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.consent-btn{
  border-radius:14px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}

.consent-accept{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#000;
  border:0;
}

.consent-meta{
  margin-top:10px;
  font-size:.78rem;
  color:rgba(156,163,175,.9);
}

/* =========================================================
   DELIVERABLE (INDEX)
   ========================================================= */

.deliverable{ margin-top:10px; }

.deliverable-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  margin-top:14px;
  align-items:start;
}

.deliverable-card{
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px;
}

.deliverable-kicker{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(229,184,95,.92);
  margin-bottom:10px;
}

.deliverable-list{
  margin:0 0 14px;
  padding-left:18px;
}

.deliverable-list li{
  margin-bottom:10px;
  font-size:.92rem;
  color:rgba(156,163,175,.92);
  line-height:1.55;
}

.deliverable-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.deliverable-figure{
  margin:0;
  padding:12px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
}

.deliverable-figure img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}

.deliverable-figure figcaption{
  margin-top:10px;
  font-size:.82rem;
  color:rgba(156,163,175,.92);
  line-height:1.45;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px){
  .deliverable-grid{ grid-template-columns:1fr; }
}

@media (max-width: 640px){
  body{ padding:14px; }
  main{ padding:42px 20px; }
  .lead{ font-size:1.05rem; }
  .cta-wrap{ flex-direction:column; gap:10px; }
  .form-grid{ grid-template-columns:1fr; }
  .checks{ flex-direction:column; align-items:flex-start; }
}
