/* ===================================================
   GOLBERY.BUILD — design tokens
   Conceito: planta de arquitetura (blueprint) + terminal de build
   =================================================== */
:root{
  --bg: #0F1A2E;
  --bg-alt: #101d33;
  --card: #16233D;
  --card-border: #26385A;
  --grid-line: rgba(122, 162, 255, 0.07);
  --text: #E7ECF5;
  --text-muted: #93A4C4;
  --accent: #E2A65A;
  --accent-strong: #F0B96E;
  --accent-soft: rgba(226, 166, 90, 0.14);
  --mint: #6FCF97;
  --font-display: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 6px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.6;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a{ color: inherit; text-decoration: none; }

.accent{ color: var(--accent); }

/* ============ NAV ============ */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 26, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-brand .dot{ color: var(--accent); }
.cursor{
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.nav-links{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  align-items: center;
}
.nav-links a{ color: var(--text-muted); transition: color .15s; }
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--accent); }
.nav-cta{
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 6px 12px !important;
  color: var(--accent) !important;
}
.nav-cta:hover{ background: var(--accent-soft); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--text);
}

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.blueprint-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 40%, transparent 85%);
}
.hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 24px 80px;
}
.eyebrow{
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.hero-text h1{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero-sub{
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-sub strong{ color: var(--text); }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.btn{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-accent{
  background: var(--accent);
  color: #12101B;
  font-weight: 700;
}
.btn-accent:hover{ background: var(--accent-strong); color: #12101B; }
.btn-outline{
  border-color: var(--card-border);
  color: var(--text);
}
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }

/* Terminal */
.terminal{
  background: #0B1424;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.terminal-bar{
  background: #101B30;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--card-border);
}
.tdot{ width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tdot.r{ background: #FF6058; }
.tdot.y{ background: #FFBD2E; }
.tdot.g{ background: #27C93F; }
.terminal-title{
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body{
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 20px;
  min-height: 220px;
  white-space: pre-wrap;
  line-height: 1.65;
}
.terminal-body .line-success{ color: var(--mint); }
.terminal-body .line-cmd{ color: var(--accent); }
.terminal-body .line-muted{ color: var(--text-muted); }

/* ============ SECTIONS ============ */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }
.section-label{
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 40px;
  max-width: 22ch;
}
.section-note{
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Sobre */
.about-grid{
  display: grid;
  grid-template-columns: auto 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo-wrap{
  position: relative;
  width: 168px;
}
.about-photo{
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  display: block;
}
.about-photo-wrap::before,
.about-photo-wrap::after{
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  border-style: solid;
}
.about-photo-wrap::before{
  top: -8px; left: -8px;
  border-width: 2px 0 0 2px;
}
.about-photo-wrap::after{
  bottom: -8px; right: -8px;
  border-width: 0 2px 2px 0;
}
.about-text{ font-size: 1.05rem; color: var(--text-muted); }
.about-facts{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-facts li{
  font-size: 0.98rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.fact-num{
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}

/* Stack */
.stack-group{ margin-bottom: 32px; }
.stack-group h3{
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.chip-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.chip{
  font-family: var(--font-display);
  font-size: 0.82rem;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
}

/* Projetos */
.project-card{
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  transition: border-color .15s, transform .15s;
}
.project-card:hover{
  border-color: var(--accent);
  transform: translateY(-4px);
}
.project-icon{ font-size: 1.6rem; }
.project-card h3{
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 12px 0 8px;
}
.project-card p{
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
}
.project-link{
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--accent);
}
.project-lang{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* Prêmios */
.awards{ display: flex; flex-direction: column; gap: 28px; }
.award{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 28px;
}
.award:last-child{ border-bottom: none; }
.medal{ font-size: 1.8rem; line-height: 1; }
.award h3{
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}
.award-org{ color: var(--text-muted); font-weight: 400; }
.award p{ color: var(--text-muted); margin: 0 0 8px; font-size: 0.95rem; }
.award a{ color: var(--accent); font-family: var(--font-display); font-size: 0.82rem; }

/* Contato */
.contact{ text-align: center; }
.contact .section-title{ max-width: none; margin-left: auto; margin-right: auto; }
.contact-sub{ color: var(--text-muted); margin-bottom: 32px; }
.contact-links{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Footer */
.site-footer{
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  border-top: 1px solid var(--card-border);
}

/* Focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .cursor{ animation: none; }
  .btn:hover, .project-card:hover{ transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding-top: 24px; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo-wrap{ width: 120px; }
  .about-photo{ width: 120px; height: 120px; }
}

@media (max-width: 720px){
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: flex; }
}