/* =============================================================
   COMPONENTS — Componentes específicos do site público
   ============================================================= */

/* =================== BUTTONS =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform var(--dur-fast);
}

.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule-2);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(245, 241, 234, 0.04);
}

.btn-large {
  padding: 22px 40px;
  font-size: 13px;
}

/* =================== MARQUEE (logos scrolling) =================== */

.marquee {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--black-2);
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--black-2), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--black-2), transparent);
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--paper-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-item::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.6em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =================== STATS GRID (mercado) =================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 48px;
}

.stat {
  background: var(--black);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: background var(--dur-base);
  position: relative;
  overflow: hidden;
}

.stat:hover { background: var(--black-2); }

.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper-mute);
}

.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 24px 0 16px;
}

.stat .stat-num .unit {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
}

.stat .stat-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-dim);
}

/* =================== HOW IT WORKS (processo) =================== */

.process-list {
  margin-top: 48px;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  position: relative;
  transition: padding-left var(--dur-base);
}

.process-step:last-child { border-bottom: 1px solid var(--rule); }

.process-step:hover { padding-left: 16px; }

.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.process-step .step-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-mute);
}

.process-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-dim);
}

/* =================== CASES GRID =================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--black-2);
  border: 1px solid var(--rule);
  padding: 40px 32px;
  transition: all var(--dur-base);
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  border-color: var(--accent);
  background: var(--black-3);
  transform: translateY(-4px);
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-base);
}

.case-card:hover::before { width: 100%; }

.case-card .case-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}

.case-card .case-creator {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
}

.case-card .case-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 12px;
}

.case-card .case-meta {
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.5;
}

/* =================== VALUE PROPS (split row) =================== */

.value-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--rule);
}

.value-col {
  padding: 64px 48px;
  border-right: 1px solid var(--rule);
}

.value-col:last-child {
  border-right: none;
  background: var(--black-2);
}

.value-col .value-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.value-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.value-col h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

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

.value-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
}

.value-list li:last-child { border-bottom: none; }

.value-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* =================== FAQ =================== */

.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 32px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color var(--dur-fast);
}

.faq-question:hover { color: var(--accent); }

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--accent);
  transition: transform var(--dur-base);
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-base) var(--ease-out);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p {
  padding: 0 0 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 800px;
}

/* =================== APPLY FORM (CTA final) =================== */

.apply-section {
  background: var(--accent);
  color: var(--black);
  padding: 160px 0 140px;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.apply-section .section-meta {
  color: var(--black);
}

.apply-section .section-meta::before {
  background: var(--black);
}

.apply-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 32px;
}

.apply-section h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
}

.apply-section p.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--black);
  max-width: 720px;
  margin-bottom: 64px;
  opacity: 0.85;
}

.apply-form {
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.apply-form .field-full { grid-column: 1 / -1; }

.apply-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--black);
  margin-bottom: 8px;
  font-weight: 600;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  outline: none;
  transition: all var(--dur-fast);
  border-radius: 0;
  -webkit-appearance: none;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  background: var(--black);
  color: var(--paper);
  border-color: var(--black);
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.apply-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

.apply-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.apply-form .btn-submit {
  grid-column: 1 / -1;
  background: var(--black);
  color: var(--paper);
  padding: 22px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast);
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.apply-form .btn-submit:hover {
  background: var(--paper);
  color: var(--black);
}

.apply-success {
  display: none;
  padding: 48px;
  background: var(--black);
  color: var(--paper);
  margin-top: 32px;
}

.apply-success.show { display: block; }

.apply-success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 16px;
}

.apply-alt {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.apply-alt .alt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.apply-alt a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: opacity var(--dur-fast);
}

.apply-alt a:hover { opacity: 0.6; }

/* =================== MOBILE OVERRIDES =================== */

@media (max-width: 900px) {
  .stats-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .value-split { grid-template-columns: 1fr; }

  .value-col {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 48px 24px;
  }

  .value-col:last-child { border-bottom: none; }

  .process-step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .process-step .step-num { font-size: 48px; }

  .apply-form { grid-template-columns: 1fr; }

  .topbar-cta {
    padding: 8px 14px;
    font-size: 10px;
  }
}
