:root {
  --bg-top: #2f3a98;
  --bg-mid: #5156ce;
  --bg-bottom: #afb6ff;
  --text: #f7f8ff;
  --text-strong: #ffffff;
  --text-dark: #0f1441;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.22);
  --button-bg: #ffffff;
  --button-text: #1b2475;
  --shadow: 0 18px 44px rgba(12, 16, 49, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Lexend", sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  min-height: 100%;
}

a {
  color: #ffffff;
}

.top-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 158px;
  height: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}

.nav-links a:hover {
  text-decoration: underline;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 20px 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-content,
.tool-highlight {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.tool-panel {
  display: grid;
  gap: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  opacity: 0.9;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  color: var(--text-strong);
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 60ch;
  line-height: 1.65;
  font-size: 1.03rem;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-link {
  display: inline-flex;
}

.store-badge {
  width: min(100%, 220px);
  height: auto;
}

.tool-highlight h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.tool-highlight p {
  margin: 0 0 18px;
  line-height: 1.6;
}

.primary-button {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 12px 28px rgba(10, 13, 44, 0.28);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button-strong {
  padding: 14px 20px;
  background: linear-gradient(135deg, #fefefe 0%, #dfe6ff 100%);
  color: #111e78;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.primary-button-alt {
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
  color: #182883;
  border: 1px solid rgba(22, 40, 135, 0.15);
  font-size: 1.01rem;
}

.tool-pubquiz {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(130, 145, 255, 0.25) 100%);
}

.tool-cards {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.17) 0%, rgba(102, 122, 255, 0.24) 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-grid article,
.faq {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(8, 13, 60, 0.18);
  padding: 20px;
}

.info-grid h2,
.faq h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.info-grid ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.faq {
  margin-top: 14px;
}

.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0;
}

.faq details:first-of-type {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.site-footer {
  margin: 20px 20px 28px;
  padding-top: 8px;
  text-align: center;
  color: #f3f4ff;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content,
  .tool-highlight {
    padding: 22px;
  }

  .footer-links {
    gap: 12px;
  }
}
