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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

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

.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.85;
}

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

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

.nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s;
}

.nav a:hover {
    color: #fbbf24;
    transform: translateY(-2px);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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; }

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

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #fbbf24;
    margin: 12px auto 0;
    border-radius: 2px;
    transition: width 0.3s;
}

section h2:hover::after {
    width: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-image {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(37, 99, 235, 0.8);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

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

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .card {
    background: rgba(30, 30, 48, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.dark .card:hover {
    background: rgba(40, 40, 60, 0.95);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.dark .card h3 {
    color: #e0e0e0;
}

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

.dark .card p {
    color: #aaa;
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s;
}

.card:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.dark .faq-item {
    border-color: #333;
}

.faq-item:hover {
    border-color: #fbbf24;
}

.faq-question {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, color 0.3s;
}

.dark .faq-question {
    background: rgba(30, 30, 48, 0.9);
}

.faq-question:hover {
    background: #f9fafb;
}

.dark .faq-question:hover {
    background: #2a2a40;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark .faq-answer {
    background: rgba(21, 21, 42, 0.9);
}

.faq-answer.open {
    max-height: 500px;
    padding: 16px 20px;
}

.faq-answer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-step {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark .howto-step {
    background: rgba(30, 30, 48, 0.9);
}

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

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.howto-step:hover::before {
    transform: scale(1.1);
}

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

.howto-step p {
    color: #555;
    font-size: 0.95rem;
}

.dark .howto-step p {
    color: #aaa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-info strong {
    display: inline-block;
    width: 100px;
}

.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: #fbbf24;
    transition: color 0.3s;
}

.footer a:hover {
    color: #f59e0b;
}

.footer .legal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    border: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.dark-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.search-box {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .search-box input {
    background: rgba(30, 30, 48, 0.9);
    border-color: #333;
    color: #e0e0e0;
}

.search-box button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.insight-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark .insight-card {
    background: rgba(30, 30, 48, 0.9);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.insight-card .date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.insight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.insight-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.dark .insight-card p {
    color: #aaa;
}

.insight-card a {
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s;
}

.insight-card a:hover {
    color: #1d4ed8;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    transition: transform 0.3s;
}

.stat-item:hover .number {
    transform: scale(1.1);
}

.stat-item .label {
    font-size: 1rem;
    color: #666;
    margin-top: 4px;
}

.dark .stat-item .label {
    color: #aaa;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-slide {
    display: none;
}

.banner-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.banner-slide h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.carousel-dots button.active {
    background: #fbbf24;
}

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

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 16px;
        gap: 12px;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-carousel {
        padding: 40px 20px;
    }

    .banner-slide h3 {
        font-size: 1.5rem;
    }
}