:root {
  --bg: #FAFAF7;
  --text: #14231A;
  --text-body: #33422F;
  --text-secondary: #4B5A4C;
  --text-muted: #6B7A6C;
  --text-faint: #9AA598;
  --accent-light: #8BC34A;
  --accent: #2E7D32;
  --accent-dark: #1B5E20;
  --border: #E3E7DA;
  --border-soft: #EFF1EA;
  --tag-bg: #EEF3E4;
  --tag-border: #D7E4C4;
  --card-bg-2: #F2F5EC;
  --surface: #FFFFFF;
  --on-accent: #FFFFFF;
  --header-bg: rgba(250,250,247,0.4);
  --header-bg-scrolled: rgba(250,250,247,0.9);
  --shadow-card: 0 10px 30px rgba(20,35,26,0.05);
  --shadow-card-lg: 0 30px 70px rgba(20,35,26,0.1);
  --shadow-badge: 0 10px 26px rgba(20,35,26,0.12);
  --pill-bg: rgba(139,195,74,0.16);
  --pill-border: rgba(46,125,50,0.28);
  --flag-outline: rgba(0,0,0,0.08);
  --ghost-opacity: 0.035;
  --glow-opacity: 0.14;
  /* faixa de parceiros: verde escuro nos dois temas */
  --partners-from: #1B5E20;
  --partners-to: #2E7D32;
  color-scheme: light;
}

/* Tema escuro. Aplicado por data-theme no <html> (script inline no <head> +
   js/script.js). Atencao: --accent-dark inverte de sentido aqui — no claro e o
   verde mais escuro, no escuro precisa ser o mais claro para manter enfase. */
html[data-theme="dark"] {
  --bg: #0F1611;
  --text: #E8EFE6;
  --text-body: #C7D4C4;
  --text-secondary: #AEBCAC;
  --text-muted: #8B9A89;
  --text-faint: #7E8C7C;   /* 5.2:1 sobre --bg; #6E7C6D ficava em 4.2:1 */
  --accent-light: #9CCC65;
  --accent: #7CB342;
  --accent-dark: #AED581;
  --border: #2A3A2D;
  --border-soft: #202C23;
  --tag-bg: #1C2A1E;
  --tag-border: #33482F;
  --card-bg-2: #1B2620;
  --surface: #17211A;
  --on-accent: #10190F;
  --header-bg: rgba(15,22,17,0.55);
  --header-bg-scrolled: rgba(15,22,17,0.92);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-card-lg: 0 30px 70px rgba(0,0,0,0.55);
  --shadow-badge: 0 10px 26px rgba(0,0,0,0.5);
  --pill-bg: rgba(156,204,101,0.18);
  --pill-border: rgba(156,204,101,0.42);
  --flag-outline: rgba(255,255,255,0.18);
  --ghost-opacity: 0.05;
  --glow-opacity: 0.22;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--accent-light); color: var(--accent-dark); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.mono { font-family: 'IBM Plex Mono', monospace; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.24,1), transform 0.9s cubic-bezier(.16,.8,.24,1);
}
.reveal-in { opacity: 1; transform: translateY(0); }

@keyframes ghostDrift {
  from { transform: translate(-54%, -50%); }
  to { transform: translate(-46%, -50%); }
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px clamp(20px, 4vw, 80px);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px clamp(20px, 4vw, 80px);
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(27,94,32,0.25);
  flex-shrink: 0;
}
.brand span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-pill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  z-index: 0;
  transition: transform 0.4s cubic-bezier(.34,1.2,.4,1), width 0.4s cubic-bezier(.34,1.2,.4,1), opacity 0.25s ease;
  transform: translateX(0);
  width: 0;
  opacity: 0;
}
.main-nav a {
  position: relative;
  z-index: 1;
  padding: 6px clamp(4px, 0.8vw, 12px);
  border-radius: 999px;
  font-size: clamp(11px, 0.85vw, 14.5px);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.main-nav a.active { color: var(--accent-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 18px);
  flex-shrink: 0;
}
/* botao-icone do cabecalho: usado pelo seletor de tema e pelo de idioma */
.icon-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.icon-btn:hover { opacity: 0.8; }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-toggle { display: none; }
.nav-toggle .icon { display: block; width: 22px; height: 22px; }
.nav-toggle .icon[hidden] { display: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; }
.nav-backdrop[hidden] { display: none; }

.theme-toggle .icon {
  display: block;
  width: 19px;
  height: 19px;
}
.theme-toggle .icon[hidden] { display: none; }

.lang-toggle .flag {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--flag-outline);
}
.lang-toggle .flag[hidden] { display: none; }

