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

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

body.dark {
    background: #0b1320;
    color: #eef2f8;
}

:root {
    --brand: #0b1a2f;
    --brand-light: #1f3a5f;
    --gold: #f0b429;
    --gold-hover: #d49a1f;
    --radius: 24px;
    --shadow: 0 20px 35px -10px rgba(0,0,0,0.12);
    --glass: rgba(255,255,255,0.2);
}

.dark {
    --brand: #0b1a2f;
    --brand-light: #1f3a5f;
    --gold: #f0b429;
    --glass: rgba(255,255,255,0.05);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,26,47,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240,180,41,0.15);
    padding: 12px 0;
    transition: background 0.3s;
}

.dark header {
    background: rgba(8,16,30,0.9);
}

.logo svg {
    height: 42px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    color: #f0f4fa;
}

.nav a:hover,
.nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.dark-toggle {
    background: none;
    border: 1px solid rgba(240,180,41,0.5);
    border-radius: 30px;
    color: var(--gold);
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav {
        display: none;
        flex-direction: column;
        background: var(--brand);
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 1rem;
        border-radius: 0 0 24px 24px;
    }
    .nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* hero */
.hero {
    background: linear-gradient(145deg, #0b1a2f 0%, #1f3a5f 100%);
    border-radius: 0 0 60px 60px;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.dark .hero {
    background: linear-gradient(145deg, #050d1a 0%, #14273e 100%);
}

.hero-glass {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 24px 0;
}

.btn-gold {
    background: var(--gold);
    color: #0b1a2f;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: scale(1.02);
    box-shadow: 0 12px 20px -10px rgba(240,180,41,0.4);
}

.hero-badge {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    color: #cddae9;
}

/* sections */
section {
    margin: 60px 0;
}

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

.section-title:after {
    content: '';
    height: 4px;
    width: 60px;
    background: var(--gold);
    position: absolute;
    bottom: -8px;
    left: 0;
    border-radius: 4px;
}

.card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.dark .card {
    background: #141f2f;
}

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

.glass-card {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 28px;
}

.dark .glass-card {
    background: rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.05);
}

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

.mt-2 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 16px;
}

.text-gold {
    color: var(--gold);
}

.pill {
    background: var(--gold);
    color: #0b1a2f;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer {
    background: #0b1a2f;
    color: #b0c4de;
    padding: 40px 0;
    border-radius: 40px 40px 0 0;
    margin-top: 60px;
}

.dark .footer {
    background: #050c1a;
}

.footer a {
    color: #b0c4de;
}

.footer a:hover {
    color: var(--gold);
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 18px 0;
    cursor: pointer;
}

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

.faq-q {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-a {
    padding-top: 12px;
    display: none;
}

.faq-item.open .faq-a {
    display: block;
}

.howto-step {
    background: #f0f4fe;
    border-radius: 24px;
    padding: 24px;
    margin: 16px 0;
}

.dark .howto-step {
    background: #1a2640;
}

.article-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.dark .article-card {
    background: #141f2f;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #1f3a5f;
}

.article-content {
    padding: 20px;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.7s;
}

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

.counter {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
}

.banner-slide {
    display: none;
    animation: fade 0.8s;
}

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

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.dot-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(240,180,41,0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--gold);
    width: 30px;
}

.back-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background: var(--gold);
    color: #0b1a2f;
    border: none;
    border-radius: 60px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 99;
}

.back-top.show {
    opacity: 1;
}

.search-sim {
    background: rgba(255,255,255,0.1);
    border-radius: 60px;
    padding: 8px 20px;
    border: 1px solid rgba(240,180,41,0.2);
    color: #fff;
}

.search-sim::placeholder {
    color: #aab9d6;
}

@media (max-width: 640px) {
    .hero {
        padding: 50px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
}