:root {
  --bg-base: #0a0f18;
  --panel: rgba(255,255,255,0.03);
  --panel-border: rgba(255,255,255,0.08);
  --text: #e8eef5;
  --mute: #9fb0c2;
  --dim: #5d7085;
  --accent: #6cc7ff;
  --accent-2: #ffb347;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  background-color: var(--bg-base);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg-base); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Fundo Gradiente Fluido (Leve e Elegante) ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Gradiente diagonal suave que se move lentamente */
  background: linear-gradient(
    -45deg,
    #0a0f18 0%,
    #0f1622 25%,
    #0d1a26 50%,
    #0a0f18 75%,
    #111b26 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite;
  will-change: background-position;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Adiciona uma textura de ruído sutil para dar profundidade sem peso */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Header ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,15,24,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--panel-border); background: rgba(10,15,24,0.9); }
.brand { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--text); }
.brand span { color: var(--accent); }
.menu { display: flex; gap: 32px; }
.menu a { font-size: 13.5px; color: var(--mute); transition: color .2s; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.menu a:hover { color: var(--text); }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a.active { color: var(--accent); }

/* ── Layout Base ── */
main { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.block { padding: 100px 0 60px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; display: block; margin-bottom: 16px; }
.block h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.lead { color: var(--mute); font-size: 18px; max-width: 620px; line-height: 1.6; }
.lead strong { color: var(--text); font-weight: 500; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  font-family: var(--mono); font-size: 13px; border: 1px solid var(--panel-border);
  color: var(--text); border-radius: 6px; background: var(--panel);
  transition: all .2s var(--ease); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--bg-base); border-color: var(--accent); font-weight: 500; }
.btn.primary:hover { background: #9bdaff; color: var(--bg-base); box-shadow: 0 4px 16px rgba(108,199,255,0.2); }

/* ── Hero ── */
.hero { padding: 160px 0 60px; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px;
  color: var(--mute); padding: 8px 16px; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 100px; margin-bottom: 32px; width: fit-content;
}
.dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 12px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(56px, 11vw, 128px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #9fb0c2 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .role { font-size: 19px; color: var(--accent); font-weight: 500; margin-bottom: 20px; }
.hero .lead { margin-bottom: 36px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Sobre ── */
.grid.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.prose { font-size: 16.5px; color: var(--mute); }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 500; }
.cards { display: flex; flex-direction: column; gap: 14px; }
.card { padding: 22px 24px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; transition: all .2s var(--ease); }
.card:hover { border-color: rgba(108,199,255,0.3); transform: translateX(4px); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--mute); }

/* ── Tabs / Playbooks ── */
.tabs { display: flex; gap: 4px; margin: 40px 0 32px; padding: 6px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; width: fit-content; }
.tab { font-family: inherit; font-size: 14px; font-weight: 500; color: var(--mute); padding: 10px 20px; background: none; border: none; border-radius: 6px; cursor: pointer; transition: all .2s var(--ease); }
.tab:hover { color: var(--text); }
.tab.active { background: rgba(108,199,255,0.12); color: var(--accent); }
.panel { display: none; animation: fadeIn .3s var(--ease); }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.steps li b {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent);
  width: 32px; height: 32px; border: 1px solid rgba(108,199,255,0.3); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-base); transition: all .2s var(--ease);
}
.steps li:hover b { background: rgba(108,199,255,0.1); border-color: var(--accent); transform: scale(1.05); }
.steps h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 14.5px; color: var(--mute); }
.panel-side { display: flex; flex-direction: column; gap: 14px; }
.side-box { padding: 20px 22px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; }
.side-box h5 { font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: .02em; }
.side-box p { font-size: 14px; color: var(--mute); }
.side-box.warn { border-left: 2px solid var(--accent-2); }
.side-box.warn h5 { color: var(--accent-2); }

