/* =============================================================
   DEVS DO FUTURO — Landing Page
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --cyan: #00D9FF;
  --cyan-blue: #00A9D6;
  --tech-blue: #7DDFFF;
  --blue: #0077FF;
  --blue-deep: #0066FF;
  --navy: #0A2033;
  --deep-space: #050B12;
  --dark-navy: #0E1522;
  --navy-blue: #0A2033;
  --ice-cyan: #7DEBFF;
  --soft-gray: #A7B4BD;
  --border-dark: #123449;

  --grad-primary: linear-gradient(135deg, #00D9FF 0%, #0077FF 100%);
  --grad-tech: linear-gradient(135deg, #00D9FF 0%, #00A9D6 50%, #0066FF 100%);
  --glow: 0 0 40px rgba(0, 217, 255, 0.20);

  --font-title: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 76px;
  --shadow-sm: 0 4px 18px rgba(10, 32, 51, 0.06);
  --shadow: 0 18px 50px rgba(10, 32, 51, 0.10);
  --shadow-cyan: 0 18px 45px rgba(0, 168, 214, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Light theme (default) ---------- */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #F5FAFC;
  --surface: #ffffff;
  --surface-2: #F5FAFC;
  --text: #0A2033;
  --muted: #5C6C78;
  --muted-2: #8A99A4;
  --border: #DCE7EE;
  --border-strong: #C6D6E0;
  --card-icon-bg: #EAF7FE;
  --header-bg: rgba(255, 255, 255, 0.82);
  --swoosh: rgba(0, 217, 255, 0.14);
  --cta-bg: linear-gradient(120deg, #F5FAFC 0%, #E6F5FE 100%);
  --device-bezel: #0A2033;
  color-scheme: light;
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --bg: #050B12;
  --bg-soft: #0B131F;
  --surface: #0E1522;
  --surface-2: #0B1420;
  --text: #F5FAFC;
  --muted: #A7B4BD;
  --muted-2: #6E7F8B;
  --border: #123449;
  --border-strong: #1B4761;
  --card-icon-bg: rgba(0, 217, 255, 0.10);
  --header-bg: rgba(5, 11, 18, 0.78);
  --swoosh: rgba(0, 217, 255, 0.10);
  --cta-bg: linear-gradient(120deg, #0E1522 0%, #0A2233 100%);
  --device-bezel: #081019;
  color-scheme: dark;
}

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

* { margin: 0; }

html { scroll-behavior: smooth; }

#topo { display: block; }
section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* não cria scroll container: preserva o header sticky */
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

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

ol, ul { list-style: none; padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* =============================================================
   Layout helpers
   ============================================================= */
.container {
  width: min(100% - 44px, var(--container));
  margin-inline: auto;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); transition: background-color 0.4s var(--ease); }

.eyebrow {
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-blue);
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(26px, 2.7vw, 37px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.section__head--wide .section__title { font-size: clamp(25px, 2.35vw, 33px); }

.section__text {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
  margin-top: 18px;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.35fr;
  gap: 56px;
  align-items: start;
}
.section__head--wide {
  grid-template-columns: minmax(260px, 0.82fr) 2fr;
  gap: 48px;
  align-items: center;
}

.section__head-text .btn { margin-top: 28px; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-primary);
  color: #041018;
  box-shadow: 0 10px 26px rgba(0, 168, 214, 0.32);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 168, 214, 0.42), var(--glow);
}

.btn--outline {
  border-color: var(--cyan-blue);
  color: var(--cyan-blue);
  background: transparent;
}
.btn--outline:hover {
  background: rgba(0, 169, 214, 0.10);
  transform: translateY(-2px);
}

.btn--sm { padding: 13px 22px; font-size: 13.5px; }

/* =============================================================
   Header
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
/* O desfoque fica no pseudo-elemento: assim o <header> NÃO vira
   containing block do menu fixo (drawer) no mobile. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__logo { height: 42px; width: auto; }
.brand--footer .brand__logo { height: 46px; }

/* troca de logo conforme o tema */
html[data-theme="light"] .brand__logo--dark,
html[data-theme="light"] .rocket-icon--dark,
html[data-theme="light"] .jet__rocket--dark { display: none; }
html[data-theme="dark"] .brand__logo:not(.brand__logo--dark),
html[data-theme="dark"] .rocket-icon:not(.rocket-icon--dark),
html[data-theme="dark"] .jet__rocket:not(.jet__rocket--dark) { display: none; }

