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

:root {
    --bg: #E8D9B8;
    --panel: #F2E7CE;
    --ink: #5C4A32;
    --dim: #A08A64;
    --line: rgba(92, 74, 50, 0.14);
    --acc: #3E6E8E;

    --primary-color: var(--acc);
    --text-main: var(--ink);
    --text-muted: var(--dim);
    --card-bg: var(--panel);
    --border-color: var(--line);
}

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

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

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Work Sans', sans-serif; 
    font-weight: 600; 
    color: var(--text-main); 
}

a { text-decoration: none; color: inherit; }

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

.section-title { font-size: 2rem; margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 4px; min-height: 44px; min-width: 44px;
    font-weight: 600; text-align: center; cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background-color: var(--acc); color: #ffffff; border: 1px solid var(--acc); }
.btn-primary:hover { background-color: #2a4d65; border-color: #2a4d65; }
.btn-outline { border: 1px solid var(--acc); color: var(--acc); background-color: transparent; }
.btn-outline:hover { background-color: rgba(62,110,142,0.08); }

header {
    background-color: rgba(242, 231, 206, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(4px);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--acc); font-family: 'Work Sans', sans-serif; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: var(--text-main); font-weight: 500; transition: color 0.2s; display: inline-block; padding: 10px 15px; }
.nav-links a:hover { color: var(--acc); }

.hero { padding: 80px 0; text-align: center; background-color: transparent; }
.hero h1 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

.section { padding: 80px 0; background-color: transparent !important; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card, .pricing-card, .faq-item, .review-card, .page-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.card { padding: 30px; }
.card:hover, .pricing-card:hover, .faq-item:hover, .review-card:hover {
    border-color: rgba(62,110,142,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 74, 50, 0.08);
}
.card:hover h3, .pricing-card:hover h3, .faq-item:hover h4, .card:hover h2 { color: var(--acc); }
.card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--ink); transition: color 0.3s; }
.card p { color: var(--text-muted); }

.mini-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
}

.mini-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
    cursor: default;
}

.mini-card:hover {
    border-color: rgba(62,110,142,0.5);
    color: var(--acc);
}

.pricing-card { text-align: center; display: flex; flex-direction: column; padding: 30px; }
.pricing-header { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.pricing-header h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 10px; transition: color 0.3s; }
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--acc); font-family: 'Work Sans', sans-serif; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; font-family: 'Noto Sans SC', sans-serif;}
.pricing-features { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-features li { padding: 10px 0; color: var(--text-muted); border-bottom: 1px solid rgba(92,74,50,0.05); }
.pricing-features li:last-child { border-bottom: none; }

.faq-item { margin-bottom: 15px; padding: 20px; }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 10px; transition: color 0.3s; }
.faq-item p { color: var(--text-muted); }

.review-card { padding: 30px; font-style: italic; }
.review-card p { color: var(--text-muted); margin-bottom: 20px; }
.review-author { font-style: normal; font-weight: 600; color: var(--text-main); text-align: right; }

footer {
    background-color: rgba(242, 231, 206, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px; margin-top: 40px;
}
.footer-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-nav a { color: var(--text-muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--acc); }
.footer-copy { 
    text-align: center; color: var(--text-muted); font-size: 11px; 
    font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; 
}

/* Accessibility & Semantic FAQ overrides */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--acc);
    color: #fff;
    padding: 8px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

section[id] {
    scroll-margin-top: 80px;
}

details.faq-item {
    cursor: pointer;
}
details.faq-item summary {
    list-style: none;
    outline: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item h4 {
    display: inline-block;
    margin: 0;
}
details.faq-item[open] p {
    margin-top: 15px;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content { padding: 40px; margin-top: 40px; margin-bottom: 40px; }
.page-content h1 { font-size: 2.5rem; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; display: inline-block; }
.page-content h2 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; }
.page-content p { margin-bottom: 15px; color: var(--text-muted); }
.page-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-muted); }
.page-content li { margin-bottom: 10px; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2,0.8,0.2,1), transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Background and Badges */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-color: var(--bg); pointer-events: none; }
.corner-badge {
    position: fixed; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); z-index: 10; pointer-events: none;
}
.badge-tl { top: 20px; left: 20px; }
.badge-br { bottom: 20px; right: 20px; }
.badge-bl { bottom: 20px; left: 20px; font-family: 'Noto Sans SC', sans-serif; text-transform: none; font-size: 12px; letter-spacing: normal; }

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-cta .btn { padding: 8px 16px; font-size: 0.9rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
    .footer-nav { flex-wrap: wrap; gap: 15px; }
    .page-content { padding: 20px; }
    .page-content h1 { font-size: 1.8rem; }
    .corner-badge { display: none; } 
}
