/* ═══════════════════════════════════════════════════════════════════
   Nyoze — Consistency from start to finish.
   Framework: pollauf/nyoze
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #fafaf9;
  --bg-alt:        #f5f4f1;
  --surface:       #ffffff;
  --text:          #2c2c2b;
  --text-soft:     #5c5a56;
  --text-muted:    #9c9891;
  --border:        #e8e6e1;
  --border-soft:   #f0eeea;
  --accent:        #2a7c6f;
  --accent-soft:   #e6f3f0;
  --accent-hover:  #1f5f55;
  --coffee:        #c4956a;
  --coffee-bg:     #faf6f2;
  --coffee-border: #e8ddd2;
  --coffee-hover:  #b07f55;
  --code-bg:       #1a1a1a;
  --code-border:   #262626;
  --code-text:     #c5c5c0;
  --sans:          'Inter', system-ui, -apple-system, sans-serif;
  --mono:          'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
}

/* ── Typography ── */

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: 1.0625rem; }

p {
  color: var(--text-soft);
  max-width: 40rem;
}

.section-header {
  max-width: 520px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header p { margin: 0.625rem auto 0; }

/* ── Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

/* ── Language Switcher ── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.125rem;
  background: var(--bg-alt);
}

.lang-switcher a {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switcher a:hover {
  color: var(--text);
}

.lang-switcher a.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
  }

  .site-nav.open { display: flex; }
  .site-nav a { font-size: 0.9375rem; padding: 0.375rem 0; }
  .lang-switcher { align-self: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 124, 111, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-coffee {
  background: var(--coffee-bg);
  color: var(--coffee);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--coffee-border);
  border-radius: 20px;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.btn-coffee:hover {
  background: #f5ede4;
  color: var(--coffee-hover);
  border-color: var(--coffee-hover);
  transform: translateY(-1px);
}

.btn-coffee svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--coffee);
}

.btn-coffee:hover svg {
  stroke: var(--coffee-hover);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 0.9375rem 1.75rem;
    font-size: 0.9375rem;
  }
  .btn-coffee { width: auto; align-self: center; }
  .btn-group { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  padding: 5.5rem 0 4.5rem;
  min-height: min(80vh, 680px);
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 500px; }

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
  max-width: 440px;
}

.hero-slogan {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.hero-code {
  position: relative;
  min-width: 0;
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    min-height: auto;
    padding: 3.5rem 0 2.5rem;
  }
  .hero-content { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   CODE BLOCKS
   ═══════════════════════════════════════════════════════════════════ */

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.code-block pre {
  margin: 0;
  padding: 1.375rem 1.5rem;
  overflow-x: auto;
  font-size: 0.7875rem;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.code-block pre code {
  font-family: var(--mono);
  color: var(--code-text);
  display: block;
  white-space: pre;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5625rem 1rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--code-border);
}

.code-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.code-filename {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.22);
}

.syn-kw   { color: #c792ea; }
.syn-type { color: #ffcb6b; }
.syn-str  { color: #c3e88d; }
.syn-fn   { color: #82aaff; }
.syn-var  { color: #f07178; }
.syn-cmt  { color: #546e7a; font-style: italic; }
.syn-op   { color: #89ddff; }
.syn-br   { color: #a6accd; }

.hero-code .code-block {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.05);
}

code:not(pre code) {
  background: var(--bg-alt);
  color: var(--text);
  padding: 0.125rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: var(--mono);
  border: 1px solid var(--border-soft);
}

@media (max-width: 768px) {
  .code-block pre {
    padding: 1rem 0.875rem;
    font-size: 0.6875rem;
    line-height: 1.65;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CONSISTÊNCIA ORGANIZA
   ═══════════════════════════════════════════════════════════════════ */

.concept-section { background: var(--surface); }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.concept-item {
  background: var(--surface);
  padding: 1.75rem;
}

.concept-item .num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.concept-item h3 { margin-bottom: 0.375rem; }

.concept-item p {
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .concept-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   SIMPLICIDADE SUSTENTA
   ═══════════════════════════════════════════════════════════════════ */

.simplicity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.simplicity-card {
  padding: 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color 0.3s ease;
}

.simplicity-card:hover { border-color: var(--border); }
.simplicity-card h3 { margin-bottom: 0.375rem; }

.simplicity-card p {
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .simplicity-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   COMO FUNCIONA
   ═══════════════════════════════════════════════════════════════════ */

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.how-step:nth-child(even) { direction: rtl; }
.how-step:nth-child(even) > * { direction: ltr; }

.step-content { padding-top: 0.25rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  margin-bottom: 0.75rem;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .how-step,
  .how-step:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BENEFÍCIOS
   ═══════════════════════════════════════════════════════════════════ */

.benefits { background: var(--surface); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-item {
  padding: 1.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.benefit-item:hover { border-color: var(--border-soft); }

.benefit-item h3 {
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefit-dash {
  width: 14px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.benefit-item p {
  font-size: 0.875rem;
  line-height: 1.55;
  padding-left: calc(14px + 0.5rem);
}

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item { padding: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   APOIE O PROJETO
   ═══════════════════════════════════════════════════════════════════ */

.support-section { text-align: center; }

.support-box {
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--coffee-border);
  border-radius: 14px;
  background: var(--coffee-bg);
}

.support-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--coffee);
}

.support-box p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--text-soft);
}

.btn-coffee-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sans);
  background: var(--coffee);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.btn-coffee-lg:hover {
  background: var(--coffee-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 149, 106, 0.25);
}

.btn-coffee-lg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════════════ */

.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 0.625rem; }
.cta-final > .container > p { margin: 0 auto 1.75rem; }

.cta-install { margin-top: 1.75rem; }

.cta-install .code-block {
  display: inline-block;
  max-width: 100%;
}

.cta-install .code-block pre {
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.75rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-footer .container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--accent-soft); color: var(--accent-hover); }
