/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   TOKENS — mesma paleta do link bio
   ============================================ */
:root {
  --g1: #2d7e4a;
  --g2: #3ba55c;
  --g3: #d1ead9;
  --g4: #f0f9f3;

  --surface: #ffffff;
  --surface-2: #f5faf7;
  --border: rgba(45, 126, 74, 0.12);
  --border-2: rgba(45, 126, 74, 0.28);

  --text-1: #0f1a13;
  --text-2: #56706b;
  --text-3: #8fa89a;

  --code-bg: #0f1a13;
  --code-text: #a8d5b5;
  --code-cmd: #3ba55c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 126, 74, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 126, 74, 0.18);
}

html.dark {
  --g3: rgba(45, 126, 74, 0.2);
  --g4: rgba(45, 126, 74, 0.09);

  --surface: #0e1a11;
  --surface-2: #0a1309;
  --border: rgba(59, 165, 92, 0.15);
  --border-2: rgba(59, 165, 92, 0.3);

  --text-1: #e6f4ec;
  --text-2: #7aab8a;
  --text-3: #4a7a5a;

  --code-bg: #060e08;
  --code-text: #8ecda0;
  --code-cmd: #4fd87a;

  --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(45, 126, 74, 0.2);
}

/* ============================================
   BASE
   ============================================ */
html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--surface-2);
  color: var(--text-1);
  min-height: 100dvh;
  transition: background 0.4s ease, color 0.4s ease;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--g1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-1);
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--g1);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  outline: none;
}

.theme-btn:hover {
  background: var(--g1);
  color: #fff;
  transform: rotate(18deg) scale(1.08);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 56px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--g3);
  border: 1px solid var(--border-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--g1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

html.dark .hero-badge {
  color: var(--g2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-1);
}

.gradient-text {
  background: linear-gradient(130deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   STEPS / TIMELINE
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  opacity: 0;
  transform: translateY(16px);
}

/* marker */
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(45, 126, 74, 0.3);
  z-index: 1;
}

.step-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin: 8px 0;
  min-height: 32px;
}

/* body */
.step-body {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--g4);
  border: 1px solid var(--border);
  color: var(--g1);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-icon {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  border: none;
  box-shadow: 0 3px 12px rgba(45, 126, 74, 0.3);
}

.step-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-top: 2px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.5;
}

.step-note {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ============================================
   PRE-REQUISITOS GRID
   ============================================ */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.req-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.req-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.req-icon {
  font-size: 22px;
  color: var(--g1);
  margin-bottom: 4px;
}

.req-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
}

.req-version {
  font-size: 0.75rem;
  color: var(--text-2);
}

.req-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--g1);
  text-decoration: none;
  margin-top: 6px;
}

.req-link:hover {
  text-decoration: underline;
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  background: var(--g4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}

.info-box i {
  font-size: 18px;
  color: var(--g1);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-box strong {
  color: var(--text-1);
}

.success-box {
  background: rgba(45, 126, 74, 0.07);
  border-color: rgba(45, 126, 74, 0.3);
}

html.dark .success-box {
  background: rgba(45, 126, 74, 0.12);
}

/* ============================================
   DOWNLOAD CARDS
   ============================================ */
.download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.primary-card {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--g4);
  color: var(--g1);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.primary-card .dl-icon {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
}

.dl-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
}

.dl-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-2);
  margin-top: 2px;
}

.badge-rec {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--g3);
  border: 1px solid var(--border-2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--g1);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

html.dark .badge-rec {
  color: var(--g2);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(130deg, var(--g1), var(--g2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(45, 126, 74, 0.35);
  transition: box-shadow 0.25s, transform 0.25s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(45, 126, 74, 0.45);
}

.dl-hint {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================
   CODE BLOCKS
   ============================================ */
.code-block {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.code-block.featured-code {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.code-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 26, 19, 0.95);
  border-bottom: 1px solid rgba(59, 165, 92, 0.1);
}

html.dark .code-topbar {
  background: rgba(6, 14, 8, 0.98);
}

.code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4a7a5a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 165, 92, 0.2);
  background: transparent;
  color: #4a7a5a;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.copy-btn:hover {
  background: rgba(59, 165, 92, 0.12);
  color: var(--code-cmd);
  border-color: rgba(59, 165, 92, 0.4);
}

.copy-btn.copied {
  color: #3ba55c;
  border-color: rgba(59, 165, 92, 0.5);
}

pre {
  background: var(--code-bg);
  padding: 16px 18px;
  overflow-x: auto;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--code-text);
}

.c-cmd {
  color: var(--code-cmd);
  font-weight: 500;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-1);
  box-shadow: 0 1px 0 var(--border-2);
}

.mt-8 {
  margin-top: 8px;
}

/* ============================================
   QR FLOW
   ============================================ */
.qr-flow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 110px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.qr-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--g3);
  border: 1px solid var(--border-2);
  color: var(--g1);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

html.dark .qr-num {
  color: var(--g2);
}

.qr-step p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
}

.qr-step strong {
  color: var(--text-1);
}

.qr-arrow {
  font-size: 18px;
  color: var(--text-3);
  margin-top: 18px;
  flex-shrink: 0;
}

/* ============================================
   FAQ / ERROS COMUNS
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-2);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--g4);
}

.faq-item summary i:first-child {
  font-size: 18px;
  color: var(--g1);
  flex-shrink: 0;
}

.faq-item summary span {
  flex: 1;
}

.faq-arrow {
  font-size: 16px;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 18px 18px;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-body code {
  font-size: 0.82rem;
  background: var(--g4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--g1);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   FOOTER
   ============================================ */
.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.page-footer p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
}

.page-footer span {
  font-size: 0.72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .page {
    padding: 0 16px 56px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .navbar {
    padding: 0 16px;
  }

  .qr-flow {
    flex-direction: column;
  }

  .qr-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .req-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}