/* Reset & Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:root {
  --primary-color: #0d47a1;
  --primary-hover: #002171;
  --accent-color: #ff6f00;
  --accent-hover: #e65100;
  --text-color: #1a1a2e;
  --bg-color: #f0f4f8;
  --card-bg: #ffffff;
  --border-color: #cfd8dc;
  --accent-bg: #e3f2fd;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.65;
}

/* Header */
header {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  color: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13, 71, 161, 0.3);
}
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  letter-spacing: -0.3px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  border-radius: 8px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-right: 12px;
  color: #ffffff;
  line-height: 0;
  text-align: center;
  vertical-align: middle;
}
.logo-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.header-badge {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Navigation */
nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 12px 24px;
}
.nav-container a {
  text-decoration: none;
  color: #455a64;
  font-size: 14px;
  font-weight: 600;
  margin-right: 24px;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.nav-container a:last-child {
  margin-right: 0;
}
.nav-container a:hover {
  color: var(--primary-color);
}
.nav-search {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
  margin-right: 0 !important;
}
.nav-search svg {
  margin-right: 6px;
}
.cta-wrap {
  margin: 28px 0 8px;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.hero picture {
  display: block;
  width: 100%;
}
.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.hero-caption {
  text-align: center;
  font-size: 13px;
  color: #78909c;
  margin-top: 8px;
}

/* Main Content */
.main-container {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

article {
  background-color: var(--card-bg);
  padding: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--accent-color);
}
.article-meta {
  font-size: 13px;
  color: #78909c;
  margin-bottom: 18px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.article-meta > * {
  margin-right: 10px;
  margin-bottom: 5px;
}
.advertisement-tag {
  background-color: var(--accent-bg);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}
h1 {
  font-size: 34px;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 18px;
  font-weight: 800;
}
.lead-text {
  font-size: 19px;
  color: #37474f;
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.55;
  border-left: 5px solid var(--accent-color);
  padding-left: 18px;
  background: var(--accent-bg);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
}
p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #455a64;
}
h3 {
  margin: 36px 0 18px;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
}

/* 6 Core Signals */
.signals-list {
  margin: 24px 0;
}
.signal-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  -webkit-transition: box-shadow 0.2s ease;
  -moz-transition: box-shadow 0.2s ease;
  -o-transition: box-shadow 0.2s ease;
  transition: box-shadow 0.2s ease;
}
.signal-item:hover {
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.12);
}
.signal-img {
  width: 160px;
  min-width: 160px;
  height: auto;
  object-fit: cover;
  display: block;
}
.signal-content {
  padding: 20px 22px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.signal-item h4 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.signal-item p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Interactive Quiz */
.quiz-box {
  background: linear-gradient(160deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 36px;
  margin: 44px 0;
  text-align: center;
}
.quiz-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 800;
}
.quiz-subtitle {
  font-size: 14px;
  color: #546e7a;
  margin-bottom: 20px;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
}
.quiz-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-btn {
  background-color: #ffffff;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  text-align: center;
}
.quiz-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  -webkit-transform: translateY(-1px);
  -moz-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  -o-transform: translateY(-1px);
  transform: translateY(-1px);
}
.progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  margin: 20px auto;
  max-width: 520px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #ff9800);
  width: 0%;
  border-radius: 4px;
  -webkit-transition: width 0.3s ease;
  -moz-transition: width 0.3s ease;
  -o-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

/* Loading State */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  -o-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  margin: 24px auto;
}
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* Result Card */
.result-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px;
  border: 1px solid var(--border-color);
  margin-top: 20px;
  text-align: left;
}
.result-card h5 {
  color: var(--primary-color);
  font-size: 19px;
  margin-bottom: 12px;
}
.download-btn {
  display: block;
  margin: auto;
  width: fit-content;
  background-color: var(--accent-color);
  color: #ffffff !important;
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 15px;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  -o-transition: background 0.2s ease;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 22px;
}
.download-btn:hover {
  background-color: var(--accent-hover);
}
.download-btn.primary {
  background-color: var(--primary-color);
}
.download-btn.primary:hover {
  background-color: var(--primary-hover);
}

