@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Noto+Sans+SC:wght@400;500&family=Space+Mono&family=ZCOOL+KuaiLe&display=swap');

:root {
  --bg: #EAF7F0;
  --panel: #FFFFFF;
  --ink: #2F4A42;
  --dim: #8AA69B;
  --line: rgba(47,74,66,0.13);
  --acc: #F27BA7;
  
  --primary-color: var(--acc);
  --primary-hover: #e0608e;
  --bg-color: var(--bg);
  --text-color: var(--ink);
  --text-light: var(--dim);
  --white: var(--panel);
  --border-color: var(--line);
  --shadow: 0 4px 6px rgba(47,74,66,0.05);
  --border-radius: 16px;
  --container-width: 1200px;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.9;
}

h1, h2, h3, h4, h5, h6, .logo, .section-title {
  font-family: 'ZCOOL KuaiLe', 'Fredoka', cursive;
  color: var(--ink);
}

.price {
  font-family: 'Fredoka', sans-serif;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Header & Nav */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: transparent; /* Changed from gradient to pure bg */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 400;
  font-family: 'Noto Sans SC', sans-serif;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  scroll-margin-top: 80px;
}

section.container {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

/* Base Card Styles */
.card, .use-case-card, .pricing-card, .review-card, .faq-item, .page-content {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.card:hover, .use-case-card:hover, .pricing-card:hover, .review-card:hover, .faq-item:hover {
  border-color: var(--acc);
  transform: translateY(-5px);
}

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

.card {
  padding: 40px 30px;
  text-align: center;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-light);
}

/* Knowledge Base */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.knowledge-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-align: left;
}

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

.knowledge-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--ink);
}

.knowledge-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.knowledge-card .read-more {
  font-family: 'Fredoka', sans-serif;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.knowledge-card:hover .read-more {
  color: var(--primary-hover);
}

/* Sitemap */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.sitemap-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  display: block;
}

.sitemap-card:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242,123,167,0.15);
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.use-case-card {
  padding: 40px;
  text-align: center;
}

.use-case-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Tags for Use Cases */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  justify-content: center;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid var(--line);
}

.tag-netflix { background-color: #E50914; border-color: #E50914; }
.tag-disney { background-color: #113CCF; border-color: #113CCF; }
.tag-hbo { background-color: #5A0FA0; border-color: #5A0FA0; }
.tag-youtube { background-color: #FF0000; border-color: #FF0000; }
.tag-hulu { background-color: #1CE783; color: var(--ink); }
.tag-prime { background-color: #00A8E1; border-color: #00A8E1; }

.tag-chatgpt { background-color: #10A37F; border-color: #10A37F; }
.tag-claude { background-color: #D97757; border-color: #D97757; }
.tag-midjourney { background-color: #ffffff; color: var(--ink); }
.tag-github { background-color: #24292e; border-color: #24292e; }
.tag-gemini { background-color: #1A73E8; border-color: #1A73E8; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.pricing-card ul li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question {
  list-style: none;
}

.faq-question span::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--primary-color);
}

details[open] .faq-question span::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-light);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.review-text {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-light);
}

.review-author {
  font-weight: bold;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: #2f3542;
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

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

.footer-links a {
  color: #a4b0be;
}

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

.footer-bottom {
  color: #747d8c;
  font-size: 0.9rem;
}

/* Content Pages (About, Terms, Privacy) */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
}

.page-content {
  background-color: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: -30px;
  margin-bottom: 50px;
}

.page-content h2 {
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.page-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-light);
}

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fixed Background Canvas */
#bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Corner Overlays */
.corner-text {
  position: fixed;
  z-index: -1;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.corner-tl { top: 20px; left: 20px; }
.corner-br { bottom: 20px; right: 20px; }
.corner-bl { bottom: 20px; left: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .features-grid,
  .use-cases-grid,
  .pricing-grid,
  .reviews-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    gap: 15px;
  }
  
  .page-content {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
