:root {
  --bg: #f8f3ea;
  --bg-soft: #fffaf2;
  --text: #173f3a;
  --muted: #66706c;
  --line: rgba(23, 63, 58, 0.14);
  --card: rgba(255, 250, 242, 0.78);
  --primary: #174f48;
  --primary-dark: #123d38;
  --accent: #d79a4a;
  --terracotta: #b76449;
  --terracotta-dark: #914832;
  --terracotta-soft: rgba(183, 100, 73, 0.14);
  --terracotta-line: rgba(183, 100, 73, 0.28);
  --danger-soft: #d7644a;
  --shadow: 0 20px 50px rgba(23, 63, 58, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 79, 72, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 243, 234, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 63, 58, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(23, 63, 58, 0.14);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(23, 63, 58, 0.72);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav > a,
.nav-item > a {
  padding: 10px 0;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 230px;
  padding: 10px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: 160ms ease;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(23, 63, 58, 0.76);
  white-space: nowrap;
}

.dropdown a:hover {
  background: rgba(23, 79, 72, 0.08);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-cta,
.btn,
.card-link,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: 160ms ease;
}

.header-cta {
  padding: 12px 22px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(23, 63, 58, 0.18);
}

.header-cta:hover,
.btn-primary:hover,
.social-links a:hover,
.card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(23, 63, 58, 0.18);
}

.section {
  padding: 76px 0;
}

.hero {
  padding-top: 88px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(23, 63, 58, 0.74);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 660px;
  font-size: clamp(3.2rem, 7.4vw, 7.4rem);
}

h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.4rem);
}

