:root {
  --bg: #0b0f17;
  --bg-alt: #0f1522;
  --surface: #141b2b;
  --border: #222d42;
  --text: #e6eaf2;
  --muted: #94a0b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --green: #34d399;
  --radius: 14px;
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 10px; font-weight: 600; font-size: .95rem;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #04121d; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(56,189,248,.6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { padding: .5em 1em; font-size: .875rem; }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,23,.7); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 1.15rem; }
.logo__accent { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 100px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(56,189,248,.14), transparent 70%),
    radial-gradient(500px 400px at 90% 40%, rgba(167,139,250,.12), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: .8rem; color: var(--green);
  padding: .4em .9em; border: 1px solid rgba(52,211,153,.3); border-radius: 999px;
  background: rgba(52,211,153,.07);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 36px; }
.hero__stats strong { display: block; font-size: 1.5rem; font-weight: 700; }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #111827; }
.window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.window__bar span:nth-child(2) { background: #f59e0b; }
.window__bar span:nth-child(3) { background: #22c55e; }
.window__bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.window pre { margin: 0; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: #cbd5e1; }
.k { color: #c084fc; } .t { color: #38bdf8; } .s { color: #86efac; } .n { color: #fbbf24; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__tag { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: .6em; }
.section__head { max-width: 640px; margin-bottom: 52px; }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about__body { color: var(--muted); font-size: 1.05rem; }
.about__body strong { color: var(--text); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 6px; font-size: .8rem; font-weight: 700;
  background: rgba(52,211,153,.12); color: var(--green);
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.5); }
.card--featured { border-color: rgba(56,189,248,.45); background: linear-gradient(160deg, rgba(56,189,248,.08), var(--surface) 60%); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.card li::before { content: "→ "; color: var(--accent); font-family: var(--mono); }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.skill__top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill__name { font-weight: 600; }
.skill__yrs { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.bar { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.skill.is-visible .bar span { width: var(--w); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps__n { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(500px 300px at 0% 0%, rgba(56,189,248,.12), transparent 70%), var(--surface);
}
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8em 1em; border-radius: 10px; font: inherit; font-size: .95rem;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { margin: 6px 0 0; }

.whats-float {
  position: fixed; right: 20px; top: 84px; z-index: 40; /* abaixo do menu fixo (68px) e atrás do menu mobile aberto */
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37,211,102,.7);
  transition: transform .15s;
}
.whats-float:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar span { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
}
/* Menu hambúrguer: entra antes dos 720px porque o logo é longo */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; }
  .nav__links .btn { margin-top: 8px; }
}
@media (max-width: 720px) {
  .cards, .skills, .steps { grid-template-columns: 1fr; }
  .contact { padding: 28px 20px; }
  .whats-float { top: 80px; right: 16px; width: 52px; height: 52px; }
  .hero__stats { gap: 24px; }
  .window pre { font-size: .74rem; padding: 16px; }
}
