/* ==========================================================================
   Rise Dev - parte pública
   Sistema de design em um arquivo só: sem Tailwind/CDN, sem build.
   Para trocar a cor da marca, altere as variáveis --brand-* logo abaixo.
   Os ícones usam um subconjunto da Material Symbols (assets/fonts/material-icons-subset.woff2):
   ao precisar de um ícone novo, gere outro subconjunto com o nome dele (ver README em assets/fonts).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/assets/fonts/material-icons-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* Marca */
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #fdba74;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  --brand-800: #9a3412;

  /* Neutros */
  --ink: #0b1220;
  --ink-2: #111a2e;
  --ink-3: #1a2540;
  --navy: #1f2847;
  --text: #1a2130;
  --muted: #566074;
  --line: #e4e7ec;
  --line-strong: #d3d8e0;
  --bg: #fafaf9;
  --surface: #ffffff;
  --soft: #f4f5f7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 1px rgba(11, 18, 32, .04);
  --shadow-md: 0 8px 24px -8px rgba(11, 18, 32, .16), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-lg: 0 24px 48px -16px rgba(11, 18, 32, .28), 0 8px 16px -8px rgba(11, 18, 32, .12);
  --glow: 0 10px 30px -8px rgba(249, 115, 22, .55);
  --mark: #dc634a; /* cor do símbolo, igual à dos sistemas */

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400; font-style: normal;
  font-size: 1.25em; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; flex: none;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Transição suave entre páginas (navegadores com View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.site-header { view-transition-name: site-header; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Botões ---------- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { font-size: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  --_fg: #fff; --_bd: transparent;
  background-image: linear-gradient(135deg, var(--brand-700), var(--brand-600) 55%, var(--brand-500));
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(249, 115, 22, .7); }

.btn-secondary { --_bg: var(--surface); }
.btn-secondary:hover { border-color: var(--ink); }

.btn-dark { --_bg: var(--ink); --_fg: #fff; --_bd: var(--ink); }
.btn-dark:hover { --_bg: var(--ink-3); }

.btn-outline-light { --_fg: #fff; --_bd: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); --_bd: rgba(255, 255, 255, .5); }

.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; color: var(--brand-700); font-size: .95rem;
}
.link-arrow .icon { font-size: 1.1em; transition: transform .25s var(--ease); }
a:hover > .link-arrow .icon, button:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11, 18, 32, .25); background: rgba(255, 255, 255, .92); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; color: var(--ink); }
/* Tamanho e altura em "em" para acompanhar o texto ao lado. As barras são o peso visual do desenho
   e ficam embaixo; por isso o símbolo sobe um pouco, deixando a base das barras perto da linha do texto. */
.brand-mark { height: 1.46em; width: auto; aspect-ratio: 405 / 424; color: var(--mark); transform: translateY(-.26em); flex: none; }
.brand b { color: var(--brand-500); font-weight: 700; }

.nav { display: none; align-items: center; gap: .25rem; margin-left: 1rem; }
.nav a {
  position: relative; padding: .5rem .85rem; border-radius: 999px;
  font-size: .94rem; font-weight: 500; color: #3b4558;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--brand-500);
}

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header-actions .hide-sm { display: none; }

.burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
}
.burger .icon { font-size: 1.5rem; }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: .75rem var(--gutter) 1.25rem;
}
.mobile-menu.open { display: block; animation: drop .22s var(--ease); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.05rem;
}
.mobile-menu a[aria-current="page"] { color: var(--brand-700); font-weight: 600; }
.mobile-menu .btn { margin-top: 1rem; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .nav { display: flex; }
  .burger, .mobile-menu { display: none !important; }
  .header-actions .hide-sm { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5.5rem, 10vw, 8.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 88% -5%, rgba(249, 115, 22, .42), transparent 62%),
    radial-gradient(45% 55% at -5% 105%, rgba(60, 92, 200, .30), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(75% 70% at 70% 30%, #000 20%, transparent 75%);
}

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 4rem; } }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .85rem .38rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .86);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px rgba(249, 115, 22, .22); }

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98;
}
.grad-text {
  background: linear-gradient(100deg, var(--brand-300), var(--brand-500) 55%, var(--brand-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .72); line-height: 1.65; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }

/* painel "ecossistema" do hero */
.eco-panel {
  position: relative; border-radius: var(--radius-lg); padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.eco-panel h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .6); padding: .25rem .5rem .85rem; }
