/* =========================================================================
   Btec Domínios — identidade visual Btec (briefing itens 34–36)
   Claro, profissional, corporativo premium. Nada de dark UI ou neon.
   ========================================================================= */

:root {
  --bg: #f4f7fb;
  --bg-alt: #eef2f7;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #5b6475;
  --red: #db1f26;
  --red-dark: #a6141a;
  --green: #22c55e;
  --green-ink: #15803d;
  --amber: #f59e0b;
  --amber-ink: #b45309;
  --danger: #ef4444;
  --line: #e3e9f1;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-2: 0 2px 4px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .10);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

:focus-visible { outline: 3px solid rgba(219, 31, 38, .45); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 247, 251, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-fallback { font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--red); }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-product { font-weight: 600; font-size: 16px; color: var(--text-2); letter-spacing: .01em; }

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.header-cta {
  font-weight: 600; font-size: 14px; color: var(--red-dark);
  border: 1.5px solid rgba(219, 31, 38, .35);
  padding: 9px 18px; border-radius: 999px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 72px 0 40px; text-align: center; }

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 500;
}

.search-form { max-width: 680px; margin: 0 auto; }

.search-shell {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-shell:focus-within {
  border-color: rgba(219, 31, 38, .55);
  box-shadow: 0 0 0 4px rgba(219, 31, 38, .10), var(--shadow-1);
}

.search-icon { width: 20px; height: 20px; color: var(--text-2); }

#search-input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--text);
  padding: 10px 4px;
}
#search-input::placeholder { color: #98a2b3; }
#search-input:focus { outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 999px;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red); color: #fff;
  padding: 13px 28px; font-size: 15.5px;
  box-shadow: 0 6px 16px rgba(219, 31, 38, .28);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  background: var(--bg-alt); color: var(--text);
  padding: 11px 22px; font-size: 14.5px; font-weight: 600;
}
.btn-secondary:hover { background: #e2e8f0; }

.search-hint { margin: 18px 0 8px; color: var(--text-2); font-size: 14.5px; }
.hint-link {
  font: inherit; font-weight: 600; color: var(--red-dark);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.hint-link:hover { text-decoration: underline; }

.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 0; }

.chip {
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.chip:hover { border-color: rgba(219, 31, 38, .4); color: var(--red-dark); box-shadow: var(--shadow-1); }

.hero-note { margin: 26px 0 0; font-size: 13px; color: #8a93a6; }

/* ----------------------------------------------------------- results zone */

.results-zone { padding: 8px 0 30px; }
.results-zone .container { max-width: 820px; }

/* Card base */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  padding: 28px;
  margin: 0 0 20px;
}

/* Estado de carregamento */
.loading-card { text-align: center; padding: 44px 28px; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 18px;
  border: 3px solid var(--bg-alt);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { color: var(--text-2); font-weight: 500; min-height: 1.5em; }

.skeleton-row {
  height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, #f7fafc 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  margin: 12px 0;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Resultado principal */
.result-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 6px; }

.result-domain {
  margin: 0; font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 800; letter-spacing: -.02em; word-break: break-all;
}

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.badge .icon { width: 15px; height: 15px; }

.badge-available  { background: #e7f8ee; color: var(--green-ink); }
.badge-registered { background: #fdeceb; color: var(--red-dark); }
.badge-for_sale   { background: #fef3e2; color: var(--amber-ink); }
.badge-restricted,
.badge-unknown    { background: var(--bg-alt); color: var(--text-2); }
.badge-unverified { background: transparent; color: #8a93a6; border: 1px dashed #cbd5e1; font-weight: 600; }

.result-message { color: var(--text-2); margin: 4px 0 0; font-size: 15.5px; }

.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }

.score-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text);
  cursor: help;
}
.score-pill strong { color: var(--green-ink); font-weight: 800; }

.result-note { margin: 16px 0 0; font-size: 13px; color: #8a93a6; }

/* Linhas de dados (registrado) */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 20px; }
.data-item { background: var(--bg); border-radius: var(--r-sm); padding: 12px 16px; }
.data-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8a93a6; margin-bottom: 2px; }
.data-value { font-size: 15px; font-weight: 600; word-break: break-word; }

/* Expansíveis */
.expand-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--red-dark);
  background: none; border: 0; padding: 0; cursor: pointer;
  margin-top: 22px;
}
.expand-toggle .icon { transition: transform .18s ease; }
.expand-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.expand-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.expand-panel[hidden] { display: none; }

.kv-list { margin: 0; display: grid; gap: 10px; }
.kv-row { display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px; font-size: 14.5px; }
.kv-row dt { color: var(--text-2); font-weight: 500; margin: 0; }
.kv-row dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv-row dd .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; }