.rocket-icon { width: 20px; height: 20px; object-fit: contain; flex: none; }
.rocket-icon--sm { width: 30px; height: 30px; }
.rocket-icon--lg { width: 54px; height: 54px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__title { display: none; }
.nav__cta { display: none; }
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-blue);
}

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--cyan-blue); transform: rotate(-12deg); }
.theme-toggle .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
html[data-theme="light"] .theme-toggle .icon--sun { opacity: 1; transform: scale(1); }
html[data-theme="light"] .theme-toggle .icon--moon { opacity: 0; transform: scale(0.4) rotate(40deg); }
html[data-theme="dark"] .theme-toggle .icon--sun { opacity: 0; transform: scale(0.4) rotate(-40deg); }
html[data-theme="dark"] .theme-toggle .icon--moon { opacity: 1; transform: scale(1); }

.header__cta .rocket-icon { width: 20px; height: 20px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.menu-toggle .icon {
  grid-area: 1 / 1;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}
.menu-toggle .icon--close { opacity: 0; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .icon--menu { opacity: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .icon--close { opacity: 1; transform: rotate(0deg); }
.menu-toggle[aria-expanded="true"] { border-color: var(--cyan-blue); }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding: 64px 0 76px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.22) 0%, rgba(0, 119, 255, 0.08) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__text {
  color: var(--muted);
  font-size: 17px;
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* --- Devices --- */
.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero__swoosh {
  position: absolute;
  inset: -6% -8% auto -8%;
  width: 116%;
  height: 100%;
  fill: var(--swoosh);
  transition: fill 0.4s var(--ease);
  z-index: 0;
}

.device--laptop {
  position: relative;
  z-index: 2;
  width: 84%;
  max-width: 450px;
  transform: translateY(6px);
}
.device__screen {
  border-radius: 16px 16px 4px 4px;
  border: 10px solid var(--device-bezel);
  border-bottom-width: 8px;
  background: linear-gradient(150deg, #071827 0%, #0A2033 45%, #0C2B45 100%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.device__base {
  height: 14px;
  margin: 0 -6%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #1B2B38, #0C161F);
  box-shadow: 0 14px 30px rgba(10, 32, 51, 0.25);
}
.device__base::after {
  content: "";
  display: block;
  width: 22%;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.mini { color: #EAF7FE; }
.mini__brand { display: flex; align-items: center; }
.mini__brand img { height: 20px; width: auto; }
.mini__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.2;
  margin: 16px 0 8px;
}
.mini__title span { color: var(--ice-cyan); }
.mini__sub { font-size: 10px; color: #9FBACB; letter-spacing: 0.03em; }
.mini__btn {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 600;
  color: #041018;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
}

.device--phone {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: -3%;
  width: 116px;
  height: 232px;
  border-radius: 24px;
  border: 8px solid var(--device-bezel);
  background: linear-gradient(150deg, #071827, #0C2B45);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.device__screen--phone {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  gap: 8px;
}
.phone__logo { width: 82px; height: auto; }

.jet {
  position: absolute;
  z-index: 1;
  width: 130px;
  height: 130px;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 168, 214, 0.30));
  animation: float 5.5s ease-in-out infinite;
}
.jet--hero { top: -3%; right: 0; }
.jet__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--cyan-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.7;
}
.jet__rocket {
  position: absolute;
  top: 2%;
  right: 0;
  width: 58%;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =============================================================
   Cards
   ============================================================= */
.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-blue);
  box-shadow: var(--shadow-cyan);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--cyan-blue);
  background: var(--card-icon-bg);
  border: 1px solid var(--border);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card__title em { font-style: normal; font-size: 12px; color: var(--muted-2); font-weight: 500; }
.card__text { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* =============================================================
   Partner
   ============================================================= */
.partner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.35fr;
  gap: 50px;
  align-items: center;
}
.partner__aside { position: relative; }
.jet--partner { top: -86px; right: 0; width: 150px; height: 150px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature { text-align: center; padding: 0 14px; }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--cyan-blue);
  background: var(--card-icon-bg);
  border: 1px solid var(--border);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { font-family: var(--font-title); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: 14px; }

/* =============================================================
   Steps
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  text-align: center;
  padding: 4px 8px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -9px;
  width: 18px;
  height: 1px;
  background: var(--border-strong);
}
.step__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--cyan-blue);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover .step__icon { border-color: var(--cyan-blue); box-shadow: var(--glow); }
.step__icon .icon { width: 27px; height: 27px; }
.step__icon .rocket-icon { width: 32px; height: 32px; }
.step__title { font-family: var(--font-title); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step__text { color: var(--muted); font-size: 13.5px; max-width: 24ch; margin-inline: auto; }

/* =============================================================
   Clientes
   ============================================================= */
.clients__head { max-width: 620px; margin-bottom: 40px; }
.clients__head .section__text { margin-top: 16px; }

.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.client {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.client:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-blue);
  box-shadow: var(--shadow-cyan);
}
.client__logo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.client__logo img { width: 100%; height: 100%; object-fit: cover; }
.client__logo--plain {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px;
}
.client__logo--plain img { object-fit: contain; }
.client__info { display: grid; gap: 4px; min-width: 0; }
.client__name { font-family: var(--font-title); font-size: 18px; font-weight: 600; }
.client__desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.client__url {
  color: var(--cyan-blue);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.client__arrow {
  margin-left: auto;
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--cyan-blue);
  transition: transform 0.3s var(--ease);
}
.client:hover .client__arrow { transform: translate(3px, -3px); }

/* =============================================================
   CTA
   ============================================================= */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--cta-bg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 30px;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cta__bg {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.20), transparent 68%);
  pointer-events: none;
}
.cta__rocket { width: 56px; height: 56px; margin-bottom: 16px; }
.cta__title {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 26ch;
  position: relative;
}
.cta__text { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 42ch; }
.cta__side { display: grid; gap: 20px; justify-items: start; position: relative; }
.cta__contacts { display: grid; gap: 10px; }
.cta__contacts li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}
.cta__contacts .icon { width: 17px; height: 17px; color: var(--cyan-blue); }
.cta__contacts a { transition: color 0.2s var(--ease); }
.cta__contacts a:hover { color: var(--cyan-blue); }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 26px;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand--footer { flex: none; }
.footer__tags { color: var(--muted-2); font-size: 12.5px; letter-spacing: 0.04em; }
.footer__nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-inline: auto;
}
.footer__nav a { font-size: 14px; color: var(--muted); transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--cyan-blue); }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { color: var(--cyan-blue); border-color: var(--cyan-blue); transform: translateY(-2px); }
.footer__social .icon { width: 18px; height: 18px; }

