/* BugBear institutional site.
   Normal web scale: 16px text, 1120px content width, fixed sizes that do not grow with the viewport.
   Black and orange come from the brand; orange is an accent, kept for actions and small labels.
   Archivo is self-hosted, the same family as the Argos landing. */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #14161b;
  --text: #3a3f47;
  --muted: #5b626e;
  --rule: #e4e7ec;
  --bg-soft: #f6f7f9;
  --dark: #0b0c0e;
  --on-dark: rgb(255 255 255 / .92);
  --on-dark-muted: rgb(255 255 255 / .66);
  --on-dark-rule: rgb(255 255 255 / .12);

  --laranja: #d67023;
  --laranja-btn: #bf5811;     /* passes AA with white text; the brand orange does not */
  --laranja-text: #b3560f;    /* small labels on white */
  --laranja-on-dark: #f0a368; /* small labels on black */
  --laranja-25: #f8e6cd;
  --laranja-50: #f0cc97;      /* device mockups */
  --cinza: #a6a6a6;           /* device mockups */
  --verde: #56a23e;
  --vermelho: #b33535;

  --radius: 10px;
  --u: 1px;

  /* The dark sections: an orange ring (radial gradient) under 82% black. */
  --glow-stops: #000 0%, rgb(13 7 2) 3.1%, rgb(27 14 4) 6.2%, rgb(54 28 9) 12.4%, rgb(80 42 13) 18.7%,
    rgb(107 56 17) 24.9%, rgb(161 84 26) 37.3%, rgb(214 112 35) 49.8%, rgb(161 84 26) 62.3%,
    rgb(107 56 17) 74.9%, rgb(80 42 13) 81.2%, rgb(54 28 9) 87.4%, rgb(27 14 4) 93.7%, rgb(13 7 2) 96.9%, #000 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1168px; margin-inline: auto; padding-inline: 24px; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.muted { color: var(--muted); }
