:root {
  --ruby: #b10066;
  --ruby-dark: #780042;
  --amethyst: #7a2df2;
  --amethyst-dark: #4d1aa8;
  --onyx: #0e0b14;
  --graphite: #1a1524;
  --mist: #f4f0ff;
  --text-primary: #fdf8ff;
  --text-muted: #cbb7ff;
  --border-glow: rgba(255, 255, 255, 0.15);
  --transition: 0.3s ease;
  --max-width: 1400px;
  --promo-ribbon-height: 84px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(186, 0, 117, 0.35), transparent 45%),
    linear-gradient(180deg, var(--onyx), #180a22 60%, var(--graphite));
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul,
ol {
  padding-left: 1.5rem;
}

main {
  padding: 2rem 1.25rem 4rem;
}

.container {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.cta-link {
  background: linear-gradient(135deg, var(--ruby), var(--amethyst));
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: inline-block;
}

.cta-link:hover,
.cta-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(129, 23, 140, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(12, 8, 18, 0.85);
  border-bottom: 1px solid var(--border-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.brand img {
  width: 120px;
  aspect-ratio: 2 / 1;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  background: rgba(255, 255, 255, 0.05);
  object-fit: cover;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  border-color: var(--amethyst);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero + sections */
.site-main {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.content-section {
  background: rgba(14, 11, 20, 0.85);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px rgba(9, 4, 15, 0.65);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(122, 45, 242, 0.15), transparent 55%);
  pointer-events: none;
}

.content-section > * {
  position: relative;
}

.content-section h1,
.content-section h2,
.content-section h3 {
  margin-top: 0;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.content-section p {
  color: var(--text-muted);
}

.content-section ul li::marker,
.content-section ol li::marker {
  color: var(--amethyst);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.banner-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(177, 0, 102, 0.35);
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mid-banner {
  margin: 2rem auto;
  width: min(900px, 100%);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.accent-card {
  background: linear-gradient(135deg, rgba(177, 0, 102, 0.25), rgba(122, 45, 242, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 45, 242, 0.2);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #0a0610;
  border-top: 1px solid var(--border-glow);
  margin-top: 3rem;
  color: var(--text-muted);
  padding-bottom: calc(var(--promo-ribbon-height) + 2rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 2.5rem 1.25rem 1.5rem;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand img {
  width: 120px;
  aspect-ratio: 2 / 1;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  object-fit: cover;
  display: block;
}

.footer-links strong,
.footer-cta strong {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-cta p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: calc(var(--promo-ribbon-height) + 1.5rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--amethyst), var(--ruby));
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(122, 45, 242, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 30;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top span {
  display: inline-block;
  transform: translateY(-1px);
}

.promo-ribbon {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 1.5rem));
  background: rgba(10, 6, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 25;
}

.promo-ribbon.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.promo-ribbon__text {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.promo-ribbon__cta {
  white-space: nowrap;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amethyst), var(--ruby));
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  color: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}

.promo-ribbon__cta:hover,
.promo-ribbon__cta:focus-visible {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.error-page {
  text-align: center;
  padding: 3rem 2rem;
}

.error-page p {
  max-width: 600px;
  margin: 0.75rem auto;
}

.error-actions {
  display: inline-flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.error-actions .secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  color: #fff;
  font-weight: 600;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: transparent;
}

.error-actions .secondary-link:hover,
.error-actions .secondary-link:focus-visible {
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Hide nav signup button on desktop */
.nav-signup {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    background: rgba(10, 6, 16, 0.95);
    height: 100vh;
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 6rem 2rem 2.5rem;
    overflow-y: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    align-items: center;
  }

  .site-nav ul li {
    width: 100%;
  }

  .site-nav ul li a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .header-actions .nav-toggle {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
    height: 100vh;
  }

.header-inner {
    padding-right: 0.75rem;
    gap: 0.5rem;
  }

  .header-actions .cta-link {
    display: none;
  }

  /* Show signup button in mobile nav */
  .nav-signup {
    display: block;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-signup .cta-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .content-section {
    padding: .75rem;
  }

  .mid-banner {
    margin: 1.5rem auto;
  }

  .scroll-top {
    right: 1rem;
    bottom: calc(var(--promo-ribbon-height) + 2.5rem);
    z-index: 35;
  }

  .promo-ribbon {
    width: min(360px, calc(100% - 0.75rem));
    border-radius: 18px;
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem 0.85rem;
  }

  .promo-ribbon__text {
    font-size: 0.85rem;
  }

  .promo-ribbon__cta {
    width: 100%;
    padding: 0.65rem 1rem;
  }
}
