/* ==========================================================================
   Astratech — folha de estilo principal
   Reescrita legível do bundle gerado pelo Claude Design.
   Estrutura: 1) fontes  2) tokens/reset  3) animações  4) componentes
   ========================================================================== */

/* ==========================================================================
   1. Fontes (self-hosted em assets/fonts/)
   ========================================================================== */
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/michroma-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/michroma-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Grotesk — o mesmo arquivo por subset cobre os pesos 300–700 usados na página */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* ==========================================================================
   2. Tokens de design + reset
   ========================================================================== */
:root {
  --accent: #2f6bff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg: #06070b;
  --text: #f4f6fb;
  --text-muted: #9aa3b6;
  --text-dim: #6b7488;

  --hairline: rgba(255, 255, 255, 0.05);
}

@property --astraAngle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

* { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

::selection { background: rgba(47, 107, 255, 0.35); }

/* ==========================================================================
   3. Animações (keyframes)
   ========================================================================== */
@keyframes astraFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes astraRise {
  0%   { transform: translateY(-2px); opacity: 0.25; }
  50%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0.25; }
}
@keyframes astraBorderSpin {
  to { --astraAngle: 360deg; }
}

/* ==========================================================================
   4. Camadas de fundo (gradiente + campo de estrelas)
   ========================================================================== */
.bg-gradient {
  position: fixed;
  inset: -70px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  background: radial-gradient(120% 90% at 88% 0%, #11182b 0%, #0a0d16 42%, #06070b 100%);
}

.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* Tudo o que é conteúdo fica acima das camadas de fundo */
.page {
  position: relative;
  z-index: 1;
}

/* Largura máxima padrão das seções */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
}

/* Destaque de cor reutilizável (trechos coloridos dentro de títulos) */
.accent { color: var(--accent); }

/* ==========================================================================
   5. Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Michroma', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.4s var(--ease);
}
.btn--sm { padding: 11px 22px; font-size: 11px; letter-spacing: 1px; }
.btn--md { padding: 15px 30px; font-size: 12px; letter-spacing: 1.5px; }
.btn--lg { padding: 16px 34px; font-size: 12px; letter-spacing: 1.5px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  color: #e7ebf3;
}
.btn--ghost:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   6. Navegação
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 20px 50px;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 11, 0.55);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none; /* .brand é um <a> nas páginas internas */
}
.brand__logo {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent));
}
.brand__name {
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  letter-spacing: 2.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}
.nav-links a {
  color: #aeb6c8;
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-actions__login {
  color: #cfd6e6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.4s var(--ease);
}
.nav-actions__login:hover { color: #fff; }

/* Botão hambúrguer — oculto no desktop, exibido na media query mobile (< 768px) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 110px;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: min(720px, 90vw);
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.hero__content {
  position: relative;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.hero__star {
  animation: astraFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--accent) 75%, transparent));
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  font-family: 'Michroma', sans-serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: #aeb6c8;
  text-transform: uppercase;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 5.4vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.hero__subtitle {
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #5b6478;
  font-family: 'Michroma', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  animation: astraRise 2.4s ease-in-out infinite;
}

/* ==========================================================================
   8. Manifesto
   ========================================================================== */
.manifesto {
  position: relative;
  padding: clamp(120px, 17vw, 200px) 0;
}
.manifesto__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.eyebrow__line {
  display: block;
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.manifesto__quote {
  margin: 0;
  max-width: 880px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.45;
  color: #e2e7f1;
  font-weight: 300;
  text-wrap: balance;
}
.manifesto__sign {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 2px;
  color: #aeb6c8;
  text-transform: uppercase;
}

/* ==========================================================================
   9. Plataforma (feature cards)
   ========================================================================== */
.platform {
  padding: clamp(90px, 10vw, 140px) 0;
}
.platform__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 620px;
  margin-bottom: 72px;
}
.platform__eyebrow {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}
.platform__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.5px;
}
.platform__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #8d96a8;
  font-weight: 300;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  position: relative;
  padding: 40px 36px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  transition: all 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

/* Borda cônica que gira; aparece no hover do card (antes era ligada via JS) */
.feature-card__glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--astraAngle),
    transparent 0deg,
    transparent 220deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 295deg,
    var(--accent) 330deg,
    #d7e6ff 350deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  animation: astraBorderSpin 2.8s linear infinite;
  pointer-events: none;
  z-index: 3;
}
.feature-card:hover .feature-card__glow { opacity: 1; }

