* {
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --surface: rgba(21, 26, 37, 0.86);
  --surface-strong: #151a25;
  --card: #171d2a;
  --card-alt: #1d2433;
  --text: #eef2ff;
  --muted: #aeb8d6;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #63a8ff;
  --accent-2: #ffd166;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --hero-grad: radial-gradient(circle at top, rgba(99, 168, 255, 0.18), transparent 38%), linear-gradient(180deg, rgba(14,17,25,0.95), rgba(10,12,18,0.98));
}

html[data-theme="light"] {
  --bg: #eef3fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --card: #ffffff;
  --card-alt: #f6f8fd;
  --text: #172033;
  --muted: #55607a;
  --border: rgba(23, 32, 51, 0.12);
  --accent: #2563eb;
  --accent-2: #d97706;
  --shadow: 0 18px 40px rgba(34, 56, 98, 0.12);
  --hero-grad: radial-gradient(circle at top, rgba(37, 99, 235, 0.10), transparent 38%), linear-gradient(180deg, rgba(255,255,255,0.95), rgba(238,243,251,0.98));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.background-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

a {
  color: #8c6bff;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 40px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand-text strong {
  font-size: 1.05rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: var(--muted);
}

.header-nav a {
  transition: color 0.2s ease;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow);
}

.section-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 42px 0 24px;
}

.hero-content,
.hero-card,
.idea-card,
.suggestion-card,
.participant-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 34px;
  border-radius: 28px;
  background: var(--hero-grad);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.hero h1,
.section-heading h2,
.suggestion-card h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
}

.hero-intro,
.section-heading p,
.suggestion-card p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-intro {
  max-width: 60ch;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.participant-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), #8c6bff);
  color: #fff;
  padding: 14px 22px;
}

.secondary-btn {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 22px;
}

.primary-btn:hover,
.secondary-btn:hover,
.participant-social:hover {
  transform: translateY(-2px);
}

.hero-card {
  border-radius: 28px;
  padding: 24px;
}

.hero-logo {
  width: min(280px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 22px 32px rgba(0,0,0,0.25));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-alt);
  text-align: center;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  padding: 42px 0 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 14px;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.idea-card,
.suggestion-card,
.participant-card {
  border-radius: 24px;
}

.idea-card {
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--card));
}

.idea-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.idea-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.participant-card {
  display: flex;
  flex-direction: row; /* lado a lado */
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.participant-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 0; /* remove espaço antigo */
}

.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.participant-name {
  font-size: 15px;
  margin: 0;
}

.participant-role {
  font-size: 13px;
  margin: 0;
}

.participant-role {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.participant-social {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/instagram.svg") no-repeat center;
  background-size: contain;
  filter: invert(1);
}

html[data-theme="light"] .participant-social {
  filter: invert(0.3);
}

.suggestion-section {
  padding: 56px 0 72px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(99, 168, 255, 0.16), rgba(255, 209, 102, 0.12)), var(--surface);
}

.site-footer {
  padding: 26px 40px 36px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 1200px) {
  .participants-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ideas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    gap: 16px;
    font-size: 0.95rem;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .suggestion-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .participants-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-kicker {
    display: none;
  }

  .header-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .section-shell {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 24px 0 16px;
    gap: 16px;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 12px 6px;
  }

  .stat strong {
    font-size: 1.2rem;
  }

  .stat span {
    font-size: 0.75rem;
  }

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

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

  .participant-card {
    flex-direction: row;
    gap: 12px;
    padding: 14px;
  }

  .participant-avatar {
    width: 56px;
    height: 56px;
  }

  .suggestion-card {
    padding: 22px 18px;
    gap: 20px;
  }

  .suggestion-card .primary-btn {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 20px 16px 28px;
    font-size: 0.9rem;
  }
}