:root {
  --primary-color: #7CB342; /* Totoro Leaf Green */
  --primary-hover: #558B2F;
  --bg-color: #F5F5F0; /* Warm cream background */
  --text-primary: #424242; /* Soft grey/black */
  --text-secondary: #757575;
  --card-bg: #FFFFFF;
  --border-color: #E0E0E0;
  --accent-color: #FF7043; /* Warm accent for badges */
}

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

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header/Nav */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 30px;
  }
  .nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after {
    width: 100%;
  }
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px; /* Anime soft rounded edges */
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(124, 179, 66, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(124, 179, 66, 0.4);
}

/* Hero Section */
.hero {
  padding: 60px 20px 80px;
  background: linear-gradient(135deg, #F5F5F0 0%, #E8F5E9 100%);
  position: relative;
  overflow: hidden;
}

/* subtle anime background dots */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(124, 179, 66, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.5;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-text {
    text-align: left;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .hero-text {
    text-align: center;
  }
}

.anime-title {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #2E7D32; /* Deep green */
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Floating Dynamic Element */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.anime-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(124, 179, 66, 0.15);
  animation: float 4s ease-in-out infinite;
  border: 4px solid #fff;
  text-align: center;
  position: relative;
}

.anime-card .emoji-badge {
  font-size: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.speed-bar-container {
  width: 100%;
  height: 10px;
  background: #EEEEEE;
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
}

@keyframes load {
  0% { width: 0%; }
  100% { width: 100%; }
}

.speed-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #AED581);
  border-radius: 10px;
  width: 100%;
  animation: load 2s ease-out;
}

/* Section Common */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 800;
  color: #2E7D32;
}

/* Features grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(124, 179, 66, 0.15);
  border-color: var(--primary-color);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 700;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1050px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(124, 179, 66, 0.2);
  z-index: 10;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F8E9 100%);
}

@media (max-width: 767px) {
  .pricing-card.popular {
    transform: none;
  }
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--accent-color);
  color: white;
  padding: 5px 40px;
  font-size: 13px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price {
  font-size: 50px;
  font-weight: 900;
  color: var(--primary-color);
  margin: 15px 0 25px;
  line-height: 1;
}

.price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: normal;
}

.pricing-features {
  list-style: none;
  margin: 0 0 30px;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  font-size: 15px;
}

.pricing-features li::before {
  content: '🌿';
  margin-right: 10px;
  font-size: 14px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border-left: 4px solid var(--primary-color);
}

.faq-q {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Testimonials */
.testimonial-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 60px;
  color: #E8F5E9;
  font-family: serif;
  z-index: 0;
}

.testimonial-card p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  margin-top: 20px;
  font-weight: 700;
  font-style: normal;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px; height: 40px;
  background: #C8E6C9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Footer */
footer {
  background: #2E3B32; /* Deep forest color */
  color: #ECF0F1;
  padding: 60px 0 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-links a {
  color: #A5D6A7;
  font-size: 15px;
  font-weight: 500;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #81C784;
  font-size: 14px;
}

/* Blog Cards */
.blog-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(124, 179, 66, 0.15);
}

.blog-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #2E7D32;
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-readmore {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.blog-card:hover .blog-readmore {
  color: var(--primary-hover);
}

/* Article Page Styles */
.article-container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--card-bg);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

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

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

.article-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  position: static;
  background: none;
  box-shadow: none;
}

.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2E7D32;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #333;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
}

.article-content p {
  margin-bottom: 20px;
  color: #555;
  font-size: 16px;
}

.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555;
}

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

.article-content .highlight-box {
  background: #E8F5E9;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 10px 10px 0;
}

/* Related articles */
.related-articles {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--border-color);
}

.related-articles h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 10px;
}

.related-articles a {
  color: var(--text-primary);
  text-decoration: none;
}

.related-articles a:hover {
  color: var(--primary-color);
}

/* Article key points */
.tldr-box {
  background: #F1F8E9;
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.tldr-box ul {
  margin: 8px 0 0 20px;
}

.tldr-box li {
  margin-bottom: 6px;
}

/* Article tables & FAQ */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #F1F8E9;
  white-space: nowrap;
}

.article-content code {
  background: #F5F5F5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-faq h3 {
  margin-top: 20px;
}