.btn-cta {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--on-accent);
  padding: 10px clamp(12px, 1.2vw, 22px);
  border-radius: 999px;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(46,125,50,0.3);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-cta:hover { color: var(--on-accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px clamp(20px, 4vw, 80px) 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -280px; right: -280px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-light) 0%, var(--accent) 55%, transparent 75%);
  opacity: var(--glow-opacity);
  filter: blur(2px);
}
.hero-ring {
  position: absolute;
  bottom: -320px; left: -200px;
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid var(--accent-light);
  opacity: 0.15;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
}
.hero-tag span.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-left: 8px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--text);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 38px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--on-accent);
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}
.btn-primary:hover { color: var(--on-accent); }
.btn-primary .arrow { font-size: 18px; }
.link-secondary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
}
.link-secondary:hover { color: var(--text); }

.hero-status {
  display: flex;
  align-items: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-status .status-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.hero-status .status-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-light) 0 6px, transparent 6px 12px);
}
.hero-status .status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  animation: statusPulse 1.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-status .status-pulse { animation: none; }
}

/* Hero sensor card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sensor-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(160deg, var(--surface) 0%, var(--card-bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sensor-card .sensor-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
}
.sensor-card .sensor-head .live { color: var(--accent); }
.sensor-card .sensor-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.sensor-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(27,94,32,0.35);
  font-size: 34px;
}
.sensor-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
}
.sensor-value span { font-size: 18px; color: var(--text-muted); }
.sensor-mid .sensor-caption { font-size: 12.5px; color: var(--text-muted); }

.sensor-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sensor-flow .flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.sensor-flow .flow-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.sensor-flow .flow-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}
.sensor-flow .flow-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-light) 0 6px, transparent 6px 12px);
  margin-top: -18px;
}

.sensor-badge {
  position: absolute;
  top: -18px; right: -18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-badge);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sensor-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #6D8B5E; }
.sensor-badge span.label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text); }

/* ---------- SECTION SHARED ---------- */
.section {
  position: relative;
  padding: 160px clamp(20px, 4vw, 80px);
  max-width: 1360px;
  margin: 0 auto;
  /* .ghost-word e maior que a secao; clip evita rolagem horizontal.
     'clip' em vez de 'hidden' para nao criar um container de rolagem. */
  overflow-x: clip;
}
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 14px 0 60px;
  color: var(--text);
  max-width: 640px;
}
.ghost-word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 240px;
  color: var(--text);
  opacity: var(--ghost-opacity);
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 0;
  animation: ghostDrift 24s ease-in-out infinite alternate;
}

