:root{--bg:#0e1116;--card:#161b22;--line:#262d38;--text:#e8ecf2;--muted:#9aa5b4;--accent:#5eead4;--accent2:#818cf8}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.65}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
.wrap{max-width:960px;margin:0 auto;padding:0 24px}
header.nav{position:sticky;top:0;background:rgba(14,17,22,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:10}
.nav .wrap{display:flex;justify-content:space-between;align-items:center;height:60px}
.logo{font-weight:700;color:var(--text);letter-spacing:.02em}
.nav nav a{color:var(--muted);margin-left:22px;font-size:.95rem}
.nav nav a:hover{color:var(--text);text-decoration:none}
.hero{padding:110px 0 70px;border:0;background:radial-gradient(600px 300px at 85% 10%,rgba(129,140,248,.14),transparent 70%),radial-gradient(500px 260px at 0% 90%,rgba(94,234,212,.10),transparent 70%)}
.tag{display:inline-block;color:var(--accent);font-family:ui-monospace,Menlo,monospace;font-size:.85rem;margin-bottom:18px}
h1{font-size:clamp(2.2rem,6vw,3.6rem);line-height:1.1;margin-bottom:20px}
h1 span{background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{color:var(--muted);font-size:1.15rem;max-width:640px;margin-bottom:32px}
.btn{display:inline-block;padding:12px 22px;border-radius:10px;font-weight:600;margin-right:12px;border:1px solid var(--line);color:var(--text)}
.btn.primary{background:var(--accent);color:#06201c;border-color:var(--accent)}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
section{padding:70px 0;border-top:1px solid var(--line)}
h2{font-size:1.9rem;margin-bottom:10px}
.sub{color:var(--muted);margin-bottom:36px;max-width:640px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.chip{font-size:.8rem;padding:4px 10px;border-radius:999px;background:#1f2631;border:1px solid var(--line);color:var(--muted)}
.about{display:grid;grid-template-columns:2fr 1fr;gap:40px}
@media(max-width:700px){.about{grid-template-columns:1fr}}
.about p{color:var(--muted);margin-bottom:14px}
.skills li{list-style:none;padding:8px 0;border-bottom:1px solid var(--line);color:var(--muted)}
footer{padding:40px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
/* landing */
.actions{display:flex;flex-wrap:wrap;gap:12px}
.actions .btn{margin-right:0}
.btn{transition:.15s;display:inline-flex;align-items:center;gap:8px}
.gh{width:18px;height:18px;fill:currentColor}
.nav-cta{border:1px solid var(--line);padding:6px 14px;border-radius:8px;color:var(--text)!important}
.stats{display:flex;flex-wrap:wrap;gap:40px;margin-top:56px;list-style:none}
.stats b{display:block;font-size:1.8rem;color:var(--text)}
.stats span{color:var(--muted);font-size:.9rem}
.strip{border-top:1px solid var(--line);padding:22px 0;background:var(--card)}
.strip .wrap{display:flex;flex-wrap:wrap;gap:10px 28px;justify-content:center;font-family:ui-monospace,Menlo,monospace;font-size:.85rem;color:var(--muted)}
.project{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center;margin-bottom:72px}
.project:last-child{margin-bottom:0}
.project:nth-of-type(even) .shot{order:2}
.project .kind{font-family:ui-monospace,Menlo,monospace;font-size:.78rem;color:var(--accent2);text-transform:uppercase;letter-spacing:.08em}
.project h3{font-size:1.5rem;margin:8px 0 10px;line-height:1.25}
.project p{color:var(--muted);margin-bottom:18px}
.shot{position:relative;display:block;aspect-ratio:16/10;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:repeating-linear-gradient(45deg,#141922 0 12px,#171d27 12px 24px);transition:.2s}
.shot:hover{border-color:var(--accent);transform:translateY(-3px);text-decoration:none}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;object-position:top}
.shot img.contain{object-fit:contain;object-position:center;background:#fff;padding:12px}
.shot .ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:.95rem}
.shot .ph small{font-family:ui-monospace,Menlo,monospace;font-size:.78rem;opacity:.7}
.cta{background:linear-gradient(135deg,rgba(94,234,212,.08),rgba(129,140,248,.10));border:1px solid var(--line);border-radius:20px;padding:48px;text-align:center}
.cta .sub{margin:0 auto 28px}
.cta .actions{justify-content:center}
/* responsivo */
img{max-width:100%}
@media(max-width:860px){
  .project{grid-template-columns:1fr;gap:20px;margin-bottom:56px}
  .project:nth-of-type(even) .shot{order:0}
  .about{grid-template-columns:1fr;gap:24px}
}
@media(max-width:600px){
  .wrap{padding:0 16px}
  .nav .wrap{height:56px}
  .logo{font-size:.95rem}
  .nav nav a{margin-left:12px;font-size:.88rem}
  .nav-cta{padding:5px 10px}
  .hero{padding:64px 0 48px}
  .tag{font-size:.75rem}
  .lead{font-size:1.02rem}
  section{padding:52px 0}
  h2{font-size:1.6rem}
  .project h3{font-size:1.25rem}
  .actions{flex-direction:column}
  .actions .btn{width:100%;justify-content:center}
  .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:40px}
  .stats b{font-size:1.35rem}
  .stats span{font-size:.78rem;line-height:1.35;display:block}
  .strip{padding:16px 0}
  .strip .wrap{gap:8px 16px;font-size:.78rem}
  .shot{border-radius:12px}
  .cta{padding:28px 18px;border-radius:16px}
}
@media(max-width:360px){.nav nav a:not(.nav-cta){display:none}}
/* foto */
.hero-grid{display:grid;grid-template-columns:1fr auto;gap:48px;align-items:center}
.avatar{width:260px;height:260px;border-radius:50%;object-fit:cover;object-position:45% 30%;border:3px solid var(--line);box-shadow:0 0 0 6px rgba(94,234,212,.12),0 20px 60px rgba(0,0,0,.45)}
@media(max-width:860px){
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .avatar{order:-1;width:140px;height:140px}
}
@media(max-width:600px){.avatar{width:112px;height:112px}}
/* cartão de código */
.code-card{margin-top:24px;background:#0a0d12;border:1px solid var(--line);border-radius:14px;padding:0 0 18px;overflow-x:auto;font-size:.88rem;line-height:1.7;color:var(--text)}
.code-card .dots{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.code-card .dots i{width:10px;height:10px;border-radius:50%;background:#3a4250}
.code-card .dots i:nth-child(1){background:#f87171}.code-card .dots i:nth-child(2){background:#fbbf24}.code-card .dots i:nth-child(3){background:#34d399}
.code-card .dots em{margin-left:8px;font-style:normal;font-family:ui-monospace,Menlo,monospace;font-size:.78rem;color:var(--muted)}
.code-card code{display:block;padding:0 18px;white-space:pre}
.code-card .k{color:var(--accent2)}.code-card .v{color:var(--accent)}.code-card .s{color:#fbbf24}.code-card .b{color:#f472b6}
@media(max-width:600px){.code-card{font-size:.78rem}.code-card code{padding:0 14px}}