/* ── DFIR ── */
.flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; margin: 40px 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 22px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); z-index: 0; }
.flow-item { position: relative; padding: 54px 10px 0; z-index: 1; }
.flow-item span {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--bg-base); border: 1px solid rgba(108,199,255,0.3); border-radius: 50%;
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.flow-item:hover span { background: rgba(108,199,255,0.1); border-color: var(--accent); box-shadow: 0 0 20px rgba(108,199,255,0.3); }
.flow-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.flow-item p { font-size: 13.5px; color: var(--mute); }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin: 48px 0; }
.evid-card {
  background: linear-gradient(135deg, #e8eef5 0%, #c9d4e0 100%); color: #0f1622;
  padding: 40px 28px 28px; border-radius: 10px; transform: rotate(-1.5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); position: relative;
}
.evid-card::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--bg-base); border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.evid-label { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; color: #2c3e50; }
.evid-card ul { list-style: none; }
.evid-card li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed rgba(0,0,0,0.2); font-size: 14px; }
.evid-card li span { font-family: var(--mono); font-size: 11px; color: #5d7085; text-transform: uppercase; padding-top: 3px; }
.evid-card li em { font-style: normal; font-weight: 500; }
.sign { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.3); font-family: var(--mono); font-size: 11px; color: #5d7085; }

.timeline-card { padding: 24px 28px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; }
.tl-head { font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.tl-head span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.timeline { list-style: none; position: relative; padding-left: 90px; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px; width: 1px; background: var(--panel-border); }
.timeline li { display: grid; grid-template-columns: 1fr; position: relative; padding: 10px 0; }
.timeline li::before { content: ""; position: absolute; left: -90px; top: 14px; width: 9px; height: 9px; border: 1px solid var(--accent); background: var(--bg-base); border-radius: 50%; transition: all .2s var(--ease); }
.timeline li:last-child::before { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.timeline li:hover::before { transform: scale(1.4); }
.timeline time { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.timeline b { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.timeline span { font-family: var(--mono); font-size: 11px; color: var(--dim); display: block; margin-top: 2px; }
.tl-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--panel-border); font-size: 13.5px; color: var(--mute); }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.skills h5 { font-size: 13px; font-family: var(--mono); color: var(--mute); margin-bottom: 12px; letter-spacing: .05em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border: 1px solid rgba(108,199,255,0.3); border-radius: 4px; color: var(--text); transition: all .2s var(--ease); }
.chips span:hover { background: rgba(108,199,255,0.1); border-color: var(--accent); }
.chips.study span { border-style: dashed; border-color: var(--dim); color: var(--mute); }

/* ── Projetos ── */
.projects { display: grid; gap: 20px; margin: 40px 0; }
.project { display: block; padding: 28px 32px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; position: relative; overflow: hidden; transition: all .3s var(--ease); }
.project::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), transparent); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.project:hover { border-color: rgba(108,199,255,0.25); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.project:hover::before { transform: scaleY(1); }
.project-tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); padding: 4px 10px; border: 1px solid rgba(108,199,255,0.3); border-radius: 4px; margin-bottom: 14px; letter-spacing: .08em; text-transform: uppercase; }
.project h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.project p { font-size: 15px; color: var(--mute); max-width: 800px; margin-bottom: 18px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; background: rgba(108,199,255,0.08); border-radius: 4px; color: var(--mute); }

.offensive { padding: 28px 32px; border: 1px dashed var(--panel-border); border-radius: 12px; margin-top: 28px; }
.offensive h4 { font-size: 14px; font-family: var(--mono); color: var(--mute); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.offensive p { color: var(--mute); font-size: 14.5px; margin-bottom: 16px; }
.offensive ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.offensive a { font-size: 15px; color: var(--mute); transition: color .2s; }
.offensive a:hover { color: var(--accent); }
.offensive b { color: var(--text); font-weight: 600; margin-right: 8px; }

/* ── Experiência ── */
.exp-list { display: flex; flex-direction: column; gap: 4px; margin: 40px 0 56px; }
.exp { padding: 28px 0; border-top: 1px solid var(--panel-border); display: grid; grid-template-columns: 180px 1fr; gap: 24px; transition: padding .2s var(--ease); }
.exp:hover { padding-left: 12px; }
.exp:last-child { border-bottom: 1px solid var(--panel-border); }
.exp-date { font-family: var(--mono); font-size: 12.5px; color: var(--accent); padding-top: 2px; }
.exp h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.exp-company { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.exp p { font-size: 14.5px; color: var(--mute); max-width: 680px; }

.edu-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.edu-grid h4 { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.edu-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.edu-list span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.edu-list b { font-size: 15px; font-weight: 500; display: block; margin-bottom: 2px; }
.edu-list em { font-style: normal; font-size: 13.5px; color: var(--mute); }

/* ── Contato ── */
#contato { text-align: left; }
#contato .lead { margin: 24px 0 36px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ─ */
footer { max-width: 1100px; margin: 80px auto 0; padding: 32px 40px; border-top: 1px solid var(--panel-border); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ─ Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsivo ── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .menu { gap: 18px; }
  main { padding: 0 24px; }
  .block { padding: 80px 0 50px; }
  .grid.about, .panel-grid, .two-col, .skills, .edu-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 24px; }
  .flow::before { display: none; }
  .exp { grid-template-columns: 1fr; gap: 8px; }
  .exp-date { padding-top: 0; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .hero { padding: 120px 0 50px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex-shrink: 0; padding: 8px 14px; font-size: 13px; }
  .flow { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .flow-item { padding: 0 0 0 54px; }
  .flow-item span { top: -4px; left: 0; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .bg { animation: none; }
}
