/* ==========================================================================
   Programe Studio · componentes · v1.1
   Depende de tokens.css. Componentes só leem tokens semânticos, então
   funcionam igual dentro de .theme-light e .theme-dark.
   Ícones: Lucide, traço 1,75, tamanhos 16 / 20 / 24.
   ========================================================================== */

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: var(--weight-regular) 15px/1.625 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
  margin: 0;
}

:where(ul, ol)[class] {
  list-style: none;
  padding: 0;
}

:where(img, svg, video) {
  display: block;
  max-width: 100%;
}

:where(a) {
  color: inherit;
}

:where(button, input, textarea, select) {
  font: inherit;
  color: inherit;
}

.theme-light,
.theme-dark,
[data-theme] {
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

::selection {
  background: var(--gold-500);
  color: var(--gold-ink);
}

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

.lucide {
  stroke-width: 1.75;
}

/* Ícone do sprite: <svg class="i"><use href="assets/icons.svg#nome"/></svg> */
.i {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tipografia ---------- */

.display-xl {
  font: var(--weight-heavy) clamp(56px, 9.9vw + 17.4px, 160px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}

.h1 {
  font: var(--weight-medium) clamp(40px, 2.29vw + 31px, 64px) / 1.04 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font: var(--weight-medium) clamp(34px, 0.95vw + 30.3px, 44px) / 1.06 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font: var(--weight-semibold) clamp(20px, 0.38vw + 18.5px, 24px) / 1.2 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title {
  font: var(--weight-semibold) 17px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
}

.lead {
  font: var(--weight-regular) clamp(16px, 0.19vw + 15.3px, 18px) / 1.6 var(--font-sans);
  color: var(--text-secondary);
  text-wrap: pretty;
}

.body {
  font: var(--weight-regular) 15px/1.625 var(--font-sans);
  color: var(--text-secondary);
  text-wrap: pretty;
}

.eyebrow {
  font: var(--weight-medium) 13px/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.meta {
  font: var(--weight-medium) 14px/1.4 var(--font-sans);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.caption {
  font: var(--weight-regular) 12px/1.4 var(--font-sans);
  color: var(--text-tertiary);
}

.micro {
  font: var(--weight-medium) 11px/1.3 var(--font-sans);
  letter-spacing: 0.02em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-marker { color: var(--text-marker); }

/* Numeral gigante (1 · 2 · 3): some no fundo, não compete com o card */
.numeral {
  font: 700 clamp(96px, 7.6vw + 66px, 176px) / 0.8 var(--font-display);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #333338, var(--ink-850));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg-page);
  color: var(--text-primary);
  overflow: clip;
}

.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

/* Cabeçalho de seção: título à esquerda, apoio à direita */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--space-6) var(--space-16);
  align-items: end;
}

.intro--center {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--space-3));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
  gap: var(--gap, var(--space-3));
}

@media (max-width: 899px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .span-2 { grid-column: span 2; }
}

/* ---------- Botão ----------
   Pílula. O círculo da seta respeita o encaixe: padding direito =
   (altura - círculo) / 2 - borda. Um primário por região.

   Brilho de borda (gleam): um arco de luz gira na borda de 1px
   (conic em border-box), uma purpurina gira por dentro (::before) e um
   reflexo lento varre o fundo (::after). No hover o arco abre, desacelera
   e o fundo respira por baixo. Cada variante só troca as cores --gleam-*. */

@property --gleam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gleam-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gleam-arc {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gleam-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

@property --gleam-glow {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --gleam-breathe {
  syntax: "<number>";
  initial-value: 1;
  inherits: false;
}

/* Pulso do CTA: um anel que sai da borda e some, a cada 2s */
@property --pulse-r {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}

@property --pulse-a {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: false;
}

.btn {
  --btn-h: 48px;
  --btn-icon: 32px;
  --btn-pad-left: var(--space-5);
  --gleam-w: 1px;
  --gleam-dur: 3s;
  --gleam-ease: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --gleam-shine: var(--gleam-shine-rest);
  --pulse-size: 20px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: var(--btn-h);
  padding: 0 calc((var(--btn-h) - var(--btn-icon)) / 2 - var(--gleam-w)) 0 var(--btn-pad-left);
  border: var(--gleam-w) solid transparent;
  border-radius: var(--radius-pill);
  background:
    var(--gleam-fill) padding-box,
    conic-gradient(
      from calc(var(--gleam-angle) - var(--gleam-offset)),
      transparent,
      var(--gleam-accent) var(--gleam-arc),
      var(--gleam-shine) calc(var(--gleam-arc) * 2),
      var(--gleam-accent) calc(var(--gleam-arc) * 3),
      transparent calc(var(--gleam-arc) * 4)
    ) border-box,
    linear-gradient(var(--gleam-edge), var(--gleam-edge)) border-box;
  box-shadow:
    inset 0 -1ex 2rem 4px color-mix(in srgb, var(--gleam-glow-color) calc(var(--gleam-glow) * var(--gleam-breathe) * 100%), transparent),
    inset 0 0 0 1px var(--gleam-inset),
    0 0 0 var(--pulse-r) color-mix(in srgb, var(--pulse-color, transparent) var(--pulse-a), transparent),
    var(--btn-shadow, 0 0 #0000);
  font: var(--weight-semibold) 15px/1 var(--font-sans);
  letter-spacing: -0.012em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation:
    gleam-turn var(--gleam-dur) linear infinite,
    gleam-turn calc(var(--gleam-dur) / 0.4) linear infinite reverse paused,
    gleam-breathe calc(var(--gleam-dur) * 1.5) linear infinite paused,
    var(--btn-pulse, none) 2s ease infinite;
  animation-composition: add, add, replace, replace;
  transition:
    transform var(--dur-press) var(--ease-out),
    --gleam-offset var(--gleam-ease),
    --gleam-arc var(--gleam-ease),
    --gleam-shine var(--gleam-ease),
    --gleam-glow var(--gleam-ease);
}

/* Purpurina: pontos que só aparecem numa fatia que gira com o arco */
.btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 2px 2px, var(--gleam-dot) 0.5px, transparent 0) 0 0 / 4px 4px space;
  mask-image: conic-gradient(from calc(var(--gleam-angle) + 45deg), black, transparent 10% 90%, black);
  opacity: var(--gleam-dot-opacity);
  pointer-events: none;
  animation:
    gleam-turn var(--gleam-dur) linear infinite,
    gleam-turn calc(var(--gleam-dur) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

/* Reflexo: um quadrado com faixa de luz girando atrás do texto */
.btn::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: linear-gradient(-50deg, transparent, var(--gleam-sheen), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: var(--gleam-sheen-opacity);
  pointer-events: none;
  animation:
    gleam-spin var(--gleam-dur) linear infinite,
    gleam-spin calc(var(--gleam-dur) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

.btn:focus-visible {
  --gleam-arc: 20%;
  --gleam-offset: 95deg;
  --gleam-shine: var(--gleam-shine-hover);
  --gleam-glow: 1;
}

.btn:focus-visible,
.btn:focus-visible::before,
.btn:focus-visible::after {
  animation-play-state: running;
}

@keyframes gleam-turn {
  to { --gleam-angle: 360deg; }
}

@keyframes gleam-spin {
  to { rotate: 360deg; }
}

/* Fundo respira: o brilho de baixo enfraquece e volta */
@keyframes gleam-breathe {
  50% { --gleam-breathe: 0.55; }
}

/* O anel abre até --pulse-size apagando aos 70% e espera o próximo ciclo */
@keyframes btn-pulse {
  0% { --pulse-r: 0px; --pulse-a: 75%; }
  70%,
  100% { --pulse-r: var(--pulse-size); --pulse-a: 0%; }
}

.btn:active {
  transform: scale(0.98);
}

.btn--lg {
  --btn-h: 56px;
  --btn-icon: 40px;
  --btn-pad-left: 28px;
}

.btn--sm {
  --btn-h: 40px;
  --btn-icon: 28px;
  --btn-pad-left: var(--space-4);
  --pulse-size: 14px;
  font-size: 14px;
}

/* Sem círculo: padding simétrico */
.btn:not(:has(.btn__icon)) {
  padding-inline: var(--btn-pad-left);
}

.btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--btn-icon);
  height: var(--btn-icon);
  border-radius: 50%;
  transition: transform var(--dur-switch) var(--ease-out);
}

.btn__icon svg {
  width: calc(var(--btn-icon) * 0.4);
  height: calc(var(--btn-icon) * 0.4);
}

/* Dourado: o arco é um reflexo branco correndo pela borda */
.btn--primary {
  --gleam-fill: var(--brand-fill);
  --gleam-edge: rgb(255 215 0 / 0.42);
  --gleam-inset: rgb(156 116 0 / 0.28);
  --gleam-accent: rgb(255 255 255 / 0.85);
  --gleam-shine-rest: var(--porcelain-0);
  --gleam-shine-hover: var(--gold-50);
  --gleam-dot: var(--porcelain-0);
  --gleam-dot-opacity: 0.55;
  --gleam-sheen: var(--porcelain-0);
  --gleam-sheen-opacity: 0.4;
  --gleam-glow-color: rgb(255 246 194 / 0.55);
  --btn-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.62),
    inset 0 -1px 0 rgb(122 90 0 / 0.38),
    var(--glow-brand);
  --btn-pulse: btn-pulse;
  --pulse-color: var(--gold-500);
  color: var(--on-brand);
}

/* Na navbar o botão fica sempre à vista: pulsar ali competiria com o CTA
   da seção, então ela fica parada */
.nav .btn {
  --btn-pulse: none;
}

/* No claro o reflexo branco some no fundo: o arco ganha âmbar nas pontas */
.theme-light .btn--primary {
  --gleam-accent: var(--gold-650);
}

.btn--primary .btn__icon {
  background: var(--gold-ink);
  color: var(--gold-500);
}

/* Fantasma: o arco é dourado sobre o escuro, como no original.
   Fundo opaco (cor do card + 5%) para o conic não vazar por dentro. */
.btn--ghost {
  --gleam-fill: linear-gradient(var(--ghost-fill), var(--ghost-fill));
  --ghost-fill: color-mix(in srgb, var(--surface-1), var(--porcelain-0) 5%);
  --gleam-edge: rgb(255 255 255 / 0.08);
  --gleam-inset: rgb(255 255 255 / 0.04);
  --gleam-accent: var(--gold-500);
  --gleam-shine-rest: var(--porcelain-0);
  --gleam-shine-hover: var(--gold-300);
  --gleam-dot: var(--porcelain-0);
  --gleam-dot-opacity: 0.4;
  --gleam-sheen: var(--gold-500);
  --gleam-sheen-opacity: 0.45;
  --gleam-glow-color: var(--gold-500);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09);
  color: var(--text-primary);
}

.btn--ghost .btn__icon {
  background: var(--surface-3);
  color: var(--text-primary);
}

.theme-light .btn--ghost {
  --ghost-fill: var(--surface-1);
  --gleam-edge: var(--porcelain-200);
  --gleam-inset: rgb(255 255 255 / 0.9);
  --gleam-accent: var(--gold-650);
  --gleam-shine-rest: var(--gold-400);
  --gleam-shine-hover: var(--gold-300);
  --gleam-dot: var(--gold-800);
  --gleam-dot-opacity: 0.35;
  --gleam-sheen: var(--gold-400);
  --gleam-sheen-opacity: 0.35;
  --btn-shadow: var(--elev-1);
}

.theme-light .btn--ghost .btn__icon {
  background: var(--ink-950);
  color: var(--gold-500);
}

@media (hover: hover) {
  .btn:hover {
    --gleam-arc: 20%;
    --gleam-offset: 95deg;
    --gleam-shine: var(--gleam-shine-hover);
    --gleam-glow: 1;
  }

  .btn:hover,
  .btn:hover::before,
  .btn:hover::after {
    animation-play-state: running;
  }

  .btn:hover .btn__icon {
    transform: translateX(2px);
  }

  .btn--ghost:hover {
    --ghost-fill: color-mix(in srgb, var(--surface-1), var(--porcelain-0) 9%);
  }

  .theme-light .btn--ghost:hover {
    --ghost-fill: var(--porcelain-50);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .btn::after {
    animation: none !important;
  }
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* Link de texto com seta: CTA secundário ("Veja como funciona") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: 5px;
  font: var(--weight-medium) 13px/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-tertiary);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, currentColor 30%, transparent);
  transition: color var(--dur-press) var(--ease-out);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-switch) var(--ease-out);
}

@media (hover: hover) {
  .link-arrow:hover { color: var(--text-primary); }
  .link-arrow:hover svg { transform: translateX(2px); }
}

/* Botão de ícone: ferramentas do prompt, menu mobile */
.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-secondary);
  box-shadow: var(--fx-tile);
  cursor: pointer;
  transition:
    color var(--dur-press) var(--ease-out),
    background-color var(--dur-press) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.icon-btn svg { width: 16px; height: 16px; }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn:active { transform: scale(0.96); }

@media (hover: hover) {
  .icon-btn:hover {
    color: var(--text-primary);
    background: var(--surface-3);
  }
}

/* ---------- Cabeçalho de seção: número + eyebrow ---------- */

.badge-hex {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 42px;
  height: 28px;
  padding: 0 12px;
  background: var(--marker);
  color: var(--gold-ink);
  font: var(--weight-semibold) 13px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section-head__rule {
  flex: 0 0 96px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--border-subtle) 32%, transparent);
}