.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.feature-card__num {
  font-family: 'Michroma', sans-serif;
  font-size: 11px;
  color: #5b6478;
}
.feature-card__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #f1f4fa;
}
.feature-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #8d96a8;
  font-weight: 300;
}
.feature-card__tag {
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   10. Números / resultados
   ========================================================================== */
.stats {
  padding: clamp(90px, 10vw, 130px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat__value {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(28px, 3.6vw, 48px);
  color: var(--text);
}
.stat__label {
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #7d8597;
}

/* ==========================================================================
   11. Perfil do CTO (cto.html)
   ========================================================================== */
.profile {
  position: relative;
  padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 7vw, 90px);
}
.profile__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.profile__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.profile__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
}
.profile__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.profile__back:hover {
  color: #fff;
  transform: translateX(-3px);
}
.profile__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.profile__lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.profile__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 64px;
  align-items: start;
}

/* --- Foto --- */
.profile__photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}
.profile__photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.profile__photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* foto quadrada num quadro 4:5: mantém o rosto enquadrado */
}
.profile__caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile__name {
  font-family: 'Michroma', sans-serif;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #f1f4fa;
}
.profile__role {
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.profile__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  align-self: flex-start;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}
.profile__social:hover { color: #fff; }

/* --- Texto --- */
.profile__body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 640px;
}
.profile__body p {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: #c3cad9;
  font-weight: 300;
}
.profile__body p:first-child {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
  color: #e2e7f1;
}
.profile__body strong {
  font-weight: 500;
  color: var(--text);
}
.profile__link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.profile__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
/* Empresas atendidas em consultoria */
.profile__clients {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.profile__clients-label {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.profile__clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile__clients-list li {
  font-family: 'Michroma', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #e2e7f1;
}

.profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.profile__tag {
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   12. Contato (contato.html)
   ========================================================================== */
.contact {
  position: relative;
  padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 7vw, 90px);
}
.contact__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.contact__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 720px;
}
.contact__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.contact__lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 64px;
  align-items: start;
}

