/* Layout: coluna única à esquerda, hero em duas colunas com o cartão de código neon como único ponto de ousadia. */
:root {
  --bg: #07070d;
  --surface: #0d0d18;
  --line: #25253d;
  --text: #e9e9f4;
  --muted: #9c9cb8;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="pt"] .en { display: none; }
html[data-lang="en"] .pt { display: none; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--cyan); color: #04040a; padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; color: #04040a; }

/* Navegação */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--mono); font-size: 15px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.brand b { color: var(--cyan); font-weight: 500; }
.links { display: flex; gap: 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button {
  font: 500 13px var(--mono); letter-spacing: 0.06em;
  background: transparent; color: var(--muted); border: 0; padding: 7px 12px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--cyan); color: #04040a; }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }
@media (max-width: 720px) { .links { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 13px var(--mono); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: 26px;
}
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 18px var(--cyan);
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em;
}
h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 22px rgba(0, 240, 255, 0.45); }
.hero .lead { margin-top: 24px; max-width: 54ch; color: var(--muted); font-size: 18px; }
.hero .lead strong { color: var(--text); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px var(--body); text-decoration: none;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 240, 255, 0.25); color: #fff; }
.btn.primary { background: var(--cyan); border-color: var(--cyan); color: #04040a; font-weight: 600; }
.btn.primary:hover { background: #7af7ff; color: #04040a; }

.code {
  border: 2px solid transparent; border-radius: 16px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--magenta)) border-box;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35), 0 0 46px rgba(255, 43, 214, 0.22);
  overflow: hidden;
}
.code header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font: 400 12.5px var(--mono); color: var(--muted);
}
.code header span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.code header em { font-style: normal; margin-left: 8px; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 14px/1.8 var(--mono); }
.k { color: var(--magenta); } .s { color: var(--cyan); } .n { color: #ffd166; } .p { color: var(--muted); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Seções */
section { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -0.01em; }
.sec-lead { margin-top: 12px; color: var(--muted); max-width: 62ch; }
.sec-head { margin-bottom: 36px; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); }
.about p + p { margin-top: 16px; }
.about p { color: #cfcfe3; max-width: 62ch; }
.facts { display: grid; gap: 14px; align-content: start; }
.fact { border-left: 2px solid var(--cyan); padding: 2px 0 2px 16px; }
.fact b { display: block; font-weight: 600; }
.fact span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Stack */
.stack { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 26px; }
.panel h3 { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.group + .group { margin-top: 22px; }
.group h4 { margin: 0 0 10px; font-weight: 500; font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 400 13px var(--mono); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: rgba(255,255,255,0.02);
}
.next li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.next li:first-child { border-top: 0; padding-top: 0; }
.next b { font-weight: 600; }
.next span { color: var(--muted); font-size: 15px; }
.next b::before { content: "→ "; color: var(--magenta); }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr; } }

/* Projetos */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 26px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 240, 255, 0.18); transform: translateY(-2px); }
.kicker { font: 400 12.5px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tag { color: #04040a; background: var(--cyan); border-radius: 4px; padding: 1px 8px; font-weight: 500; }
.tag.wip { background: var(--magenta); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.3; }
.card p { color: #cfcfe3; font-size: 16px; }
.card .chips { margin-top: auto; padding-top: 6px; }

/* Trajetória */
.timeline { position: relative; display: grid; gap: 34px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.job { position: relative; }
.job::before {
  content: ""; position: absolute; left: -30px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.job .when { font: 400 13px var(--mono); color: var(--muted); }
.job h3 { margin-top: 4px; font-weight: 600; font-size: 19px; }
.job h3 > span:last-child { color: var(--cyan); font-weight: 500; }
.job p { margin-top: 8px; color: #cfcfe3; max-width: 68ch; font-size: 16px; }
.edu { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.edu div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--surface); }
.edu b { display: block; font-weight: 600; }
.edu span { color: var(--muted); font-size: 15px; }

/* Contato */
.contact { display: grid; gap: 22px; justify-items: start; }
.contact p { max-width: 56ch; color: #cfcfe3; }
.contact-list { width: min(620px, 100%); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list .label { flex: 0 0 84px; font: 400 12.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-list a { overflow-wrap: anywhere; }
.copy {
  margin-left: auto; font: 500 12.5px var(--mono); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; cursor: pointer;
}
.copy:hover { color: var(--text); border-color: var(--cyan); }
.copy .ok { display: none; color: var(--cyan); }
.copy.done .ok { display: inline; }
.copy.done .idle { display: none; }
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font: 400 13px var(--mono); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