.label {
  display: block; margin-bottom: 12px;
  color: var(--laranja-text); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--laranja-btn); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-primary { background: var(--laranja-btn); color: #fff; }
.btn-primary:hover { background: #a84c0d; }
.btn-primary:disabled { background: #e5e7eb; color: #7b828e; cursor: not-allowed; }
.btn-outline { border-color: #cfd4dc; color: var(--ink); }
.btn-outline:hover { border-color: #8a919e; }
.btn-outline-light { border-color: rgb(255 255 255 / .3); color: #fff; }
.btn-outline-light:hover { border-color: rgb(255 255 255 / .7); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { color: var(--laranja-text); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; text-decoration: none; }
.logo__claw { width: 29px; height: 37px; }
.logo__word { width: 76px; height: 21px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--dark); border-bottom: 1px solid var(--on-dark-rule);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--on-dark-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--laranja); border-radius: 0; }
.nav-toggle { display: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: .875rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 48px; border-bottom: 1px solid var(--on-dark-rule);
}
.footer-cta h2 { color: #fff; }
.footer-cta p { margin-top: 6px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 40px; }
.footer-tagline { max-width: 32ch; margin-top: 14px; }
.footer-col h3 { margin-bottom: 12px; color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-col li + li { margin-top: 6px; }
.social { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.social img { width: 22px; height: auto; transition: opacity .15s; }
.social a:hover img { opacity: .7; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding-block: 18px; border-top: 1px solid var(--on-dark-rule); font-size: .8125rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; }

.glow {
  --glow-shape: 100% 86.5% at 100% 50%;
  background:
    linear-gradient(rgb(0 0 0 / .82), rgb(0 0 0 / .82)),
    radial-gradient(var(--glow-shape), var(--glow-stops)),
    #000;
  color: var(--on-dark-muted);
}
.glow--left { --glow-shape: 100% 86.5% at 0% 50%; }
.glow h1, .glow h2, .glow h3, .glow strong { color: #fff; }
.glow .label { color: var(--laranja-on-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 56px); }
.split p + p { margin-top: 14px; }
.split h2 + p { margin-top: 14px; }
.round-img { border-radius: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; border: 1px solid var(--rule); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.card p { flex: 1; }
a.card { text-decoration: none; }
.card:hover { border-color: #cfd4dc; box-shadow: 0 6px 20px rgb(20 22 27 / .06); }
.icon-tile { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 12px; background: var(--ink); }
.icon-tile img { width: 36px; height: 36px; object-fit: contain; }

/* Absolutely placed artwork from the Figma file: each piece keeps its Figma x/y/w/h, scaled by --u. */
.comp { position: relative; flex: none; width: calc(var(--cw) * var(--u)); height: calc(var(--ch) * var(--u)); }
.comp > .p {
  position: absolute; max-width: none;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}

/* ---------- Hero ---------- */

.hero { --glow-shape: 100% 108% at 100% 40%; position: relative; overflow: hidden; }
.hero__circuits { position: absolute; left: 0; top: 50%; width: 100%; max-width: none; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); padding-block: clamp(56px, 7vw, 88px); }
.hero h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.hero h1 span { display: block; }
.hero h1 .accent { color: #ec8a3f; }
.hero .lead { margin-top: 18px; }
.hero__img { border-radius: 12px; box-shadow: 0 18px 50px rgb(0 0 0 / .45); }

.page-hero { padding-block: clamp(48px, 6vw, 72px); }
.page-hero .lead { max-width: 640px; margin-top: 14px; }

/* ---------- Home ---------- */

.flow { --u: .6px; display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.flow figure { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--on-dark); font-size: .875rem; font-weight: 500; }
.flow__box { display: flex; align-items: center; justify-content: center; width: 175px; height: 97px; border: 2px solid; border-radius: 14px; }
.flow__box--problem { border-color: var(--vermelho); }
.flow__box--solved { border-color: var(--verde); }
.flow__box img { width: 42px; height: 42px; object-fit: contain; }
.flow__arrow { flex: none; width: 92px; height: 10px; margin-top: 43px; }
.chip__box {
  background: #a6a6a6; border: calc(4 * var(--u)) solid #000; border-radius: calc(24 * var(--u));
  box-shadow: inset 0 calc(5 * var(--u)) calc(4 * var(--u)) calc(5 * var(--u)) rgb(0 0 0 / .42);
}
.challenge .section-head { margin-inline: auto; text-align: center; }

.partner__img { filter: drop-shadow(2px 8px 10px rgb(0 0 0 / .22)); }

/* ---------- Soluções ---------- */

.product {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 16px; background: #fff;
}
.product__media { display: flex; align-items: center; padding: 32px; background: #14161b; }
.product__media img { border-radius: 8px; box-shadow: 0 12px 34px rgb(0 0 0 / .4); }
.product__body { padding: clamp(28px, 4vw, 44px); }
.product__logo { width: 150px; margin-bottom: 20px; }
.product__list { margin-top: 18px; }
.product__list li { position: relative; padding-left: 22px; }
.product__list li + li { margin-top: 8px; }
.product__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); }

/* ---------- Serviços ---------- */

.devices { --u: .72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 32px 48px; margin-top: 48px; }
.device { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); font-size: .875rem; }
.phone__clock { font: 600 calc(8.626 * var(--u)) / calc(11.163 * var(--u)) system-ui, sans-serif; color: #000; text-align: center; }
.consult { overflow: hidden; }
.consult .comp { --u: .78px; margin-inline: auto; }

/* ---------- Quem somos ---------- */

.rotator { display: flex; flex-wrap: wrap; column-gap: .3em; margin-top: 4px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #fff; }
.rotator__words { display: block; height: 1.2em; overflow: hidden; color: #ec8a3f; }
.rotator__track { display: flex; flex-direction: column; animation: rotate-words 7.5s cubic-bezier(.7, 0, .3, 1) infinite; }
.rotator__track span { display: block; height: 1.2em; }
@keyframes rotate-words {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-1.2em); }
  66%, 94% { transform: translateY(-2.4em); }
  100% { transform: translateY(-3.6em); }
}
.imac { --u: .8px; margin-inline: auto; }
.band {
  padding-block: clamp(56px, 7vw, 80px);
  background:
    linear-gradient(270deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / .92) 58%),
    url("/img/qs/keyboard.webp") center / cover no-repeat,
    #e5e5e5;
}
.band__text { max-width: 520px; color: var(--ink); }
.band__claw { width: 32px; height: 41px; margin-bottom: 18px; }

/* ---------- Contato ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; gap: clamp(32px, 5vw, 64px); }
.channels { margin-top: 20px; }
.channels li + li { margin-top: 12px; }
.channels a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.channels a:hover { color: var(--laranja-text); }
.channels img { width: 22px; height: 22px; object-fit: contain; }

.form { padding: clamp(24px, 3vw, 32px); border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.field input, .field textarea {
  display: block; width: 100%; padding: 0 14px;
  border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input { height: 44px; }
.field textarea { height: 150px; padding-block: 10px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px var(--laranja-25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--vermelho); }
.field__error {
  display: flex; align-items: center; gap: 6px; min-height: 24px; padding-top: 3px;
  color: var(--vermelho); font-size: .75rem; font-weight: 500; visibility: hidden;
}
.field__error::before { content: ""; flex: none; width: 13px; height: 13px; background: url("/img/icon-error.svg") center / contain no-repeat; }
.field.is-invalid .field__error { visibility: visible; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 4px; }
.form__required { margin-bottom: 16px; color: var(--muted); font-size: .8125rem; }
.form__status { min-height: 1.4em; margin-top: 10px; text-align: center; font-size: .875rem; font-weight: 500; }
.form__privacy { margin-top: 4px; color: var(--muted); font-size: .75rem; text-align: center; }
.form__status.is-ok { color: #3f7d2c; }
.form__status.is-error { color: var(--vermelho); }

/* ---------- Motion: a short fade only ---------- */

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rotator__track { animation: none; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .hero__inner, .product, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header__inner { gap: 12px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; margin: 0; background: var(--dark); border-bottom: 1px solid var(--on-dark-rule); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .site-nav a { padding: 12px 0; font-size: 1rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: #ec8a3f; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 9px; margin-right: -9px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .split, .cards, .cards--2 { grid-template-columns: 1fr; }
  .split > .media-first { order: -1; }
  .flow { flex-direction: column; align-items: center; gap: 8px; }
  .flow__arrow { margin: 40px 0; transform: rotate(90deg); }
  .devices { --u: .5px; gap: 28px 24px; }
  .consult .comp { --u: min(.78px, calc((100vw - 48px) / 438)); }
  .imac { --u: min(.8px, calc((100vw - 48px) / 532)); }
  .band { background: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / .9)), url("/img/qs/keyboard.webp") center / cover no-repeat; }
  .product__media { padding: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}
