/* Dracos — estilos do site. Tokens no :root; troque --accent para mudar a cor de destaque. */
:root {
  --bg: #0E1116;
  --bg-alt: #11151B;
  --bg-footer: #0B0E12;
  --surface: #161B22;
  --surface-2: #1E2A38;
  --line: #222A35;
  --line-2: #263040;
  --line-3: #334155;
  --text: #E8EAED;
  --text-2: #C5CBD3;
  --muted: #AEB6C0;
  --muted-2: #9AA3AE;
  --accent: #7DD3FC;
  --accent-hover: #BAE6FD;
  --on-accent: #0B1220;
  --warn: #FBBF24;
  --radius: 14px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--accent); color: var(--on-accent); border-radius: 8px; font-weight: 600; z-index: 10; }
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand svg { color: var(--accent); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted-2); color: var(--text); background: var(--surface); }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(64px, 10vw, 112px) clamp(56px, 8vw, 96px); }
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); letter-spacing: .04em; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6.5vw, 80px); line-height: 1.05; letter-spacing: -.03em; max-width: 920px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.hero .actions { padding-top: 8px; }

/* Sections */
.band { border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
.section { padding-block: clamp(64px, 8vw, 96px); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }

/* Projects */
.projects { display: flex; flex-wrap: wrap; gap: 20px; }
.card { min-width: 0; border-radius: 16px; padding: clamp(24px, 4vw, 36px); }
.card-featured { flex: 2 1 600px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; background: var(--surface); border: 1px solid var(--line-2); }
.card-body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card-tool { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.card-tool .actions { margin-top: auto; }
.card-soon { flex: 1 1 280px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border: 1px dashed var(--line-3); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head h3 { font-size: 28px; line-height: 1.1; }
.app-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.app-desc { color: var(--text-2); font-size: 17px; }
.app-visual, .app-shot { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; }
.app-shot { display: block; height: auto; max-width: 100%; }
.app-visual { background: var(--bg); padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 2; color: var(--muted-2); }
.commit { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commit.indent { padding-left: 22px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dot-ring { background: transparent; border: 2px solid var(--warn); }
.branch { color: var(--text); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pillars { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pillars li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.pillars .mono { font-size: 14px; padding-top: 2px; }
.pillars h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.pillars p { font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-footer); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px 24px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.copyright { padding-bottom: 32px; color: var(--muted-2); }

@media (max-width: 480px) {
  .about-text, .pillars, .card-body, .app-visual, .card-soon, .card-tool { flex-basis: 100%; }
}
