/* Dragon Spin Hub — Glassmorphism Theme */
/* Fonts */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --clr-primary: #ff0000;
  --clr-secondary: #8b00ff;
  --clr-ink: #261717;
  --clr-bg: #1a0a0a;
  --clr-bg2: #220d0d;
  --clr-surface: rgba(255,255,255,0.10);
  --clr-surface-hover: rgba(255,255,255,0.18);
  --clr-border: rgba(255,255,255,0.18);
  --clr-glow-red: rgba(255,0,0,0.35);
  --clr-glow-purple: rgba(139,0,255,0.35);
  --clr-text: #f5eeee;
  --clr-muted: rgba(245,238,238,0.65);
  --radius-card: 28px;
  --radius-btn: 8px;
  --blur: blur(15px);
  --header-h: 70px;
  --max-content: 780px;
  --max-wide: 1200px;
  --transition: 0.22s ease;
  --font-head: 'Playfair Display SC', 'Georgia', serif;
  --font-body: 'Karla', 'Segoe UI', Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #e87fff; text-decoration: underline; transition: color var(--transition); }
a:hover { color: #ffffff; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
p { margin-bottom: 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-top: 1.5rem; }
hr {
  border: none;
  border-top: 1px solid rgba(255,0,0,0.4);
  margin: 0.75rem 0 1.25rem;
}

/* ── Background ────────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, var(--clr-glow-red), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 80%, var(--clr-glow-purple), transparent 55%),
    linear-gradient(160deg, #1a0a0a 0%, #261717 60%, #0e0018 100%);
  background-attachment: fixed;
}

/* ── Glassmorphism Card ────────────────────────────────────────── */
.glass-card {
  background: var(--clr-surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(26,10,10,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
}
.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { color: var(--clr-primary); }

/* Nav aside */
.nav-aside {
  background: rgba(26,10,10,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.nav-aside.open { max-height: 600px; }
.nav-aside nav ul {
  list-style: none;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.nav-aside nav ul li a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--clr-text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), padding-left var(--transition);
}
.nav-aside nav ul li a:hover {
  color: #fff;
  padding-left: 1rem;
}
.nav-aside nav ul li:last-child a { border-bottom: none; }

/* Menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--clr-surface); }
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
  position: relative;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after  { top:  6px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg) translate(4px,4px); }
.menu-toggle[aria-expanded="true"] .burger::after  { transform: rotate(-45deg) translate(4px,-4px); }

/* Header CTAs */
.header-ctas {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.cta-signup {
  background: var(--clr-primary);
  color: #fff;
  border: 2px solid var(--clr-primary);
  box-shadow: 0 0 12px var(--clr-glow-red);
}
.cta-signup:hover {
  background: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--clr-glow-red);
  color: #fff;
}
.cta-login {
  background: transparent;
  color: #fff;
  border: 2px solid var(--clr-secondary);
  box-shadow: 0 0 10px var(--clr-glow-purple);
}
.cta-login:hover {
  background: var(--clr-secondary);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-no-img {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,0,0,0.25), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(139,0,255,0.3), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
}
.hero-copy h1 { margin-bottom: 0.5rem; }
.hero-sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--clr-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ── Page Body Layout ──────────────────────────────────────────── */
main { padding-bottom: 3rem; }
.content-section {
  max-width: var(--max-wide);
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}
.layout-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}
.main-article { min-width: 0; }
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 0.9rem;
  color: #e0d0ff;
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar ul li a:hover { color: #fff; padding-left: 0.5rem; }
.sidebar .sidebar-cta { margin-top: 0.75rem; width: 100%; text-align: center; }
.aside-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Article internals */
.main-article .article-aside,
.main-article .pricing-intro-aside,
.main-article .faq-nav-aside,
.main-article .about-aside,
.main-article .contact-aside,
.main-article .privacy-aside {
  margin-bottom: 1.75rem;
}
.article-hero-figure {
  margin-bottom: 1.75rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.article-hero-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}
.figure-placeholder {
  display: block;
  height: 0;
}
.article-hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--clr-muted);
  padding: 0.4rem 0.75rem;
  background: rgba(0,0,0,0.3);
}

/* Body copy styles */
.body-copy {
  line-height: 1.75;
}
.body-copy a {
  color: #e87fff;
  text-decoration: underline;
}
.body-copy h2 { margin-top: 2.25rem; }
.body-copy h3 { margin-top: 1.75rem; }
.body-copy ul, .body-copy ol { margin-bottom: 1rem; }
.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.body-copy table th {
  background: rgba(139,0,255,0.25);
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.body-copy table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.body-copy table tr:hover td { background: rgba(255,255,255,0.04); }

/* ── Byline ────────────────────────────────────────────────────── */
.byline {
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.author-name { color: #fff; font-weight: 600; }

/* ── Stage Label ───────────────────────────────────────────────── */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  background: rgba(139,0,255,0.3);
  border: 1px solid rgba(139,0,255,0.5);
  color: #d8b4fe;
}
.stage-decision { background: rgba(255,0,0,0.25); border-color: rgba(255,0,0,0.4); color: #fca5a5; }

/* ── Child Cards ───────────────────────────────────────────────── */
.child-cards-section {
  max-width: var(--max-wide);
  margin: 2.5rem auto 1rem;
  padding: 2rem 1.75rem;
  background: var(--clr-surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
}
.child-cards-section h2 { margin-top: 0; }
.child-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.child-list li {
  background: rgba(139,0,255,0.12);
  border: 1px solid rgba(139,0,255,0.25);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.child-list li:hover {
  background: rgba(139,0,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,0,255,0.2);
}
.child-list li a {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.child-list li a:hover { color: #e87fff; text-decoration: underline; }
.child-list li small { color: var(--clr-muted); font-size: 0.82rem; line-height: 1.45; }

/* ── Author Section (About) ────────────────────────────────────── */
.author-section {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(139,0,255,0.12), rgba(255,0,0,0.08));
}
.author-credentials { color: #d8b4fe; font-size: 0.9rem; margin-bottom: 0.75rem; }
.author-bio { color: var(--clr-muted); font-size: 0.95rem; line-height: 1.7; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(10,4,4,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 1.25rem 1.25rem;
}
.footer-grid {
  max-width: var(--max-wide);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.footer-col p { margin-bottom: 0.4rem; }
.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
}
.footer-col-head {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.35rem;
}
.footer-col small { display: block; color: var(--clr-muted); font-size: 0.8rem; line-height: 1.55; }
.footer-col small a { color: #b09fe0; text-decoration: underline; }
.footer-col small a:hover { color: #fff; }
.rg-notice {
  color: #fca5a5 !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
}
.footer-copy {
  max-width: var(--max-wide);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
}
.footer-copy small { color: rgba(245,238,238,0.4); font-size: 0.78rem; }

/* ── Footer quick-links tap targets ───────────────────────────── */
/* All anchor tags inside footer columns need ≥44px tap area */
.footer-col small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  vertical-align: middle;
}

/* Trust links in legal column */
.footer-col small a + a { margin-left: 0.25rem; }

/* ── FAQ specifics ────────────────────────────────────────────── */
.faq-body :where(details) {
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding: 0.75rem 0;
}
.faq-body :where(summary) {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 0.25rem 0;
}
.faq-body :where(details[open]) summary { color: #e87fff; }

/* ── Pricing hero accent ───────────────────────────────────────── */
.pricing-hero-bg {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(255,0,0,0.18), rgba(139,0,255,0.22), transparent 70%);
}

/* ── Hero variant accents ──────────────────────────────────────── */
.faq-hero-bg {
  background: radial-gradient(ellipse 70% 70% at 30% 40%, rgba(139,0,255,0.25), transparent 65%);
}
.about-hero-bg, .contact-hero-bg, .privacy-hero-bg {
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,0,0,0.18), rgba(139,0,255,0.18), transparent 65%);
}

/* ── Carousel (home hero) ──────────────────────────────────────── */
.hero-home { min-height: 45vh; }

/* ── Micro-interactions ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .child-list li { transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease; }
  .cta { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
  .nav-aside nav ul li a { transition: color 0.18s ease, padding-left 0.18s ease; }
  .glass-card { transition: box-shadow 0.22s ease; }
  .glass-card:hover { box-shadow: 0 6px 40px rgba(139,0,255,0.25), inset 0 1px 0 rgba(255,255,255,0.18); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    margin-top: 1.5rem;
  }
  .child-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  /* Mobile nav: links hidden until toggle opens the aside */
  .nav-aside nav ul { flex-direction: column; }
}

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

@media (max-width: 375px) {
  body { font-size: 16px; }
  .hero-copy { padding: 1.25rem 1rem; }
  .content-section { padding: 0 0.85rem; }
  .header-inner { padding: 0 0.75rem; gap: 0.5rem; }
  .cta { padding: 0 0.7rem; font-size: 0.8rem; }
  .brand { font-size: 1rem; }
}

/* Body copy link style for accessibility */
.body-copy a { text-decoration: underline; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}