/* Scientific References */
.references {
  border-top: 2px solid var(--border-color);
  padding-top: 28px;
  margin-top: 44px;
}
.references h4 {
  font-size: 16px;
  color: #546e7a;
  margin-bottom: 15px;
}
.references ul {
  list-style: none;
}
.references li {
  margin-bottom: 10px;
  font-size: 14px;
}
.references a {
  color: var(--primary-color);
  text-decoration: none;
}
.references a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #1a237e 0%, #0d1b5e 100%);
  color: #b0bec5;
  padding: 48px 24px;
  margin-top: 0;
  font-size: 13px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-left: -8px;
  margin-right: -8px;
}
.footer-links a {
  color: #cfd8dc;
  text-decoration: none;
  margin: 0 8px 12px;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-contact {
  margin-bottom: 20px;
  line-height: 1.9;
  color: #ffffff;
}
.footer-contact p {
  color: #ffffff;
  margin: 0 0 4px;
}
.footer-contact strong {
  color: #ffffff;
  font-weight: 700;
}
.footer-copyright {
  margin-top: 24px;
  color: #cfd8dc;
}
.footer-payment {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #cfd8dc;
  font-size: 12px;
}
.footer-disclaimer {
  line-height: 1.7;
  margin-top: 20px;
  color: #90a4ae;
  font-size: 12px;
}

/* Site Notice (adblock-friendly) */
.site-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: none;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 16px 24px;
  background-color: #1a237e;
  border-top: 3px solid var(--accent-color);
  color: #ffffff;
  font-size: 14px;
  text-align: left;
}
.site-notice__inner {
  max-width: 920px;
  width: 100%;
}
.site-notice__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}
.site-notice__text {
  margin: 0 0 8px;
  color: #e8eaf6;
  line-height: 1.55;
}
.site-notice__text a,
.site-notice__link {
  color: #ffcc80;
  text-decoration: underline;
}
.site-notice__actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 12px;
  margin-left: -8px;
  margin-right: -8px;
}
.site-notice__btn,
.site-notice__link {
  margin: 0 8px 8px;
}
.site-notice__btn {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
}
.site-notice__btn--secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.site-notice__btn:hover {
  background-color: var(--accent-hover);
}
.site-notice__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
.site-notice__link {
  font-weight: 600;
  white-space: nowrap;
}

/* Exit Intent Popup */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 10000;
  display: none;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.exit-popup-content {
  background-color: #ffffff;
  max-width: 520px;
  width: 92%;
  padding: 36px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  border-top: 6px solid var(--accent-color);
}
.exit-popup-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
.close-exit-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}
.exit-popup h4 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.exit-popup p {
  font-size: 15px;
  margin-bottom: 24px;
  color: #546e7a;
}

/* Info & Legal Pages */
body.page--legal {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #37474f;
  line-height: 1.65;
}
body.page--legal .legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-header {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #ffffff;
  padding: 24px 32px;
  border-radius: 12px 12px 0 0;
}
.page-header h1 {
  font-size: 28px;
  margin: 0;
  color: #ffffff;
}
.page-header p {
  margin: 8px 0 0;
  opacity: 0.85;
  font-size: 14px;
  color: #ffffff;
}
.page--legal .container {
  background: #ffffff;
  padding: 40px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.page--legal h2 {
  margin-top: 28px;
  font-size: 20px;
  color: #0d47a1;
}
.page--legal p {
  margin-bottom: 18px;
}
.page--legal li {
  margin-bottom: 12px;
}
.page--legal ul,
.page--legal ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
.page--legal .legal-wrap a {
  color: #0d47a1;
  font-weight: 600;
  text-decoration: none;
}
.page--legal .legal-wrap a:hover {
  text-decoration: underline;
}
.hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 28px;
  display: block;
}
.alert-box {
  background: #fff8e1;
  border-left: 5px solid #ff6f00;
  padding: 18px;
  margin-top: 24px;
  border-radius: 0 8px 8px 0;
}
.alert-box h3 {
  color: #e65100;
  margin-bottom: 10px;
  font-size: 16px;
  margin-top: 0;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 768px) {
  article {
    padding: 24px 20px;
  }
  .page-header {
    padding: 24px 20px;
  }
  .page--legal .container {
    padding: 24px 20px;
  }
  h1 {
    font-size: 26px;
  }
  .hero-image {
    height: 200px;
  }
  .signal-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .signal-img {
    width: 100%;
    min-width: 100%;
    height: 160px;
  }
  .header-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .header-container > * {
    margin-bottom: 10px;
  }
  .header-container > *:last-child {
    margin-bottom: 0;
  }
  .nav-container {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .nav-container a {
    margin-right: 12px;
  }
}

@media (max-width: 770px) {
  .header-badge {
    display: none;
  }
}
@media (max-width: 440px) {
  .nav-container a {
      font-size: 10px;
  }
  .nav-container {
    padding: 12px 12px;
  }
  .hero {
    padding: 0 12px;
  }
  .main-container {
    padding: 0 12px;
  }
    article {
      padding: 20px 12px;
  }
  .download-btn {
    padding: 14px 14px;
  }
  .quiz-box {
    padding: 14px;
  }
}