/* --- Lateral: outros canais --- */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 110px;
}
.contact__channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.contact__channel-label {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__channel-value {
  font-size: 15px;
  color: #e2e7f1;
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
a.contact__channel-value:hover { color: var(--accent); }

/* --- Formulário --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 36px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field__label {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__label em {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-dim);
  margin-left: 6px;
}
.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(6, 7, 11, 0.6);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field__input::placeholder { color: var(--text-dim); }
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
/* Só marca erro depois que o usuário interagiu, não no carregamento */
.field__input:user-invalid {
  border-color: #ff5a6a;
}
.field__input--area {
  resize: vertical;
  min-height: 150px;
}
select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select.field__input option { background: #0a0d16; color: var(--text); }

/* Honeypot: fora da tela, nunca display:none (alguns robôs pulam campos ocultos) */
.contact__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}
.contact-form__status {
  margin: 0;
  flex: 1 1 240px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.contact-form__status.is-success { color: #6fd39a; }
.contact-form__status.is-error   { color: #ff7a87; }
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   13. Blog (blog.html, artigo.html)
   Listagem minimalista (sem cards com fundo, só separadores) e prosa do
   artigo gerada a partir de Markdown por js/blog.js — por isso os estilos
   de .prose usam seletores de elemento (h2, pre, blockquote...), não classes.
   ========================================================================== */
.blog,
.post {
  position: relative;
  padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 7vw, 90px);
}
.blog__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}
.blog__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.blog__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.blog__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.blog__lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

/* --- Listagem --- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
}
.post-card:has(.post-card__cover) {
  grid-template-columns: minmax(0, 1fr) 220px;
}
.post-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.post-card__cover {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
}
.post-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__cover img {
  transform: scale(1.03);
}
.post-card__meta,
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.post-card__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.post-card__title a:hover {
  color: var(--accent);
}
.post-card__desc {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}
.post-card__tags,
.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.post-card__tag,
.post__tag {
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-list__empty,
.post__notfound {
  margin: 0;
  padding: 32px 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}
.post__notfound a,
.prose a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.post__notfound a:hover,
.prose a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Artigo --- */
.post__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
/* Capa do artigo */
.post__cover {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
}
.post__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.post__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Prosa: elementos gerados pelo Markdown */
.prose {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: #c3cad9;
  font-weight: 300;
}
.prose > * {
  margin: 0 0 26px;
}
.prose > *:last-child {
  margin-bottom: 0;
}
.prose > p:first-child {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
  color: #e2e7f1;
}
.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  line-height: 1.3;
}
.prose h2 {
  margin-top: 48px;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.2px;
}
.prose h3 {
  margin-top: 36px;
  font-size: 19px;
  font-weight: 500;
}
.prose h4 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 500;
}
.prose strong {
  font-weight: 500;
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 8px;
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
}
.prose blockquote > *:last-child {
  margin-bottom: 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.prose pre {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  color: #e2e7f1;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   14. Rodapé
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(110px, 12vw, 160px) 0 48px;
}
.site-footer__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse min(700px, 90vw) 300px at 50% 120px,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 65%
  );
  filter: blur(24px);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  max-width: 640px;
  margin: 0 auto 110px;
}
.footer-cta__title {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.footer-cta__desc {
  margin: 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}
.footer-cta .btn { margin-top: 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand__name {
  font-family: 'Michroma', sans-serif;
  font-size: 14px;
  letter-spacing: 2.5px;
  color: var(--text);
}
.footer-brand__tagline {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col__title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer-wordmark {
  font-family: 'Michroma', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
}

/* ==========================================================================
   15. Responsivo — mobile (< 768px)
   Objetivo: eliminar o overflow lateral. Estratégia:
     - reduz o respiro lateral das seções (sem larguras fixas, tudo % / rem);
     - título do hero passa a quebrar linha (remove white-space: nowrap);
     - feature-grid vira carrossel horizontal com scroll-snap;
     - footer empilha em coluna única, centralizado;
     - navegação esconde os links atrás de um menu hambúrguer (.is-open).
   Restrições respeitadas: box-sizing: border-box (global), max-width: 100%,
   sem width: 100vw e sem larguras fixas em px.
   ========================================================================== */
@media (max-width: 767px) {

  /* Defesa geral contra estouro de mídia/elementos */
  img,
  svg,
  canvas { max-width: 100%; }

  /* Menos respiro lateral para caber na viewport estreita */
  .container { padding: 0 24px; }

  /* --- Navegação: menu hambúrguer --- */
  .site-nav { padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }

  /* Links escondidos por padrão; descem como painel quando .site-nav.is-open */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(6, 7, 11, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }
  .site-nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  /* Barras viram um "X" quando o menu está aberto */
  .site-nav.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .site-nav.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- Hero --- */
  .hero { padding: 110px 0 90px; }
  .hero__content { padding: 0 24px; }
  /* o nowrap estourava a largura em telas estreitas; deixa quebrar linha */
  .hero__title { white-space: normal; }

  /* --- Plataforma: feature-grid vira carrossel horizontal --- */
  .platform__head { margin-bottom: 48px; }
  .feature-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .feature-card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
  }

  /* --- Números: duas colunas em vez de quatro --- */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  /* --- Perfil do CTO: foto acima do texto --- */
  .profile { padding-top: 60px; }
  .profile__inner { gap: 44px; }
  .profile__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .profile__photo {
    position: static;
    max-width: 320px;
    width: 100%;
  }

  /* --- Contato: lateral acima do formulário, campos em coluna única --- */
  .contact { padding-top: 60px; }
  .contact__inner { gap: 44px; }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact__aside { position: static; }
  .contact-form { padding: 28px 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__submit { width: 100%; justify-content: center; }

  /* --- Blog / artigo --- */
  .blog,
  .post { padding-top: 60px; }
  .blog__inner { gap: 40px; }
  .post__inner { gap: 36px; }
  .post-card,
  .post-card:has(.post-card__cover) {
    grid-template-columns: 1fr;
    padding: 26px 0;
  }
  .post-card__cover { order: -1; }   /* capa acima do texto no mobile */
  .post__cover { border-radius: 12px; }
  .prose pre { padding: 14px 16px; font-size: 13px; }
  .prose blockquote { padding-left: 16px; }

  /* --- Rodapé: empilhamento vertical e colunas centralizadas --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-brand,
  .footer-col { align-items: center; }
  .footer-brand__row { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero__star,
  .hero__scroll-line,
  .feature-card__glow { animation: none; }
}
