/* =========================================================
   CARCARÁ DEVELOPER — SITE INSTITUCIONAL V1
   ---------------------------------------------------------
   Direção visual: tecnologia premium, preto profundo e
   energia laranja derivada diretamente da identidade enviada.
   Responsividade tratada primeiro para mobile/iPhone.
========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0a0908;
  --panel: rgba(17, 15, 13, 0.84);
  --panel-strong: #12100f;
  --line: rgba(255, 116, 20, 0.18);
  --line-white: rgba(255, 255, 255, 0.09);
  --orange: #ff7117;
  --orange-bright: #ff8d31;
  --orange-soft: #bd4810;
  --text: #f6f3ef;
  --muted: #aba39d;
  --muted-strong: #d4ccc4;
  --success: #55d994;
  --max: 1240px;
  --radius: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-h: 78px;
  --shadow-orange: 0 18px 70px rgba(255, 101, 15, 0.15);
}

/* Reset enxuto para previsibilidade entre browsers. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 96, 8, 0.075), transparent 26%),
    radial-gradient(circle at 5% 35%, rgba(255, 96, 8, 0.045), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 117, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 117, 18, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 22%, transparent 78%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

p {
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================================
   HEADER / NAVEGAÇÃO
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 113, 23, 0.13);
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 47px;
  height: 47px;
  border: 1px solid rgba(255, 113, 23, 0.26);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(255, 103, 15, 0.17);
}

.brand-copy {
  display: grid;
  gap: 1px;
  letter-spacing: 0.16em;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.brand-copy small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

/* No desktop o usuário pediu remover a marca do topo.
   Ela continua existindo no mobile para preservar identidade e navegação. */
@media (min-width: 881px) {
  .site-header .brand {
    display: none;
  }

  .header-shell {
    justify-content: flex-end;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  transition: color 180ms ease;
}

.main-nav > a:not(.nav-cta)::after {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a:not(.nav-cta):focus-visible {
  color: var(--text);
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 13px 19px;
  border: 1px solid rgba(255, 113, 23, 0.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 113, 23, 0.08);
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 113, 23, 0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--line-white);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span:not(.sr-only) {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* =========================================================
   BOTÕES E TEXTO DE SEÇÃO
========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(128deg, var(--orange), #d74808);
  box-shadow: 0 14px 38px rgba(255, 103, 15, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 48px rgba(255, 103, 15, 0.38);
}

.button-secondary {
  border: 1px solid var(--line-white);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 113, 23, 0.36);
  color: var(--text);
}

.section {
  padding: 92px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(270px, 0.72fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 45px;
}

.section-head.compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-head h2,
.services-intro h2,
.contact-copy h2 {
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-head p,
.services-intro p,
.contact-copy p {
  color: var(--muted);
  font-size: 15px;
}

.inline-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.inline-link span {
  color: var(--orange);
  font-size: 23px;
  line-height: 1;
  transition: transform 180ms ease;
}

.inline-link:hover span {
  transform: translateX(5px);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  min-height: 460px;
  height: min(72vh, 760px);
  max-height: 760px;
  object-fit: cover;
  object-position: center center;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.03) 33%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(to right, rgba(5, 5, 5, 0.2), transparent 44%, rgba(5, 5, 5, 0.13));
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-top: -113px;
  padding: 42px 46px;
  border: 1px solid rgba(255, 113, 23, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(12, 10, 9, 0.97), rgba(11, 10, 9, 0.9)),
    radial-gradient(circle at 95% 10%, rgba(255, 113, 23, 0.12), transparent 35%);
  box-shadow: var(--shadow-orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
  color: var(--orange-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 28px;
  height: 1px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.hero-intro {
  max-width: 680px;
}

.hero-intro h1 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4.25vw, 52px);
  font-weight: 825;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.hero-intro h1 span {
  color: var(--orange-bright);
}

.hero-intro p {
  max-width: 630px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 205px;
}

/* =========================================================
   FAIXA DE PILARES
========================================================= */
.focus-strip {
  padding: 56px 0 22px;
}

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

.focus-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 113px;
  padding: 24px;
  border: 1px solid var(--line-white);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
}

.focus-index {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.focus-item h2 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 750;
}

.focus-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   PRODUTOS DESTAQUE / CELULARES
========================================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(215px, 1fr) 202px;
  gap: 21px;
  min-height: 474px;
  overflow: hidden;
  padding: 32px 27px 0 32px;
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  background: var(--panel);
}

.featured-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  content: "";
  border-radius: 50%;
  filter: blur(5px);
}

.featured-card.bolao::after {
  background: radial-gradient(circle, rgba(209, 151, 36, 0.17), transparent 70%);
}

.featured-card.termo::after {
  background: radial-gradient(circle, rgba(124, 52, 241, 0.19), transparent 70%);
}

.card-copy {
  position: relative;
  z-index: 1;
}

.card-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.live {
  background: var(--success);
  box-shadow: 0 0 12px rgba(85, 217, 148, 0.85);
}

.card-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3vw, 33px);
  font-weight: 790;
  letter-spacing: -0.05em;
}

.card-copy p {
  color: var(--muted);
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.card-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line-white);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 29px;
}

