/* HiLinkChat — base compartilhada (landing + docs) */
:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0b1220;
  --text-muted: #5c6b7a;
  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 0 80px -20px rgba(0, 102, 255, 0.45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.site-nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px -16px rgba(15, 23, 42, 0.12);
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand img { height: 26px; width: auto; }

.nav-links {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--bg-elevated);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover { background: rgba(0, 102, 255, 0.06); }

@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::after { transform: translateX(120%); }

.btn:hover { transform: translateY(-2px) scale(1.02); }

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

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--cyan) 100%);
  box-shadow: 0 12px 32px -12px rgba(0, 102, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -12px rgba(0, 102, 255, 0.65);
}

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(0, 102, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 28px -12px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

/* Section */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card-icon--blue { background: rgba(0, 102, 255, 0.12); color: var(--primary); }
.card-icon--purple { background: rgba(124, 58, 237, 0.12); color: var(--purple); }
.card-icon--green { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.card-icon--orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.card-icon--red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.card-icon--cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }

.glass-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.glass-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img,
.footer-logo {
  display: block;
  width: auto;
  height: 32px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .glass-card:hover { transform: none; }
  .btn::after { display: none; }
}
