/* Archetype 1: Magazine Editorial Layout (nexitally.space) */
:root {
  --primary: #f43f5e;
  --secondary: #fb7185;
  --accent: #fda4af;
  --bg: #09070c;
  --paper: #120e17;
  --border: #291b2c;
  --text: #fff1f2;
  --muted: #a89aa7;
  --link-color: #fda4af;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif; line-height: 1.6; }
a { color: var(--link-color); text-decoration: none; }
a:visited { color: var(--link-color); }
a:hover { color: var(--primary); text-decoration: underline; }

/* Magazine Header */
.mag-nav { border-bottom: 2px solid var(--border); padding: 24px 0; background: rgba(9, 7, 12, 0.95); position: sticky; top: 0; z-index: 99; }
.mag-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.mag-logo { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--text); display: flex; align-items: center; gap: 8px; text-decoration: none !important; }
.mag-logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); display: inline-block; }
.mag-pill-menu { display: flex; gap: 8px; list-style: none; background: var(--paper); padding: 6px 12px; border-radius: 40px; border: 1px solid var(--border); }
.mag-pill-menu li a { padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--muted); display: block; }
.mag-pill-menu li a:hover, .mag-pill-menu li a.active { color: var(--text); background: rgba(255,255,255,0.08); text-decoration: none; }
.mag-cta-btn { background: var(--primary); color: #fff !important; padding: 10px 22px; border-radius: 40px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35); text-decoration: none !important; }

/* Monumental Centered Hero */
.mag-hero { padding: 80px 24px 60px; text-align: center; max-width: 960px; margin: 0 auto; }
.mag-hero-issue { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 24px; padding: 4px 16px; border: 1px solid var(--border); border-radius: 30px; }
.mag-hero-title { font-size: 58px; font-weight: 900; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 24px; }
.mag-hero-title span { color: var(--primary); font-style: italic; }
.mag-hero-lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 0 auto 36px; line-height: 1.6; }
.mag-hero-art { margin: 20px auto 40px; max-width: 440px; }
.mag-hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-mag-outline { padding: 12px 28px; border-radius: 40px; border: 2px solid var(--accent); color: var(--accent) !important; font-weight: 700; text-decoration: none !important; }
.btn-mag-outline:hover { background: var(--accent); color: var(--bg) !important; }

/* Horizontal Feature Ticker */
.mag-ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--paper); overflow: hidden; white-space: nowrap; }
.mag-ticker-track { display: inline-flex; gap: 48px; font-weight: 700; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.mag-ticker-track span { color: var(--primary); }

/* Editorial Split Rows */
.mag-section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.mag-section-header { text-align: center; margin-bottom: 60px; }
.mag-section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.mag-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 72px; padding: 40px; background: var(--paper); border: 1px solid var(--border); border-radius: 24px; }
.mag-row.reverse { direction: rtl; }
.mag-row.reverse > * { direction: ltr; }
.mag-row-content h3 { font-size: 26px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.mag-row-content p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.mag-row-badge { display: inline-block; padding: 4px 12px; background: rgba(244, 63, 94, 0.15); color: var(--primary); border-radius: 12px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }

/* Horizontal Pill Pricing */
.mag-pricing-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mag-price-pill { background: var(--paper); border: 2px solid var(--border); border-radius: 24px; padding: 36px 28px; display: flex; flex-direction: column; transition: transform 0.2s; }
.mag-price-pill:hover { transform: translateY(-6px); border-color: var(--primary); }
.mag-price-pill.featured { border-color: var(--primary); background: linear-gradient(180deg, var(--paper), rgba(244, 63, 94, 0.08)); }
.mag-price-num { font-size: 42px; font-weight: 900; margin: 16px 0; color: var(--text); }
.mag-price-num span { font-size: 15px; color: var(--muted); font-weight: normal; }

/* Accordion FAQ */
.mag-faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mag-faq-card { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.mag-faq-q { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.mag-faq-a { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Asymmetric Magazine Footer */
.mag-footer { border-top: 2px solid var(--border); padding: 72px 24px 36px; background: var(--paper); margin-top: 80px; }
.mag-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.mag-footer-brand h2 { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.mag-footer-brand p { color: var(--muted); font-size: 15px; max-width: 480px; }
.mag-footer-links { display: flex; gap: 40px; }
.mag-footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 16px; }
.mag-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mag-footer-col a { color: var(--muted); font-size: 14px; }
.mag-footer-col a:hover { color: var(--text); }
.mag-footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .mag-hero-title { font-size: 38px; }
  .mag-row { grid-template-columns: 1fr; }
  .mag-pricing-deck { grid-template-columns: 1fr; }
  .mag-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .mag-pill-menu { display: none; }
}


/* ==========================================================================
   Hero SVG Motion Core & Animation Keyframes (Guaranteed Visibility)
   ========================================================================== */
.motion-art-frame {
  width: 100% !important;
  max-width: 480px !important;
  min-height: 280px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.motion-svg {
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  min-height: 260px !important;
  display: block !important;
  overflow: visible !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.65)) !important;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes creamBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes berryFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

@keyframes strawShake {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2.5deg); }
}

@keyframes bubbleFloat {
  0% { transform: translateY(0); opacity: 0.25; }
  50% { opacity: 0.9; }
  100% { transform: translateY(-24px); opacity: 0; }
}

@keyframes ringFloat {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes runeShimmer {
  0%, 100% { opacity: 0.35; stroke-dashoffset: 0; }
  50% { opacity: 1; stroke-dashoffset: 24; }
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes stepPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes cloudDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(16px); }
}

@keyframes rayAscend {
  0% { stroke-dashoffset: 20; opacity: 0.2; }
  50% { opacity: 0.95; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.glow-pulse { animation: glowPulse 4s ease-in-out infinite; transform-origin: center; }
.cream-bounce { animation: creamBounce 3.5s ease-in-out infinite; }
.berry-float { animation: berryFloat 3s ease-in-out infinite; transform-origin: 230px 85px; }
.straw-shake { animation: strawShake 4s ease-in-out infinite; transform-origin: 210px 250px; }
.bubble-float-1 { animation: bubbleFloat 3s ease-in-out infinite; }
.bubble-float-2 { animation: bubbleFloat 4.2s ease-in-out infinite 0.8s; }
.bubble-float-3 { animation: bubbleFloat 3.6s ease-in-out infinite 1.5s; }

.ring-float { animation: ringFloat 5s ease-in-out infinite; }
.rune-shimmer { animation: runeShimmer 3s ease-in-out infinite; }
.orbital-spin { animation: spinCW 25s linear infinite; transform-origin: 230px 180px; }
.ring-spin-cw { animation: spinCW 18s linear infinite; transform-origin: 230px 180px; }
.ring-spin-ccw { animation: spinCCW 24s linear infinite; transform-origin: 230px 180px; }

.step-pulse-1 { animation: stepPulse 3s ease-in-out infinite 0s; }
.step-pulse-2 { animation: stepPulse 3s ease-in-out infinite 0.7s; }
.step-pulse-3 { animation: stepPulse 3s ease-in-out infinite 1.4s; }
.step-pulse-4 { animation: stepPulse 3s ease-in-out infinite 2.1s; }
.cloud-drift-1 { animation: cloudDrift 6s ease-in-out infinite; }
.cloud-drift-2 { animation: cloudDrift 7s ease-in-out infinite 1s; }
.ray-ascend { animation: rayAscend 2.5s linear infinite; }
.crystal-spin { animation: spinCW 12s linear infinite; transform-origin: center; }
.mint-leaf-float { animation: berryFloat 4s ease-in-out infinite; transform-origin: 230px 95px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