.section-head--center {
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

.section-head--center .section-head__rule {
  flex-basis: auto;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ---------- Palavra marcada ----------
   A seleção do editor em volta de uma palavra do título: fundo tênue,
   filete e quatro alças. No máximo uma por título. */

.mark {
  position: relative;
  isolation: isolate;
  padding-inline: 0.12em;
  margin-inline: 0.04em;
  background: var(--marker-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  inset: 0.1em 0 0.04em;
  pointer-events: none;
}

.mark::before {
  z-index: -1;
  border-radius: var(--radius-xs);
  background: var(--marker-tint);
  box-shadow: inset 0 0 0 1px var(--marker-line);
}

.mark::after {
  --handle: max(4px, 0.085em);
  inset: calc(0.1em - var(--handle) / 2) calc(var(--handle) / -2) calc(0.04em - var(--handle) / 2);
  background:
    linear-gradient(var(--marker) 0 0) top left / var(--handle) var(--handle) no-repeat,
    linear-gradient(var(--marker) 0 0) top right / var(--handle) var(--handle) no-repeat,
    linear-gradient(var(--marker) 0 0) bottom left / var(--handle) var(--handle) no-repeat,
    linear-gradient(var(--marker) 0 0) bottom right / var(--handle) var(--handle) no-repeat;
}

/* ---------- Palavra-chave ----------
   O que importa no título, em degradê dourado, sem a seleção em volta.
   Pode ter mais de uma por título, de uma a três palavras cada: não quebra
   de linha e entra inteira, como a .mark. O padding com margem negativa
   alarga a pintura sem mexer no texto, para o tracking negativo não cortar
   a última letra. */

.grad {
  padding-inline: 0.04em;
  margin-inline: -0.04em;
  background: var(--highlight-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ---------- Chip ----------
   Pílula de fragmento (Planilha, WhatsApp, Agenda...). */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-primary);
  font: var(--weight-regular) 15px/1.6 var(--font-sans);
  box-shadow: var(--fx-surface);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
}

/* Brilho dourado por baixo: só nos fragmentos do hero */
.chip--glow {
  box-shadow: inset 0 -5px 8px rgb(255 215 0 / 0.18), var(--fx-surface);
}

/* ---------- Superfícies ---------- */

.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--fx-surface);
}

.card--xl { border-radius: var(--radius-xl); }
.card--float { box-shadow: var(--fx-surface-float); }

.card--accent {
  background: var(--surface-accent);
  box-shadow: var(--fx-accent);
}

.card--accent .card__title { color: var(--text-accent); }

.card__num {
  font: var(--weight-medium) 14px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}

.card__title {
  font: var(--weight-semibold) clamp(20px, 0.38vw + 18.5px, 24px) / 1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Tile de recurso (Banco de dados, Login, Painéis...) */
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 100px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--fx-surface-float);
  font-size: 15px;
  line-height: 1.25;
}

