@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* Mesma paleta (Dracula) usada no editor do mod, pra manter a
     identidade visual entre as duas páginas. */
  --bg:#282a36;
  --bg-deep:#20212b;
  --panel:#2f313f;
  --border:#44475a;
  --text:#f8f8f2;
  --text-dim:#b7b9d1;
  --text-faint:#8890b5;
  --ped:#ff79c6;
  --ped-ink:#3a1630;
  --veh:#50fa7b;
  --veh-ink:#0d2818;
  --purple:#bd93f9;
  --yellow:#f1fa8c;

  --font-sans:'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius:10px;
  --content-w:640px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; }
a:focus-visible, button:focus-visible{
  outline:2px solid var(--yellow);
  outline-offset:3px;
  border-radius:4px;
}

.sunset-bar{
  height:3px;
  width:100%;
  background:linear-gradient(90deg, var(--yellow), var(--ped) 55%, var(--purple));
}

.page{
  max-width:var(--content-w);
  margin:0 auto;
  padding:56px 24px 72px;
}

/* ---------- brand ---------- */
.brand{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:48px;
  flex-wrap:wrap;
}
.brand-mark{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-weight:600;
  font-size:14px;
  letter-spacing:.02em;
}
.brand-dots{ display:inline-flex; gap:4px; }
.dot{ width:7px; height:7px; border-radius:50%; display:inline-block; }
.dot-ped{ background:var(--ped); }
.dot-veh{ background:var(--veh); }
.brand-sub{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-faint);
}

/* ---------- hero ---------- */
.hero h1{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:clamp(26px, 5vw, 36px);
  line-height:1.28;
  letter-spacing:-0.01em;
  margin:0 0 18px;
  max-width:19ch;
}
.hero .lede{
  color:var(--text-dim);
  font-size:16px;
  max-width:56ch;
  margin:0 0 32px;
}

.code-panel{
  background:var(--bg-deep);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.code-panel-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-bottom:1px solid var(--border);
  background:var(--panel);
}
.code-dot{ width:9px; height:9px; border-radius:50%; background:var(--border); }
.code-panel-name{
  margin-left:6px;
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-faint);
}
.code-panel-body{
  margin:0;
  padding:16px 18px 18px;
  font-family:var(--font-mono);
  font-size:12.5px;
  line-height:1.7;
  overflow-x:auto;
  color:var(--text-dim);
}
.tok-key{ color:var(--purple); }
.tok-val{ color:var(--text); }
.tok-mod{ color:var(--yellow); }
.tok-comment{ color:var(--text-faint); }

/* ---------- section shell ---------- */
section + section{ margin-top:52px; }
h2{
  font-family:var(--font-sans);
  font-size:13px;
  font-weight:600;
  color:var(--text-faint);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 0 16px;
}

/* ---------- about ---------- */
.about p{
  color:var(--text-dim);
  max-width:60ch;
  margin:0 0 14px;
}
.about p:last-child{ margin-bottom:0; }
.about strong{ color:var(--text); font-weight:600; }

/* ---------- credits ---------- */
.credit-list{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--border);
}
.credit-row{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 10px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}
.credit-role{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-faint);
  width:100%;
  margin-bottom:2px;
}
.credit-name{
  font-weight:600;
  font-size:15px;
  margin-right:12px;
}
.credit-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--text-dim);
  text-decoration:none;
  font-family:var(--font-mono);
  font-size:13px;
  border-bottom:1px solid var(--border);
  padding-bottom:1px;
  margin-right:10px;
  transition:color .15s ease, border-color .15s ease;
}
.credit-link:hover{ color:var(--text); border-color:var(--text-dim); }
.credit-link svg{ width:11px; height:11px; flex:none; opacity:.7; }
.credit-by{
  color:var(--text-faint);
  font-size:13px;
}
.credit-by .credit-link{ margin-left:4px; margin-right:0; }
.credit-note{
  color:var(--text-faint);
  font-size:13px;
  max-width:60ch;
  margin:16px 0 0;
}

/* ---------- actions ---------- */
.actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:600;
  font-size:14.5px;
  background:var(--panel);
  color:var(--text);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-1px); border-color:var(--text-dim); }
.btn-caret{ font-family:var(--font-mono); color:var(--text-faint); font-size:14px; }

.btn-primary{
  background:var(--yellow);
  color:var(--bg-deep);
  border-color:var(--yellow);
}
.btn-primary:hover{ border-color:var(--yellow); }
.btn-primary .btn-caret{ color:var(--bg-deep); opacity:.6; }
.btn-primary .btn-sub{ color:var(--bg-deep); opacity:.65; }

.btn-ped{ border-color:rgba(255,121,198,.35); }
.btn-ped:hover{ border-color:var(--ped); }
.btn-ped .btn-caret{ color:var(--ped); }

.btn-veh{ border-color:rgba(80,250,123,.35); }
.btn-veh:hover{ border-color:var(--veh); }
.btn-veh .btn-caret{ color:var(--veh); }

.btn-label{ display:flex; flex-direction:column; gap:2px; }
.btn-sub{ font-family:var(--font-mono); font-weight:400; font-size:11.5px; color:var(--text-faint); }

/* ---------- footer ---------- */
.page-footer{
  margin-top:64px;
  padding-top:20px;
  border-top:1px solid var(--border);
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-faint);
}

@media (max-width:480px){
  .page{ padding:40px 18px 56px; }
  .brand{ margin-bottom:36px; }
  section + section{ margin-top:40px; }
  .btn{ padding:14px 16px; }
}
