/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #f0c040;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffd866;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 192, 64, 0.15);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f0c040;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: #ccc;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

nav a:hover {
    background: rgba(240, 192, 64, 0.12);
    color: #f0c040;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f0c040;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.05), transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: #f0c040;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #b0b0c0;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #f0c040, #e0a800);
    color: #0f0f1a;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(240, 192, 64, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(240, 192, 64, 0.5);
    color: #f0c040;
}

.btn-secondary:hover {
    background: rgba(240, 192, 64, 0.1);
    border-color: #f0c040;
}

.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.section-title p {
    color: #8888a0;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid,
.features-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.card h3 {
    color: #f0c040;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card p {
    color: #b0b0c0;
    font-size: 0.95rem;
}

.card .meta {
    color: #666;
    font-size: 0.85rem;
    margin-top: 12px;
    display: block;
}

.howto-steps {
    counter-reset: step;
}

.howto-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #f0c040;
    color: #0f0f1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.howto-step h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.howto-step p {
    color: #b0b0c0;
    font-size: 0.92rem;
}

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #f0c040;
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: #f0c040;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 0;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 0 20px;
}

.faq-answer p {
    color: #b0b0c0;
    font-size: 0.92rem;
    line-height: 1.7;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-card::before {
    content: '"';
    font-size: 3rem;
    color: #f0c040;
    opacity: 0.3;
    position: absolute;
    top: 12px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-card p {
    color: #b0b0c0;
    font-style: italic;
    margin-bottom: 16px;
    padding-top: 16px;
}

.testimonial-card .author {
    color: #f0c040;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.contact-card h4 {
    color: #f0c040;
    margin-bottom: 8px;
}

.contact-card p {
    color: #b0b0c0;
    font-size: 0.9rem;
}

.footer {
    background: #0a0a14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: #f0c040;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #888;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color 0.3s, transform 0.2s;
}

.footer-col a:hover {
    color: #f0c040;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #666;
}

.footer-bottom a {
    color: #888;
    margin: 0 8px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0c040;
    color: #0f0f1a;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(240, 192, 64, 0.4);
}

/* Scroll-triggered animations (applied via JS) */
.card,
.testimonial-card,
.contact-card,
.howto-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        height: 56px;
    }

    nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid rgba(240, 192, 64, 0.15);
    }

    nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 60vh;
        padding: 60px 24px;
    }

    .section {
        padding: 48px 0;
    }

    .about-grid,
    .features-grid,
    .articles-grid,
    .testimonials-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .howto-step {
        flex-direction: column;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Light mode */
@media (prefers-color-scheme: light) {
    body {
        background: #f5f5f7;
        color: #222;
    }

    .card,
    .testimonial-card,
    .contact-card,
    .howto-step {
        background: #fff;
        border-color: #e0e0e0;
    }

    .card h3,
    .testimonial-card .author,
    .contact-card h4,
    .footer-col h4 {
        color: #b8860b;
    }

    .card p,
    .testimonial-card p,
    .faq-answer p,
    .contact-card p {
        color: #555;
    }

    .section-title p {
        color: #777;
    }

    .hero {
        background: linear-gradient(135deg, #e8e8f0 0%, #f0f0f8 50%, #e8e8f0 100%);
    }

    .hero h1 {
        color: #1a1a2e;
    }

    .hero p {
        color: #555;
    }

    header {
        background: rgba(245, 245, 247, 0.95);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    nav a {
        color: #444;
    }

    nav a:hover {
        background: rgba(184, 134, 11, 0.1);
        color: #b8860b;
    }

    .faq-item {
        border-color: #e0e0e0;
    }

    .faq-question {
        color: #333;
    }

    .footer {
        background: #e8e8f0;
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .footer-bottom {
        color: #888;
    }

    .footer-bottom a {
        color: #666;
    }

    .back-to-top {
        background: #b8860b;
        color: #fff;
        box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
    }
}

/* Dark mode (explicit) */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f0f1a;
        color: #e0e0e0;
    }

    .card,
    .testimonial-card,
    .contact-card,
    .howto-step {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .hero {
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    }

    .hero h1 {
        color: #fff;
    }

    .hero p {
        color: #b0b0c0;
    }

    header {
        background: rgba(15, 15, 26, 0.95);
        border-bottom-color: rgba(240, 192, 64, 0.15);
    }

    nav a {
        color: #ccc;
    }

    .faq-item {
        border-color: rgba(255, 255, 255, 0.06);
    }

    .faq-question {
        color: #e0e0e0;
    }

    .footer {
        background: #0a0a14;
        border-top-color: rgba(255, 255, 255, 0.06);
    }

    .footer-bottom {
        color: #666;
    }

    .footer-bottom a {
        color: #888;
    }

    .back-to-top {
        background: #f0c040;
        color: #0f0f1a;
        box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
    }
}