.tile svg {
  width: 20px;
  height: 20px;
  color: var(--icon-accent);
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-secondary);
  box-shadow: var(--fx-tile);
}

.icon-tile svg { width: 20px; height: 20px; }
.icon-tile--accent { color: var(--icon-accent); }

/* Moldura de foto: editorial, nunca banco de imagem */
.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--fx-surface);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--stroke-in-dark);
  pointer-events: none;
}

/* ---------- Listas ---------- */

.list-diamond {
  display: grid;
  gap: var(--space-2);
}

.list-diamond > li {
  position: relative;
  padding-left: 22px;
}

.list-diamond > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: rgb(255 215 0 / 0.25);
  box-shadow: inset 0 0 0 1px rgb(255 215 0 / 0.6);
  transform: rotate(45deg);
}

/* Linhas em caixa, com recuo crescente (a lista "Você conhece...") */
.list-rows {
  display: grid;
  gap: var(--space-2);
}

.list-rows > li {
  padding: 12px 16px 12px 38px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  box-shadow: var(--fx-surface);
}

.list-rows > li::before { left: 16px; top: calc(12px + 0.62em); }

.list-rows--stagger > li:nth-child(2) { margin-left: 14px; }
.list-rows--stagger > li:nth-child(3) { margin-left: 28px; }
.list-rows--stagger > li:nth-child(4) { margin-left: 42px; }
.list-rows--stagger > li:nth-child(5) { margin-left: 56px; }
.list-rows--stagger > li:nth-child(n + 6) { margin-left: 70px; }

