* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7fc;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background .3s, color .3s;
}

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

a {
    color: #1a6bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.header {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo span {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav a {
    color: #e0e0f0;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: .2s;
}

.nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #f0c040;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #f0c040;
    color: #f0c040;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.breadcrumb {
    background: rgba(255, 255, 255, .05);
    padding: 12px 0;
    font-size: .9rem;
    color: #aaa;
}

.breadcrumb a {
    color: #f0c040;
}

.breadcrumb span {
    color: #ccc;
}

.banner {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, .08), transparent 60%);
    animation: glow 8s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5%, 5%);
    }
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #cfd0e6;
}

.banner .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner .btn {
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 8px 30px rgba(240, 192, 64, .3);
}

.banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(240, 192, 64, .5);
}

.banner .btn-outline {
    background: transparent;
    border: 2px solid #f0c040;
    color: #f0c040;
}

.banner .btn-outline:hover {
    background: #f0c040;
    color: #1a1a2e;
}

.section {
    padding: 70px 0;
}

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

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    margin: 12px auto 0;
    border-radius: 4px;
}

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

.grid {
    display: grid;
    gap: 30px;
}

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

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

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

.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    transition: .4s;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .2);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .12);
}

.dark .card {
    background: #1a1a2e;
    border-color: #2a2a4a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

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

.card .btn-sm {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #1a6bff, #0f4ab0);
    color: #fff;
    border-radius: 30px;
    font-size: .9rem;
    transition: .3s;
}

.card .btn-sm:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 18px 0;
    cursor: pointer;
}

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

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: 12px;
    display: none;
    color: #555;
    line-height: 1.8;
}

.dark .faq-answer {
    color: #b0b0c0;
}

.faq-item.active .faq-answer {
    display: block;
}

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

.howto-steps li {
    counter-increment: step;
    padding: 16px 0 16px 50px;
    position: relative;
    border-left: 3px solid #f0c040;
    margin-left: 20px;
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: -18px;
    top: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a2e;
}

.footer {
    background: #0f0c29;
    color: #b0b0c0;
    padding: 60px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.footer a {
    color: #b0b0c0;
    display: block;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid #2a2a4a;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: .9rem;
}

.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #f0c040;
    color: #1a1a2e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(240, 192, 64, .4);
    cursor: pointer;
    transition: .3s;
    z-index: 999;
    border: none;
}

.back-top:hover {
    transform: scale(1.1);
}

.dark-toggle {
    background: none;
    border: 2px solid #f0c040;
    color: #f0c040;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: .9rem;
    transition: .3s;
}

.dark-toggle:hover {
    background: #f0c040;
    color: #1a1a2e;
}

.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: .9rem;
    width: 180px;
}

.dark .search-box input {
    background: #1a1a2e;
    border-color: #2a2a4a;
    color: #e0e0e0;
}

.search-box button {
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform .6s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .4);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 5;
    transition: .3s;
}

.carousel-btn:hover {
    background: rgba(240, 192, 64, .8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.counter {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c040, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 16px;
        gap: 8px;
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 10px 0;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 1.7rem;
    }
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.6rem;
    }
    .banner p {
        font-size: 1rem;
    }
    .container {
        padding: 0 16px;
    }
}