:root {
  --bg: #02040A;
  --surface: #0B0E1A;
  --text: #E2E8F0;
  --muted: #64748B;
  --primary: #C5A059;
  --secondary: #1E293B;
  --accent: #94A3B8;
  --border: rgba(197, 160, 89, 0.15);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --design-keywords: "science research academic data papers";
  --design-style: "science_research_ui";
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(197, 160, 89, 0.08), transparent 70%),
    linear-gradient(180deg, #02040A 0%, #05070F 45%, #02040A 100%);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 44px;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--secondary);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

.eq {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.fnote {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 10px;
}

.disclosure {
  background: var(--surface);
  border-top: 3px solid var(--primary);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding: 10px 16px;
  position: relative;
  z-index: 2;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 44px;
  background: var(--bg);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  max-height: 20px;
}

.brand span {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 30px;
  height: 26px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-burger i,
.nav-burger i::before,
.nav-burger i::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--accent);
  content: "";
}

.nav-burger i::before {
  transform: translateY(-5px);
}

.nav-burger i::after {
  transform: translateY(3.5px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  font-size: 12px;
  line-height: 44px;
  color: var(--accent);
  padding: 0 6px;
  letter-spacing: 0.04em;
}

.nav-menu a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.2s ease;
}

.nav-menu a:hover::after {
  transform: translateX(-50%) scale(1);
}

@media (max-width: 860px) {
  .nav-burger {
    display: inline-flex;
  }
  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 24px 24px 40px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -10px 40px rgba(2, 4, 10, 0.8);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .nav-menu a {
    display: block;
    line-height: 2.1;
    font-size: 14px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }
  .nav-menu a::after {
    display: none;
  }
}

body.nav-locked {
  overflow: hidden;
}

.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 45%, rgba(197, 160, 89, 0.14), transparent 42%),
    linear-gradient(120deg, transparent 55%, rgba(30, 41, 59, 0.55) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-text h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 18px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-text p {
  color: var(--accent);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 12px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-figure {
  display: flex;
  justify-content: center;
}

.hero-figure img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 10px rgba(197, 160, 89, 0.06), 0 24px 60px rgba(2, 4, 10, 0.6);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-figure {
    order: -1;
  }
  .hero-figure img {
    width: 150px;
    height: 150px;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
}

.offers {
  position: relative;
  padding: 72px 0;
  background-image: url('/images/offers_bg/offers_bg.webp');
  background-size: cover;
  background-position: center;
}

.offers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.93);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offers .container {
  position: relative;
}

.section-heading {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 36px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: linear-gradient(180deg, #0B0E1A 0%, #0D1220 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.offer-logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-bonus {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

.offer-terms {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.offer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1 1 auto;
}

.offer-cta {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: rgba(197, 160, 89, 0.08);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 26px;
  border-radius: 6px;
  margin-top: auto;
}

.offer-cta:hover {
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
}

.offer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
  max-width: 860px;
}

@media (max-width: 1020px) {
  .offer-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.info-block {
  position: relative;
  padding: 72px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.info-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.info-block h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 20px;
}

.info-block p {
  color: var(--accent);
  margin-bottom: 16px;
  max-width: 760px;
}

.info-list {
  list-style: none;
  margin: 8px 0 16px;
}

.info-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--accent);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}

.info-list li::before {
  content: "§";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-family: var(--font-mono);
}

.info-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.info-mini div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.info-mini h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 6px;
}

.info-mini p {
  font-size: 14px;
  margin: 0;
}

.info-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.info-cta:hover {
  border-bottom-color: var(--primary);
  text-decoration: none;
}

@media (max-width: 720px) {
  .info-mini {
    grid-template-columns: 1fr;
  }
}

.article {
  padding: 56px 0 40px;
}

.article h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 8px;
}

.article .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.article h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.article h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--accent);
}

.article p {
  color: var(--accent);
  margin-bottom: 16px;
  max-width: 820px;
}

.article ul,
.article ol {
  margin: 0 0 18px 24px;
  color: var(--accent);
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--primary);
}

.callout {
  border-left: 3px solid var(--primary);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
  max-width: 820px;
}

.callout p {
  margin: 0;
  font-size: 15px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.stat-band div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: var(--surface);
}

.stat-band b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-band span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stat-band {
    grid-template-columns: 1fr;
  }
}

.pull-quote {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 8px;
  margin: 26px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--text);
}

.mini-table {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.mini-table th,
.mini-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--accent);
  vertical-align: top;
}

.mini-table th {
  color: var(--primary);
  font-weight: 600;
  background: var(--surface);
}

.contact-form {
  max-width: 560px;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 15px;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-error {
  color: #F1A6A6;
  font-size: 14px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  border: 1px solid var(--primary);
  background: rgba(197, 160, 89, 0.08);
  border-radius: 8px;
  padding: 18px 20px;
  max-width: 560px;
  margin: 24px 0;
  color: var(--text);
  font-size: 16px;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer .brand {
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-help {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 0;
  margin-bottom: 22px;
}

.footer-help a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--accent);
}

.footer-help img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-help .badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.footer-resp {
  font-size: 13px;
  color: var(--muted);
  max-width: 860px;
  margin-bottom: 14px;
}

.footer-helpline {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-au {
  font-size: 11px;
  color: rgba(100, 116, 139, 0.75);
  line-height: 1.6;
  max-width: 900px;
  margin-bottom: 14px;
}

.footer-req {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 4, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
}

.age-gate-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.age-gate-card p {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 22px;
}

.age-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--primary);
}

.age-btn.confirm {
  background: var(--primary);
  color: var(--bg);
}

.age-btn.decline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(148, 163, 184, 0.3);
}

.age-leave {
  margin-top: 18px;
}

.age-leave a {
  font-size: 14px;
}

body.locked {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 520px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: none;
  box-shadow: 0 18px 50px rgba(2, 4, 10, 0.7);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--bg);
}

.cookie-btn.reject {
  background: transparent;
  color: var(--accent);
  border-color: rgba(148, 163, 184, 0.3);
}

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-page h1 {
  font-size: clamp(40px, 7vw, 72px);
  color: var(--primary);
  margin-bottom: 12px;
}

.error-page p {
  color: var(--accent);
  margin-bottom: 24px;
}

.error-page a.btn-home {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
}

.redirect-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 18px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(197, 160, 89, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-wrap h1 {
  font-size: 22px;
}

.redirect-wrap p {
  color: var(--accent);
  font-size: 15px;
  max-width: 460px;
}

.redirect-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.redirect-meta a {
  color: var(--accent);
}

.ad-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
}