h3 {
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtitle,
.section-heading p,
.experiments-grid p,
.about-copy p,
.contact-box p,
.project-card p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-secondary {
  color: var(--primary);
  background: rgba(255, 250, 242, 0.7);
  border-color: var(--line);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(460px, 100%);
  padding: 30px;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid rgba(23, 63, 58, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: min(320px, 90%);
  margin: 0 auto;
}

.hero-card-caption {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card-caption strong {
  color: var(--primary);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 680px;
  margin: 18px 0 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(23, 63, 58, 0.06);
}

.featured-card {
  background:
    linear-gradient(145deg, rgba(23, 79, 72, 0.96), rgba(35, 106, 96, 0.92));
  color: #fff;
  border-top-color: var(--terracotta);
}

.featured-card h3,
.featured-card p {
  color: #fff;
}

.status-pill {
  align-self: flex-start;
  margin-bottom: 28px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

.featured-card .status-pill {
  color: var(--terracotta-dark);
  background: #f4e5dc;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.project-card p {
  margin: 16px 0 22px;
}

.card-link {
  width: fit-content;
  margin-top: auto;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary);
  font-size: 0.92rem;
}

.featured-card .card-link {
  color: var(--primary);
  background: #fff;
}

.muted-link {
  color: var(--primary);
  background: #fff;
}

.soon-link {
  cursor: default;
  pointer-events: none;
}

.featured-card .soon-link {
  color: #fff;
  background: var(--terracotta);
  box-shadow: none;
}

.soon-link:hover {
  transform: none;
  box-shadow: none;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.mini-links span {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: rgba(23, 63, 58, 0.78);
  background: rgba(23, 63, 58, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.experiments-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 80px;
  align-items: center;
}

.experiments-grid p {
  max-width: 560px;
  margin: 20px 0 0;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-cloud a {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: rgba(23, 63, 58, 0.08);
  border: 1px solid rgba(23, 63, 58, 0.12);
  font-weight: 850;
}

.topic-cloud a:hover {
  background: rgba(23, 63, 58, 0.13);
}

.about-section {
  padding-top: 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  padding: 48px;
  background: rgba(255, 250, 242, 0.55);
  border-radius: var(--radius-lg);
}

.about-image img {
  width: min(360px, 100%);
  margin: 0 auto;
}

.about-copy p {
  max-width: 650px;
  margin: 20px 0 0;
}

.contact-section {
  padding-top: 68px;
}

.contact-box {
  text-align: center;
}

.contact-box p {
  max-width: 680px;
  margin: 18px auto 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  min-height: 42px;
  padding: 0 17px;
  color: var(--primary);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
}

.social-links a:first-child {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.site-footer {
  padding: 34px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(23, 63, 58, 0.58);
  font-size: 0.95rem;
}

#projetos,
#publicacoes,
#sobre,
#contato,
#laboratorio-dados,
#biblia-grafos,
#detalhe-biblia-grafos,
#automacoes-aplicacoes,
#dashboards {
  scroll-margin-top: 105px;
}

.topic-cloud a:hover,
.social-links a:hover,
.btn-secondary:hover {
  border-color: var(--terracotta-line);
}

.project-card:hover {
  border-top-color: var(--terracotta-line);
}

.discover-link {
  color: #fff;
  background: var(--terracotta);
}

.discover-link:hover {
  background: var(--terracotta-dark);
}

.project-detail-section {
  padding-top: 42px;
  padding-bottom: 64px;
}

.project-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  padding: 48px;
  background: rgba(255, 250, 242, 0.58);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgba(23, 63, 58, 0.05);
}

.project-detail-card h2 {
  margin-top: 16px;
}

.detail-status {
  margin-bottom: 0;
}

.project-detail-copy p {
  max-width: 660px;
  margin: 0 0 18px;
  color: var(--muted);
}

.btn-soon {
  margin-top: 8px;
  color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  border: 1px solid var(--terracotta-line);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 980px) {
  .project-detail-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 24px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    padding: 10px 16px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid,
  .experiments-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    padding: 34px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions,
  .social-links {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .social-links a {
    width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .hero-card {
    padding: 22px;
  }

  .hero-card-caption,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-cloud a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Bloco 10A — Ícones sociais monocromáticos */
.social-icon-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon-links {
  align-items: center;
}

.social-links {
  justify-content: center;
}

.social-icon-link,
.social-links .social-icon-link,
.social-links .social-icon-link:first-child {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(23, 63, 58, 0.05);
}

.social-icon-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.social-icon-link:hover,
.social-links .social-icon-link:hover {
  transform: translateY(-2px);
  background: var(--terracotta-soft);
  border-color: var(--terracotta-line);
  box-shadow: 0 18px 34px rgba(23, 63, 58, 0.12);
}

@media (max-width: 640px) {
  .social-icon-links,
  .social-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .social-icon-link,
  .social-links .social-icon-link,
  .social-links .social-icon-link:first-child {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }
}

/* Bloco 10B — Refinamento dos ícones sociais */
.experiments-section .experiments-grid {
  grid-template-columns: minmax(0, 780px);
  gap: 0;
}

.contact-section .social-links {
  margin-top: 26px;
  gap: 22px;
}

.contact-section .social-icon-link,
.contact-section .social-links .social-icon-link,
.contact-section .social-links .social-icon-link:first-child {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-section .social-icon-link img {
  width: 28px;
  height: 28px;
}

.contact-section .social-icon-link:hover,
.contact-section .social-links .social-icon-link:hover {
  transform: translateY(-2px);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.78;
}

@media (max-width: 640px) {
  .contact-section .social-links {
    gap: 18px;
  }

  .contact-section .social-icon-link,
  .contact-section .social-links .social-icon-link,
  .contact-section .social-links .social-icon-link:first-child {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* Bloco 11A — Ajustes finos mobile */
@media (max-width: 640px) {
  #projetos,
  #publicacoes,
  #sobre,
  #contato,
  #laboratorio-dados,
  #biblia-grafos,
  #detalhe-biblia-grafos,
  #automacoes-aplicacoes,
  #dashboards {
    scroll-margin-top: 132px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(2.75rem, 13.4vw, 4.35rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2.05rem, 9.8vw, 3.05rem);
    line-height: 1;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .project-card {
    padding: 30px 26px;
  }

  .project-detail-section {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .project-detail-card {
    padding: 34px 24px;
    gap: 28px;
  }

  .about-section {
    padding-top: 46px;
  }

  .about-grid {
    padding: 28px 22px;
    gap: 28px;
  }

  .about-image img {
    width: min(300px, 100%);
  }

  .about-copy p {
    margin-top: 16px;
  }

  .contact-section {
    padding-top: 50px;
  }

  .contact-box p {
    margin-top: 14px;
  }

  .site-footer {
    padding-top: 26px;
    padding-bottom: 34px;
  }
}
