/* cloudflare.css — Página Gestão Cloudflare: Segurança, DNS e Performance
   Segue o Design System do projeto (tokens.css, global.css)
   SafeWidget: componentes independentes, sem dependências externas de layout
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Utilitário: gradiente de texto ────────────────────────────────────────── */
.cf-gradient-text {
  background: linear-gradient(135deg, #f6821f 0%, #fbad41 50%, #f6821f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══ HERO ════════════════════════════════════════════════════════════════════ */
.cf-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #000000 0%, #03060f 40%, #060d1e 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.cf-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 130, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 130, 31, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.cf-hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cf-hero__content {
  flex: 1;
  min-width: 0;
}

/* Badge */
.cf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(246, 130, 31, 0.35);
  border-radius: var(--radius-pill);
  color: #f6821f;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
  background: rgba(246, 130, 31, 0.06);
  backdrop-filter: blur(4px);
}
.cf-badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6821f;
  animation: cf-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes cf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.72); }
}

/* Título */
.cf-hero__title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cf-hero__sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 52ch;
}

/* Botões hero */
.cf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.cf-hero__btn-primary {
  background: linear-gradient(135deg, #f6821f, #fbad41);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.18s;
}
.cf-hero__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.cf-hero__btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: transparent;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.cf-hero__btn-ghost:hover {
  border-color: rgba(246, 130, 31, 0.55);
  background: rgba(246, 130, 31, 0.06);
  color: #f6821f;
}

/* Pills de tecnologias */
.cf-hero__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.cf-hero__pills li {
  padding: 0.25rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
}

/* Visual shield */
.cf-hero__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
}
.cf-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 120px;
  color: #f6821f;
}
.cf-shield svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(246, 130, 31, 0.35));
}
/* Logo Cloudflare (img substituiu o svg) */
.cf-hero__logo-img {
  position: relative;
  z-index: 2;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(255,255,255,0.25));
  display: block;
}
.cf-shield__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(246, 130, 31, 0.18);
  animation: cf-ring-pulse 3s ease-in-out infinite;
}
.cf-shield__ring--1 { width: 120px; height: 120px; animation-delay: 0s; }
.cf-shield__ring--2 { width: 170px; height: 170px; animation-delay: 0.7s; border-color: rgba(246, 130, 31, 0.1); }
.cf-shield__ring--3 { width: 220px; height: 220px; animation-delay: 1.4s; border-color: rgba(246, 130, 31, 0.06); }
@keyframes cf-ring-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.04); }
}

/* Mobile: ocultar visual decorativo */
@media (max-width: 767px) {
  .cf-hero__visual { display: none; }
  .cf-hero__container { flex-direction: column; }
  .cf-hero__title br { display: none; }
}

/* ══ INTRO / POR QUE ═════════════════════════════════════════════════════════ */
.cf-intro { background: var(--background); }

.cf-intro__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cf-intro__text h2 {
  margin-bottom: 1rem;
}
.cf-intro__text h2 br { display: none; }
@media (min-width: 640px) {
  .cf-intro__text h2 br { display: block; }
}

.cf-intro__text p {
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 1rem;
}
.cf-intro__text p:last-child { margin-bottom: 0; }

/* Grid de "por que" */
.cf-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cf-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-why-card:hover {
  border-color: rgba(246, 130, 31, 0.35);
  box-shadow: 0 4px 20px rgba(246, 130, 31, 0.06);
}
.cf-why-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.cf-why-card__desc {
  font-size: 0.9125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

/* ══ SERVIÇOS ════════════════════════════════════════════════════════════════ */
.cf-services {
  background: var(--surface);
}

.cf-services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cf-service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cf-service-card:hover {
  border-color: rgba(246, 130, 31, 0.4);
  box-shadow: 0 6px 28px rgba(246, 130, 31, 0.07);
  transform: translateY(-3px);
}
.cf-service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(246, 130, 31, 0.08);
  border: 1px solid rgba(246, 130, 31, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6821f;
  flex-shrink: 0;
}
.cf-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}
.cf-service-card__desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ══ PROCESSO ════════════════════════════════════════════════════════════════ */
.cf-process { background: var(--background); }

.cf-process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}

.cf-process__step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cf-process__num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f6821f, #fbad41);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.02em;
}

.cf-process__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.cf-process__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  display: block;
}
.cf-process__desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

/* ══ EDITORIAL ═══════════════════════════════════════════════════════════════ */
.cf-editorial { background: var(--surface); }

.cf-editorial__container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cf-editorial__badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  background: rgba(246, 130, 31, 0.08);
  border: 1px solid rgba(246, 130, 31, 0.2);
  color: #f6821f;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cf-editorial__header h2 { margin-bottom: 1rem; }
.cf-editorial__lead {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 64ch;
}

.cf-editorial__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cf-editorial__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cf-editorial__item:last-child { border-bottom: none; }

.cf-editorial__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(246, 130, 31, 0.1);
  border: 1.5px solid rgba(246, 130, 31, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6821f;
  font-weight: 800;
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.cf-editorial__item-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}
.cf-editorial__item-body p {
  font-size: 0.9125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0;
}

/* CTA do editorial */
.cf-editorial__cta {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.cf-editorial__cta p {
  font-size: 1.0625rem;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.cf-editorial__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.cf-editorial__btn-primary {
  background: linear-gradient(135deg, #f6821f, #fbad41);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.18s;
}
.cf-editorial__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ══ FINAL CTA ═══════════════════════════════════════════════════════════════ */
.cf-final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #000000 0%, #03060f 50%, #060d1e 100%);
  padding: 6rem 0;
  text-align: center;
}
.cf-final-cta__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 900;
  color: rgba(246, 130, 31, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  z-index: 0;
}
.cf-final-cta__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cf-final-cta__container h2 {
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
.cf-final-cta__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.7;
  max-width: 52ch;
}
.cf-final-cta__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.cf-final-cta__badges li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-weight: 500;
}
.cf-final-cta__check {
  color: #f6821f;
  font-weight: 800;
  font-size: 1rem;
}
.cf-final-cta__actions { margin-top: 0.5rem; }
.cf-final-cta__btn {
  background: linear-gradient(135deg, #f6821f, #fbad41);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.18s;
}
.cf-final-cta__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ══ DARK MODE ═══════════════════════════════════════════════════════════════ */

/* ── Section CTA (botões centralizados abaixo de cada seção) ─────────────── */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.section-cta .btn {
  min-width: 260px;
}

/* ── faq__cta centralizado ───────────────────────────────────────────────── */
.faq__cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

[data-theme="dark"] .cf-why-card {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .cf-why-card:hover {
  border-color: rgba(246, 130, 31, 0.4);
}
[data-theme="dark"] .cf-service-card {
  background: var(--background);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .cf-service-card:hover {
  border-color: rgba(246, 130, 31, 0.4);
}
[data-theme="dark"] .cf-editorial__cta {
  background: var(--background);
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .cf-editorial__item {
  border-color: rgba(255, 255, 255, 0.07);
}

/* ══ SCROLL REVEAL ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