@media (max-width: 599px) {
  .list-rows--stagger > li { margin-left: 0 !important; }
}

/* Chamada com filete: a frase que vira o argumento */
.callout {
  position: relative;
  padding-left: var(--space-5);
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 3px;
  height: 1.3em;
  border-radius: 2px;
  background: var(--marker);
}

/* ---------- Divisor de seção ---------- */

.divider {
  position: relative;
  display: grid;
  place-items: center;
  height: 48px;
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin-inline: auto;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 23px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--divider-track) 18%, var(--divider-track) 82%, transparent);
}

.divider::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  width: min(232px, 30%);
  height: 2px;
  background: var(--marker);
  transform: translateX(-50%);
}

.divider__orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #4a3c10 0%, #30270c 24%, #151107 48%, var(--ink-950) 100%);
  box-shadow: 0 12px 48px rgb(255 199 0 / 0.37), var(--stroke-in-dark);
}

.divider__orb img,
.divider__orb svg {
  width: 20px;
  height: 20px;
}

/* ---------- Passos (Como funciona) ---------- */

.steps {
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: var(--space-4) var(--space-12);
  padding-block: var(--space-12);
  box-shadow: inset 0 1px 0 var(--border-divider);
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.step__num {
  font: var(--weight-medium) 14px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--text-marker);
}

