/* Dark Mode Base */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif !important;
}

body {
  font-family: Arial, sans-serif !important;
  background: #0a0a0b;
  color: #e5e5e7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Reset only problematic properties from wp_head() conflicts */
.wpaeo-checker-page * {
  font-family: Arial, sans-serif !important;
}

.wpaeo-checker-page h1,
.wpaeo-checker-page h2,
.wpaeo-checker-page h3,
.wpaeo-checker-page h4,
.wpaeo-checker-page h5,
.wpaeo-checker-page h6 {
  font-family: Arial, sans-serif !important;
  font-weight: normal;
  margin: 0 !important;
  padding: 0 !important;
}

/* Background */
.wpaeo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #0a0a0b;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 0%, rgba(80,80,120,0.18), transparent 60%);
  background-size: 22px 22px, 100% 100%;
  background-position: 0 0, 0 0;
  pointer-events: none;
}

.wpaeo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,11,0.6) 70%, #0a0a0b 100%);
}

.wpaeo-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.wpaeo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  max-width: 100%;
  width: 100%;
}

.wpaeo-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.wpaeo-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.wpaeo-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.wpaeo-nav__button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.wpaeo-nav__button:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.wpaeo-nav__button--secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #a1a1aa;
}

.wpaeo-nav__button--secondary:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 720px) {
  .wpaeo-header {
    padding: 18px 20px;
  }
  .wpaeo-nav {
    gap: 16px;
  }
  .wpaeo-nav a:not(.wpaeo-nav__cta) {
    display: none;
  }
}

/* Container */
.wpaeo-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* Hero Section - Centered */
.wpaeo-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.wpaeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a1a1aa;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.wpaeo-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.wpaeo-checker-page .wpaeo-h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900 !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px !important;
  color: #fff;
}

.wpaeo-h1 .ai {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wpaeo-tagline {
  font-size: 16px;
  color: #a1a1aa;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.wpaeo-tagline strong {
  color: #ffffff;
  font-weight: 600;
}

.wpaeo-visual-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
  border: 1px dashed rgba(255,255,255,0.1);
  min-height: 300px;
}

/* Stats Section */
.wpaeo-stats-section {
  padding: 80px 20px;
  max-width: 100%;
  width: 100%;
  background: rgba(99,102,241,0.04);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wpaeo-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 60px;
  width: 100%;
}

.wpaeo-latest-scans {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.wpaeo-latest-scans__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 32px;
}

.wpaeo-latest-scans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.wpaeo-score-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, opacity 0.2s;
}

.wpaeo-score-gauge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.wpaeo-score-gauge__svg {
  width: 120px;
  height: 120px;
}

.wpaeo-score-gauge__circle {
  transition: stroke-dashoffset 0.6s ease;
}

.wpaeo-score-gauge__text {
  font-size: 34px;
  font-weight: 700;
  fill: #fff;
  font-family: inherit;
}

.wpaeo-score-gauge__subtext {
  font-size: 12px;
  fill: #a1a1aa;
  font-family: inherit;
}

.wpaeo-score-gauge__info {
  text-align: center;
  width: 100%;
}

.wpaeo-score-gauge__label {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: capitalize;
  margin: 0;
  display: none;
}

.wpaeo-score-gauge__host-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wpaeo-score-gauge__favicon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
}

.wpaeo-score-gauge__host {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  word-break: break-word;
}

.wpaeo-score-gauge__date {
  font-size: 10px;
  color: #6b7280;
  margin: 0;
}

.wpaeo-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wpaeo-stats__number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}

.wpaeo-stats__label {
  font-size: 14px;
  color: #a1a1aa;
  margin: 0;
  font-weight: 500;
}

/* Value Section - Alternating */
.wpaeo-value-section {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.wpaeo-value-section:nth-child(even) {
  direction: rtl;
}

.wpaeo-value-section:nth-child(even) > * {
  direction: ltr;
}

.wpaeo-value__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  position: relative;
  margin: 0;
}

.wpaeo-value__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.wpaeo-value__badge {
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wpaeo-value__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #fff;
}

.wpaeo-value__desc {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.7;
  margin: 0;
}

