:root {
  --bg: #0f0f1e;
  --card: #1a1a2e;
  --card-2: #141427;
  --text: #f6f3ec;
  --muted: #b9b2c5;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #d4af37;
  --accent-strong: #f0c94b;
  --secondary: #0066ff;
  --danger: #ff5d6c;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.narrow {
  max-width: 880px;
}

.center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(15, 15, 30, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav button,
.mobile-nav button,
.site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.desktop-nav button:hover,
.mobile-nav button:hover,
.site-footer a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: scale(1.04);
}

.btn-accent {
  background: var(--accent);
  color: #15120a;
}

.btn-accent:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  width: 100%;
  background: var(--secondary);
  color: white;
}

.btn-outline {
  border: 1px solid var(--secondary);
  color: #8db6ff;
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.12);
}

.btn-large {
  min-height: 54px;
  padding: 0 28px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56)),
    url("img/merlin-hero-bg.webp") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 96px 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 0;
}

.hero h1 span,
.accent-text {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-points,
.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-points {
  margin: 32px 0 38px;
}

.hero-points span,
.trust-row span {
  color: var(--text);
}

.hero-points span::before,
.trust-row span::before,
.plan li::before,
.panel li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 800;
}

.section {
  padding: 96px 0;
  background: var(--bg);
}

.section-card {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.section-head p,
.narrow > p {
  font-size: 18px;
}

.danger-text {
  color: var(--danger);
}

.icon-bubble {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 38px;
  font-weight: 800;
}

.icon-bubble.danger {
  color: var(--danger);
  background: rgba(255, 93, 108, 0.12);
}

.compare-grid,
.feature-grid,
.tool-grid,
.plans-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
  text-align: left;
}

.panel,
.feature-card,
.tool-grid article,
.plan {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px var(--shadow);
}

.panel {
  padding: 28px;
}

.panel h3 {
  margin-bottom: 16px;
}

.panel ul,
.plan ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.panel li,
.plan li {
  margin-top: 10px;
  color: var(--muted);
}

.danger-panel {
  border-color: rgba(255, 93, 108, 0.35);
}

.danger-panel li::before {
  content: "×";
  color: var(--danger);
}

.accent-panel,
.popular {
  border-color: rgba(212, 175, 55, 0.55);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.tool-grid article {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.tool-grid article:hover,
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.12);
  font-weight: 800;
}

.feature-card h3,
.tool-grid h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plans-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.plan h3 {
  font-size: 27px;
}

.price {
  margin-top: 22px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.setup,
.note {
  margin: 6px 0 0;
  font-size: 14px;
}

.note {
  font-style: italic;
}

.plan ul {
  margin: 26px 0 30px;
  flex: 1;
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #15120a;
  font-size: 12px;
  font-weight: 800;
}

.popular {
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.16);
}

.faq-list {
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  cursor: pointer;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-bottom: 0;
}

.faq-cta {
  margin-top: 48px;
}

.target {
  font-size: 50px;
  margin-bottom: 22px;
}

.final-cta .trust-row {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-grid h4 {
  margin-bottom: 16px;
}

.footer-grid a:not(.btn) {
  display: block;
  margin-top: 10px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 22px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav.open {
    display: flex;
  }

  .feature-grid,
  .tool-grid,
  .plans-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .section {
    padding: 72px 0;
  }

  .compare-grid,
  .feature-grid,
  .tool-grid,
  .plans-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 28px;
  }

  .footer-bottom,
  .footer-bottom div {
    flex-direction: column;
  }
}
