/* =========================================
   IGNITE CERTIFICATES PAGE
   ========================================= */

.cert-page {
  background: #ffffff;
  color: #172033;
}

.cert-page h1,
.cert-page h2,
.cert-page h3,
.cert-page h4 {
  color: #111827;
}

.cert-page p {
  color: #536072;
}


/* HERO */

.cert-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(37,99,235,.15), transparent 35%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #edf4ff 100%);
}

.cert-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.cert-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #2563eb;
}

.cert-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.cert-hero-lead {
  max-width: 650px;
  font-size: 19px;
  line-height: 1.7;
}

.cert-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cert-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}


/* CERTIFICATE MOCKUP */

.certificate-showcase {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(37,99,235,.14);
  filter: blur(70px);
}

.certificate-mockup {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 16px;
  box-shadow:
    0 35px 80px rgba(15,23,42,.18),
    0 8px 24px rgba(15,23,42,.08);
  transform: rotate(2deg);
  animation: certificateFloat 5.5s ease-in-out infinite;
}

.mock-cert-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  border-bottom: 1px solid #e5e7eb;
}

.mock-cert-top img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mock-cert-top span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #0f172a;
}

.mock-cert-body {
  padding: 48px 44px 40px;
  text-align: center;
}

.mock-small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #2563eb;
}

.mock-cert-body h2 {
  margin: 24px 0 8px;
  font-size: 38px;
  font-family: Georgia, serif;
}

.mock-cert-body h3 {
  margin: 8px 0;
  font-size: 18px;
  color: #1e3a8a;
}

.mock-cert-body p {
  margin: 8px 0;
}

.mock-role {
  font-weight: 700;
}

.mock-cert-line {
  width: 70%;
  height: 1px;
  margin: 30px auto;
  background: #dbe3ed;
}

.mock-cert-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mock-cert-meta small,
.mock-signature span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
}

.mock-cert-meta strong,
.mock-signature strong {
  color: #172033;
  font-size: 13px;
}

.mock-signature {
  margin-top: 32px;
}


/* SECTIONS */

.cert-section {
  padding: 90px 0;
}

.cert-alt {
  background: #f5f7fb;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p {
  font-size: 17px;
  line-height: 1.7;
}


/* CARDS */

.cert-value-grid .card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.cert-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-weight: 850;
}


/* TWO COLUMN */

.cert-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.cert-two-column h2 {
  margin-top: 0;
  font-size: 38px;
}

.cert-check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.cert-check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #e5e7eb;
  color: #475569;
}

.cert-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: #2563eb;
  font-weight: 900;
}


/* INFO PANEL */

.cert-info-panel {
  padding: 32px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.cert-panel-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #2563eb;
}

.cert-record {
  padding: 19px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cert-record small {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
}

.cert-record strong {
  color: #172033;
}

.cert-status {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 750;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
}


/* PROCESS */

.cert-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.cert-process::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 27px;
  height: 2px;
  background: #dbe4ef;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.process-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(15,23,42,.18);
}

.process-step p {
  font-size: 14px;
  line-height: 1.6;
}


/* DARK CONTRIBUTION SECTION */

.cert-dark {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 30%),
    linear-gradient(135deg, #07111f, #111c31);
}

.cert-dark h2,
.cert-dark h4 {
  color: #ffffff;
}

.cert-dark p {
  color: #cbd5e1;
}

.cert-dark .cert-eyebrow {
  color: #60a5fa;
}

.cert-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cert-area-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  transition: .25s ease;
}

.cert-area-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.08);
}

.cert-area-card > span {
  display: inline-block;
  margin-bottom: 16px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
}


/* VERIFICATION */

.verification-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 55px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dce5ef;
  box-shadow: 0 20px 50px rgba(15,23,42,.07);
}

.verification-box h2 {
  margin-top: 0;
  font-size: 40px;
}

.verification-demo {
  padding: 26px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.verification-demo label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.verification-input {
  display: flex;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}

.verification-input span {
  flex: 1;
  padding: 14px 16px;
  color: #172033;
  font-family: monospace;
}

.verification-input button {
  padding: 0 20px;
  border: 0;
  background: #2563eb;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.verification-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #ecfdf5;
}

.verify-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  font-weight: 900;
}

.verification-result strong,
.verification-result small {
  display: block;
}

.verification-result strong {
  color: #166534;
}

.verification-result small {
  margin-top: 3px;
  color: #4b7a60;
}

.verification-note {
  margin: 12px 0 0;
  font-size: 11px;
}


/* INTEGRITY */

.integrity-box {
  padding: 35px;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
}


/* FAQ */

.cert-faq details {
  margin-bottom: 12px;
  padding: 0 22px;
  border: 1px solid #dde5ee;
  border-radius: 12px;
  background: #ffffff;
}

.cert-faq summary {
  padding: 18px 0;
  cursor: pointer;
  color: #172033;
  font-weight: 750;
}

.cert-faq details p {
  margin-top: 0;
  padding-bottom: 18px;
}


/* CTA */

.cert-cta {
  padding: 95px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.18), transparent 40%),
    #07111f;
}

.cert-cta h2 {
  max-width: 800px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 54px);
}

.cert-cta p {
  max-width: 700px;
  margin: auto;
  color: #cbd5e1;
}

.cert-cta .cert-hero-actions {
  justify-content: center;
}

.cert-cta .btn.ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,.5);
}


/* ANIMATION */

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes certificateFloat {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }

  50% {
    transform: rotate(1deg) translateY(-12px);
  }
}


/* RESPONSIVE */

@media screen and (max-width: 900px) {

  .cert-hero-grid,
  .cert-two-column,
  .verification-box {
    grid-template-columns: 1fr;
  }

  .cert-hero {
    padding: 80px 0;
  }

  .certificate-showcase {
    min-height: auto;
    margin-top: 20px;
  }

  .cert-process {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cert-process::before {
    display: none;
  }

  .process-step {
    text-align: left;
  }

  .process-number {
    margin-right: 12px;
  }

  .cert-area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verification-box {
    padding: 32px;
  }

}

@media screen and (max-width: 600px) {

  .cert-section {
    padding: 65px 0;
  }

  .cert-area-grid {
    grid-template-columns: 1fr;
  }

  .certificate-mockup {
    transform: none;
  }

  .mock-cert-body {
    padding: 34px 24px;
  }

  .mock-cert-body h2 {
    font-size: 30px;
  }

  .mock-cert-meta {
    grid-template-columns: 1fr;
  }

  .cert-hero-points {
    flex-direction: column;
    gap: 8px;
  }

}

/* Fix How It Works button text */
.cert-hero .btn.ghost {
  color: #1e3a8a;
  border-color: #2563eb;
  background: transparent;
}

.cert-hero .btn.ghost:hover {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}
