/* CocoDuck Official Website & SEO Articles - Design System */
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --btn-gradient: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 30px -10px rgba(99, 102, 241, 0.15), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  
  /* Dark Card Specs for Pricing Section matching prompt screenshot */
  --dark-card-bg: #181c28;
  --dark-card-border: #282c3c;
  --dark-card-highlight: #6366f1;
  --dark-text-main: #ffffff;
  --dark-text-sub: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Dynamic Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

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

/* Typography Helpers */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 56px auto;
}

/* Header / Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

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

.nav-links a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* Hero Section */
.hero {
  padding: 100px 0 70px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-feature-item svg {
  color: #10b981;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

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

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

/* Pricing Section - Dark Cards (Exact screenshot match) */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 48px;
}

.pricing-card {
  background: #181c28;
  border: 1px solid #282c3c;
  border-radius: 18px;
  padding: 40px 32px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
}

.pricing-card.featured {
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.recommend-tag {
  position: absolute;
  top: 24px;
  right: -32px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
}

.currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-right: 4px;
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-left: 6px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.pricing-features li svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  background: #2a3045;
  color: #ffffff;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: block;
}

.btn-pricing:hover {
  background: #3b425d;
  color: #ffffff;
}

.pricing-card.featured .btn-pricing {
  background: var(--btn-gradient);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pricing-card.featured .btn-pricing:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  opacity: 0.95;
}

/* Articles Grid Section */
.articles-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

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

.article-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.article-card h3 a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  gap: 8px;
}

/* Single Article Layout */
.article-page {
  padding: 60px 0 100px 0;
  background: var(--bg-main);
}

.article-header {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 40px 0 20px 0;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: 14px;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 16px 0;
  color: var(--text-primary);
}

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

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-cta-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.article-cta-box p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.internal-links-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 40px 0;
}

.internal-links-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.internal-links-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.internal-links-box li {
  margin-bottom: 10px;
}

.internal-links-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.internal-links-box a:hover {
  text-decoration: underline;
}

/* User Reviews Section */
.reviews-section {
  padding: 90px 0;
  background: var(--bg-main);
}

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

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reviewer-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 22px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.7;
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--card-shadow);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 24px 28px;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  margin-top: 16px;
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .hero-features-bar {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