@media (max-width: 899px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-8);
  }
}

/* ---------- Abas (Produto em ação) ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-secondary);
  font: var(--weight-medium) 15px/1 var(--font-sans);
  box-shadow: var(--fx-control);
  cursor: pointer;
  transition:
    background-color var(--dur-switch) var(--ease-out),
    color var(--dur-switch) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.tab svg {
  width: 16px;
  height: 16px;
  color: var(--icon-accent);
}

.tab:active { transform: scale(0.98); }

.tab[aria-selected="true"] {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  box-shadow: var(--elev-1);
}

.tab[aria-selected="true"] svg { color: var(--icon-on-inverse); }

/* ---------- FAQ ---------- */

.faq {
  box-shadow: inset 0 1px 0 var(--border-divider);
}

.faq__item {
  box-shadow: inset 0 -1px 0 var(--border-divider);
}

.faq__item > summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  list-style: none;
  cursor: pointer;
}

.faq__item > summary::-webkit-details-marker { display: none; }

.faq__num {
  font: var(--weight-medium) 14px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}

.faq__q {
  font: var(--weight-semibold) 17px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
  transition: color var(--dur-switch) var(--ease-out);
}

.faq__icon {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: transform var(--dur-switch) var(--ease-out);
}

.faq__item[open] .faq__num,
.faq__item[open] .faq__q { color: var(--text-marker); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-width: calc(var(--measure) + 48px);
  padding: 0 var(--space-8) var(--space-6) 48px;
  color: var(--text-secondary);
}

