/* ============================================================
   A FORMA — Design System "Operador" (Direção B)
   ============================================================ */
:root {
  --bg: #101418;
  --panel: #131920;
  --panel-2: #161d25;
  --grid: #1b2229;
  --line: #232c34;
  --line-2: #2c3640;
  --text: #e8ebee;
  --muted: #a9b4bf;
  --dim: #8b98a5;
  --faint: #5f6d7a;
  --accent: #f2a33c;
  --danger: #c0392b;
  --ok: #4a9d6e;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
main, header, footer, nav { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { font-weight: 600; font-size: 17px; letter-spacing: .24em; }
.brand b { color: var(--accent); }
.nav-links { font-family: var(--mono); font-size: 13px; display: flex; gap: 30px; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.hot { color: var(--accent); }
.nav-links a.hot:hover { color: var(--text); }

/* ---------- TYPO ---------- */
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .2em; color: var(--accent);
  border: 1px solid var(--line-2); padding: 7px 14px; text-transform: uppercase;
}
h1 { font-weight: 600; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
h1 .thin { font-weight: 400; color: var(--dim); }
h2 { font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.015em; }
h2 .thin { font-weight: 400; color: var(--dim); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.lead b { color: var(--text); font-weight: 500; }
.mono-note { font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.8; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--bg); padding: 16px 28px;
  letter-spacing: .04em; border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(242,163,60,.25); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--dim); box-shadow: none; }
.btn.block { width: 100%; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- PANEL ---------- */
.panel {
  border: 1px solid var(--line-2); background: var(--panel);
  padding: 34px 30px; position: relative;
}
.panel-label {
  position: absolute; top: -9px; left: 20px; background: var(--bg);
  padding: 0 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .24em; color: var(--faint); text-transform: uppercase;
}

/* ---------- SECTIONS ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .26em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}

/* ---------- COMPONENT BARS ---------- */
.bar-row { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.bar-row .bar-name { width: 150px; flex-shrink: 0; text-transform: uppercase; }
.bar-track { height: 8px; background: var(--line-2); flex: 1; position: relative; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; transition: width .9s cubic-bezier(.22,1,.36,1); }
.bar-fill.low { background: var(--danger); }
.bar-fill.high { background: var(--ok); }
.bar-score { width: 40px; text-align: right; flex-shrink: 0; color: var(--muted); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--faint); text-transform: uppercase;
}

/* ---------- FORMS ---------- */
input[type="email"], input[type="text"] {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--text); font-family: var(--mono); font-size: 14px;
  padding: 15px 16px; outline: none;
}
input[type="email"]:focus { border-color: var(--accent); }
.form-msg { font-family: var(--mono); font-size: 12px; margin-top: 12px; min-height: 18px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .bar-row .bar-name { width: 110px; font-size: 10px; }
}