.card-links a,
.app-content > a,
.browser-scene > a {
  color: var(--orange-bright);
  font-size: 13px;
  font-weight: 740;
}

.card-links a:hover,
.app-content > a:hover,
.browser-scene > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.phone-pair {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 100%;
}

.phone-pair img {
  width: calc(50% - 5px);
  height: auto;
  max-height: 377px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 35px rgba(0, 0, 0, 0.45);
}

.phone-pair img:nth-child(2) {
  transform: translateY(26px);
}

/* =========================================================
   APLICATIVOS SECUNDÁRIOS
========================================================= */
.apps {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.012);
}

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

/* Os dois cards usam a mesma estrutura para manter largura e altura equilibradas. */
.app-card {
  display: grid;
  grid-template-columns: minmax(205px, 45%) 1fr;
  min-height: 312px;
  overflow: hidden;
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  background: var(--panel);
}

/* Moldura fixa da arte: impede que imagens de proporções diferentes desalinhem os cards. */
.app-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 312px;
  overflow: hidden;
  background: #090807;
}

.app-visual {
  display: block;
  width: 100%;
  height: 100%;
}

.forca-media {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 161, 53, 0.12), transparent 52%),
    #0b0907;
}

.forca-media .app-visual {
  width: auto;
  max-width: 100%;
  height: 312px;
  object-fit: contain;
  object-position: center center;
}

.orfeu-media {
  background:
    radial-gradient(circle at 50% 44%, rgba(214, 23, 23, 0.17), transparent 48%),
    #080707;
}