@supports selector(::details-content) {
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--dur-switch) var(--ease-out),
      content-visibility var(--dur-switch) allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
    block-size: calc-size(auto, size);
  }
}

/* ---------- Prompt: "O que você quer construir?" ----------
   Sempre escuro: em seção clara, use junto com .theme-dark. */

.prompt {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #161618 0%, var(--ink-850) 60%, #0a0a0c 100%);
  box-shadow:
    var(--stroke-in-dark),
    var(--hl-top-dark),
    0 7px 18px rgb(0 0 0 / 0.42),
    0 28px 33px rgb(0 0 0 / 0.36),
    0 62px 44px rgb(0 0 0 / 0.21),
    0 110px 52px rgb(0 0 0 / 0.06);
  transition: box-shadow var(--dur-switch) var(--ease-out);
}

.prompt:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--marker-line),
    var(--hl-top-dark),
    0 7px 18px rgb(0 0 0 / 0.42),
    0 28px 33px rgb(0 0 0 / 0.36),
    0 62px 44px rgb(0 0 0 / 0.21),
    0 110px 52px rgb(0 0 0 / 0.06);
}

.prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px var(--space-5);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.07);
}

.prompt__label {
  font: var(--weight-medium) 13px/1.2 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.prompt__dots {
  display: flex;
  gap: 6px;
}

.prompt__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
}

.prompt__dots i:nth-child(2) { background: rgb(255 255 255 / 0.15); }
.prompt__dots i:nth-child(3) { background: rgb(255 255 255 / 0.1); }

.prompt__field {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: var(--weight-regular) 17px/1.625 var(--font-sans);
  resize: none;
  caret-color: var(--brand);
}

.prompt__field::placeholder { color: var(--text-tertiary); }
.prompt__field:focus { outline: none; }

.prompt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgb(0 0 0 / 0.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}

.prompt__tools {
  display: flex;
  gap: var(--space-2);
}

.prompt__hint {
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ---------- Sinais ---------- */

/* Status dentro de mockup de produto */
.status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text-tertiary);
  font: var(--weight-medium) 11px/1 var(--font-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--success { background: var(--success-tint); color: var(--success-text); }
.status--warning { background: var(--warning-tint); color: var(--warning-text); }
.status--danger { background: var(--danger-tint); color: var(--danger-text); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-secondary);
  font: var(--weight-medium) 12px/1 var(--font-sans);
}

.tag--accent {
  background: var(--warning-tint);
  color: var(--warning-text);
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-tertiary);
  font: var(--weight-medium) 12px/1 var(--font-mono);
  box-shadow: var(--fx-tile);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--text-tertiary));
}

/* Barra de progresso: sólido é realizado, hachurado é o que falta */
.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: var(--brand);
}

.progress--build {
  height: 10px;
  background: var(--hatch-pending);
}

.progress--build .progress__bar { border-radius: 0; }

/* ---------- Janela de mockup ----------
   Moldura para tela real ou mockup coerente do produto. O produto é a prova. */

.window {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--fx-surface-float);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 36px;
  padding: 0 var(--space-3);
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 var(--border-subtle);
}

