/* DESIGN SYSTEM - ROGARFIL */
:root {
  --navy2: #0f1629;
  --navy-blue: #001990;
  --navy-dark: #000f57;
  --navy-mid: #3347a6;
  --orange: #f4621f;
  --orange2: #ff7a3d;
  --coral-red: #ff6b6b;
  --coral-red-lt: #ff9b9b;
  --coral-red-dk: #ff9b9b;
  --scroll-progress: #ffdb58;
  --fine-turquoise: #2ec4b6;
  --cream: #f5f3ee;
  --white: #ffffff;
  --gray: #8b96b0;
  --gray-lt: #f0eee9;
  --gray-md: #9a9890;
  --gray-dk: #3e3d38;
  --light: #c8d0e0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

/* Faz com que qualquer elemento com ID respeite uma margem do topo ao receber uma âncora */
html {
    scroll-behavior: smooth;
    /* Altere 80px para a altura exata do seu menu fixo, se houver */
    scroll-padding-top: 80px; 
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--gray-dk);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Syne', sans-serif;
}

/* GLOBAL COMPONENTS & BUTTONS */
.btn-outline-to-enter {
  background: transparent;
  color: var(--navy-blue);
  border: 2px solid var(--navy-blue);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px; /* Ajuste sutil para compensar a borda */
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn-outline-to-enter:hover {
  background: var(--navy-blue);
  color: var(--white);
  border-color: var(--navy-blue);
}
.btn-outline-whatsapp {
  background: transparent;
  color: var(--fine-turquoise);
  border: 2px solid var(--fine-turquoise);
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  padding: 11px 20px; /* Ajuste sutil para compensar a borda */
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn-outline-whatsapp:hover {
  background: var(--fine-turquoise);
  color: var(--white);
  border-color: var(--fine-turquoise);
}
.btn-nav-cta {
  background: var(--coral-red);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px !important;
  transition: background 0.2s;
}
.btn-nav-cta:hover {
  background: var(--coral-red-dk);
  color: var(--white) !important;
}
.btn-primary-cta {
  background: var(--coral-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary-cta:hover {
  background: var(--coral-red-dk);
  transform: translateY(-1px);
  color: var(--white);
}
.btn-secondary-cta {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-secondary-cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-capture {
  background: var(--navy-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-capture:hover {
  background: var(--navy-blue);
}
.btn-submit {
  width: 100%;
  background: var(--coral-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-submit:hover {
  background: var(--coral-red-dk);
}

/* REUSABLE SECTION LABELS */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-red);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-md);
  max-width: 520px;
  line-height: 1.6;
}
.divider {
  height: 2px;
  background: var(--coral-red);
  width: 40px;
  margin: 14px 0 24px;
}

/* UTILITIES */
.text-coral-red {
  color: var(--coral-red);
}
.text-navy {
  color: var(--navy-dark);
}
.bg-navy {
  background: var(--navy-dark);
}
.loadTime {
  font-size: 0.5rem;
  color: var(--gray-md);
  margin-top: 0.2rem;
  display: block;
  opacity: 0.6;
  letter-spacing: 0.5px;
  float: right;
}

.image-credits {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  text-align: start;
  line-height: 1.4;
  color: var(--gray-md);
}
.image-credits a {
  color: var(--gray-md);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}
.image-credits a:hover {
  color: var(--fine-turquoise);
}

/* ── Section wrapper ── */
.section-404 {
  position: relative;
  min-height: 100vh;
  background: var(--navy-mid);
  font-family: var(--font-body);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Background grid ── */
.section-404::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 98, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 98, 31, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Scan line overlay ── */
.section-404::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Glow blobs ── */
.blob-404 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat404 8s ease-in-out infinite alternate;
}
.blob-404-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(244, 98, 31, 0.18) 0%,
    transparent 70%
  );
  top: -150px;
  left: -100px;
}
.blob-404-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(22, 32, 64, 0.9) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  animation-delay: -3s;
}
.blob-404-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(244, 98, 31, 0.1) 0%,
    transparent 70%
  );
  bottom: 20%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes blobFloat404 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, 30px) scale(1.08);
  }
}

/* ── Content wrapper ── */
.content-404 {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  text-align: center;
  padding: 80px 24px;
  color: #ffffff;
}

/* ── 404 number ── */
.num-404 {
  font-family: var(--font-display);
  font-size: clamp(160px, 25vw, 280px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 98, 31, 0.35);
  position: relative;
  display: inline-block;
  user-select: none;
  animation: fadeDown404 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.num-404::after {
  content: '404';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    rgba(244, 98, 31, 0.4) 60%,
    transparent 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  clip-path: polygon(0 0, 48% 0, 38% 100%, 0 100%);
  animation: shimmer404 4s ease-in-out infinite;
}
@keyframes shimmer404 {
  0%,
  100% {
    clip-path: polygon(0 0, 48% 0, 38% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 60% 0, 50% 100%, 0 100%);
  }
}

/* ── Status tag ── */
.tag-404 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 98, 31, 0.12);
  border: 1px solid rgba(244, 98, 31, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange2);
  margin-bottom: 24px;
  animation: fadeUp404 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tag-404::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse404 2s ease-in-out infinite;
}
@keyframes pulse404 {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ── Headline ── */
.headline-404 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  animation: fadeUp404 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.headline-404 em {
  font-style: normal;
  color: var(--orange);
}

/* ── Subtitle ── */
.sub-404 {
  font-size: 17px;
  font-weight: 300;
  color: var(--light);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeUp404 0.7s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Action buttons ── */
.actions-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp404 0.7s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.btn-404-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-404-primary:hover {
  background: var(--orange2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(244, 98, 31, 0.35);
  text-decoration: none;
}
.btn-404-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid rgba(200, 208, 224, 0.2);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn-404-secondary:hover {
  border-color: rgba(244, 98, 31, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Divider ── */
.divider-404 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px auto 32px;
  max-width: 500px;
  animation: fadeUp404 0.7s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.divider-404::before,
.divider-404::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 208, 224, 0.1);
}
.divider-404 span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

/* ── Quick links ── */
.quick-links-404 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeUp404 0.7s 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.quick-link-404 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--light);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.quick-link-404:hover {
  background: rgba(244, 98, 31, 0.1);
  border-color: rgba(244, 98, 31, 0.3);
  color: #ffffff;
  text-decoration: none;
}
.quick-link-404 svg {
  opacity: 0.5;
}

/* ── Keyframes ── */
@keyframes fadeDown404 {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp404 {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .actions-404 {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-404-primary,
  .btn-404-secondary {
    justify-content: center;
  }
}
