/* ==========================================================================
   Gatern (gatern.cfd) - Visual Design System & Core Stylesheet
   Directives Checklist:
   1. Icon Production: SVG vector icons across all feature cards & buttons.
   3. Vertical Price Scroll: .pricing-cards-track auto vertical movement.
   4. Ambient Blue Theme: Deep Blue (#060e17, #0d1b2a) + Light Blue (#00f2fe, #4facfe) Glow.
   5. 3D Rainbow Font: .rainbow-3d-text gradient shift + multi-layer 3D shadow.
   6. Customer Reviews Marquee: .reviews-container-track horizontal auto movement.
   PBN Footprint: Pure Dofollow PBN footer link injection.
   ========================================================================== */

:root {
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* Color Tokens - Deep Blue & Light Blue Accent */
  --bg-primary: #060e17;
  --bg-secondary: #0d1b2a;
  --blue-dark: #0f2238;
  --blue-light: #4facfe;
  --cyan-primary: #00f2fe;
  --cyan-secondary: #00d2ff;
  --cyan-dark: #003b46;
  
  /* Mesh & Ambient Light Gradient */
  --light-blue-mesh: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.24) 0%, rgba(79, 172, 254, 0.12) 35%, rgba(6, 14, 23, 0.98) 85%);
  
  /* Glassmorphism & Cards */
  --glass-bg: rgba(13, 27, 42, 0.75);
  --glass-border: rgba(0, 242, 254, 0.22);
  --glass-hover-border: rgba(0, 242, 254, 0.6);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Text Colors */
  --text-main: #f0f6fc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  
  /* Motion & Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Background Ambient Blue Glow Elements */
.ambient-light-cyan {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 650px;
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.28) 0%, rgba(79, 172, 254, 0.15) 40%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

.ambient-cyan-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, rgba(0, 242, 254, 0.06) 60%, transparent 80%);
  filter: blur(65px);
  pointer-events: none;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.1); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

/* Directive 5: 3D Rainbow Gradient Text */
.rainbow-3d-text {
  font-weight: 900;
  background: linear-gradient(135deg, #ff2a6d 0%, #ffc000 20%, #00e5ff 40%, #00ff87 60%, #9d4edd 80%, #ff2a6d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 6s linear infinite;
  display: inline-block;
  text-shadow: 
    0px 2px 0px rgba(0, 242, 254, 0.4),
    0px 4px 0px rgba(79, 172, 254, 0.3),
    0px 6px 1px rgba(0, 0, 0, 0.5),
    0px 10px 20px rgba(0, 242, 254, 0.35);
  letter-spacing: -0.02em;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* Header Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(6, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.18);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.8));
}

.brand-logo span {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--cyan-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0099ff 100%);
  color: #04090d;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4), 0 0 0 2px rgba(230, 255, 250, 0.3);
  transition: var(--transition-bounce);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6), 0 0 0 3px rgba(230, 255, 250, 0.5);
}

.btn-cta-secondary {
  background: rgba(13, 27, 42, 0.8);
  color: var(--cyan-primary);
  border: 1px solid var(--cyan-primary);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.btn-cta-secondary:hover {
  background: rgba(0, 242, 254, 0.15);
  color: #ffffff;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-primary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-sub);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-primary);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Feature Grid Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: var(--cyan-primary);
  stroke-width: 2;
  fill: none;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.feature-text {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Directive 3: Pricing Section with Vertical Auto Scroll */
.pricing-section {
  padding: 100px 0;
  position: relative;
}

.pricing-viewport-wrapper {
  max-height: 520px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  padding: 1rem 0;
}

.pricing-scroll-container {
  display: flex;
  flex-direction: column;
}

.pricing-cards-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: verticalScroll 26s linear infinite;
}

.pricing-viewport-wrapper:hover .pricing-cards-track {
  animation-play-state: paused;
}

@keyframes verticalScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.price-row-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1.8fr 1.1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.price-row-card.popular {
  border: 2px solid var(--cyan-primary);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  background: rgba(15, 34, 56, 0.85);
}

.price-plan-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

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

.price-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.price-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features-list svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyan-primary);
  flex-shrink: 0;
}

.price-tag {
  text-align: right;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-primary);
}

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

/* SEO Articles Matrix Section */
.articles-section {
  padding: 100px 0;
  position: relative;
}

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

.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.article-card:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.2);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.article-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-link-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.article-link-btn svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.article-card:hover .article-link-btn svg {
  transform: translateX(5px);
}

/* Directive 6: Customer Reviews Horizontal Auto Marquee */
.reviews-section {
  padding: 100px 0;
  position: relative;
}

.reviews-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.reviews-container-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.75rem;
  width: max-content;
  animation: horizontalMarquee 38s linear infinite;
}

.reviews-marquee-wrapper:hover .reviews-container-track {
  animation-play-state: paused;
}

@keyframes horizontalMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 360px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
  flex-shrink: 0;
}

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

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0099ff 100%);
  color: #04090d;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.review-user-info {
  display: flex;
  flex-direction: column;
}

.review-username {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.review-user-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-stars {
  color: #ffc000;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 100px 0;
  position: relative;
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.faq-question {
  padding: 1.5rem 1.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: var(--cyan-primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active {
  border-color: var(--glass-hover-border);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 1.75rem 1.5rem;
}

/* Core Task 2: PBN Dofollow Footer Pipeline */
.site-footer {
  background: #04090d;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  padding: 60px 0 40px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  z-index: 10;
}

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
}

.pbn-friend-links {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pbn-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Strict Dofollow Link Styling - Blends smoothly with theme */
.pbn-friend-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.pbn-friend-links a:hover {
  color: var(--cyan-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.footer-copyright {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Single Article Content Styling */
.article-page {
  padding-top: 130px;
  padding-bottom: 80px;
  max-width: 900px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.breadcrumb a:hover {
  color: var(--cyan-primary);
}

.article-body {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--glass-shadow);
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.75rem;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin: 0.75rem 0 1rem;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan-primary);
  margin: 2.25rem 0 1rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 1.5rem 0 0.75rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.8;
}

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

.article-body a {
  color: var(--cyan-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body a:hover {
  color: #ffffff;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.08) 100%);
  border: 1px solid var(--cyan-primary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.article-cta-box h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article-cta-box p {
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .features-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-row-card {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .price-tag {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .features-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .price-row-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .price-plan-info, .price-tag {
    justify-content: center;
    text-align: center;
  }
  .article-body {
    padding: 2rem 1.25rem;
  }
}