.status-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.status-tag {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--bg-alt); border-radius: 6px; padding: 3px 9px;
}

/* Marketplace ("À venda") */
.sale-block {
  margin-top: 22px;
  border: 1px solid #fbe4c0;
  background: #fffaf1;
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.sale-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--amber-ink); }
.offer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 8px 0; }
.offer-marketplace { font-weight: 700; }
.offer-price { font-weight: 800; font-size: 17px; }
.offer-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
}

/* Aviso de dado parcial / erro */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px; margin-top: 20px;
  font-size: 14px; color: var(--text-2);
}
.notice .icon { margin-top: 2px; color: var(--amber); }

.error-card { text-align: center; padding: 40px 28px; }
.error-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.error-card p { color: var(--text-2); margin: 0 0 20px; }

/* --------------------------------------------------------- alternativas */

.alt-section { margin-top: 28px; }
.section-label {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .01em;
}
.section-label .icon { color: var(--red); }

.alt-list { display: grid; gap: 10px; }

.alt-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  font: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.alt-item:hover { border-color: rgba(219, 31, 38, .35); box-shadow: var(--shadow-1); transform: translateY(-1px); }

.alt-domain { font-weight: 700; font-size: 15.5px; word-break: break-all; }
.alt-item .badge { margin-left: auto; }
.alt-item .icon.chev { color: #b6bfcd; }

.alt-skeleton { pointer-events: none; }

/* -------------------------------------------------------------- histórico */

.history { margin-top: 34px; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.link-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link-quiet:hover { color: var(--red-dark); }
.link-quiet .icon { width: 15px; height: 15px; }

.history-list { display: flex; flex-wrap: wrap; gap: 10px; }
.history-item {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.history-item:hover { border-color: rgba(219, 31, 38, .4); box-shadow: var(--shadow-1); }
.history-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.history-dot.available { background: var(--green); }
.history-dot.registered { background: var(--red); }
.history-dot.for_sale { background: var(--amber); }
.history-dot.unknown, .history-dot.restricted { background: #b6bfcd; }

/* ---------------------------------------------------------------- seções */

.features { padding: 56px 0; background: var(--bg-alt); margin-top: 40px; }

.section-title {
  margin: 0 0 34px; text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em;
}

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

.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-1); text-align: center;
}
.feature-icon {
  width: 46px; height: 46px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: #fdeceb; color: var(--red); border-radius: 14px;
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }

.how { padding: 56px 0 30px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; }
.how-num {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  border-radius: 50%;
}
.how-step h3 { margin: 3px 0 4px; font-size: 1rem; font-weight: 700; }
.how-step p { margin: 0; color: var(--text-2); font-size: 14px; }

.about-data { padding: 30px 0 60px; }
.about-data .container { max-width: 760px; }
.about-data .section-title { text-align: left; font-size: 1.25rem; margin-bottom: 14px; }
.about-data p { color: var(--text-2); font-size: 14.5px; }
.about-data .disclaimer { font-size: 13px; color: #8a93a6; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }

/* ---------------------------------------------------------------- rodapé */

.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 26px 20px; font-size: 14px; color: var(--text-2);
}
.footer-inner p { margin: 0; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--red-dark); }

/* ------------------------------------------------------------- WhatsApp */

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; border-radius: 50%;
  box-shadow: 0 8px 22px rgba(34, 197, 94, .4);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); text-decoration: none; }
.whatsapp-float .icon { width: 24px; height: 24px; }

/* ------------------------------------------------------------ responsivo */

@media (max-width: 820px) {
  .site-nav { display: none; }
  .feature-grid, .how-steps { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 32px; }
  .data-grid { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 1fr; }
  .kv-row dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
}

@media (max-width: 560px) {
  .search-shell { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: 14px; gap: 12px; }
  .search-icon { display: none; }
  #search-input { padding: 4px 2px; text-align: center; }
  .search-btn { width: 100%; }
  .header-cta { display: none; }
  .card { padding: 22px 18px; }
  .alt-item .badge { font-size: 11.5px; padding: 5px 10px; }
  .offer-link { margin-left: 0; }
}

