/* Google Fonts - Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #030712;
  /* Deep Sapphire/Teal night-sky gradient background */
  --bg-gradient: radial-gradient(circle at top, #032135 0%, #030712 85%);
  --accent-purple: #00f5ff; /* Cyber Cyan */
  --accent-blue: #3b82f6;   /* Electric Blue */
  --accent-pink: #10b981;   /* Neon Emerald/Mint */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(0, 245, 255, 0.08);
  --bg-glass: rgba(10, 19, 36, 0.6);
  --bg-glass-hover: rgba(15, 29, 54, 0.8);
  --glow-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-primary);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Subtle Grid & Light Effects */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Mouse Trail & Meteor Shower Canvas container */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* Keep behind interactive elements but above grid */
}

/* Typography & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Navbar */
header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--border-glass);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(3, 7, 18, 0.95);
  padding: 0.5rem 0;
}

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

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-pink) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.btn-nav-register {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-nav-register:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-color: transparent;
  box-shadow: var(--glow-shadow);
  color: #030712;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 11rem 0 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}

.hero-badge i {
  color: var(--accent-pink);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.glow-text {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 245, 255, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: #030712;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--glow-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(0, 245, 255, 0.05);
  border-color: rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.3);
  background: var(--bg-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 255, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

/* Pricing Section - strictly in one row */
.pricing-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pricing-wrapper::-webkit-scrollbar {
  height: 6px;
}
.pricing-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.pricing-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.1);
  border-radius: 10px;
}
.pricing-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.2);
}

.pricing-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 1000px;
}

@media (min-width: 1200px) {
  .pricing-grid {
    min-width: unset;
    width: 100%;
  }
}

.pricing-card {
  flex: 1 1 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pricing-card.featured {
  border-color: var(--accent-purple);
  background: rgba(5, 33, 54, 0.4);
  box-shadow: var(--glow-shadow);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.4);
  background: var(--bg-glass-hover);
}

/* Status Indicator Dot (呼吸灯) */
.status-indicator {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-pink);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-card.featured .status-indicator {
  color: var(--accent-purple);
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-pink);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pricing-card.featured .pulse-dot {
  background-color: var(--accent-purple);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent-pink);
  opacity: 0;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pricing-card.featured .pulse-dot::after {
  border-color: var(--accent-purple);
}

@keyframes pulse-ring {
  0% { transform: scale(0.3); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  margin-bottom: 2rem;
}

.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-title);
}

.plan-price .period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features li i {
  color: var(--accent-purple);
  font-size: 0.95rem;
}

.pricing-card.featured .plan-features li i {
  color: var(--accent-pink);
}

.btn-buy {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.pricing-card.featured .btn-buy,
.pricing-card:hover .btn-buy {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-color: transparent;
  color: #030712;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 255, 0.3);
  background: var(--bg-glass-hover);
}

.article-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(3, 33, 53, 0.7) 0%, rgba(10, 19, 36, 0.9) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

/* Styled inline SVGs */
.article-img svg {
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  transition: all 0.5s ease;
}

.article-card:hover .article-img svg {
  transform: scale(1.08) translateY(-3px);
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.4));
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #fff;
  transition: color 0.3s ease;
}

.article-card:hover h3 {
  color: var(--accent-purple);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}

.article-card:hover .read-more {
  color: var(--accent-pink);
  transform: translateX(3px);
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #030712;
}

.user-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.user-detail span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating {
  color: #eab308;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

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

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: rgba(0, 245, 255, 0.3);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Article Template Custom Styles */
.article-page {
  padding: 9rem 0 6rem 0;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-header-svg {
  width: 100%;
  height: 250px;
  max-width: 500px;
  margin: 1.5rem auto 0 auto;
  background: linear-gradient(135deg, rgba(3, 33, 53, 0.5) 0%, rgba(10, 19, 36, 0.7) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-header-svg svg {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.35));
}

.article-body {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.2rem 0;
  color: #fff;
  border-left: 4px solid var(--accent-purple);
  padding-left: 0.8rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem 0;
  color: #fff;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: #fff;
}

.article-body a.internal-link {
  color: var(--accent-purple);
  border-bottom: 1px dashed var(--accent-purple);
  transition: all 0.3s ease;
  font-weight: 500;
}

.article-body a.internal-link:hover {
  color: var(--accent-pink);
  border-bottom-color: var(--accent-pink);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: var(--accent-purple);
}

/* Footer & PBN Links */
footer {
  border-top: 1px solid var(--border-glass);
  background: #02050c;
  padding: 4rem 0 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo span {
  color: var(--accent-purple);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(0, 245, 255, 0.03);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pbn-link-area {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.pbn-link-area a {
  color: rgba(0, 245, 255, 0.3);
  transition: color 0.3s ease;
  font-weight: 400;
  text-decoration: none;
}

.pbn-link-area a:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  .features-grid, .articles-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .features-grid, .articles-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