/* FAQ Section */
.wpaeo-section {
  padding: 80px 20px;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wpaeo-section__title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: #fff;
  max-width: 880px;
}

.wpaeo-section__subtitle {
  font-size: 16px;
  color: #a1a1aa;
  text-align: center;
  margin: 0 0 60px;
  max-width: 880px;
}

.wpaeo-faq {
  max-width: 800px;
  margin: 0 auto;
}

.wpaeo-faq__item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wpaeo-faq__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.wpaeo-faq__q {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.wpaeo-faq__a {
  font-size: 14px;
  line-height: 1.7;
  color: #a1a1aa;
  margin: 0;
}

/* CTA Section */
.wpaeo-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: rgba(99,102,241,0.04);
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 100%;
  width: 100%;
}

.wpaeo-cta-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-align: center;
}

.wpaeo-cta-section p {
  font-size: 16px;
  color: #a1a1aa;
  margin: 0 0 48px;
  text-align: center;
}

/* Value Image */
.wpaeo-value__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

/* Checker form styling */
.wpaeo-scan-another__center {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.wpaeo-checker {
  width: 370px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
}

.wpaeo-checker__form {
  width: 370px !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

.wpaeo-checker-wrapper,
.wpaeo-cta-section,
.wpaeo-hero-centered {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Footer */
.wpaeo-footer {
  padding: 28px 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.wpaeo-footer a {
  color: #a1a1aa;
  text-decoration: none;
}

.wpaeo-footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .wpaeo-hero-centered {
    padding: 60px 20px;
  }

  .wpaeo-stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .wpaeo-stats__number {
    font-size: 28px;
  }

  .wpaeo-latest-scans__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .wpaeo-value-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
    direction: ltr;
  }

  .wpaeo-value-section:nth-child(even) {
    direction: ltr;
  }

  .wpaeo-value-section:nth-child(even) > * {
    direction: ltr;
  }

  .wpaeo-value__visual {
    order: -1;
    min-height: 300px;
  }

  .wpaeo-value__content {
    text-align: center;
  }

  .wpaeo-checker-page .wpaeo-h1 {
    font-size: 42px;
    font-weight: 900 !important;
    margin: 0 0 20px !important;
  }

  .wpaeo-value__title {
    font-size: 28px;
  }

  .wpaeo-section {
    padding: 60px 20px;
  }

  .wpaeo-section__title {
    font-size: 32px;
  }

  .wpaeo-cta-section {
    padding: 60px 20px;
  }

  .wpaeo-cta-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .wpaeo-header {
    padding: 16px 16px;
  }

  .wpaeo-nav {
    gap: 12px;
  }

  .wpaeo-hero-centered {
    padding: 60px 20px;
  }

  .wpaeo-checker-page .wpaeo-h1 {
    font-size: 42px;
    font-weight: 900 !important;
    margin: 0 0 20px !important;
  }

  .wpaeo-tagline {
    font-size: 14px;
  }

  .wpaeo-value__title {
    font-size: 22px;
  }

  .wpaeo-section__title {
    font-size: 24px;
  }

  .wpaeo-cta-section h2 {
    font-size: 20px;
  }

}

/* Key Takeaways Section */
.wpaeo-takeaways-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(80, 80, 120, 0.1) 0%, transparent 100%);
}

.wpaeo-takeaways-section__title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 auto 60px !important;
  text-align: center;
  color: #fff;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

.wpaeo-takeaways-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.wpaeo-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.wpaeo-takeaway {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
}

.wpaeo-takeaway:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.wpaeo-takeaway h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  color: #fff;
}

.wpaeo-takeaway p {
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0;
}

@media (max-width: 768px) {
  .wpaeo-takeaways-section {
    padding: 60px 0 40px;
  }

  .wpaeo-takeaways-section__title {
    font-size: 24px;
    margin-bottom: 45px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .wpaeo-takeaways-section__grid,
  .wpaeo-takeaways-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
    margin-top: 45px;
  }

  .wpaeo-takeaway {
    padding: 24px;
  }

  .wpaeo-takeaway h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .wpaeo-takeaway p {
    font-size: 13px;
  }
}
