/* ============================================================
   bCoder — landing page
   Tokens de marca extraídos do logotipo oficial (bcoder.png):
   laranja #E0401C · grafite #272F30 · branco #FFFFFF
   ============================================================ */

/* ---------- Fontes (self-hosted, sem chamadas externas) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --brand: #E0401C;          /* laranja do logotipo — acentos e grafismos */
  --brand-strong: #C13511;   /* variação para fundos de botão (contraste AA) */
  --brand-hover: #A72D0D;
  --brand-tint: #FCEDE8;
  --brand-soft: #F0876B;     /* acento sobre fundo escuro */

  --ink: #272F30;            /* grafite do logotipo */
  --ink-soft: #565B63;
  --muted: #8A8F97;
  --line: #E1E4E8;
  --paper: #FFFFFF;
  --paper-alt: #F5F6F8;
  --field-bg: #FBFBFC;

  --dark-text: #EDEEF0;
  --dark-text-soft: #A9AEB6;
  --dark-muted: #7C818A;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1120px;
  --radius: 12px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ol { margin: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow-dash {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--brand);
}
.eyebrow-light { color: var(--brand-soft); }

.section { background: var(--paper); }
.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-bordered { border-bottom: none; }
.section > .container { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 44px;
  color: var(--ink);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-strong);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  padding: 13px 22px;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color .18s ease;
}
.btn:hover { background: var(--brand-hover); }
.btn-small { padding: 10px 18px; font-size: 14px; border-radius: 8px; }
.btn-large {
  padding: 16px 30px;
  font-size: 16px;
  box-shadow: 0 8px 24px -10px rgba(224, 64, 28, 0.55);
}
.btn-block { width: 100%; margin-top: 4px; font-size: 15.5px; padding: 15px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  width: auto;
  height: 38px;
  border-radius: 7px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: repeating-linear-gradient(135deg, var(--paper-alt) 0 14px, var(--paper) 14px 28px);
  clip-path: polygon(28% 0, 100% 0, 100% 72%, 72% 100%, 0 100%, 0 28%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-glyph {
  position: absolute;
  top: 80px;
  right: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  animation: bc-fade .7s ease both;
}
.hero-inner > * { max-width: 760px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 4px 0 22px;
  color: var(--ink);
}
.hero-lead {
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 38px;
  max-width: 600px;
}

@keyframes bc-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Serviços ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(39, 47, 48, 0.3);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Diferencial (seção escura) ---------- */
.section-dark {
  background: var(--ink);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}
.dark-deco {
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(224, 64, 28, 0.35);
  clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%);
  pointer-events: none;
}
.diferencial-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
}
.diferencial-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.diferencial-title span { color: var(--brand-soft); display: block; }

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-num {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(224, 64, 28, 0.55);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
.feature p { font-size: 14.5px; color: var(--dark-text-soft); }

/* ---------- Sobre ---------- */
.sobre-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sobre-lead strong { color: var(--brand-strong); font-weight: 600; }
.sobre-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 22px;
}

/* ---------- Contato ---------- */
.contato-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.contato-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 420px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
  transition: border-color .15s ease;
}
.contact-card:hover { border-color: var(--brand); }
.contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Formulário ---------- */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 36px);
  align-self: start;
}
.form-panel form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--paper);
}
.form-hint {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.form-error {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-strong);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--dark-text-soft);
}
.site-footer .container {
  padding-top: 52px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-logo {
  align-self: flex-start;
  width: auto;
  height: 34px;
  border-radius: 6px;
}
.footer-rule { height: 1px; background: rgba(255, 255, 255, 0.09); }
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  line-height: 1.7;
}
.footer-org-name { color: var(--dark-text); font-weight: 600; }
.footer-org a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-org a:hover { color: var(--dark-text); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--dark-muted);
  align-self: flex-end;
}

/* ---------- Navegação mobile ---------- */
@media (max-width: 719px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: 0 20px 30px -24px rgba(39, 47, 48, 0.35);
  }
  body.nav-open .site-nav { display: flex; }
  .nav-link { padding: 12px 4px; font-size: 15px; }
  .site-nav .btn { margin-top: 8px; }
}
