/* TrueMakers — institutional single page */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Heebo", sans-serif;
  color: var(--tm-neutral-900);
  background: var(--tm-white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tm-purple); text-decoration: none; }
a:hover { color: var(--tm-blue-deep); }
img { max-width: 100%; }

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

/* ---------- Header (Luma/Resend-style floating pill) ---------- */
.tm-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none;
}
.tm-header-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 20px;
  width: 100%; max-width: 1020px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  background: rgba(6, 9, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.tm-header-bar.scrolled {
  background: rgba(6, 9, 22, 0.85);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.tm-header-logo { display: flex; align-items: center; }
.tm-header-logo img { height: 20px; display: block; }
.tm-nav { display: flex; gap: 2px; margin-left: auto; }
.tm-nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.tm-nav-link:hover { background: rgba(255, 255, 255, 0.09); color: #ffffff; }

/* ---------- Hero ---------- */
.tm-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, #010208 0%, #04081c 48%, #0a0e2e 76%, #150f3d 100%);
}
.tm-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-horizon {
  position: absolute; bottom: -180px; left: 50%;
  transform: translateX(-50%);
  width: 150%; height: 380px;
  background: radial-gradient(ellipse at center,
    rgba(110, 66, 194, 0.42) 0%,
    rgba(15, 80, 186, 0.22) 46%,
    transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.tm-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 150px 24px 130px;
  max-width: 900px;
}
.tm-eyebrow {
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px; font-weight: 700;
  margin: 0;
}
.tm-hero-title {
  color: #ffffff; font-weight: 900;
  font-size: clamp(46px, 7.4vw, 88px);
  line-height: 1.04;
  margin: 20px 0 0;
  letter-spacing: -0.015em;
}
.tm-rotator { display: block; position: relative; height: 1.18em; }
.tm-rotator-word {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.tm-rotator-word.active { opacity: 1; transform: translateY(0); }
.tm-hero-lead {
  color: rgba(225, 231, 255, 0.72);
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.72;
  max-width: 640px;
  margin: 26px auto 42px;
}
.tm-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tm-scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px; line-height: 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .tm-scroll-hint { animation: tm-bob 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
  @keyframes tm-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.85; }
  }
}

/* ---------- Sections ---------- */
.tm-section { padding: 100px 24px; position: relative; }
.tm-container { max-width: 1120px; margin: 0 auto; }
.tm-section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.tm-h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900; line-height: 1.14;
  color: var(--tm-ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tm-lead {
  color: var(--tm-neutral-700);
  font-weight: 300;
  font-size: 17px; line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}

/* Manifesto + stats */
.tm-manifesto { padding-bottom: 60px; }
.tm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 64px;
}

/* ---------- Portfolio ---------- */
.pf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pf-card {
  background: var(--tm-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--accent, var(--tm-blue));
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.11);
}
.pf-card.pf-interactive { cursor: pointer; }
.pf-mockup {
  height: 330px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--mock-bg, var(--tm-neutral-100));
}
.pf-content { padding: 24px 26px 28px; }
.pf-content h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--tm-ink); }
.pf-content p {
  margin: 0 0 14px; font-size: 15px; font-weight: 300;
  color: var(--tm-neutral-700); line-height: 1.6;
}
.pf-cta { color: var(--accent, var(--tm-blue)); font-weight: 700; font-size: 14px; }

/* chat mockup */
.pfc {
  width: min(370px, 88%);
  border-radius: 14px; overflow: hidden;
  background: var(--c-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 13px;
}
.pfc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: var(--c-header);
}
.pfc-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: var(--c-avatar-radius, 50%);
  background: var(--c-avatar-bg);
  color: var(--c-avatar-color);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
  position: relative;
}
.pfc-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--status-online);
  border: 2px solid var(--c-header);
}
.pfc-name { color: var(--c-header-text); font-weight: 700; font-size: 13px; line-height: 1.2; }
.pfc-sub { color: var(--c-header-sub); font-size: 11px; }
.pfc-badge {
  margin-left: auto;
  background: var(--c-badge-bg); color: var(--c-badge-text);
  font-size: 9px; font-weight: 800; letter-spacing: 0.09em;
  padding: 4px 9px; border-radius: 999px;
}
.pfc-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 158px; }

/* demo hover overlay */
.pf-overlay {
  position: absolute; inset: 0;
  background: rgba(2, 4, 12, 0.38);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-overlay-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; color: var(--tm-ink);
  font-weight: 800; font-size: 14px;
  padding: 11px 22px; border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .pf-card:hover .pf-overlay-cta { animation: pf-pulse 1.6s ease-in-out infinite; }
  @keyframes pf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
}

