/* Design 2 — Laboratório Eletrônico: estética de bancada/terminal, trilhas de placa, mono */
:root {
  --bg: #06090c;
  --bg-2: #0c1218;
  --line: #1c2733;
  --text: #e6edf3;
  --muted: #8b9bab;
  --red: #ff3340;
  --green: #3ddc84;
  --amber: #ffb020;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 'Space Grotesk', system-ui, sans-serif;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23121c26' stroke-width='1.5'%3E%3Cpath d='M0 40h50l20 20h40M160 40h-30M80 0v30l20 20v60M0 120h30l20-20h30M120 160v-40l20-20h20'/%3E%3Ccircle cx='110' cy='60' r='3'/%3E%3Ccircle cx='100' cy='110' r='3'/%3E%3Ccircle cx='80' cy='100' r='3'/%3E%3C/svg%3E"),
    var(--bg);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.mono { font-family: var(--mono); }
.kicker { color: var(--green); font-size: .82rem; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 36px; }
.hl { color: var(--red); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 22px; border-radius: 8px; background: var(--red); color: #fff; font: 600 .95rem var(--mono); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255,51,64,.2); }
.btn:disabled { opacity: .6; }
.btn--line { background: transparent; border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--green); box-shadow: 0 0 0 4px rgba(61,220,132,.12); }
.btn--full { width: 100%; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(6,9,12,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem var(--mono); }
.brand span { color: var(--red); }
.status { font: .8rem var(--mono); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero { padding: 80px 0 40px; }
.hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.term { background: #0a0f14; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(61,220,132,.25); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3946; }
.term__bar i:first-child { background: var(--red); }
.term__bar span { margin-left: 8px; font: .75rem var(--mono); color: var(--muted); }
.term pre { margin: 0; padding: 20px; font-size: .8rem; line-height: 1.8; white-space: pre-wrap; color: #c9d4de; }
.c { color: var(--muted); } .ok { color: var(--green); } .er { color: var(--red); } .wa { color: var(--amber); }
.cursor { animation: pulse 1s steps(1) infinite; color: var(--green); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.metrics div { padding: 22px; border-right: 1px solid var(--line); }
.metrics div:last-child { border-right: 0; }
.metrics b { display: block; font-size: 1.5rem; color: var(--text); }
.metrics span { color: var(--muted); font-size: .88rem; }

.section { padding: 88px 0; }
.section--alt { background: rgba(12,18,24,.85); border-block: 1px solid var(--line); }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mod { background: var(--bg); padding: 28px; transition: background .2s; }
.mod:hover { background: var(--bg-2); }
.mod code { font: .75rem var(--mono); color: var(--green); border: 1px solid rgba(61,220,132,.3); padding: 3px 8px; border-radius: 4px; }
.mod h3 { margin: 16px 0 8px; }
.mod p { margin: 0; color: var(--muted); }

.log { display: grid; gap: 10px; }
.log__row { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.log__row code { font: 700 .85rem var(--mono); color: var(--red); }
.log__row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.log__row p { margin: 0; color: var(--muted); font-size: .95rem; }
.pill { font: .72rem var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.note { color: var(--muted); font-size: .78rem; margin-top: 16px; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow li { padding: 24px; border: 1px dashed var(--line); border-radius: 10px; position: relative; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--green); font-family: var(--mono); }
.flow code { font: .78rem var(--mono); color: var(--green); }
.flow h3 { margin: 10px 0 0; font-size: 1.05rem; }

.train { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.train h2 { margin-bottom: 12px; }

.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.specs { list-style: none; padding: 0; color: var(--green); font-size: .9rem; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
form { display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; margin-top: 10px; }
label > span { font-size: .75rem; color: var(--muted); }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: .95rem var(--mono); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,220,132,.15); }
[aria-invalid="true"] { border-color: var(--red); }
.err { color: #ff8a92; font: .78rem var(--mono); margin: 0; }
form .btn { margin-top: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.is-sent { display: none; }
.success pre { font-size: .95rem; line-height: 1.8; margin: 0 0 20px; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 500; list-style: none; }
summary::before { content: '[+] '; font-family: var(--mono); color: var(--green); }
details[open] summary::before { content: '[-] '; }
details p { color: var(--muted); margin: 10px 0 0 34px; }

.foot { padding: 32px 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .status { display: none; }
  .hide-sm { display: none; }
  .top .btn { padding: 10px 12px; font-size: .78rem; }
  .hero { padding-top: 40px; }
  .hero__in, .form-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mods, .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .log__row { grid-template-columns: 1fr; gap: 8px; }
  .log__row .pill { justify-self: start; }
  .train { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 64px 0; }
  .ctas .btn { flex: 1; }
}
