/*
Theme Name: DHAN7 Landing Theme
Theme URI: https://dhan7.game/
Author: DHAN7
Author URI: https://dhan7.game/
Description: A DHAN7-inspired WordPress landing page theme with hero video, gaming sections, /lv.html routing, and analytics integration.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhan7-theme
Tags: landing-page, gaming, dark, responsive
*/

:root {
    --dhan-bg: #101012;
    --dhan-bg-soft: #17171a;
    --dhan-card: #1e1e22;
    --dhan-red: #df264d;
    --dhan-red-bright: #ff345f;
    --dhan-text: #f7f7f9;
    --dhan-muted: #a0a0a8;
    --dhan-line: rgba(255,255,255,.12);
    --dhan-radius: 24px;
    --dhan-shadow: 0 22px 70px rgba(0,0,0,.45);
    --dhan-container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--dhan-bg);
    color: var(--dhan-text);
    font-family: Inter, Montserrat, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

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

img, video {
    max-width: 100%;
    display: block;
}

.dhan-container {
    width: min(100% - 32px, var(--dhan-container));
    margin: 0 auto;
}

.dhan-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 99;
    background: rgba(16,16,18,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dhan-line);
}

.dhan-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dhan-logo {
    font-size: 30px;
    font-weight: 900;
    color: var(--dhan-red);
    letter-spacing: .03em;
}

.dhan-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #d8d8dd;
    font-size: 14px;
    letter-spacing: .08em;
}

.dhan-nav a:hover {
    color: var(--dhan-red-bright);
}

.dhan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dhan-red), #9b1230);
    color: white;
    font-weight: 800;
    letter-spacing: .04em;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 34px rgba(223,38,77,.28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.dhan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(223,38,77,.42);
}

.dhan-btn-outline {
    background: transparent;
    color: var(--dhan-text);
    box-shadow: none;
}

.dhan-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--dhan-line);
    border-radius: 12px;
    background: transparent;
    color: white;
    font-size: 24px;
}

.dhan-main {
    padding-top: 72px;
}

.dhan-hero {
    min-height: calc(100vh - 72px);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(223,38,77,.28), transparent 38%), #050506;
}

.dhan-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
}

.dhan-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,9,.95) 0%, rgba(8,8,9,.58) 48%, rgba(8,8,9,.18) 100%);
}

.dhan-hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 72px);
    display: grid;
    align-content: center;
    max-width: 740px;
    padding: 80px 0;
}

.dhan-kicker {
    color: var(--dhan-red-bright);
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.dhan-hero h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 104px);
    line-height: .92;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

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

.dhan-lead {
    margin: 26px 0 34px;
    color: #d6d6dc;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.7;
    max-width: 620px;
}

.dhan-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dhan-scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    letter-spacing: .3em;
}

.dhan-section {
    padding: clamp(64px, 8vw, 110px) 0;
    background: var(--dhan-bg);
}

.dhan-section.alt {
    background: var(--dhan-bg-soft);
}

.dhan-section-title {
    text-align: center;
    margin: 0 auto 20px;
    color: var(--dhan-red);
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
    text-transform: uppercase;
}

.dhan-section-desc {
    text-align: center;
    color: var(--dhan-muted);
    max-width: 850px;
    margin: 0 auto 46px;
    line-height: 1.8;
}

.dhan-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.dhan-card {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid var(--dhan-line);
    border-radius: var(--dhan-radius);
    padding: 28px;
    box-shadow: var(--dhan-shadow);
}

.dhan-card h3 {
    margin: 0 0 12px;
    color: white;
    font-size: 22px;
}

.dhan-card p {
    margin: 0;
    color: var(--dhan-muted);
    line-height: 1.75;
}

.dhan-earth-video-wrap {
    margin: 38px auto 0;
    width: min(820px, 100%);
    aspect-ratio: 16 / 8.4;
    border-radius: 999px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(223,38,77,.28), rgba(18,18,22,.9));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 54px rgba(223,38,77,.26), var(--dhan-shadow);
}

.dhan-earth-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
}

.dhan-games {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.dhan-game {
    min-height: 150px;
    border-radius: 18px;
    background: linear-gradient(145deg, #24242a, #121216);
    border: 1px solid var(--dhan-line);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.dhan-game span {
    color: var(--dhan-red-bright);
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
}

.dhan-showcase {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.dhan-phone {
    aspect-ratio: 1 / 1.1;
    border-radius: 32px;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.24), transparent 18%), linear-gradient(145deg, #d7224b, #4e0719 58%, #111);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: var(--dhan-shadow);
    display: grid;
    place-items: center;
    padding: 34px;
    text-align: center;
}

.dhan-phone strong {
    font-size: clamp(42px, 8vw, 86px);
    line-height: .9;
}

.dhan-copy h2 {
    color: var(--dhan-red);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.02;
    margin: 0 0 22px;
}

.dhan-copy p {
    color: var(--dhan-muted);
    line-height: 1.85;
    margin: 0 0 18px;
}

.dhan-earn-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.dhan-earn-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--dhan-line);
    background: rgba(255,255,255,.035);
}

.dhan-earn-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--dhan-red), #7d1029);
    display: grid;
    place-items: center;
    font-size: 24px;
}

