/* =========================================
   Base Variables & Reset (Anime / Kawaii Style)
========================================= */
:root {
    --color-bg: #fff5f8;          /* Soft pastel pinkish background */
    --color-bg-card: #ffffff;     /* Pure white for cards */
    --color-bg-secondary: #f0f7ff;/* Soft pastel blue for alternate sections */
    --color-text: #4a4a4a;        /* Softer dark gray text */
    --color-heading: #2c3e50;     /* Deep blue/gray for headings */
    
    /* Brand Accent Colors (Vibrant Anime Palette) */
    --color-primary: #ff758f;     /* Vibrant Anime Pink */
    --color-primary-hover: #ff4d6d;
    --color-accent: #7b2cbf;      /* Deep purple */
    --color-secondary: #4ea8de;   /* Sky blue */

    --border-color: #ffe5ec;
    --border-radius: 24px;        /* Very rounded for bubbly feel */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
    --box-shadow: 0 10px 30px rgba(255, 117, 143, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 117, 143, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(78, 168, 222, 0.05) 0%, transparent 50%);
}

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

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

ul {
    list-style: none;
}

/* =========================================
   Typography & Layout Utility
========================================= */
h1, h2, h3, h4 {
    color: var(--color-heading);
    font-weight: 800;
    line-height: 1.2;
}

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1,
.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--color-accent);
    text-shadow: 2px 2px 0px rgba(255, 117, 143, 0.2);
}

.section-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

.bg-secondary {
    background-color: var(--color-bg-secondary);
    border-radius: 40px;
    margin: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

/* =========================================
   Components (Buttons, Cards, Tags)
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    border: 3px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff9eb1);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 117, 143, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 117, 143, 0.6);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 117, 143, 0.3);
}

.card {
    background: var(--color-bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(255, 117, 143, 0.2);
}

/* Cute decorative corner for cards */
.card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    transition: var(--transition);
}

.card:hover::after {
    transform: scale(2);
    opacity: 0.2;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f7ff;
    color: var(--color-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #cce3f6;
}

/* =========================================
   Header & Nav
========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2.2rem;
}

.logo:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-heading);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav a:hover::after {
    width: 100%;
}

/* =========================================
   Hero Section (Anime Two-Column Layout)
========================================= */
.hero {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge-top {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 117, 143, 0.1);
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 117, 143, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: var(--color-heading);
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 10px rgba(255, 117, 143, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Anime Visual Dynamic Elements */
.anime-card {
    width: 350px;
    height: 400px;
    background: linear-gradient(145deg, #ffffff, #ffe5ec);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(255, 117, 143, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
}

.float-animation {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.anime-card-inner {
    text-align: center;
    z-index: 2;
}

.cat-face {
    font-size: 5rem;
    color: var(--color-primary);
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 96%, 98% { opacity: 1; }
    97% { opacity: 0.2; }
}

.anime-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--color-secondary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--color-accent);
    border: 2px solid var(--border-color);
}

.badge-1 { top: 10%; right: -20px; animation: floatObj 3s ease-in-out infinite; }
.badge-2 { bottom: 20%; left: -30px; animation: floatObj 4s ease-in-out infinite 1s; }
.badge-3 { bottom: 5%; right: 10px; animation: floatObj 3.5s ease-in-out infinite 0.5s; }

@keyframes floatObj {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* =========================================
   Features Section
========================================= */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 117, 143, 0.1);
    border-radius: 20px;
}

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

/* =========================================
   Streaming & AI Section
========================================= */
.streaming-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

.streaming-card p {
    margin-bottom: 25px;
    font-weight: 600;
}

/* =========================================
   Pricing Section
========================================= */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.pricing-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--color-primary);
    border-width: 4px;
    transform: scale(1.05);
    background: #fff;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(255, 117, 143, 0.25);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(255, 117, 143, 0.4);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.plan-price .currency {
    font-size: 1.8rem;
    vertical-align: top;
    line-height: 1.5;
}

.plan-price .period {
    font-size: 1.1rem;
    color: #888;
    font-weight: 700;
}

.plan-features {
    text-align: left;
    margin-bottom: 35px;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #555;
}

.plan-features li::before {
    content: '✨';
    margin-right: 12px;
    font-size: 1.1rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* =========================================
   Testimonials Section
========================================= */
.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stars {
    color: #ffb703;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.quote {
    font-weight: 700;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.author {
    font-weight: 800;
    color: var(--color-accent);
    font-size: 1rem;
}

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

.faq-item {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(255, 117, 143, 0.1);
    transform: translateY(-3px);
}

.faq-question {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.faq-answer {
    color: #666;
    font-weight: 600;
}

/* =========================================
   Footer
========================================= */
.footer {
    border-top: 2px dashed var(--border-color);
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

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

.footer-links a {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.05rem;
}

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

.footer-copyright {
    color: #999;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   Responsive Design (Mobile-First approach adaptation)
========================================= */
@media (max-width: 992px) {
    .features-grid, .pricing-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .features-grid, .streaming-grid, .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .bg-secondary {
        margin: 0;
        border-radius: 0;
    }
}

/* =========================================
   Article pages (shared)
========================================= */
.article-content {
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px solid var(--border-color);
}
.article-content h1 {
    color: var(--color-accent);
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}
.article-content h2 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 10px;
}
.article-content h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}
.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-weight: 600;
}
.article-meta {
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 40px;
    font-weight: 700;
}
.seo-internal-link {
    display: inline-block;
    margin-top: 30px;
    background: rgba(78, 168, 222, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--color-secondary);
    font-weight: 800;
    text-align: center;
    width: 100%;
}
.seo-internal-link a {
    color: var(--color-secondary);
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .article-content { padding: 30px 20px; }
    .article-content h1 { font-size: 1.8rem; }
}
.article-content ul, .article-content ol {
    margin: 0 0 20px 1.4em;
    color: #555;
    font-weight: 600;
    line-height: 1.8;
    font-size: 1.05rem;
}
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--color-secondary); text-decoration: underline; }
.article-content a.btn { text-decoration: none; color: #fff; }
.article-content .table-wrap { overflow-x: auto; margin-bottom: 24px; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
.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: var(--color-bg); color: var(--color-heading); }
.article-content .tldr { background: var(--color-bg-secondary); border-left: 4px solid var(--color-secondary); padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; }
.article-content .tldr p { margin-bottom: 0; }
.article-content .note { background: #fff8e6; border-left: 4px solid #f4b400; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; }
.article-content .note p { margin-bottom: 0; }
.breadcrumb { font-size: 0.9rem; color: #999; margin-bottom: 8px; }
.breadcrumb a { color: #999; }
.author-box { display: flex; gap: 14px; align-items: center; margin-top: 40px; padding: 18px 20px; border: 2px dashed var(--border-color); border-radius: 16px; }
.author-box .avatar { font-size: 2rem; }
.author-box p { margin: 0; font-size: 0.95rem; }
.related { margin-top: 30px; }
.related h2 { margin-top: 0; }