.eco-list { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.eco-item {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  padding: .85rem .9rem; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255, 255, 255, .05); color: #fff;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.eco-item:hover { background: rgba(255, 255, 255, .11); border-color: rgba(251, 146, 60, .5); transform: translateX(4px); }
.eco-mono {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
}
.eco-item strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.eco-item small { display: block; font-size: .83rem; color: rgba(255, 255, 255, .6); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eco-item .icon { margin-left: auto; color: rgba(255, 255, 255, .5); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section.alt { background: var(--soft); }
.section.tight-top { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin-top: .85rem; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-row .section-head { margin-bottom: 0; }

/* faixa de proposta (sobreposta ao hero) */
.value-strip { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3rem, 6vw, 4.75rem)); }
.value-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-card h3 { font-size: 1.3rem; margin-top: 1.1rem; }
.value-card p { margin-top: .6rem; color: var(--muted); font-size: .98rem; }

.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.icon-tile .icon { font-size: 1.6rem; }

/* bloco de transformação (heroHome) */
.statement { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .statement { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.statement h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; }
.statement p { color: var(--muted); font-size: 1.15rem; }
.statement .hero-actions { margin-top: 1.75rem; }

/* ---------- Cartões de produto / notícia ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); padding: 0;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.card:hover, .card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 32, .35));
  pointer-events: none;
}
.card-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  padding: .28rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .94); color: var(--brand-700);
}

/* quadro padrão quando não há imagem: identidade da marca, sem foto "de banco" */
.media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(249, 115, 22, .55), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgba(90, 120, 220, .28), transparent 60%),
    linear-gradient(160deg, var(--ink-2), var(--ink));
}
.media-fallback::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.media-fallback span {
  position: relative; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; color: #fff;
}
.media-fallback span em { font-style: normal; color: var(--brand-400); margin-left: .12em; }

.card-body { display: flex; flex-direction: column; flex: 1; gap: .65rem; padding: 1.5rem 1.6rem 1.7rem; }
.card-body h3 { font-size: 1.35rem; }
.card-body p { color: var(--muted); font-size: .98rem; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.meta { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }

/* destaque horizontal */
.feature { display: grid; }
.feature .card-media { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature .card-media { aspect-ratio: auto; min-height: 380px; }
  .feature .card-body { padding: 2.5rem; justify-content: center; }
  .feature .card-foot { margin-top: 1.25rem; padding-top: 0; }
  .feature .card-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .feature .card-body p { font-size: 1.08rem; }
}

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.diff {
  padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.diff:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.diff h3 { font-size: 1.2rem; margin-top: 1.1rem; }
.diff p { margin-top: .55rem; color: var(--muted); font-size: .98rem; }

/* ---------- Faixa de chamada (CTA) ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: var(--ink); color: #fff; border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 90% at 50% 120%, rgba(249, 115, 22, .5), transparent 65%),
    radial-gradient(40% 60% at 100% 0%, rgba(90, 120, 220, .25), transparent 60%);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 22ch; margin-inline: auto; }
.cta-band p { margin: 1.1rem auto 0; max-width: 40rem; color: rgba(255, 255, 255, .72); font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Cabeçalho de página interna ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 90% at 92% -20%, rgba(249, 115, 22, .4), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 90% at 80% 0%, #000, transparent 75%);
}
.page-hero .eyebrow { color: var(--brand-300); }
.page-hero h1 { margin-top: .9rem; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; }
.page-hero p { margin-top: 1.1rem; max-width: 42rem; color: rgba(255, 255, 255, .72); font-size: 1.15rem; }

/* busca */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.count { color: var(--muted); font-size: .95rem; }
.count strong { color: var(--ink); }
.search { position: relative; display: flex; gap: .5rem; flex: 1 1 320px; max-width: 520px; }
.search .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.search .input { padding-left: 2.9rem; border-radius: 999px; }
.input::placeholder, .textarea::placeholder { color: #8a93a4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(249, 115, 22, .16); }
.textarea { resize: vertical; min-height: 140px; }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty {
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}

/* ---------- Tecnologias / parcerias ---------- */
.tech-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tech {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.tech:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tech-thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; position: relative; background: var(--ink-2); }
.tech-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tech-thumb .media-fallback span { font-size: 1.3rem; }
.tech strong { display: block; font-size: 1.02rem; letter-spacing: -.015em; }
.tech small { display: block; margin-top: .1rem; color: var(--muted); font-size: .86rem; }

/* ---------- Sobre ---------- */
.prose { color: #3a4356; font-size: 1.1rem; line-height: 1.8; white-space: pre-line; max-width: 46rem; }
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; } }
.about-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.about-lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); font-weight: 500; letter-spacing: -.015em; max-width: 46rem; margin-bottom: 1.5rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; } }
.contact-aside h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.contact-aside p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: passo; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; color: #3a4356; counter-increment: passo; }
.steps li::before {
  content: counter(passo); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200);
}
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.form-row .field { margin-bottom: 0; }
.form-row + .form-row, .form-row + .field { margin-top: 1.1rem; }
.alert { padding: .9rem 1.1rem; border-radius: 14px; margin-bottom: 1.25rem; font-size: .95rem; border: 1px solid; }
.alert.ok { background: #ecfdf3; border-color: #a6f4c5; color: #05603a; }
.alert.err { background: #fef3f2; border-color: #fecdca; color: #912018; }
.legal { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; gap: 4rem; } }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 1rem; max-width: 26rem; font-size: .97rem; }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 600; }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.site-footer li a { transition: color .2s; }
.site-footer li a:hover { color: var(--brand-300); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .88rem; color: rgba(255, 255, 255, .5); }

