:root {
  --green-50: #eaf3de;
  --green-100: #c0dd97;
  --green-400: #639922;
  --green-600: #3b6d11;
  --green-800: #27500a;
  --bg: #f4fdf4;
  --surface: #ffffff;
  --surface-muted: #eef7e9;
  --border: #dfe8d8;
  --text: #2d2d2d;
  --text-muted: #6b7266;
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  min-height: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green-800);
  white-space: nowrap;
}
.brand img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.nav-links a { text-decoration: none; color: var(--text); white-space: nowrap; }
.nav-links a.active { color: var(--green-600); font-weight: 700; }
.nav-links a.muted { color: var(--text-muted); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-800);
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  max-width: 620px;
  margin: 0 auto;
}
.hero .eyebrow {
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: none;
  margin: 0 0 10px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--text);
}
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 24px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn-primary {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
}

/* Verticais */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 20px;
}
.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
}
.vertical-card.active {
  border: 2px solid var(--green-400);
}
.vertical-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 700;
}
.vertical-card .icon { font-size: 1.6rem; }
.vertical-card.active .icon { color: var(--green-600); }
.vertical-card:not(.active) .icon { color: var(--text-muted); }
.vertical-card p.name {
  font-weight: 700;
  font-size: 0.85rem;
  margin: 10px 0 2px;
}
.vertical-card:not(.active) p.name { color: var(--text-muted); }
.vertical-card p.sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Vertical detail */
.vertical-detail {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 48px;
}
.section-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--green-600);
  font-weight: 700;
}
.vertical-detail h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

.stats-bar {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { flex: 1; }
.stat p.label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.stat p.value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.stat p.value.green { color: var(--green-600); }
.stats-divider { width: 1px; height: 32px; background: var(--border); }
.stats-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.feature-card .icon { font-size: 1.4rem; color: var(--green-600); }
.feature-card p.title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 10px 0 4px;
}
.feature-card p.desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Portfolio */
.portfolio { margin-bottom: 48px; }
.portfolio-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.portfolio-head h2 { margin: 0; font-size: 1.4rem; }
.portfolio-head a {
  font-size: 0.85rem;
  color: var(--green-600);
  text-decoration: none;
  font-weight: 700;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* CTA */
.cta {
  background: var(--green-50);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-bottom: 48px;
}
.cta p.title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--green-800);
}
.cta p.sub {
  font-size: 0.85rem;
  color: var(--green-600);
  margin: 0 0 18px;
}

footer {
  background: var(--green-800);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-links a {
  color: white;
  font-size: 1.2rem;
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; }
.footer-legal {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.75;
}
.footer-legal a {
  color: white;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .nav { justify-content: flex-end; }
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    padding: 4px 20px 12px;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .verticals, .features, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { flex-wrap: wrap; }
}

/* Página de projetos */
.page-intro {
  max-width: 620px;
  margin: 40px auto 8px;
  padding: 0 20px;
  text-align: center;
}
.page-intro h1 {
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.page-intro p {
  color: var(--text-muted);
  margin: 0;
}
.project-block {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 4px;
}
.project-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.project-head span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.project-grid {
  display: grid;
  gap: 12px;
}
.project-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.project-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.project-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 700px) {
  .project-grid.count-2, .project-grid.count-3 { grid-template-columns: 1fr 1fr; }
}

/* Página de tecnologia */
.board-photo {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 8px;
}
.board-photo img {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 0 auto;
}
.board-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 12px 0 40px;
}
.tech-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 40px;
}
.tech-section h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}
.tech-section > p.lead {
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 640px;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tech-card .icon {
  font-size: 1.3rem;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.tech-card p.title {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}
.tech-card p.desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 700px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.app-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 460px;
  margin: 0 auto 28px;
}
.app-shot {
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 10px;
}
.app-shot img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.app-shot p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
@media (max-width: 500px) {
  .app-shots { grid-template-columns: 1fr; max-width: 260px; }
}

/* Página sobre */
.article {
  max-width: 640px;
  margin: 0 auto 40px;
}
.article p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 18px;
}
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-muted);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius, 8px);
  margin: 0 auto 28px;
}
.article-head {
  display: flex;
  justify-content: center;
}

/* Bloco de projeto com pitch (ex.: Mini Horta) */
.project-block.featured {
  border-top: none;
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.project-block.featured .project-head span.badge-new {
  background: var(--green-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius, 8px);
  margin-right: 8px;
}
.project-pitch p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 14px;
}
.project-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.project-features li {
  font-size: 0.85rem;
  color: var(--text);
}
.photo-pending {
  background: var(--surface);
  border: 1px dashed var(--border-strong, var(--border));
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  gap: 6px;
}
.photo-pending i { font-size: 1.4rem; }
@media (max-width: 700px) {
  .project-features { grid-template-columns: 1fr; }
}
