:root {
  --bg: #05070a;
  --bg-2: #080b10;
  --surface: #10141b;
  --surface-2: #151a23;
  --border: rgba(244, 246, 248, 0.08);
  --border-2: rgba(244, 246, 248, 0.14);
  --text: #f4f6f8;
  --text-2: rgba(244, 246, 248, 0.78);
  --muted: rgba(244, 246, 248, 0.52);
  --subtle: rgba(244, 246, 248, 0.32);
  --accent: #22d3ee;
  --accent-2: #34d399;
  --ok: #34d399;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 14px; color: var(--text-2); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); font-style: normal; }
.muted { color: var(--muted); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* NAV */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 900px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  background: rgba(8, 11, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(244, 246, 248, 0.06);
}
.nav-cta {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 999px;
  white-space: nowrap;
  color: #05070a !important;
  background: linear-gradient(180deg, var(--accent), #14b8c4) !important;
  font-weight: 600 !important;
  flex-shrink: 0;
}
.nav-cta:hover { background: linear-gradient(180deg, var(--accent), #14b8c4) !important; opacity: 0.9; }
.lang-toggle {
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--text-2);
  background: rgba(244, 246, 248, 0.05);
  border: 1px solid var(--border-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  color: var(--text);
  background: rgba(244, 246, 248, 0.1);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.92; }
.btn-primary {
  color: #05070a;
  background: linear-gradient(180deg, var(--accent), #14b8c4);
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.4);
}
.btn-secondary {
  color: var(--text);
  background: rgba(244, 246, 248, 0.05);
  border: 1px solid var(--border-2);
}
.btn-block { width: 100%; margin-top: 22px; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }

/* HERO */
.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
}
.hero-glow-1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -18%; left: -14%;
  opacity: 0.22;
}
.hero-glow-2 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: 20%; right: -12%;
  opacity: 0.18;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-copy,
.hero-panel {
  min-width: 0;
}
.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}
.hero-role {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-2);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-desc {
  max-width: 560px;
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero-desc strong { color: var(--text-2); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* TERMINAL CARD */
.terminal {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  min-width: 0;
  max-width: 100%;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(244, 246, 248, 0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--subtle);
}
.terminal-body {
  padding: 22px 20px;
  font-size: 12.5px;
  line-height: 1.9;
  min-width: 0;
  max-width: 100%;
}
.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
}
.t-muted { color: var(--subtle); }
.t-key { color: #93c5fd; }
.t-str { color: #9be8c8; }
.t-ok { color: var(--accent-2); font-weight: 700; }

/* STATS BAND */
.stats-band {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* SECTIONS */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); }
.section-contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-tag { color: var(--accent); font-size: 12px; letter-spacing: 0.16em; }
.section-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 48px;
}

/* SOBRE */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.lead {
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 22px;
}
.about-copy p { font-size: 16px; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  gap: 12px;
}
.card-row:last-of-type { border-bottom: none; }
.card-row span:first-child {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.card-row span:last-child { font-weight: 500; text-align: right; }

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.stack-card h3 {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  padding: 6px 12px;
  background: rgba(244, 246, 248, 0.04);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.tags-sm span { font-size: 11px; padding: 5px 10px; }

/* CASES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-tag {
  align-self: flex-start;
  padding: 5px 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-card h3 { font-size: 22px; font-weight: 700; }
.case-metric { font-size: 12.5px; }
.case-card p:not(.case-metric) { font-size: 14.5px; flex: 1; }
.case-card strong { color: var(--text); font-weight: 600; }

.case-card a,
.tl-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.15s;
}
.case-card a:hover,
.tl-content a:hover { border-color: var(--accent); }
.case-card a strong,
.tl-content a strong { color: var(--accent); }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border-2);
}
.tl-item {
  position: relative;
  padding-bottom: 52px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 4px;
}
.tl-head h3 { font-size: 21px; font-weight: 700; }
.tl-period { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl-role { font-size: 14.5px; color: var(--accent); font-weight: 500; margin-bottom: 14px; }
.tl-content ul { margin-bottom: 16px; }
.tl-content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.tl-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}
.tl-content strong { color: var(--text); font-weight: 600; }
.tl-content p { font-size: 15px; }

/* EDUCAÇÃO */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.edu-card span { font-size: 11.5px; display: block; margin-bottom: 10px; }
.edu-card h3 { font-size: 17px; margin-bottom: 6px; }
.edu-card p { font-size: 13.5px; margin: 0; }

/* CONTATO */
.contact-box { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-box .section-tag { display: block; margin-bottom: 20px; }
.contact-box .section-sub { margin-left: auto; margin-right: auto; }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.contact-location { font-size: 12.5px; }

/* FOOTER */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; width: 100%; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-inner { padding: 8px 8px 8px 18px; }
  .nav-toggle { display: flex; }
  .nav-cta { padding: 8px 13px; font-size: 12.5px; }
  .lang-toggle { padding: 6px 9px; font-size: 11px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 11, 16, 0.96);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 10px;
    gap: 4px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { text-align: center; }
  .stack-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .nav-cta { padding: 8px 11px; font-size: 12px; }
  .lang-toggle { padding: 6px 8px; font-size: 10.5px; }
  .nav-end { gap: 4px; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 130px; }
  .section { padding: 80px 0; }
  .timeline { padding-left: 24px; }
  .tl-dot { left: -29px; }
}
