/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-card: #141414;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #6F7CFF;
    --accent-hover: #5a68e6;
    --accent-glow: rgba(111, 124, 255, 0.25);
    --border-radius: 12px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.btn--outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn--large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ----- HEADER / NAV ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo__img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo__text {
    color: #fff;
}

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

.nav__link {
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}
.nav__link:hover {
    color: #fff;
}
.nav__link--highlight {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 40px;
}
.nav__link--highlight:hover {
    background: var(--accent-hover);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

/* ----- HERO ----- */
.hero {
    padding: 140px 0 80px;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

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

.hero__badge {
    display: inline-block;
    background: rgba(111, 124, 255, 0.12);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(111, 124, 255, 0.2);
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero__title span {
    color: var(--accent);
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
}
.hero__desc strong {
    color: var(--accent);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}
.hero__stats .stat {
    display: flex;
    flex-direction: column;
}
.hero__stats .stat__number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}
.hero__stats .stat__label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Hero visual / mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__mockup {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
}

.mockup__screen {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup__player {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}

.mockup__badge-db {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.mockup__controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.mockup__controls span {
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.floating-badge {
    position: absolute;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.floating-badge svg {
    color: var(--accent);
}
.badge--1 {
    top: 10%;
    right: -10%;
}
.badge--2 {
    bottom: 15%;
    left: -8%;
}

.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero__wave svg {
    width: 100%;
    height: 60px;
    fill: var(--bg-primary);
}

/* ----- SECTION HEADERS ----- */
.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__tag {
    display: inline-block;
    background: rgba(111, 124, 255, 0.08);
    color: var(--accent);
    padding: 4px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    border: 1px solid rgba(111, 124, 255, 0.15);
}

.section__title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ----- FEATURES ----- */
.features {
    padding: 100px 0 80px;
    background: var(--bg-primary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature__card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature__card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.feature__icon {
    margin-bottom: 16px;
    color: var(--accent);
}
.feature__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature__card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----- STATS DATABASE ----- */
.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat__item {
    padding: 28px 16px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.stat__number {
    font-size: 2.6rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    color: var(--accent);
}

.stat__label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin-top: 4px;
}

/* ----- SEARCH ----- */
.search {
    padding: 100px 0 80px;
    background: var(--bg-primary);
}

.search__inner {
    max-width: 900px;
    margin: 0 auto;
}

.search__header {
    text-align: center;
    margin-bottom: 40px;
}

.search__desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 12px;
}

.search__box {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.search__box input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 40px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search__box input:focus {
    border-color: var(--accent);
    background: #1a1a1a;
}
.search__box input::placeholder {
    color: var(--text-secondary);
}

.search__results {
    min-height: 200px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.result__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-secondary);
    gap: 12px;
}
.result__placeholder svg {
    color: var(--text-secondary);
    opacity: 0.3;
}

.result__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.result__item:last-child {
    border-bottom: none;
}
.result__item .title {
    font-weight: 600;
}
.result__item .lang {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.result__item .embed-link {
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
}
.result__item .embed-link:hover {
    text-decoration: underline;
}

/* ----- ABOUT / COMMUNITY ----- */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about__content .section__tag {
    margin-bottom: 12px;
}
.about__content p {
    color: var(--text-secondary);
    margin: 20px 0 24px;
    font-size: 1.05rem;
}
.about__content p em {
    color: var(--text-primary);
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.about__highlights .highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.about__highlights .highlight svg {
    color: var(--accent);
    flex-shrink: 0;
}
.about__highlights .highlight strong {
    color: var(--accent);
}

.about__image {
    display: flex;
    justify-content: center;
}
.about__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 20px;
    gap: 16px;
}
.about__overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent);
    max-width: 90%;
}
.about__overlay p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.about__overlay code {
    color: var(--accent);
    font-size: 0.75rem;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

/* ----- CTA ----- */
.cta {
    padding: 100px 0 80px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.cta__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta__badge {
    display: inline-block;
    background: rgba(111, 124, 255, 0.08);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(111, 124, 255, 0.15);
}

.cta__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta__desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta__footnote {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* ----- FOOTER ----- */
.footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.footer__brand .logo__text {
    font-size: 1.2rem;
}
.footer__copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 4px;
}
.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__links a {
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer__links a:hover {
    color: #fff;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__desc {
        max-width: 100%;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__stats {
        justify-content: center;
    }
    .hero__visual {
        margin-top: 20px;
    }
    .about__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__highlights {
        text-align: left;
    }
    .about__content .btn {
        margin: 0 auto;
    }
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        pointer-events: auto;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__title {
        font-size: 2.4rem;
    }
    .section__title {
        font-size: 2rem;
    }
    .features__grid {
        grid-template-columns: 1fr;
    }
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .footer__brand {
        justify-content: center;
    }
    .search__box {
        flex-direction: column;
    }
    .search__box button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .cta__title {
        font-size: 2rem;
    }
    .stats__grid {
        grid-template-columns: 1fr;
    }
    .hero__stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}