/* --------------------------------------------------- movimento reduzido */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================================
   v1.1 — CAMADA DE BRANDING BTEC (ecossistema Speedtest/Assinatura)
   Marca institucional: cinza + vermelho Btec (preservada acima).
   Experiência digital: ciano → azul → violeta → rosa, extremamente suave.
   ========================================================================= */

:root {
  --ink-dark: #0a0a14;            /* tom escuro oficial (theme-color Assinatura) */
  --g-cyan:   #22d3ee;
  --g-blue:   #2563eb;
  --g-violet: #8b5cf6;
  --g-pink:   #ec4899;
}

.grad-text {
  background: linear-gradient(90deg, var(--g-blue), var(--g-violet), var(--g-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-bright {
  background: linear-gradient(90deg, var(--g-cyan), #a78bfa, #fb7185);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------- barra institucional */

.topbar { background: var(--ink-dark); color: rgba(255, 255, 255, .82); }
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px 22px;
  flex-wrap: wrap; padding: 9px 20px; font-size: 13px; line-height: 1.45;
}
.topbar-text { margin: 0; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 600; white-space: nowrap;
}
.topbar-cta .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.topbar-cta:hover { color: var(--g-cyan); text-decoration: none; }
.topbar-cta:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------- header (logo) */

.brand-logo { height: 28px; width: auto; }

/* ------------------------------------------- hero: luz ambiente + 3D */

.hero { position: relative; overflow: hidden; }

.hero-glow {
  position: absolute; inset: -10% -5%; pointer-events: none;
  background:
    radial-gradient(600px 400px at 16% 10%, rgba(34, 211, 238, .13), transparent 62%),
    radial-gradient(720px 500px at 84% 26%, rgba(139, 92, 246, .12), transparent 64%),
    radial-gradient(560px 420px at 58% 100%, rgba(236, 72, 153, .09), transparent 66%);
}

.hero-inner { position: relative; z-index: 1; }

.hero-3d {
  position: absolute; z-index: 0;
  right: clamp(8px, 6vw, 96px); top: 84px;
  width: 210px; height: auto;
  filter: drop-shadow(0 22px 38px rgba(15, 23, 42, .18));
  animation: hero-float 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 7px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-1);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.hero-badge strong { font-weight: 800; letter-spacing: .1em;
  background: linear-gradient(90deg, var(--g-blue), var(--g-violet), var(--g-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badge .dot { width: 3px; height: 3px; border-radius: 50%; background: #c3cbd8; }

.hero-signature { margin: 14px 0 0; font-size: 12.5px; color: #98a2b3; position: relative; z-index: 1; }
.hero-signature a { color: var(--text-2); font-weight: 600; }
.hero-signature a:hover { color: var(--red-dark); }

/* --------------------------------- resultado principal: presença sutil */

.result-card { transition: box-shadow .2s ease, border-color .2s ease; }
.result-card.status-available {
  border-color: rgba(34, 197, 94, .38);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 16px 44px rgba(34, 197, 94, .13);
}
.result-card.status-registered {
  border-color: rgba(219, 31, 38, .28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 16px 44px rgba(219, 31, 38, .09);
}
.result-card.status-for_sale {
  border-color: rgba(245, 158, 11, .38);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 16px 44px rgba(245, 158, 11, .13);
}

/* Ajuda contextual discreta (renderizada pelo app.js) */
.context-help {
  margin-top: 20px; padding: 14px 18px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, .05), rgba(236, 72, 153, .04));
  font-size: 13.5px; color: var(--text-2);
}
.context-help strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.context-help a { font-weight: 700; white-space: nowrap; }
.context-line { margin-top: 18px; font-size: 13px; color: #8a93a6; }
.context-line a { font-weight: 600; }

/* ----------------------------------------- alternativas: microfeedback */

.alt-item:active { transform: scale(.99); }
.alt-item .badge { transition: transform .15s ease; }
.alt-item:hover .badge { transform: translateX(-2px); }

/* --------------------------------------------- features: refino visual */

.feature-card {
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g-cyan), var(--g-violet), var(--g-pink));
  opacity: 0; transition: opacity .18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(139, 92, 246, .28);
}
.feature-card:hover::before { opacity: 1; }

/* ------------------------------------------- como funciona: conexão */

.how-step { position: relative; }
.how-num { box-shadow: 0 0 0 5px rgba(219, 31, 38, .10); }
.how-step:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; left: 52px; right: -8px; height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .30), rgba(236, 72, 153, .18));
  border-radius: 2px;
}

/* --------------------------------------- POR TRÁS DESTA FERRAMENTA */

.behind {
  padding: 68px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--g-blue), var(--g-violet), var(--g-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.behind-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 900; letter-spacing: -.025em;
}
.behind-lead { margin: 0 auto 36px; max-width: 640px; color: var(--text-2); font-size: 15.5px; }

.behind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; }
.behind-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 14px 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.behind-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g-cyan), var(--g-violet), var(--g-pink));
  opacity: 0; transition: opacity .18s ease;
}
.behind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: rgba(139, 92, 246, .30); }
.behind-card:hover::before { opacity: 1; }