.window__dots {
  display: flex;
  gap: 6px;
}

.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window__url {
  flex: 0 1 280px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  box-shadow: var(--fx-tile);
  color: var(--text-tertiary);
  font: var(--weight-medium) 11px/1.3 var(--font-sans);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window__body {
  padding: var(--space-4);
}

/* Linha de lista dentro do mockup */
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: inset 0 -1px 0 var(--border-subtle);
}

.mock-row:last-child { box-shadow: none; }

/* ---------- Navegação ----------
   Aba suspensa no topo: as curvas côncavas nas pontas fazem a barra
   parecer recortada da borda da janela. */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav__bar {
  --fillet: 28px;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-6);
  width: min(100% - 2 * var(--fillet) - 2 * var(--gutter), 1100px);
  height: 72px;
  padding: 0 var(--space-4) 0 var(--space-8);
  border-radius: 0 0 var(--fillet) var(--fillet);
  background: var(--surface-raised);
  box-shadow: inset 0 -1px 0 var(--border-subtle), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  pointer-events: auto;
}

.nav__bar::before,
.nav__bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: var(--fillet);
  height: var(--fillet);
}

.nav__bar::before {
  right: 100%;
  background: radial-gradient(circle at 0 100%, transparent calc(var(--fillet) - 0.5px), var(--surface-raised) var(--fillet));
}

.nav__bar::after {
  left: 100%;
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--fillet) - 0.5px), var(--surface-raised) var(--fillet));
}

.nav__logo {
  display: flex;
  align-items: center;
  flex: none;
}

.nav__logo img { height: 26px; width: auto; }

.nav__links {
  display: flex;
  gap: var(--space-8);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  font: var(--weight-regular) 14px/1 var(--font-sans);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-press) var(--ease-out);
}

.nav__link[aria-current="page"] { color: var(--text-primary); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 46px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
  transform: translateX(-50%);
}

@media (hover: hover) {
  .nav__link:hover { color: var(--text-primary); }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__menu { display: none; }

@media (max-width: 959px) {
  .nav__links,
  .nav__actions .nav__link { display: none; }
  .nav__menu { display: grid; }
  .nav__bar {
    --fillet: 20px;
    height: 60px;
    padding-left: var(--space-5);
    align-items: center;
  }
}

@media (max-width: 559px) {
  .nav__actions .btn { display: none; }
}

/* ---------- Rodapé ---------- */

.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--bg-page);
  box-shadow: inset 0 1px 0 var(--border-subtle);
}

.footer__grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: var(--space-10);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: var(--space-2) var(--space-12);
  margin-top: var(--space-4);
}

.footer a:not(.btn, .credit) {
  color: var(--text-secondary);
  text-decoration: none;
}

@media (hover: hover) {
  .footer a:not(.btn, .credit):hover { color: var(--text-primary); }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  box-shadow: inset 0 1px 0 var(--border-subtle);
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer__legal a:not(.btn, .credit) { color: var(--text-tertiary); }

@media (max-width: 799px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Copyright: marca do cliente e o aviso numa linha, lado a lado. */
.footer__copy {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  line-height: 1.45;
}

.footer__copy img {
  flex: none;
  width: auto;
  height: 32px;
}

@media (max-width: 599px) {
  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
  }
  .footer__copy { flex-direction: column; gap: var(--space-4); }
}

/* ---------- Crédito BROUD ----------
   "Site desenvolvido por" + marca BROUD, pequeno, no canto do rodapé.
   Parado, um brilho dourado passa pela marca a cada 6s. No hover uma onda
   corre da esquerda para a direita: o globo dá uma volta e fica dourado,
   o texto rola para cima trocando por uma cópia clara, o ouro varre a
   marca e uma seta sai dela na diagonal. */

.credit {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
  text-decoration: none;
}

.credit__icon {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  transition: color var(--dur-switch) ease, rotate 900ms var(--ease-out);
}

/* o texto e a cópia clara empilhados numa janela de uma linha */
.credit__label {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.5em;
}

.credit__label > span,
.credit__label::after {
  display: block;
  transition: translate 500ms var(--ease-out);
}

.credit__label::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--text-primary);
}

