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

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

body.dark {
    background: #0d1117;
    color: #e6edf3;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(13, 17, 23, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark .card {
    background: #161b22;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.section {
    padding: 80px 0;
}

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

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

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.banner {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    color: #fff;
    text-align: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-slide p {
    font-size: 1.2rem;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.banner-dots button.active {
    background: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: none;
    z-index: 1000;
    transition: transform 0.2s;
}

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

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

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

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

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

.faq-answer.open {
    max-height: 300px;
    padding-top: 12px;
}

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

.nav-menu a {
    color: #1a1a2e;
    font-weight: 500;
    transition: color 0.2s;
}

.dark .nav-menu a {
    color: #e6edf3;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a73e8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a2e;
}

.dark .mobile-menu-btn {
    color: #e6edf3;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .dark .nav-menu {
        background: #161b22;
    }

    .nav-menu.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner {
        height: 350px;
    }

    .banner-slide h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a73e8;
}

.dark .counter {
    color: #58a6ff;
}

.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0;
    margin-top: 60px;
}

.dark .footer {
    background: #0d1117;
}

.footer a {
    color: #aaa;
}

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

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

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

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
}

.dark .search-box input {
    background: #161b22;
    border-color: #30363d;
    color: #e6edf3;
}

.search-box button {
    padding: 10px 20px;
    border-radius: 30px;
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #666;
}

.dark .breadcrumb {
    color: #8b949e;
}

.breadcrumb li+li::before {
    content: "/";
    margin-right: 8px;
    color: #999;
}

.dark .breadcrumb li+li::before {
    color: #555;
}

.theme-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.dark .theme-toggle {
    border-color: #30363d;
    color: #e6edf3;
}

.theme-toggle:hover {
    background: #f0f0f0;
}

.dark .theme-toggle:hover {
    background: #30363d;
}

svg.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}