.dhan-earn-item h3 {
    margin: 0 0 4px;
}

.dhan-earn-item p {
    margin: 0;
    color: var(--dhan-muted);
}

.dhan-about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.dhan-footer {
    border-top: 1px solid var(--dhan-line);
    background: #0b0b0d;
    padding: 48px 0 86px;
    color: var(--dhan-muted);
}

.dhan-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.dhan-footer h3 {
    color: white;
    margin: 0 0 14px;
}

.dhan-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.dhan-footer a:hover {
    color: var(--dhan-red-bright);
}

.dhan-copyright {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--dhan-line);
    font-size: 13px;
}

.dhan-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
}

.dhan-floating .dhan-btn {
    min-height: 52px;
    box-shadow: 0 16px 50px rgba(223,38,77,.52);
}

.dhan-logo img {
    width: 142px;
    height: auto;
}

.dhan-menu-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dhan-download-img img {
    height: 44px;
    width: auto;
}

.dhan-swipe {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    letter-spacing: .28em;
    z-index: 3;
}

.dhan-swipe span {
    display: block;
    width: 74px;
    height: 1px;
    background: rgba(255,255,255,.45);
}

.dhan-brand-section {
    overflow: hidden;
}

.dhan-earth-stage {
    width: min(820px, 100%);
    margin: 42px auto 54px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(223,38,77,.28);
}

.dhan-brand-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dhan-feature-card {
    min-height: 260px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    box-shadow: var(--dhan-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dhan-feature-card h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 22px;
}

.dhan-feature-card p {
    color: var(--dhan-muted);
    line-height: 1.65;
    margin: 0 0 18px;
}

.dhan-feature-card > img {
    max-height: 128px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.dhan-yx-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.dhan-yx-icons img {
    width: 46px;
    height: 57px;
    object-fit: contain;
    margin: auto;
}

.dhan-games-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-height: 820px;
    overflow: hidden;
    position: relative;
}

.dhan-games-wall::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(transparent, var(--dhan-bg-soft));
    pointer-events: none;
}

.dhan-game-img img {
    width: 100%;
    border-radius: 16px;
    background: #181819;
    box-shadow: 0 10px 28px rgba(0,0,0,.32);
    transition: transform .25s ease;
}

.dhan-game-img:hover img {
    transform: translateY(-4px);
}

.dhan-banner-grid {
    display: grid;
    gap: 30px;
}

.dhan-banner-card {
    display: grid;
    grid-template-columns: minmax(260px, 520px) 1fr;
    align-items: center;
    gap: 46px;
    padding: 34px;
    border-radius: 28px;
    background: #181819;
    border: 1px solid rgba(255,255,255,.1);
}

.dhan-banner-card img {
    width: 100%;
    border-radius: 20px;
}

.dhan-banner-card h3 {
    color: var(--dhan-red);
    font-size: clamp(28px, 4vw, 50px);
    margin: 0 0 18px;
}

.dhan-banner-card p {
    color: var(--dhan-muted);
    line-height: 1.8;
}

.dhan-earn-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.dhan-section-title.left,
.dhan-section-desc.left {
    text-align: left;
    margin-left: 0;
}

.dhan-download-mini img {
    height: 46px;
    width: auto;
    margin-bottom: 26px;
}

.dhan-earn-item img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.dhan-earn-img {
    width: 100%;
}

.dhan-about-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.dhan-about-img-card {
    min-height: 360px;
    padding: 44px;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.1);
}

.dhan-about-img-card h3 {
    color: #fff;
    max-width: 420px;
    margin: 0 0 24px;
}

.dhan-about-img-card p {
    color: #c1c1c7;
    line-height: 1.8;
    max-width: 520px;
}

.dhan-manufacturers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 42px 70px;
    align-items: center;
    justify-items: center;
    max-width: 900px;
    margin: 42px auto 0;
}

.dhan-manufacturers img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

.dhan-footer-logo {
    width: 150px;
    margin-bottom: 16px;
}

.dhan-socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.dhan-socials img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.dhan-floating-img img {
    height: 58px;
    width: auto;
}

@media (max-width: 960px) {
    .dhan-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .dhan-menu-list,
    .dhan-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border: 1px solid var(--dhan-line);
        border-radius: 18px;
        background: rgba(16,16,18,.96);
    }

    .dhan-nav.is-open,
    .dhan-nav.is-open .dhan-menu-list {
        display: flex;
    }

    .dhan-nav a {
        padding: 14px;
        border-bottom: 1px solid var(--dhan-line);
    }

    .dhan-header-cta {
        display: none;
    }

    .dhan-brand-grid,
    .dhan-showcase,
    .dhan-about,
    .dhan-footer-grid,
    .dhan-brand-feature-grid,
    .dhan-banner-card,
    .dhan-earn-layout,
    .dhan-about-img-grid {
        grid-template-columns: 1fr;
    }

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

    .dhan-manufacturers {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .dhan-hero-content {
        padding: 54px 0 90px;
    }

    .dhan-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .dhan-swipe span {
        width: 36px;
    }

    .dhan-about-img-card {
        padding: 28px;
    }
}