/* ---------- Modal de detalhe (<dialog>) ---------- */
html.dialog-open { overflow: hidden; }
dialog.modal {
  width: min(900px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: pop .3s var(--ease); }
dialog.modal::backdrop { background: rgba(8, 12, 22, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-scroll { overflow-y: auto; overscroll-behavior: contain; }
.modal-media { position: relative; aspect-ratio: 16 / 7; background: var(--ink-2); overflow: hidden; flex: none; }
.modal-media[hidden] { display: none; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgba(11, 18, 32, .72); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, transform .2s;
}
.modal-close:hover { background: var(--ink); transform: rotate(90deg); }
.modal-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: .5rem; }
.modal-lead { margin-top: .9rem; font-size: 1.12rem; color: var(--ink); font-weight: 500; line-height: 1.55; white-space: pre-line; }
.modal-text { margin-top: 1.1rem; color: #3a4356; line-height: 1.8; white-space: pre-line; }
.modal-sources { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); white-space: pre-line; }
.modal-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.modal-steps { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); list-style: none; padding: 0; }
.modal-steps li { padding: 1.1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.modal-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: .85rem; margin-bottom: .7rem; }
.modal-steps strong { display: block; letter-spacing: -.01em; }
.modal-steps span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.modal-gallery { margin-top: 1.75rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.modal-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.skeleton { background: linear-gradient(90deg, var(--soft) 25%, #eceef2 37%, var(--soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Erro ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -.05em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .site-footer, .hero::before, .hero::after { display: none !important; }
  .hero { background: none; color: #000; padding: 0; }
}

/* ---------- Cartão clicável (botão "esticado" sobre o cartão) ---------- */
.stretch { all: unset; display: inline; cursor: pointer; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.stretch:focus-visible), .tech:has(.stretch:focus-visible) { outline: 3px solid var(--brand-400); outline-offset: 3px; }
.tech { position: relative; }
.tech-text { min-width: 0; }

/* ---------- Login ---------- */
.auth { min-height: calc(100dvh - var(--header-h)); display: grid; align-items: center; padding: clamp(2rem, 6vw, 4rem) var(--gutter); position: relative; isolation: isolate; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 90% 0%, rgba(249, 115, 22, .14), transparent 60%), radial-gradient(40% 50% at 0% 100%, rgba(60, 92, 200, .10), transparent 60%); }
.auth-wrap { width: 100%; max-width: 460px; margin-inline: auto; }
.auth-intro { text-align: center; margin-bottom: 1.75rem; }
.auth-intro h1 { margin-top: .75rem; font-size: clamp(1.9rem, 5vw, 2.4rem); }
.auth-intro p { margin-top: .5rem; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--soft); }
.tabs a { text-align: center; padding: .6rem .5rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background-color .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
