@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FFF6EE; /* Warm cream */
    --ink: #2E2A26;
    --primary: #FF6B4A; /* Soft coral */
    --blush: #FFC9A3;
    --sage: #3E8E7E;
    --hairline: #F0E2D4;
    --radius: 24px;
}

body {
    font-family: 'Baloo 2', 'Nunito', 'Varela Round', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    margin-top: 80px;
}

p {
    margin-bottom: 15px;
    color: var(--ink);
    opacity: 0.85;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--hairline);
    margin-bottom: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-logo svg {
    transition: transform 0.3s ease;
}

.brand-logo:hover svg {
    transform: scale(1.05) rotate(5deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s;
}

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

/* Buttons (Soft Pills) */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 4px 4px 0px rgba(46, 42, 38, 0.1);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 6px 6px 0px rgba(46, 42, 38, 0.12);
}

.btn-secondary {
    background-color: var(--sage);
    color: #fff;
    box-shadow: 4px 4px 0px rgba(46, 42, 38, 0.1);
}

.btn-secondary:hover {
    transform: scale(1.03);
    box-shadow: 6px 6px 0px rgba(46, 42, 38, 0.12);
}

.btn-outline {
    background-color: var(--bg);
    color: var(--ink);
    border: 2px solid var(--hairline);
    box-shadow: 4px 4px 0px var(--hairline);
}

.btn-outline:hover {
    background-color: #fff;
    transform: scale(1.03);
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 0;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-text:hover {
    transform: scale(1.03);
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px;
    border: 2px solid var(--hairline);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
}

/* Hero Section */
.hero {
    padding: 60px 20px;
    text-align: center;
}

.hero .headline {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero .headline span {
    color: var(--primary);
}

.hero .sub-headline {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 500;
}

/* Pricing */
.pricing-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--blush);
    background-color: #fffaf5;
}

.pricing-card .badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blush);
    color: var(--ink);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid var(--hairline);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--ink);
    opacity: 0.6;
    font-weight: 500;
}

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

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--hairline);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* Resources */
.resource-card {
    background-color: #fffaf5;
    border-color: var(--blush);
}

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

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

.faq-item h4 {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Footer */
footer {
    border-top: 2px solid var(--hairline);
    padding: 60px 0 40px;
    margin-top: 80px;
}

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

.footer-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s;
}

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

.copyright {
    opacity: 0.5;
    font-size: 1rem;
}

/* Page content for secondary pages */
.page-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid var(--hairline);
}

.page-content h1 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.page-content h2 {
    margin-top: 30px;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero .headline {
        font-size: 2.8rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
}

/* Hero Flex Layout */
.hero-wrapper { display: flex; align-items: center; gap: 40px; text-align: left; }
.hero-text { flex: 1; }
.hero-image { flex: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0px rgba(0,0,0,0.05); }
.hero-image img { width: 100%; height: auto; display: block; transform: scale(1); transition: transform 0.5s ease; }
.hero-image:hover img { transform: scale(1.02); }

/* Floating Action Button */
.fab-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background-color: var(--primary); color: #fff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: bold; text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4); z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}
.fab-btn:hover { transform: scale(1.1); background-color: #e55a39; color: #fff; }

/* Article Next/Prev */
.article-nav { display: flex; justify-content: space-between; margin-top: 40px; gap: 20px; }
.article-nav-link { flex: 1; padding: 20px; background: #fffaf5; border: 2px solid var(--blush); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform 0.2s; }
.article-nav-link:hover { transform: scale(1.02); }
.article-nav-link span { display: block; font-size: 0.85rem; color: var(--sage); margin-bottom: 5px; }
.article-nav-link h4 { margin: 0; color: var(--primary); }

@media (max-width: 768px) {
    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; margin-bottom: 30px; }
    .article-nav { flex-direction: column; }
}

/* Trust & Social Elements */
.social-links a { color: var(--ink); opacity: 0.6; transition: all 0.3s ease; }
.social-links a:hover { opacity: 1; color: var(--primary); transform: scale(1.1); }
.security-badges span { display: inline-flex; align-items: center; background: #fff; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--hairline); }