/* phone mockup */
.pf-phones { display: flex; align-items: center; justify-content: center; }
.pf-phone {
  width: 118px; border-radius: 18px;
  border: 4px solid #16181d; overflow: hidden;
  background: #000000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.pf-phone img { display: block; width: 100%; }
.pf-phone-side { width: 104px; opacity: 0.92; }
.pf-phone-left { transform: rotate(-7deg) translateY(16px); margin-right: -16px; }
.pf-phone-right { transform: rotate(7deg) translateY(16px); margin-left: -16px; }
.pf-phone-main { position: relative; z-index: 2; }

/* browser mockup */
.pf-browsers { position: relative; width: 100%; height: 100%; }
.pf-browser {
  position: absolute;
  border-radius: 10px; overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
.pf-browser-bar {
  height: 22px; background: #eceef2;
  display: flex; align-items: center; gap: 5px;
  padding: 0 10px;
}
.pf-browser-bar span { width: 7px; height: 7px; border-radius: 50%; display: block; }
.pf-browser-bar span:nth-child(1) { background: var(--status-error); }
.pf-browser-bar span:nth-child(2) { background: var(--status-warn); }
.pf-browser-bar span:nth-child(3) { background: var(--status-ok); }
.pf-browser img { display: block; width: 100%; }
.pf-browser-back { width: 58%; left: 6%; top: 9%; opacity: 0.9; }
.pf-browser-mid { width: 58%; right: 6%; top: 20%; }
.pf-browser-front { width: 62%; left: 19%; bottom: -4%; z-index: 2; }

/* ---------- Demo modal ---------- */
.pf-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.pf-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pf-modal-content {
  position: relative; z-index: 2;
  width: min(1080px, 100%); height: min(720px, 100%);
  background: #ffffff; border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.pf-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tm-neutral-200);
}
.pf-modal-title { font-weight: 800; font-size: 15px; color: var(--tm-ink); }
.pf-modal-close {
  margin-left: auto;
  border: 0; background: var(--tm-neutral-100);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--tm-ink);
}
.pf-modal-close:hover { background: var(--tm-neutral-200); }
.pf-modal iframe { flex: 1; border: 0; width: 100%; }

/* ---------- Services ---------- */
.tm-services { background: var(--tm-surface-offset); }
.tm-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------- Integrations ---------- */
.int-panel {
  background: #f2f3f7;
  border-radius: 20px;
  padding: 60px 56px;
  margin-top: 8px;
}
.int-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 52px 32px;
  align-items: center; justify-items: center;
}
/* SVGs without intrinsic size (claude, n8n) collapse to 0×0 — force a rendered height */
.int-grid img { height: 42px; width: auto; max-width: 140px; }

/* ---------- Clients ---------- */
.tm-clients { background: var(--tm-surface-offset); }
.cl-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 44px 56px;
  max-width: 980px; margin: 0 auto;
}

.cl-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.cl-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: cl-scroll 34s linear infinite;
}
.cl-marquee:hover .cl-track { animation-play-state: paused; }
.cl-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
@keyframes cl-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cl-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

.cl-wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--tm-neutral-500);
  filter: grayscale(1);
  opacity: 0.8;
  transition: color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}
.cl-wordmark:hover { color: var(--tm-neutral-800); opacity: 1; }

/* ---------- Footer (Noite — mesmo céu do hero) ---------- */
.tm-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #150f3d 0%, #0a0e2e 30%, #04081c 100%);
  color: #ffffff;
  padding: 110px 24px 0;
}
.tm-footer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-footer-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.tm-footer-inner .tm-h2 { color: #ffffff; }
.tm-footer-inner .tm-lead { color: rgba(225, 231, 255, 0.68); }
.tm-footer-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800; color: #ffffff;
  text-decoration: none;
  margin: 30px 0 34px;
}
.tm-footer-email:hover { color: var(--tm-cyan); }
.tm-footer-bottom {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 90px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.45);
}
.tm-footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.tm-footer-bottom a:hover { color: #ffffff; }

/* ---------- Floating WhatsApp ---------- */
.tm-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tm-wa-float.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tm-wa-float svg { fill: #ffffff; display: block; }
.tm-wa-float:hover { transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pf-grid { grid-template-columns: 1fr; }
  .tm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .int-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .tm-stats { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .tm-nav { display: none; }
  .tm-header-bar { justify-content: space-between; }
  .tm-services-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .int-panel { padding: 44px 28px; }
  .tm-section { padding: 72px 20px; }
  .pf-mockup { height: 280px; }
  .cl-item { padding: 0 12px; }
  .cl-track { animation-duration: 22s; }
}