.footer__bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer__bottom p { color: var(--muted-2); font-size: 12.5px; }

/* =============================================================
   Reveal animation
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   Backdrop do menu (mobile)
   ============================================================= */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 10, 17, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 861px) {
  .nav-backdrop { display: none; }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .section__head { grid-template-columns: 1fr; gap: 36px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { min-height: 360px; }
  .hero__content { max-width: 640px; }
  .device--phone { right: 8%; }
}

@media (max-width: 860px) {
  /* ---- Menu lateral (drawer à direita) ---- */
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 22px 20px calc(30px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 60px rgba(4, 10, 17, 0.28);
    transform: translateX(105%);
    transition: transform 0.38s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__title {
    display: block;
    font-family: var(--font-text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 0 10px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .nav__link:active,
  .nav__link.is-active { background: var(--card-icon-bg); }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--cyan-blue); }

  .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 20px;
    padding-block: 16px;
  }

  .menu-toggle { display: grid; }
  /* o .nav sai do fluxo (fixed), então empurra as ações para a direita */
  .header__actions { margin-left: auto; }
  .header__cta { display: none; }
  body.menu-open { overflow: hidden; }

  .section { padding: 64px 0; }
  .partner { grid-template-columns: 1fr; gap: 30px; }
  .partner__aside { order: -1; padding-top: 70px; }
  .jet--partner { top: 0; right: 50%; width: 120px; height: 120px; transform: translateX(50%); animation: none; }
  .features { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .clients { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .step:not(:last-child)::after { display: none; }
  .cta { grid-template-columns: 1fr; padding: 32px 26px; }
  .cta__side { justify-items: stretch; }
  .cta__side .btn { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; margin-inline: 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 32px, var(--container)); }
  .cards--4, .cards--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 40px; }
  .hero__visual { min-height: 300px; }
  .device--laptop { width: 100%; }
  .device--phone { width: 88px; height: 178px; right: 2%; border-radius: 18px; }
  .phone__logo { width: 60px; }
  .jet--hero { width: 90px; height: 90px; }
  .brand__logo { height: 36px; }
}