/* How it works */
.steps-wrap { position: relative; z-index: 1; }
.steps-wrap .spine {
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--border) 100%);
}
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 56px;
  position: relative;
}
.step-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(46,125,50,0.15);
  z-index: 1;
}
.step-body { padding-top: 6px; }
.step-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.step-title { font-size: 21px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.step-desc { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 560px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy p { font-size: 17px; line-height: 1.75; color: var(--text-body); margin: 0; }
.team-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
}
.team-member { display: flex; flex-direction: column; gap: 4px; }
.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  /* a foto e quadrada na origem; cover so protege de recortes futuros */
  object-fit: cover;
}
.team-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.team-role { font-size: 12.5px; color: var(--text-muted); }

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.award-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(46,125,50,0.25);
}
.award-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.award-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.award-desc { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* Partners */
.partners-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--partners-from) 0%, var(--partners-to) 100%);
  padding: 120px clamp(20px, 4vw, 80px);
}
.partners-section .ghost-word { color: #FFFFFF; opacity: 0.06; }
.partners-inner { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; text-align: center; }
.partners-inner .section-eyebrow { color: #C8E6C9; }
.partners-inner h2 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.01em;
  margin: 14px auto 12px; color: #FFFFFF; max-width: 620px;
}
.partners-inner .partners-sub {
  font-size: 16px; line-height: 1.6; color: #DCEBD4;
  margin: 0 auto 56px; max-width: 480px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  filter: grayscale(1) opacity(0.55);
  transition: all 0.3s ease;
}
.partner-card:hover { filter: none; transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.partner-logo {
  width: 100%; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Journey */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 20px;
}
.journey-photo {
  width: 100%; height: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.journey-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.journey-1 { grid-column: span 2; grid-row: span 2; transform: rotate(-1deg); }
.journey-2 { grid-column: span 2; grid-row: span 2; transform: rotate(1deg); }
.journey-3 { grid-row: span 2; transform: rotate(1.5deg); }
.journey-4 { grid-row: span 2; transform: rotate(-1.5deg); }
.journey-5 { grid-column: span 2; grid-row: span 2; transform: rotate(-0.5deg); }
.journey-6 { grid-row: span 2; transform: rotate(0.8deg); }
.journey-7 { grid-row: span 2; transform: rotate(-1.2deg); }
.journey-8 { grid-row: span 2; transform: rotate(1.2deg); }
.journey-9 { grid-row: span 2; transform: rotate(-0.6deg); }

/* Contact */
.contact-section { padding: 160px clamp(20px, 4vw, 80px) 220px; max-width: 760px; margin: 0 auto; text-align: center; }
.contact-invite { font-size: 16.5px; line-height: 1.6; color: var(--text-secondary); margin: 0 auto 44px; max-width: 480px; }
.contact-success {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 16px;
  padding: 28px;
  font-size: 15.5px;
  color: var(--accent-dark);
  font-weight: 600;
}
.contact-error {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 600;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
/* display:flex acima venceria o atributo hidden do HTML sem esta regra */
.contact-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.field input, .field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-light); }
.field textarea { resize: vertical; }
.contact-form .btn-primary {
  margin-top: 6px;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  width: 100%;
}
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: progress; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(20px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer-brand span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: var(--text);
}
.footer-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--text-secondary); }
.footer-contact { display: flex; align-items: center; gap: 18px; }
.footer-contact a.email { font-size: 13.5px; color: var(--text-secondary); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tag-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-bottom {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-faint);
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .journey-1, .journey-2, .journey-3, .journey-4, .journey-5, .journey-6,
  .journey-7, .journey-8, .journey-9 { grid-column: span 1; grid-row: span 1; transform: none; }
}

@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; }
  /* .main-nav vira painel lateral; os mesmos links (e os mesmos data-i18n).
     backdrop-filter precisa sair: ele torna o header o bloco de contencao do
     painel fixed, que ficaria preso a altura do header e cortaria os links. */
  .site-header { backdrop-filter: none; background: var(--header-bg-scrolled); }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 100;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 96px 24px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;   /* telas baixas (celular deitado) */
    transform: translateX(100%);
    visibility: hidden;   /* tira os links do Tab sem usar aria-hidden */
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav a { font-size: 17px; padding: 14px 8px; }
  .nav-pill { display: none; }
  body.nav-open { overflow: hidden; }

  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; }

  .sensor-head { flex-wrap: wrap; gap: 6px 12px; }
  .sensor-badge { top: -14px; right: 6px; padding: 8px 12px; max-width: calc(100% - 12px); }
  .sensor-badge span.label { font-size: 11px; }

  .awards-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .award-card { min-width: 0; }
  .partners-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .partners-inner h2 { font-size: 26px; }
  .partners-inner .partners-sub { font-size: 15px; }

  .hero { padding-top: 120px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16.5px; }
  .hero-status { margin-top: 40px; padding-top: 24px; }
  .hero-status .status-icon { width: 28px; height: 28px; font-size: 13px; }
  .section { padding: 100px 20px; }
  .section-title { font-size: 28px; }
  .ghost-word { font-size: 120px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { padding: 100px 20px 140px; }
  .site-footer { justify-content: center; text-align: center; }
  .partners-section { padding: 90px 20px; }
}

@media (max-width: 480px) {
  /* em 320px: 32 (padding) + 128 (marca) + 144 (3 botoes + gaps) = 304 <= 320 */
  .site-header, .site-header.scrolled { padding-left: 16px; padding-right: 16px; }
  .header-actions { gap: 2px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 15px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  /* o CTA se repete no hero, no menu ("Contato") e na secao de contato */
  .btn-cta { display: none; }
  .section { padding: 72px 18px; }
  .contact-section { padding: 72px 18px 100px; }
}
