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

:root {
    --primary: #0284c7;
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    --accent: #f59e0b;
    --sky-top: #bae6fd;
    --sky-bottom: #f0f9ff;
    --bg-glass: rgba(255, 255, 255, 0.45);
    --border-glass: rgba(255, 255, 255, 0.6);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--sky-bottom);
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
    background-attachment: fixed;
}

/* ================= Sky Background Animations ================= */
.sky-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Clouds */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    filter: blur(10px);
    animation: floatCloud 60s linear infinite;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
}
.cloud-1 {
    width: 200px;
    height: 60px;
    top: 15%;
    left: -250px;
    animation-duration: 90s;
}
.cloud-1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud-1::after { width: 100px; height: 100px; top: -50px; left: 80px; }

.cloud-2 {
    width: 300px;
    height: 90px;
    top: 45%;
    left: -350px;
    animation-duration: 120s;
    animation-delay: -30s;
    opacity: 0.8;
}
.cloud-2::before { width: 120px; height: 120px; top: -60px; left: 50px; }
.cloud-2::after { width: 150px; height: 150px; top: -85px; left: 120px; }

.cloud-3 {
    width: 150px;
    height: 45px;
    top: 75%;
    left: -200px;
    animation-duration: 70s;
    animation-delay: -15s;
    opacity: 0.9;
}
.cloud-3::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-3::after { width: 75px; height: 75px; top: -40px; left: 60px; }

@keyframes floatCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 400px)); }
}

/* Flying Birds (SVG Path Animation) */
.bird-svg {
    position: absolute;
    width: 48px;
    height: 48px;
    fill: rgba(2, 132, 199, 0.6);
    stroke: rgba(2, 132, 199, 0.8);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: flyBird 25s linear infinite;
}
.bird-1 {
    top: 20%;
    left: -100px;
    animation-duration: 22s;
    animation-delay: -5s;
}
.bird-2 {
    top: 35%;
    left: -100px;
    animation-duration: 28s;
    animation-delay: -12s;
    transform: scale(0.7);
}
.bird-3 {
    top: 60%;
    left: -100px;
    animation-duration: 24s;
    animation-delay: -18s;
    transform: scale(0.85);
}

@keyframes flyBird {
    0% {
        left: -100px;
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(-40px) scaleX(1);
    }
    100% {
        left: 105vw;
        transform: translateY(10px) scaleX(1);
    }
}

/* Soaring Birds (Hovering in place, always visible on load) */
.soar-bird {
    position: absolute;
    fill: rgba(2, 132, 199, 0.6);
    stroke: rgba(2, 132, 199, 0.85);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: gentleSoar 8s ease-in-out infinite alternate;
}
.soar-1 {
    width: 60px;
    height: 60px;
    top: 18%;
    left: 78%;
    animation-delay: 0s;
}
.soar-2 {
    width: 48px;
    height: 48px;
    top: 32%;
    left: 12%;
    animation-delay: -3s;
}
.soar-3 {
    width: 38px;
    height: 38px;
    top: 48%;
    left: 85%;
    animation-delay: -5s;
}

@keyframes gentleSoar {
    0% {
        transform: translateY(0) rotate(0deg) scaleY(0.9);
    }
    50% {
        transform: translateY(-6px) rotate(2deg) scaleY(1);
    }
    100% {
        transform: translateY(-12px) rotate(-1deg) scaleY(0.9);
    }
}

/* ================= Layout & Common Elements ================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}
.logo svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}
.btn-secondary {
    background: var(--bg-glass);
    color: var(--primary-dark);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
}

/* Glassmorphism Card Style */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.card-glass:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* ================= Hero Section ================= */
.hero-section {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
}

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

/* ================= Features Section ================= */
.features-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}
.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 36px 24px;
    text-align: center;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(2, 132, 199, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: var(--primary);
    transition: var(--transition);
}
.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ================= Pricing & Pricing Selector Section ================= */
.pricing-section {
    padding: 60px 0;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.price-selector-card {
    max-width: 750px;
    margin: 0 auto 48px auto;
    padding: 32px;
}

.selector-header {
    text-align: center;
    margin-bottom: 24px;
}
.selector-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-container {
    margin: 32px 0;
}

.price-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
    transition: var(--transition);
}
.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.selected-plan-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(2, 132, 199, 0.3);
    margin-top: 24px;
}

.result-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}
.result-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-price {
    text-align: right;
}
.result-price-num {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}
.result-price-num span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

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

.pricing-card {
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: translateY(-8px);
}
.pricing-card.popular:hover {
    transform: translateY(-12px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
}
.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-main);
}
.plan-features li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
}

/* ================= Articles Grid Section ================= */
.articles-section {
    padding: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}
.article-img-placeholder svg {
    width: 48px;
    height: 48px;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: var(--transition);
}
.article-title a:hover {
    color: var(--primary);
}

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

.article-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.article-link:hover {
    color: var(--primary);
    gap: 8px;
}

/* ================= Testimonials / User Reviews ================= */
.testimonials-section {
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 28px;
}

.testimonial-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}
.testimonial-content::before {
    content: '“';
    font-size: 48px;
    color: rgba(2, 132, 199, 0.1);
    position: absolute;
    top: -24px;
    left: -12px;
    font-family: serif;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-details h4 {
    font-size: 14px;
    font-weight: 600;
}
.user-details p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= FAQ Section ================= */
.faq-section {
    padding: 60px 0 100px 0;
}

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

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
    color: var(--text-muted);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ================= Footer ================= */
footer {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    max-width: 320px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================= Article View Specific Styles ================= */
.article-container {
    max-width: 800px;
    margin: 40px auto 80px auto;
    padding: 40px;
}

.article-header {
    margin-bottom: 32px;
    border-bottom: 1px dashed rgba(2, 132, 199, 0.2);
    padding-bottom: 24px;
}
.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 16px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}
.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 16px;
    color: #0f172a;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #0f172a;
}
.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}
.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body strong {
    color: #0f172a;
}
.article-body a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}
.article-body a:hover {
    color: var(--primary);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(2, 132, 199, 0.05);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
    font-style: italic;
}

/* ================= Responsive Queries ================= */
@media (max-width: 992px) {
    .features-grid, .pricing-grid, .articles-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can be enhanced with mobile toggle if needed, or simple nav for landing page */
    }
    
    .nav-container {
        justify-content: center;
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features-grid, .pricing-grid, .articles-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 32px;
    }
    
    .article-container {
        padding: 24px;
        margin: 20px auto;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
