/*
  DIRECTION CONTRACT
  THESIS: performance marketing sold like a trusted local agency, not a hardware
  product — warmth and proof over cold minimalism, open to any business niche.
  OWN-WORLD: deep navy ground, one confident blue glow accent, glass cards with
  real offset+blur shadows, bold geometric Plus Jakarta Sans display type.
  STORY: any business owner needing active demand sees Crezco proves results
  (real anonymized cases) and structures the whole system (media + commercial),
  then acts via WhatsApp or the qualifier.
  FIRST VIEWPORT: centered bold headline over a glowing mesh ground, WhatsApp
  CTA, a floating phone mockup showing live lead notifications to the right.
  FORM: assigned direction from concept-seed (thermal-receipt/poster lineage),
  raised by user-pinned reference (dark navy glass agency site); seed 9964f00e.
  FINISH: unreviewed and undocumented is unfinished; this build ends with the
  finish review, the verdict, DESIGN.md, and every shipping raster carrying
  its provenance.
*/

:root {
  --bg-deep: #050b18;
  --bg-1: #0b1730;
  --bg-2: #101d3d;
  --bg-3: #0d1932;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --hairline: rgba(255, 255, 255, 0.08);

  --accent: #3d82ff;
  --accent-strong: #5b94ff;
  --accent-soft: rgba(61, 130, 255, 0.16);
  --accent-glow: rgba(61, 130, 255, 0.45);

  --ink: #f3f6ff;
  --ink-muted: #a7b4d6;
  --ink-dim: #6d7ba0;

  --whatsapp: #2fbf71;
  --danger: #ff6b6b;
  --accent-btn: #2a63c9;
  --accent-btn-hover: #3573e0;

  --font: "Sora", -apple-system, system-ui, sans-serif;

  --wrap: 1200px;
  --radius-card: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 14px 34px -12px var(--accent-glow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.tile-inner { max-width: 980px; margin: 0 auto; }

a { color: var(--accent-strong); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Typography ---------- */
.hero-display { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.display-lg { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin: 0 0 16px; }
.display-md { font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--ink-muted); line-height: 1.6; max-width: 52ch; }
.lead-airy { font-size: 18px; color: var(--ink-muted); line-height: 1.6; max-width: 56ch; }
.body { font-size: 16px; line-height: 1.6; }
.body-strong { font-size: 17px; font-weight: 700; line-height: 1.4; }
.caption { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.caption-strong { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.micro-legal { font-size: 12px; color: var(--ink-dim); }
.tagline { font-size: 18px; font-weight: 600; }

.accent-text, .accent-text-on-dark { color: var(--accent-strong); }
.on-dark-muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary-pill, .btn-store-hero, .btn-pearl-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:active, .btn-secondary-pill:active, .btn-store-hero:active, .btn-pearl-capsule:active { transform: scale(0.96); }

.btn-primary, .btn-store-hero {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover, .btn-store-hero:hover { background: var(--accent-btn-hover); box-shadow: 0 18px 40px -10px var(--accent-glow); }
.btn-primary { padding: 13px 26px; font-size: 16px; }
.btn-store-hero { padding: 16px 32px; font-size: 17px; }

.btn-secondary-pill {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  padding: 12px 25px;
  font-size: 16px;
  backdrop-filter: blur(16px);
}
.btn-secondary-pill:hover { background: var(--glass-strong); }

.btn-pearl-capsule {
  background: var(--ink);
  color: var(--bg-deep);
  padding: 12px 20px;
  font-size: 15px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Global nav ---------- */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

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

.nav-logo { font-size: 18px; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.accent { color: var(--accent-strong); }

.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-link-accent { color: var(--accent-strong); }

.nav-cta { flex-shrink: 0; padding: 10px 20px; font-size: 15px; }
.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Tiles / sections (all navy, alternating depth) ---------- */
.tile { padding: 100px 0; position: relative; }
.tile-light { background: var(--bg-1); }
.tile-parchment { background: var(--bg-2); }
.tile-dark-1 { background: var(--bg-3); }
.tile-dark-2 { background: var(--bg-1); }
.tile-dark-3 { background: var(--bg-deep); }

.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head .display-lg { margin-bottom: 12px; }
.section-head .lead-airy { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero-tile {
  padding: 64px 0 100px;
  background:
    radial-gradient(700px 420px at 18% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(600px 500px at 100% 30%, rgba(61, 130, 255, 0.10), transparent 65%),
    var(--bg-deep);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
}
.hero-copy { text-align: left; }
.hero-tile .lead { margin-bottom: 32px; }
.hero-tile .btn-row { justify-content: flex-start; }

.hero-visual { display: flex; justify-content: center; }
.growth-curve { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.curve-grid { stroke: var(--hairline); stroke-width: 1; }
.curve-line { stroke: var(--accent-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.curve-dot {
  fill: var(--bg-deep);
  stroke: var(--accent-strong);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
}
.curve-dot-end { fill: var(--accent-strong); stroke: var(--ink); stroke-width: 2; }
.curve-label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink-muted);
  transform-box: fill-box;
  transform-origin: left center;
}
.curve-label-end { fill: var(--ink); font-size: 16px; }
.curve-area { opacity: 0; transition: opacity 0.6s ease; }
.curve-area.is-in { opacity: 1; }

@keyframes curvePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.35; }
}
.curve-dot-end.is-pulsing {
  transform-box: fill-box;
  transform-origin: center;
  animation: curvePulse 1.1s cubic-bezier(0.16, 1, 0.3, 1) 2;
}

@media (prefers-reduced-motion: reduce) {
  .curve-area { transition: none; opacity: 1; }
  .curve-dot-end.is-pulsing { animation: none; }
}

/* ---------- Problema / utility cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

.utility-card, .case-card, .plan-card, .service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.utility-card .caption-strong { display: block; margin-bottom: 12px; }
.problem-close { text-align: center; max-width: 560px; margin: 0 auto; color: var(--ink); }

/* ---------- Services grid ---------- */
.services-equation { display: flex; align-items: center; gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.services-input { min-width: 0; }
.services-output { background: var(--accent-soft); border-color: var(--accent-glow); }
.service-head { display: flex; align-items: center; gap: 12px; }
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 20px; height: 20px; color: var(--accent-strong); }
.service-icon-solid { background: var(--accent-btn); color: #fff; font-weight: 800; font-size: 18px; }
.service-head h3 { font-size: 19px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.service-list svg { width: 16px; height: 16px; color: var(--accent-strong); flex-shrink: 0; }

.services-op {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-dim);
}
.services-op-eq { color: var(--accent-strong); }

/* ---------- Método (vertical timeline) ---------- */
.steps { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding-bottom: 40px; position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: -8px;
  width: 1px;
  background: var(--hairline);
}
.step:last-child::before { display: none; }
.step:last-child { padding-bottom: 0; }
.step-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.step h3 { grid-column: 2; grid-row: 1; font-size: 19px; margin-bottom: 6px; }
.step p { grid-column: 2; grid-row: 2; max-width: 46ch; }

/* ---------- Fit list ---------- */
.fit-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}
.fit-list li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-weight: 600;
}
.fit-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
}
.fit-list li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-65%) rotate(-45deg);
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; gap: 12px; }
.case-results { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.case-results li { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan-desc { color: var(--ink-muted); flex-grow: 1; margin-bottom: 8px; }
.plan-featured { border-color: var(--accent-glow); box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow-card); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent-btn);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}

/* ---------- Sobre ---------- */
.sobre-inner { max-width: 680px; text-align: center; margin: 0 auto; }
.sobre-quote { font-style: italic; margin-bottom: 24px; }
.sobre-inner .lead { margin: 0 auto 16px; max-width: none; }

/* ---------- Contato ---------- */
.contato-inner { text-align: center; }
.contato-title { max-width: 720px; margin: 0 auto 20px; }
.qualifier-intro { max-width: 480px; margin: 0 auto 40px; }

/* ---------- Qualifier card ---------- */
.qualifier-card {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
}

.qualifier-progress-track { height: 3px; background: rgba(255, 255, 255, 0.08); }
.qualifier-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); width: 12.5%; transition: width 0.3s ease; }

.qualifier-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.qualifier-back-icon {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: none;
  color: var(--ink-muted); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qualifier-back-icon:hover { background: var(--glass); color: var(--ink); }
.qualifier-back-icon:disabled { visibility: hidden; }
.qualifier-brand { font-size: 14px; font-weight: 800; color: var(--ink-dim); }
.qualifier-brand .accent { color: var(--accent-strong); }
.qualifier-head-spacer { width: 28px; }

.qualifier-step-label { padding: 12px 24px 0; }
.qualifier-form { padding: 4px 24px 32px; }
.qualifier-question { color: var(--ink); margin-bottom: 12px; font-size: 20px; }
.qualifier-helper { margin-bottom: 16px; margin-top: -4px; }

.qualifier-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 20px;
}
.qualifier-input::placeholder { color: var(--ink-dim); }
.qualifier-input:focus { outline: none; border-color: var(--accent-strong); }
.qualifier-input.has-error { border-color: var(--danger); margin-bottom: 8px; }
.qualifier-input.has-error:focus { border-color: var(--danger); }

.qualifier-error {
  color: var(--danger);
  font-size: 13px;
  margin: -4px 0 16px;
}

.qualifier-next-btn { width: 100%; justify-content: center; }

.qualifier-hint { text-align: center; margin-top: 12px; }
.qualifier-hint kbd { background: var(--glass); border-radius: 4px; padding: 2px 6px; font-family: var(--font); font-size: 11px; }

.qualifier-choices { display: flex; flex-direction: column; gap: 10px; }
.qualifier-chip {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--glass-border); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); font-family: var(--font); font-size: 15px;
  color: var(--ink); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.qualifier-chip:hover { border-color: var(--accent-strong); background: var(--accent-soft); }
.qualifier-chip.selected { border-color: var(--accent-strong); background: var(--accent-soft); font-weight: 700; }
.qualifier-chip-letter {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--glass);
  color: var(--ink-muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.qualifier-chip.selected .qualifier-chip-letter { background: var(--accent-btn); color: #fff; }

.qualifier-final-text { color: var(--ink-muted); margin-bottom: 24px; }
.qualifier-whatsapp-cta { width: 100%; justify-content: center; margin-bottom: 16px; }
.qualifier-or { text-align: center; margin-bottom: 12px; }
.qualifier-decline-cta { width: 100%; justify-content: center; }
.qualifier-skip-inline { display: block; text-align: center; margin-top: 16px; font-size: 14px; }

/* ---------- Diagnostic tool ---------- */
.diagnostic-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.diagnostic-spinner {
  width: 36px; height: 36px; margin: 12px auto 20px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: diagnosticSpin 0.8s linear infinite;
}
@keyframes diagnosticSpin { to { transform: rotate(360deg); } }
.diagnostic-loading-text { text-align: center; margin-bottom: 0; }

.diagnostic-result {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 24px;
}
.diagnostic-whatsapp-cta { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .diagnostic-spinner { animation: none; border-top-color: var(--glass-border); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--ink-muted); padding: 64px 0 24px; border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.footer-logo { color: var(--ink); }
.footer-brand p { margin-top: 8px; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--ink-muted); }
.footer-meta a:hover { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--hairline); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-tile .btn-row { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .growth-curve { max-width: 340px; }
}

@media (max-width: 833px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5, 11, 24, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--hairline);
  }

  #navLinks .nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-btn);
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    margin-top: 4px;
  }

  .tile { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .services-equation { flex-direction: column; }
  .services-op { transform: rotate(90deg); }
  .cases-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { margin: 0; }
  .qualifier-card { max-width: 100%; }
  .qualifier-head { padding: 14px 20px 0; }
  .qualifier-step-label { padding: 10px 20px 0; }
  .qualifier-form { padding: 4px 20px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 520px) {
  .hero-tile { padding: 48px 0 64px; }
  .tile { padding: 56px 0; }
}