.behind-glyph {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(236, 72, 153, .09));
  color: #6d28d9;
}
.behind-glyph .icon { width: 20px; height: 20px; }
.behind-letter { font-size: 19px; font-weight: 900;
  background: linear-gradient(120deg, var(--g-blue), var(--g-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.behind-card h3 { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.behind-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

.behind-cta { margin-top: 32px; }
.behind-cta .btn .icon { width: 16px; height: 16px; }
.behind-proof { margin: 14px 0 0; font-size: 13px; color: #8a93a6; }

/* -------------------------------------------------- CTA final escura */

.final-cta {
  position: relative; overflow: hidden;
  background: var(--ink-dark);
  padding: 76px 0;
  text-align: center;
}
.final-glow {
  position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    radial-gradient(680px 420px at 14% 22%, rgba(37, 99, 235, .30), transparent 62%),
    radial-gradient(600px 400px at 86% 72%, rgba(236, 72, 153, .22), transparent 64%),
    radial-gradient(640px 420px at 55% 115%, rgba(139, 92, 246, .26), transparent 62%);
}
.final-inner { position: relative; z-index: 1; }
.final-title {
  margin: 0 0 12px; color: #fff;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 900; letter-spacing: -.03em;
}
.final-sub { margin: 0 auto 30px; max-width: 560px; color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.final-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-light {
  background: #fff; color: var(--ink-dark);
  padding: 13px 26px; font-size: 15px;
  box-shadow: 0 10px 26px rgba(255, 255, 255, .14);
}
.btn-light .icon { width: 16px; height: 16px; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 255, 255, .20); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  padding: 12px 24px; font-size: 15px; font-weight: 600;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------- footer (ecossistema) */

.footer-grid {
  display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 36px;
  padding: 42px 20px 30px;
}
.footer-col h3 {
  margin: 0 0 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #8a93a6;
}
.footer-col a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 14px; margin: 0 0 9px; }
.footer-col nav a, nav.footer-col a { display: flex; }
.footer-col a:hover { color: var(--red-dark); text-decoration: none; }
.footer-col a .icon { width: 14px; height: 14px; }

.footer-brand { margin: 0 0 8px; font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--red); }
.footer-brand span { color: var(--text-2); font-weight: 600; }
.footer-desc { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.footer-sig { margin: 0; font-size: 12.5px; color: #98a2b3; }
.footer-sig a { color: var(--text-2); font-weight: 600; }
.footer-support { font-weight: 700; color: #16a34a !important; }
.footer-support:hover { color: #15803d !important; }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 18px;
  flex-wrap: wrap; padding: 16px 20px; font-size: 13px; color: #8a93a6;
}
.footer-bottom-inner p { margin: 0; }

/* ------------------------------------------------- responsivo (v1.1) */

@media (max-width: 1100px) {
  .hero-3d { width: 165px; top: 96px; right: 14px; }
}

@media (max-width: 820px) {
  .hero-3d {
    position: static; display: block;
    width: 78px; margin: 0 auto 4px;
    animation: none;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .16));
  }
  .hero { padding-top: 40px; }
  .behind-grid { grid-template-columns: repeat(2, 1fr); }
  .behind-card:last-child { grid-column: 1 / -1; }
  .how-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .topbar-inner { flex-direction: column; gap: 4px; padding: 8px 16px; text-align: center; }
  .topbar-text { font-size: 12.5px; }
  .behind-grid { grid-template-columns: 1fr; }
  .behind-card:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 34px 20px 24px; }
  .final-actions .btn { width: 100%; justify-content: center; }
}