.credit__mark {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  width: 58px;
  aspect-ratio: 2397 / 354;
  margin-left: 2px;
  background: var(--text-primary);
  -webkit-mask: url(../assets/broud.svg) center / contain no-repeat;
  mask: url(../assets/broud.svg) center / contain no-repeat;
}

/* o ouro que varre a marca no hover */
.credit__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-200));
  clip-path: inset(0 100% 0 0);
  transition: clip-path 600ms var(--ease-out);
}

.credit__mark::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, var(--gold-400), transparent);
  translate: -120% 0;
  animation: credit-shine 6s var(--ease-out) 1.5s infinite;
}

/* a seta mora fora da pílula, para o texto não andar quando ela aparece */
.credit__go {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  width: 12px;
  height: 12px;
  margin-top: -6px;
  stroke-width: 2;
  color: var(--brand);
  opacity: 0;
  translate: -5px 5px;
  transition: opacity var(--dur-switch) ease, translate 500ms var(--ease-out);
}

@media (hover: hover) {
  .credit:is(:hover, :focus-visible) .credit__icon {
    color: var(--brand);
    rotate: 1turn;
  }

  .credit:is(:hover, :focus-visible) .credit__label > span,
  .credit:is(:hover, :focus-visible) .credit__label::after {
    translate: 0 -100%;
    transition-delay: 40ms;
  }

  .credit:is(:hover, :focus-visible) .credit__mark::before {
    clip-path: inset(0);
    transition-delay: 140ms;
  }

  .credit:is(:hover, :focus-visible) .credit__mark::after { animation: none; }

  .credit:is(:hover, :focus-visible) .credit__go {
    opacity: 1;
    translate: 0 0;
    transition-delay: 320ms;
  }
}

@keyframes credit-shine {
  0% { translate: -120% 0; }
  40%, 100% { translate: 260% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .credit__mark::after { animation: none; }
  .credit__icon,
  .credit__label > span,
  .credit__label::after,
  .credit__mark::before,
  .credit__go { transition-duration: 0.01ms; transition-delay: 0s !important; }
}

/* ---------- Fundos ----------
   Movimento e textura explicam o produto; nada de partícula decorativa. */

.bg-grid {
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
}

/* Luz do topo: o "Luz cima" do Figma reduzido a dois gradientes */
.bg-glow-top {
  background-image:
    radial-gradient(50% 60% at 50% 0%, rgb(255 215 0 / 0.14), transparent 70%),
    radial-gradient(80% 50% at 50% 0%, rgb(255 236 134 / 0.06), transparent 75%);
  background-repeat: no-repeat;
}

/* Textura de glifos: a "chuva de código" dourada, mascarada pelo PNG */
.texture-glyphs {
  position: relative;
}

.texture-glyphs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(40% 60% at 85% 40%, rgb(255 215 0 / 0.5), transparent 70%),
    radial-gradient(40% 60% at 10% 70%, rgb(255 255 255 / 0.25), transparent 70%);
  -webkit-mask: url("../assets/texture-crypto-glyphs-510.png") repeat 0 0 / 510px 336px;
  mask: url("../assets/texture-crypto-glyphs-510.png") repeat 0 0 / 510px 336px;
  opacity: 0.55;
  pointer-events: none;
}

.texture-glyphs > * {
  position: relative;
  z-index: 1;
}

/* ---------- Motion ----------
   .reveal é a entrada do carregamento (hero). O resto da página entra no
   scroll pelo reveal.js, que escolhe sozinho o que anima. */

.reveal {
  animation: reveal var(--dur-enter) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * var(--stagger));
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Títulos entram palavra por palavra: o reveal.js põe cada uma numa
   caixinha, que precisa ser inline-block para poder subir. */
.palavra { display: inline-block; }

/* Com o scroll suave (smooth.js) ligado, quem desliza é ele: o smooth do
   CSS por cima faria as âncoras brigarem. */
html.lenis { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
