/* CyberGuard Landing Page Design System & Styles */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(16, 24, 40, 0.75);
  --primary-blue: #2563eb;
  --primary-light: #3b82f6;
  --cyan-accent: #06b6d4;
  --purple-accent: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --font-kaiti: "KaiTi", "STKaiti", "楷体", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Ambient dynamic background glows */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}
.glow-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-accent), transparent 70%);
}
.glow-2 {
  top: 40%;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-accent), transparent 70%);
}
.glow-3 {
  bottom: 5%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary-blue), transparent 70%);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.6; }
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.8rem;
  -webkit-text-fill-color: initial;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--cyan-accent);
}

.btn-nav-login {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Keywords Bar */
.keywords-bar {
  margin: 4rem 0 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
}
.keywords-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  text-align: center;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.tag-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.25s ease;
}
.tag-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Sections General */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* Asymmetric Features Grid */
.features-section {
  padding: 5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.feature-card.asymmetric-large {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .feature-card.asymmetric-large {
    grid-column: span 1;
  }
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section (Matching Plan Image Design) */
.pricing-section {
  padding: 5rem 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

.plan-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-8px);
}

.plan-card.recommended {
  border: 3px solid #2563eb;
}

.recommend-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.plan-header {
  margin-bottom: 1.5rem;
}
.plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}
.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price-symbol {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2563eb;
}
.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: -1px;
}
.price-period {
  color: #94a3b8;
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}
.plan-features li.orange-icon .icon-check {
  color: #f97316;
}
.icon-check {
  color: #10b981;
  font-weight: bold;
}

.btn-plan {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
}
.plan-card .btn-light {
  background: #f1f5f9;
  color: #0f172a;
}
.plan-card .btn-light:hover {
  background: #e2e8f0;
}
.plan-card .btn-blue {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.plan-card .btn-blue:hover {
  background: #1d4ed8;
}
.plan-card .btn-soft-blue {
  background: #93c5fd;
  color: #1e3a8a;
}
.plan-card .btn-soft-blue:hover {
  background: #60a5fa;
}

/* Articles Section */
.articles-section {
  padding: 5rem 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-accent);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.article-tag {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}
.article-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-family: var(--font-kaiti);
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-kaiti);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.article-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.5rem;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  background: rgba(9, 13, 22, 0.95);
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 350px;
}
.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--cyan-accent);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Article Template Custom Styling */
.article-page {
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.article-header {
  text-align: center;
  margin-bottom: 3rem;
}
.article-title-main {
  font-family: var(--font-kaiti);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: #ffffff;
}
.article-body-content {
  font-family: var(--font-kaiti);
  font-size: 1.15rem;
  line-height: 1.95;
  color: #e2e8f0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  margin-bottom: 4rem;
}
.article-body-content h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 1rem;
  color: #38bdf8;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 0.5rem;
}
.article-body-content h3 {
  font-size: 1.3rem;
  margin: 1.6rem 0 0.8rem;
  color: #c084fc;
}
.article-body-content p {
  margin-bottom: 1.4rem;
  text-indent: 2em;
}
.article-body-content ul, .article-body-content ol {
  margin: 1rem 0 1.5rem 2rem;
}
.article-body-content li {
  margin-bottom: 0.5rem;
}
.article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

/* Responsive Navigation for Mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(9, 13, 22, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    display: none;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .article-body-content {
    padding: 1.5rem;
  }
}
