/* --- Vibrant Light Clean Theme Base --- */
:root {
    --bg-color: #f6faf8;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(16, 185, 129, 0.08);
    --text-primary: #1e2924;
    --text-muted: #5c6e65;
    --accent-emerald: #10b981;
    --accent-mint: #eafbf4;
    --accent-sage: #0d9488;
    --accent-gold: #d97706;
    --accent-gold-light: #fffbeb;
    --transition-snappy: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- High-Performance CSS 3D Background Crystals --- */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    perspective: 1200px;
    overflow: hidden;
}

.prism {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: spin3D 25s infinite linear;
    will-change: transform;
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(16, 185, 129, 0.05));
    backdrop-filter: blur(2px);
}

.front {
    transform: rotateY(0deg) translateZ(50px);
}

.back {
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

.prism-1 {
    top: 10%;
    left: 6%;
    animation-duration: 22s;
}

.prism-2 {
    bottom: 15%;
    right: 8%;
    width: 140px;
    height: 140px;
    animation-duration: 38s;
}

.prism-2 .side {
    border-color: rgba(13, 148, 136, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(13, 148, 136, 0.05));
    transform: rotateY(0deg) translateZ(70px);
}

.prism-3 {
    top: 60%;
    left: 45%;
    width: 70px;
    height: 70px;
    animation-duration: 18s;
}

@keyframes spin3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* --- Entrance Fade-In Slide Animation System --- */
.animated-element {
    opacity: 0;
    transform: translateY(15px);
    animation: entranceSlide 0.6s cubic-bezier(0.1, 1, 0.1, 1) forwards;
}

.hero {
    animation-delay: 0.1s;
}

.info-basic {
    animation-delay: 0.2s;
}

.middle-grid {
    animation-delay: 0.3s;
}

.testimonials-section {
    animation-delay: 0.4s;
}

@keyframes entranceSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Layout Blueprint --- */
.hero {
    text-align: center;
    padding: 4rem 1rem 2.5rem 1rem;
    max-width: 650px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-container input {
    width: 100%;
    max-width: 440px;
    padding: 0.95rem 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 40px;
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.04);
    transition: var(--transition-snappy);
}

.search-container input:focus {
    border-color: var(--accent-emerald);
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.12);
}

.main-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem 5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Container Panels --- */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-snappy);
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-basic {
    border-top: 4px solid var(--accent-emerald);
}

.info-basic h2 {
    color: var(--accent-sage);
}

.info-card p {
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* Middle Layout Split Grid */
.middle-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.info-effectiveness {
    border-top: 4px solid var(--accent-sage);
}

.info-effectiveness h2 {
    color: var(--accent-sage);
}

/* Data Grids and Comparison Formats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    background: #ffffff;
    padding: 1.1rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-sage);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eef3f0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    background: white;
}

.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #f0f5f2;
}

.comparison-table th {
    background: #f4faf6;
    color: var(--text-muted);
    font-weight: 700;
}

.txt-highlight-green {
    color: #047857;
    font-weight: 600;
}

/* --- Accordions --- */
.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    padding-left: 0.5rem;
}

.cat-general h3 {
    color: var(--accent-sage);
    border-left: 3px solid var(--accent-emerald);
}

.cat-system h3 {
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.accordion-item {
    background: var(--card-bg);
    margin-bottom: 0.6rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-snappy);
}

.accordion-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.02);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.cat-general .accordion-item.active {
    border-color: rgba(16, 185, 129, 0.25);
}

.cat-general .accordion-item.active .accordion-header {
    background-color: var(--accent-mint);
}

.cat-system .accordion-item.active {
    border-color: rgba(217, 119, 6, 0.25);
}

.cat-system .accordion-item.active .accordion-header {
    background-color: var(--accent-gold-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
    padding: 1.1rem 1.5rem;
}

/* --- Full-Width Bottom Review Matrix --- */
.testimonials-section {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.01);
}

.testimonials-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 1.6rem;
    border-radius: 12px;
    border-top: 4px solid transparent;
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.review-1 {
    border-top-color: var(--accent-emerald);
}

.review-2 {
    border-top-color: var(--accent-sage);
}

.review-3 {
    border-top-color: var(--accent-gold);
}

.review-4 {
    border-top-color: #6366f1;
}

.testimonial-card .review {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.user-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 0.75rem;
}

.testimonial-card .author {
    color: var(--text-primary);
}

.testimonial-card .location {
    color: var(--text-muted);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.hidden {
    display: none !important;
}

/* --- Responsive Mobile Breakpoints --- */
@media (max-width: 900px) {
    .middle-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .testimonials-section {
        padding: 2rem 1.25rem;
    }
}