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

:root {
  --green: #009c3b;
  --green-light: #00b845;
  --green-bg: #f0faf3;
  --yellow: #ffdf00;
  --yellow-bg: #fffde6;
  --blue: #002776;
  --blue-light: #003da5;
  --bg: #ffffff;
  --bg-soft: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;
  --border-light: #f1f5f0;
  --gradient: linear-gradient(135deg, var(--green), var(--blue));
  --gradient-flag: linear-gradient(135deg, var(--green), var(--yellow), var(--blue));
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.logo-flag {
  display: flex;
  gap: 3px;
  align-items: center;
}

.flag-green, .flag-yellow, .flag-blue {
  width: 6px;
  height: 18px;
  border-radius: 3px;
}

.flag-green { background: var(--green); }
.flag-yellow { background: var(--yellow); }
.flag-blue { background: var(--blue); }

.logo-highlight {
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 156, 59, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-nav {
  background: var(--text);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--blue);
  color: white;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0, 156, 59, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Brazil diamond illustration */
.hero-illustration {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brazil-diamond {
  width: 280px;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brazil-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  border-radius: 16px;
  transform: rotate(45deg);
  opacity: 0.08;
}

.diamond-inner {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 12px;
  transform: rotate(45deg);
  opacity: 0.2;
}

.diamond-circle {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 39, 118, 0.2);
}

.diamond-circle span {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: monospace;
}

.hero-flag-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 156, 59, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 39, 118, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 223, 0, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* === Section Shared === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0, 156, 59, 0.15);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

/* === Projects === */
.projects {
  padding: 100px 0;
}

.project-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 156, 59, 0.2);
}

.project-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.project-icon-mailer {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

.project-icon-cmdb {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.project-info {
  flex: 1;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-bg);
  color: var(--green);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.feature svg {
  color: var(--green);
  flex-shrink: 0;
}

.project-actions {
  display: flex;
  gap: 12px;
}

/* === CTA === */
.cta {
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-flag {
  display: flex;
  gap: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.cta-flag-stripe {
  flex: 1;
  height: 100%;
}

.green-stripe { background: var(--green); }
.yellow-stripe { background: var(--yellow); }
.blue-stripe { background: var(--blue); }

.cta-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-illustration {
    display: none;
  }

  .project-card {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-content {
    padding: 36px 24px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .brazil-diamond {
    width: 200px;
    height: 200px;
  }

  .diamond-inner {
    width: 140px;
    height: 140px;
  }

  .diamond-circle {
    width: 72px;
    height: 72px;
  }
}