.orfeu-media .app-visual {
  width: auto;
  max-width: 100%;
  height: 312px;
  object-fit: contain;
  object-position: center center;
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 28px 26px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-top b {
  color: var(--orange);
  font-size: inherit;
}

.app-content h3 {
  font-size: 27px;
  letter-spacing: -0.045em;
}

.app-content p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   PROJETOS WEB EM MOCKUP DE NAVEGADOR
========================================================= */
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.browser-card {
  overflow: hidden;
  min-height: 370px;
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  background: #0d0d0d;
}

.browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 44px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.browser-bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.browser-bar span {
  overflow: hidden;
  margin-left: 9px;
  color: #7f7974;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 326px;
  padding: 32px 27px;
}

.browser-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.legal .browser-scene {
  background: linear-gradient(139deg, #090909 15%, #17110d 100%);
}

.legal .browser-scene::before {
  background:
    linear-gradient(90deg, transparent 45%, rgba(195, 160, 94, 0.1)),
    radial-gradient(circle at 80% 28%, rgba(195, 160, 94, 0.21), transparent 25%);
}

.procurator .browser-scene {
  background: linear-gradient(145deg, #0a1117, #080b10);
}

.procurator .browser-scene::before {
  background:
    linear-gradient(transparent 55%, rgba(11, 60, 83, 0.22)),
    radial-gradient(circle at 83% 13%, rgba(49, 132, 174, 0.22), transparent 26%);
}

.sports .browser-scene {
  background: linear-gradient(145deg, #0d100b, #17120b);
}

.sports .browser-scene::before {
  background:
    radial-gradient(circle at 70% 30%, rgba(214, 164, 50, 0.21), transparent 27%),
    linear-gradient(0deg, rgba(98, 80, 24, 0.15), transparent 47%);
}

.browser-scene > * {
  position: relative;
  z-index: 1;
}

.browser-scene small {
  margin-bottom: 14px;
  color: var(--orange-bright);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal .browser-scene small {
  color: #d4b477;
}

.procurator .browser-scene small {
  color: #60b3da;
}

.sports .browser-scene small {
  color: #ebc159;
}

.browser-scene h3 {
  margin-bottom: 13px;
  font-size: 35px;
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.browser-scene p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.project-status {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(96, 179, 218, 0.24);
  border-radius: 999px;
  color: #83cae9;
  background: rgba(34, 109, 145, 0.14);
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   SERVIÇOS / POSICIONAMENTO EDITORIAL
========================================================= */
.services {
  padding-top: 74px;
}

.services-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(380px, 1fr);
  gap: 78px;
  padding: 66px 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.services-shell::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 128px;
  height: 1px;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 113, 23, 0.62);
}

.services-heading h2 {
  max-width: 565px;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.services-heading h2 span {
  color: var(--orange-bright);
}

.services-narrative {
  align-self: center;
  padding-left: 38px;
  border-left: 1px solid rgba(255, 113, 23, 0.18);
}

.services-narrative p {
  color: var(--muted);
  font-size: 15px;
}

.services-narrative .services-lead {
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.62;
}

.services-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.services-capabilities span {
  position: relative;
  padding-left: 16px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 670;
  letter-spacing: 0.025em;
}

.services-capabilities span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 113, 23, 0.72);
  transform: translateY(-50%);
}

/* =========================================================
   CONTATO / FOOTER
========================================================= */
.contact {
  padding: 58px 0 90px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 35px;
  padding: 37px 42px;
  border: 1px solid rgba(255, 113, 23, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 50%, rgba(255, 113, 23, 0.14), transparent 26%),
    var(--panel-strong);
}

.contact-shell > img {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(255, 95, 13, 0.17);
}

.contact-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(26px, 3vw, 35px);
}

.contact-actions {
  display: grid;
  gap: 11px;
  min-width: 285px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-shell p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-shell > small {
  color: #6f6964;
  font-size: 12px;
}

/* =========================================================
   ANIMAÇÕES DISCRETAS
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TABLETS / LAPTOPS MENORES
========================================================= */
@media (max-width: 1120px) {
  .hero-footer {
    margin-top: -68px;
    padding: 35px;
  }

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

  .featured-card {
    grid-template-columns: 1fr 230px;
    min-height: 430px;
  }

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

  .app-card {
    grid-template-columns: minmax(220px, 42%) 1fr;
  }

  .services-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .services-narrative {
    max-width: 760px;
    padding-left: 0;
    border-left: 0;
  }

  .contact-shell {
    grid-template-columns: 92px 1fr;
  }

  .contact-shell > img {
    width: 92px;
    height: 92px;
  }

  .contact-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }
}

/* =========================================================
   MOBILE: menu, cards empilhados e toque confortável
========================================================= */
@media (max-width: 880px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    background: rgba(5, 5, 5, 0.93);
  }

  .brand img {
    width: 43px;
    height: 43px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .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);
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--line);
    background: #090807;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a:not(.nav-cta),
  .nav-cta {
    min-height: 50px;
    padding: 15px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
  }

  .nav-cta {
    margin-top: 5px;
    text-align: center;
    background: rgba(255, 113, 23, 0.13);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-media img {
    min-height: unset;
    height: auto;
    max-height: unset;
    aspect-ratio: 16 / 10;
    object-position: center;
  }

  .hero-footer {
    display: grid;
    gap: 28px;
    margin-top: 0;
    padding: 28px 23px;
    border-radius: 0 0 22px 22px;
  }

  .hero-intro h1 {
    font-size: clamp(29px, 9.5vw, 40px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .focus-strip {
    padding-top: 34px;
  }

  .focus-grid,
  .web-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .section-head,
  .section-head.compact {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 31px;
  }

  .section-head h2,
  .services-intro h2,
  .contact-copy h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 25px 22px 0;
  }

  .phone-pair {
    width: min(280px, 100%);
    min-height: 280px;
    margin: 0 auto;
  }

  .phone-pair img {
    max-height: unset;
  }

  .app-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-media {
    min-height: unset;
  }

  .forca-media .app-visual {
    aspect-ratio: 526 / 296;
    height: auto;
  }

  .orfeu-media {
    height: 310px;
  }

  .orfeu-media .app-visual {
    height: 310px;
    width: auto;
    max-width: 100%;
  }

  .app-content {
    padding: 24px 22px 27px;
  }

  .browser-card {
    min-height: 0;
  }

  .browser-scene {
    min-height: 292px;
  }

  .services-shell {
    gap: 28px;
    padding: 38px 0 35px;
  }

  .services-heading h2 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .services-narrative .services-lead {
    font-size: 18px;
  }

  .services-capabilities {
    gap: 12px 18px;
    margin-top: 24px;
    padding-top: 21px;
  }

  .contact {
    padding-bottom: 58px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }

  .contact-shell > img {
    width: 76px;
    height: 76px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-actions .button-primary {
    padding-inline: 14px;
    font-size: 13px;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   CELULARES MUITO ESTREITOS / SAFE AREA IPHONE
========================================================= */
@media (max-width: 390px) {
  .container {
    width: calc(100% - 27px);
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .featured-card,
  .contact-shell {
    padding-inline: 18px;
  }

  .focus-item {
    padding: 20px 18px;
  }
}

/* Remove movimentos quando configurado pelo usuário do dispositivo. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
