/* ============================================================
   Waypoint Labs: design system
   Fonte: identidade/design-guide.md (dark tech com glow)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0F1822;
  --bg-alt: #16202C;
  --blue: #005EFD;
  --blue-light: #1D99FE;
  --navy: #304153;
  --text: #F5F7FA;
  --text-dim: rgba(245, 247, 250, 0.68);
  --border: rgba(245, 247, 250, 0.10);
  --glow: 0 0 42px rgba(0, 94, 253, 0.35);
  --radius: 14px;
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* fundo com grade sutil (tech, quase invisível) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 250, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; }

/* ---------- tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.125rem; letter-spacing: 0.06em; }

.eyebrow {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--text-dim); }

/* ---------- layout ---------- */

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--text-dim); margin-top: 0.75rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 24, 34, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(29, 153, 254, 0.55));
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--text);
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--blue-light);
  font-weight: 700;
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .site-nav .btn { margin-top: 8px; }
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 94, 253, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  background: #1a6dff;
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(0, 94, 253, 0.5);
}

.btn svg { width: 20px; height: 20px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(245, 247, 250, 0.05);
  border-color: rgba(245, 247, 250, 0.25);
  box-shadow: none;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

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

.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(0, 94, 253, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; max-width: 820px; text-align: center; }

.hero h1 { margin-bottom: 1.25rem; }

.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
  text-shadow: 0 0 26px rgba(29, 153, 254, 0.55);
}

.hero .lead { max-width: 620px; margin: 0 auto 2.25rem; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* hero interno (páginas de serviço etc.) */
.hero-inner { padding: 90px 0 70px; text-align: left; }
.hero-inner .container { text-align: left; margin: 0 auto; }

/* ---------- cards ---------- */

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.card:hover {
  border-color: rgba(0, 94, 253, 0.55);
  box-shadow: 0 0 32px rgba(0, 94, 253, 0.16);
  transform: translateY(-3px);
}

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

.card h3 { margin: 1.1rem 0 0.6rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

.card .card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.card .card-link::after { content: ' →'; }

a.card { display: block; color: inherit; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 94, 253, 0.14);
  border: 1px solid rgba(0, 94, 253, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}

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

/* ---------- listas de passos / checks ---------- */

.steps { counter-reset: step; }

.step { position: relative; padding-left: 0; }

.step-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue-light);
  text-shadow: 0 0 18px rgba(29, 153, 254, 0.45);
}

.check-list { list-style: none; }

.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
}

.check-list li strong { color: var(--text); }

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(0, 94, 253, 0.8);
  transform: rotate(45deg);
}

/* ---------- portfólio ---------- */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(29, 153, 254, 0.12);
  border: 1px solid rgba(29, 153, 254, 0.35);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 0.9rem;
}

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

.cta-final {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(0, 94, 253, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.cta-final .container { position: relative; max-width: 680px; }
.cta-final h2 { margin-bottom: 1rem; }
.cta-final p { color: var(--text-dim); margin-bottom: 2rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer p { color: var(--text-dim); font-size: 0.95rem; }

.site-footer h4 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a { color: var(--text-dim); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--text); }

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

/* ---------- animação de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mockup de celular com busca (seção problema) ---------- */

.phone-wrap { display: flex; justify-content: center; padding: 16px 0; }

.phone {
  width: 300px;
  background: #101215;
  border-radius: 40px;
  padding: 12px;
  border: 1px solid rgba(245, 247, 250, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 70px rgba(0, 94, 253, 0.18);
  transform: rotate(6deg);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #101215;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  border-radius: 30px;
  padding: 42px 14px 16px;
  overflow: hidden;
}

.g-logo {
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.g-logo span:nth-child(1) { color: #4285F4; }
.g-logo span:nth-child(2) { color: #EA4335; }
.g-logo span:nth-child(3) { color: #FBBC05; }
.g-logo span:nth-child(4) { color: #4285F4; }
.g-logo span:nth-child(5) { color: #34A853; }
.g-logo span:nth-child(6) { color: #EA4335; }

.g-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe1e5;
  border-radius: 100px;
  padding: 9px 14px;
  color: #9aa0a6;
  font-size: 0.78rem;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.12);
}

.g-search svg { width: 14px; height: 14px; color: #9aa0a6; flex-shrink: 0; }

.g-result {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.06);
}

.g-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #5f6368;
  margin-bottom: 3px;
}

.g-fav {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8eaed;
  border: 1px solid #dadce0;
  display: inline-block;
  flex-shrink: 0;
}

.g-title { color: #1a0dab; font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; }
.g-desc { color: #4d5156; font-size: 0.68rem; line-height: 1.45; }

.g-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #EA4335;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 2px;
  box-shadow: 0 6px 18px rgba(234, 67, 53, 0.35);
}

.g-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-alert-icon svg { width: 16px; height: 16px; }

.g-alert strong { display: block; font-size: 0.8rem; }
.g-alert span { font-size: 0.68rem; opacity: 0.92; line-height: 1.35; }

.search-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: center;
  font-style: italic;
}

/* ---------- armadilhas ---------- */

.badge-warn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF8A70;
  background: rgba(255, 138, 112, 0.1);
  border: 1px solid rgba(255, 138, 112, 0.32);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 0.9rem;
}

.way-strip {
  border: 1px solid rgba(0, 94, 253, 0.55);
  background: rgba(0, 94, 253, 0.07);
  box-shadow: 0 0 32px rgba(0, 94, 253, 0.14);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 24px 0 32px;
}

.way-strip p { font-size: 1.05rem; }

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

.faq { max-width: 760px; }

.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: border-color 0.25s;
}

.faq details[open] { border-color: rgba(0, 94, 253, 0.45); }

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: '+';
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--blue-light);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 22px 18px; color: var(--text-dim); }
