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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #1a2332;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0b1a2e;
    color: #e8edf2;
}

a {
    color: #1a6fb5;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #f0c040;
    text-decoration: underline;
}

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

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

/* Header */
.header {
    background: rgba(11, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(240, 192, 64, 0.15);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f0c040;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

.logo span {
    color: #fff;
}

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

.nav a {
    color: #cfdbe8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #f0c040;
    border-radius: 2px;
    transition: transform 0.3s;
}

.nav a:hover {
    background: rgba(30, 58, 95, 0.7);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid #f0c040;
    color: #f0c040;
    font-size: 1.5rem;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(240, 192, 64, 0.15);
    transform: scale(1.05);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0b1a2e 0%, #1a3a5c 40%, #2a5a7a 100%);
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, 2%) rotate(3deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto 30px;
    color: #c8d6e5;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .cta {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #0b1a2e;
    padding: 14px 44px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 4px 25px rgba(240, 192, 64, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.hero .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.hero .cta:hover::before {
    left: 100%;
}

.hero .cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(240, 192, 64, 0.5);
    background: linear-gradient(135deg, #f5c840, #e8b000);
    text-decoration: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section */
.section {
    padding: 70px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 1s ease-out forwards;
}

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

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }
.section:nth-child(9) { animation-delay: 0.9s; }
.section:nth-child(10) { animation-delay: 1s; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f0c040, #e6a800);
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(240, 192, 64, 0.3);
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

body.dark .card {
    background: rgba(19, 42, 68, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .card:hover {
    background: rgba(30, 50, 80, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

/* Badge */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(230, 168, 0, 0.15));
    color: #f0c040;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(240, 192, 64, 0.2);
}

/* About */
.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: #4a5a6e;
}

body.dark .about-intro {
    color: #b0c4d8;
}

/* Stat */
.stat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

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

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f0c040;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.2);
}

.stat-label {
    color: #7a8a9e;
    font-size: 0.95rem;
}

body.dark .stat-label {
    color: #9aadc2;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(224, 230, 237, 0.6);
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(240, 192, 64, 0.03);
}

body.dark .faq-item {
    border-color: rgba(42, 64, 88, 0.6);
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.faq-item.active .faq-question {
    color: #f0c040;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s, color 0.3s;
    color: #f0c040;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: #e6a800;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s, opacity 0.3s;
    padding: 0 8px;
    color: #4a5a6e;
    font-size: 0.95rem;
    opacity: 0;
}

body.dark .faq-answer {
    color: #b0c4d8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 12px 8px 4px;
    opacity: 1;
}

/* HowTo */
.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    transition: transform 0.2s;
}

.howto-step:hover {
    transform: translateX(4px);
}

.howto-step-num {
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #0b1a2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(240, 192, 64, 0.3);
}

.howto-step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.howto-step-content p {
    color: #4a5a6e;
    font-size: 0.95rem;
}

body.dark .howto-step-content p {
    color: #b0c4d8;
}

/* Article */
.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.article-card:hover h3 {
    color: #f0c040;
}

.article-card .meta {
    color: #7a8a9e;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
}

.article-card p {
    color: #4a5a6e;
    font-size: 0.93rem;
    margin-bottom: 14px;
}

body.dark .article-card p {
    color: #b0c4d8;
}

.article-card .read-more {
    color: #f0c040;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card .read-more:hover {
    gap: 8px;
}

/* Testimonial */
.testimonial-card {
    text-align: center;
    padding: 32px 20px;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #2a3a4e;
    position: relative;
}

.testimonial-card .quote::before {
    content: '"';
    font-size: 2rem;
    color: #f0c040;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

body.dark .testimonial-card .quote {
    color: #c8d6e5;
}

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

/* Contact */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.contact-info .item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

body.dark .contact-info .item {
    background: rgba(19, 42, 68, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0b1a2e, #071220);
    color: #a0b4c8;
    padding: 50px 0 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(240, 192, 64, 0.1);
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #f0c040;
    margin-top: 6px;
    border-radius: 2px;
}

.footer a {
    color: #a0b4c8;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s, transform 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(30, 52, 80, 0.6);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #6a8098;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #0b1a2e;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    border: none;
    z-index: 99;
    font-weight: bold;
}

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

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

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid #f0c040;
    color: #f0c040;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
    background: rgba(240, 192, 64, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.2);
}

/* Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0b1a2e, #1a3a5c);
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-slide {
    display: none;
    padding: 40px 30px;
    color: #fff;
    animation: bannerFade 0.6s ease-out;
}

.banner-slide.active {
    display: block;
}

@keyframes bannerFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.banner-slide p {
    font-size: 1.05rem;
    color: #c8d6e5;
    max-width: 600px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #f0c040;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner-dots button.active {
    background: #f0c040;
    box-shadow: 0 0 10px rgba(240, 192, 64, 0.4);
}

.banner-dots button:hover {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        gap: 16px;
    }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 50px 0; }
    
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 4px;
        background: rgba(11, 26, 46, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(240, 192, 64, 0.15);
    }
    .nav.open { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .contact-info .item { width: 100%; }
    
    .banner-slide h2 { font-size: 1.4rem; }
    .banner-slider { min-height: 180px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    .grid-4 { grid-template-columns: 1fr; }
    .footer .container { grid-template-columns: 1fr; }
    .stat-grid { gap: 24px; }
    .stat-number { font-size: 2rem; }
    .banner-slide { padding: 30px 20px; }
    .banner-slide h2 { font-size: 1.2rem; }
    .banner-slider { min-height: 160px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.2rem; }
}