:root {
  --bg: #09080C;
  --bg-2: #0E0C13;
  --surface: #131118;
  --line: #2A2633;
  --deep: #2A1650;
  --art-2: #1A1426;
  --art-3: #16121F;
  --text: #EDEAF2;
  --muted: #A39DB0;
  --soft: #CFC6E6;
  --lilac: #CDBBFF;
  --accent: #9B6DFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Space Grotesk', sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p, h1, h2, h3, ul, pre { margin: 0; }
img { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.section { padding-top: 110px; padding-bottom: 110px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: Anton, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.accent { color: var(--accent); }
.label { font-size: 13px; color: var(--accent); }
.label.light { color: var(--lilac); }
.h2 { font-size: clamp(52px, 6vw, 88px); line-height: .9; margin-top: 14px; }
.bordered { border-top: 1px solid var(--line); }

.btn { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; padding: 17px 26px; }
.btn--lg { font-size: 16px; padding: 19px 32px; margin-top: 36px; }
.btn-ghost { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; padding: 17px 24px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); }
.nav__inner { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { font-size: 16px; font-weight: 600; }
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }

/* hero */
.hero { background: radial-gradient(ellipse at 80% 30%, var(--deep) 0%, rgba(42,22,80,0) 60%); }
.hero__grid { padding-top: 110px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(64px, 9vw, 132px); line-height: .86; margin-top: 18px; }
.hero__text { font-size: 22px; line-height: 1.5; margin-top: 26px; max-width: 480px; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.term { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #3A3446; }
.dot.on { background: var(--accent); }
.term__file { font-size: 12px; color: var(--muted); margin-left: 10px; }
.term__code { padding: 26px 26px 30px; font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-x: auto; }
.str { color: var(--lilac); }
.term__lizard { height: 70px; width: auto; margin: 0 26px 22px auto; transform: rotate(-12deg); }

/* sobre */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; }
.about__lead { font-size: 19px; line-height: 1.7; text-wrap: pretty; }
.about__text { font-size: 17px; line-height: 1.7; margin-top: 18px; color: var(--muted); text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.stat { border: 1px solid var(--line); padding: 18px; }
.stat__n { font-size: 40px; color: var(--accent); }
.stat__l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* stack */
.stack { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 44px; }
.box { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); }

/* projetos */
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head > a { font-size: 14px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 44px; }
.proj { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s; }
.proj:hover { border-color: var(--accent); }
.proj__art { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.proj__art.a1 { background: var(--deep); }
.proj__art.a2 { background: var(--art-2); }
.proj__art.a3 { background: var(--art-3); }
.ph { font-size: 12px; color: var(--muted); }
.proj__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.proj__title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.proj__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--accent); margin-top: 4px; }
.proj__links { display: flex; gap: 20px; margin-top: auto; padding-top: 12px; font-size: 13px; }

/* experiência */
.exp__title { margin-bottom: 44px; }
.exp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.exp.last { border-bottom: 1px solid var(--line); }
.exp__when { font-size: 14px; color: var(--muted); }
.exp__what { grid-column: span 2; }
.exp__what h3 { font-size: 22px; font-weight: 700; }
.exp__what p { font-size: 16px; line-height: 1.6; margin-top: 8px; color: var(--muted); }

/* contato */
.contact { background: var(--deep); border-top: 1px solid var(--line); }
.contact__inner { padding-top: 130px; padding-bottom: 130px; text-align: center; }
.contact__title { font-size: clamp(64px, 9vw, 140px); line-height: .88; margin-top: 18px; }
.contact__text { font-size: 18px; line-height: 1.6; margin: 24px auto 0; max-width: 480px; color: var(--soft); }
.contact__links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; }

/* rodapé */
.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero__grid { padding-top: 64px; padding-bottom: 80px; }
  .nav__links { gap: 14px; font-size: 12px; }
  .exp__what { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .term__code { font-size: 13px; }
}
