/* Modern Dark Magic Theme for yonglian.cfd */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+SC:wght@300;400;700&display=swap');

:root {
  --bg-dark: #080711;
  --bg-deep: #0e0a22;
  --bg-card: rgba(22, 16, 41, 0.6);
  --color-primary: #8a2be2; /* BlueViolet */
  --color-secondary: #00f2fe; /* Cyber Neon Blue */
  --color-accent: #ff007f; /* Neon Pink */
  --color-text-main: #f3f0ff;
  --color-text-muted: #a39cb5;
  --border-glass: rgba(138, 43, 226, 0.15);
  --border-glass-hover: rgba(0, 242, 254, 0.4);
  --shadow-magic: 0 8px 32px 0 rgba(138, 43, 226, 0.15);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.2);
  --font-sans: 'Outfit', 'Noto Sans SC', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Magic Canvas Background */
#magic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 7, 17, 0.7);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.logo-text {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
  animation: logoSpin 12s linear infinite;
}

@keyframes logoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo span {
  font-size: 14px;
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-secondary);
  font-weight: 400;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--color-secondary);
}

nav a:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: visible;
}

/* Hero Decor Graphics (VPN Clouds, Ladders) */
.hero-decor {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: drop-shadow(0 0 30px rgba(0, 242, 254, 0.25)) drop-shadow(0 0 15px rgba(138, 43, 226, 0.2));
  animation: floatDecor 6s ease-in-out infinite;
}

.hero-decor-left {
  left: 20px;
  animation-delay: 0s;
}

.hero-decor-right {
  right: 20px;
  animation-delay: 3s;
}

.hero-decor svg {
  width: 100%;
  height: 100%;
}

.hero .container {
  position: relative;
  z-index: 10;
}

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

/* Hide on screens where space is tight */
@media (max-width: 1100px) {
  .hero-decor {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 900px) {
  .hero-decor {
    display: none;
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-secondary) 70%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowText 3s ease-in-out infinite alternate;
}

.hero p {
  font-size: 20px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: var(--shadow-glow);
}

/* Pricing Section (Horizontal) */
.pricing-section {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 16px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1 1 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular::before {
  content: 'POPULAR';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--color-secondary);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-magic);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--color-secondary);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.plan-price span {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✦';
  color: var(--color-secondary);
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-magic);
}

.feature-icon {
  font-size: 32px;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Article Section (SEO Blog) */
.articles-section {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.article-image {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, rgba(138, 43, 226, 0.2) 0%, rgba(8, 7, 17, 0.85) 100%);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 70%, rgba(8, 7, 17, 0.9) 100%);
  pointer-events: none;
}

.article-image svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4)) drop-shadow(0 0 8px rgba(138, 43, 226, 0.3));
  transition: var(--transition-smooth);
}

.article-card:hover .article-image svg {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.7)) drop-shadow(0 0 15px rgba(255, 0, 127, 0.5));
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-magic);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 12px;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Review / Testimonials */
.reviews-section {
  padding: 80px 0;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  text-align: left;
  position: relative;
}

.review-stars {
  color: #ffb703;
  margin-bottom: 16px;
  font-size: 18px;
}

.review-text {
  font-size: 14px;
  color: var(--color-text-main);
  font-style: italic;
  margin-bottom: 24px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.user-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.user-info span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* FAQ Section (Accordion) */
.faq-section {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-magic);
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* Article Template Styles (Sub-pages) */
.article-page {
  padding: 60px 0 100px;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(16px);
}

.article-body-text {
  font-size: 16px;
  color: #e2daf0;
  line-height: 1.8;
}

.article-body-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--color-secondary);
}

.article-body-text p {
  margin-bottom: 20px;
}

.article-body-text a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.article-body-text a:hover {
  color: var(--color-accent);
}

/* Footer & PBN Links */
footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(8, 7, 17, 0.9);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pbn-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(163, 156, 181, 0.4);
  margin-top: 8px;
}

.pbn-links-container a {
  color: rgba(163, 156, 181, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.pbn-links-container a:hover {
  color: var(--color-secondary);
  text-shadow: var(--shadow-glow);
}

.divider {
  color: rgba(163, 156, 181, 0.2);
}

/* Cursor Canvas Overlay */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

/* Keyframes */
@keyframes glowText {
  from {
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  }
  to {
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.4), 0 0 50px rgba(0, 242, 254, 0.2);
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 44px;
  }
  
  .pricing-row {
    justify-content: center;
  }
  
  .pricing-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .hero {
    padding: 80px 0 50px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .pricing-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-content {
    padding: 24px;
  }
  
  .article-header h1 {
    font-size: 28px;
  }
}
