/* ==========================================
   DHAN X GLOBAL - style.css
   ========================================== */

*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   GLOBAL TEXT JUSTIFICATION
   ============================================ */

/* 1. Default: all paragraphs justified */
p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

/* 2. Reset justification for centered/short text elements */
.section-title,
.section-subtitle,
.rihpa-eyebrow,
.hero-label,
.hero-text h1,
.hero-buttons,
.hero-stat strong,
.hero-stat small,
.token-header .section-title,
.token-header p,
.token-feature-card h3,
.token-subtitle,
.cta-content h2,
.cta-content > p,
.cta-note,
.faq-question h3,
.trusted-text,
.footer-col h4,
.footer-col ul li,
.footer-bottom p,
.footer-bottom-links,
.copyright,
.testimonial-text,
.pricing-header p,
.rating-text span,
.card h3,
.team-card h4,
.team-card span,
h1, h2, h3, h4, h5, h6,
button,
.btn,
.btn-primary,
.btn-sign,
.btn-reg,
a {
    text-align: inherit;
    hyphens: none;
}

/* 3. Keep centered layouts centered */
.section-title,
.section-subtitle,
.hero-content,
.token-header,
.token-decentralized,
.cta-content,
.faq-section .section-header,
.trusted-by,
.testimonial-card,
.footer-bottom-content,
#services-section,
#services-section .section-title,
#services-section .section-subtitle,
#services-section > p,
.token-feature-card,
.team-card {
    text-align: center;
}

/* 4. Justify body/content paragraphs only */
.about-content p,
.about-text,
#rihpa-section p,
#about-section p,
#services-section > p,
.token-intro,
.token-desc,
.token-feature-card p,
.features-list p,
.faq-answer p,
.service-card p,
.feature-card p,
.card p,
.testimonial-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #b0b0b0;
}

.market-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.market-stats span b {
    color: #ace94b;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-sign {
    background: 0 0;
    border: 1px solid #ace94b;
    color: #ace94b;
    padding: 6px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-sign:hover {
    background: #ace94b;
    color: #000;
}

.btn-reg {
    background: #ace94b;
    border: 1px solid #ace94b;
    color: #000;
    padding: 6px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn-reg:hover {
    background: #ace94b;
}

/* ==========================================
   MAIN NAV
   ========================================== */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5%;
    background: #121212;
    border-bottom: 1px solid #222;
    min-height: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: #ace94b;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ccc;
    transition: color .3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ace94b;
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #ccc;
    align-items: center;
}

.nav-icons i {
    cursor: pointer;
    transition: .3s;
}

.nav-icons i:hover {
    color: #ace94b;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: 0 0;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #ace94b;
    transition: .3s;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    display: block;
    padding: 70px 5%;
    border-bottom: 1px solid #1a1a1a;
}

#home-section.content-section {
    padding: 0 !important;
    max-width: 100% !important;
}

.content-section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HERO
   ========================================== */
.hero-banner {
    width: 100%;
    min-height: 620px;
    margin: 0;
    padding: 55px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #050505 0, #0b0d0b 55%, #050505 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 45px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 45px;
    text-align: left;
}

.hero-text {
    max-width: 650px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ace94b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #ace94b;
    box-shadow: 0 0 10px rgba(172, 233, 75, .8);
}

.hero-text h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -2px;
    font-weight: 900;
    text-align: left;
}

.hero-text h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #ace94b, #d7ff9b, #72ff9b);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 20px rgba(172, 233, 75, .12));
}

.hero-text p {
    max-width: 650px;
    margin: 28px 0;
    color: #929a94;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-top: 45px;
}

.hero-stat {
    min-width: 105px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }

.hero-stat strong {
    display: block;
    color: #ace94b;
    font-size: 22px;
    font-weight: 800;
}

.hero-stat small {
    display: block;
    margin-top: 5px;
    color: #777f79;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.hero-visual {
    min-height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-card {
    position: relative;
    width: min(470px, 100%);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(172, 233, 75, .25);
    background: #080c09;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 50px rgba(172, 233, 75, .07);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform .6s ease, box-shadow .6s ease;
}

.hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-8px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(172, 233, 75, .12);
}

.hero-image-card img {
    display: block;
    width: 100%;
    height: 470px;
    object-fit: cover;
    transition: transform .8s ease;
}

.hero-image-card:hover img {
    transform: scale(1.06);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .75) 100%);
}

.hero-image-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: #ace94b;
    filter: blur(110px);
    opacity: .12;
    animation: heroGlow 6s ease-in-out infinite;
}

.hero-particles,
.network-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.network-lines-svg { z-index: 1; }

.hero-particles .particle {
    position: absolute;
    display: block;
    width: 7px;
    height: 7px;
    background: #ace94b;
    box-shadow: 0 0 12px #ace94b, 0 0 24px #ace94b;
    border-radius: 50%;
    animation: floatNodeDots 7s linear infinite;
    opacity: 0;
}

.hero-particles .particle:nth-child(1) { left: 15%; animation-duration: 6s; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 35%; animation-duration: 9s; animation-delay: 2s; width: 9px; height: 9px; }
.hero-particles .particle:nth-child(3) { left: 55%; animation-duration: 7s; animation-delay: 1s; }
.hero-particles .particle:nth-child(4) { left: 75%; animation-duration: 8s; animation-delay: 3s; width: 6px; height: 6px; }
.hero-particles .particle:nth-child(5) { left: 88%; animation-duration: 10s; animation-delay: 1.5s; }
.hero-particles .particle:nth-child(6) { left: 45%; animation-duration: 5s; animation-delay: 2.5s; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background-color: #ace94b;
    color: #000;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(247, 147, 26, .3);
}

.btn-primary:hover {
    background-color: #ace94b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 247, 26, .5);
}

/* ==========================================
   CARDS & GRID
   ========================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #181818;
    border: 1px solid #2a2a2a;
    padding: 35px 30px;
    border-radius: 6px;
    transition: all .4s cubic-bezier(.165, .84, .44, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: #ace94b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
}

.card h3 {
    color: #ace94b;
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.section-title span { color: #ace94b; }

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 15px;
}

/* ==========================================
   TEAM CARDS
   ========================================== */
.team-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    text-align: center;
    padding: 0 0 25px;
    overflow: hidden;
    border-radius: 6px;
}

.team-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform .5s ease;
}

.team-card:hover img { transform: scale(1.05); }

.team-card h4 {
    color: #fff;
    font-size: 18px;
    padding: 0 20px;
}

.team-card span {
    color: #ace94b;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    padding: 0 20px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: #0a0a0a;
    border-top: 2px solid #222;
    padding: 60px 5% 20px;
    color: #888;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    border-bottom: 2px solid #ace94b;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: #ace94b; }

.copyright {
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    font-size: 13px;
}

.menu-close-btn { display: none; }
.mobile-auth-buttons { display: none; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: .1; }
    50% { transform: scale(1.15); opacity: .18; }
}

@keyframes ringRotate {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@keyframes floatNodeDots {
    0% { transform: translateY(110vh) scale(.4); opacity: 0; }
    15%, 85% { opacity: .9; }
    100% { transform: translateY(-15vh) scale(1.3); opacity: 0; }
}

/* ==========================================
   RIHPA SECTION
   ========================================== */
#rihpa-section.content-section {
    background-color: #0a0a0a;
    padding: 80px 5%;
    border-bottom: 1px solid #1a1a1a;
}

.rihpa-eyebrow {
    display: inline-block;
    color: #ace94b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.rihpa-divider {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.rihpa-divider-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ace94b, transparent);
}

/* ==========================================
   TOKEN 2.0.3.1 SECTION
   ========================================== */
#token-section.content-section {
    background-color: #0e0e0e;
    padding: 80px 5%;
    border-bottom: 1px solid #1a1a1a;
}

.token-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.token-header {
    text-align: center;
    margin-bottom: 60px;
}

.token-header .section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.token-header .section-title span { color: #ace94b; }

.token-intro {
    color: #bbb;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.token-intro strong { color: #ace94b; }

.token-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.token-feature-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.token-feature-card:hover {
    transform: translateY(-8px);
    border-color: #ace94b;
    box-shadow: 0 15px 40px rgba(172, 233, 75, 0.12);
}

.token-feature-icon {
    font-size: 42px;
    color: #ace94b;
    margin-bottom: 22px;
    display: inline-block;
}

.token-feature-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 700;
    text-align: center;
}

.token-feature-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.token-decentralized {
    text-align: center;
    margin-top: 70px;
}

.token-decentralized .rihpa-divider {
    margin: 0 0 50px;
}

.token-subtitle {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 15px 0 20px;
    text-align: center;
}

.token-subtitle span { color: #ace94b; }

.token-desc {
    color: #bbb;
    font-size: 17px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.token-desc strong { color: #ace94b; }

/* ==========================================
   OUR ECOSYSTEM SECTION (services-section)
   ========================================== */
#services-section.content-section {
    background-color: #121212;
    padding: 80px 5%;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}

#services-section .section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

#services-section .section-title span { color: #ace94b; }

#services-section .section-subtitle {
    text-align: center;
    color: #bbb;
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

#services-section > p {
    color: #999;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* ==========================================
   ALL RESPONSIVE RULES
   ========================================== */
@media (min-width: 1400px) {
    .hero-content { max-width: 1450px; padding: 0 55px; }
    .hero-banner { min-height: 650px; }
    .hero-image-card { width: 500px; }
    .hero-image-card img { height: 500px; }
}

@media (max-width: 1000px) {
    .hero-banner { min-height: auto; padding: 70px 0; }
    .hero-content {
        width: 100%;
        padding: 0 35px;
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }
    .hero-text { max-width: 800px; margin: 0 auto; }
    .hero-text h1 { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-visual { min-height: 450px; }
    .hero-image-card { width: min(520px, 90%); transform: none; }
}

@media (max-width: 900px) {
    .top-bar { display: none; }
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: #161616;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: .4s ease-in-out;
        z-index: 1002;
        padding: 40px 0;
        overflow-y: auto;
    }

    .nav-links.mobile-active { right: 0; }

    .menu-close-btn {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 30px;
        font-size: 32px;
        color: #ace94b;
        cursor: pointer;
        background: 0 0;
        border: none;
        z-index: 1005;
    }

    .hero-banner h1 { font-size: 32px; }
    .top-bar .auth-buttons { display: none; }

    .nav-links.mobile-active .mobile-auth-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        text-align: center;
        width: 85%;
    }

    .mobile-auth-buttons a {
        display: block;
        padding: 12px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 700;
        text-align: center;
    }

    .mobile-auth-buttons .btn-sign { background: #f1f1f1; color: #333; }
    .mobile-auth-buttons .btn-reg { background: #ace94b; color: #fff; }

    #rihpa-section.content-section,
    #token-section.content-section,
    #services-section.content-section {
        padding: 60px 5%;
    }

    .token-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .token-feature-card { padding: 32px 24px; }
    .token-header .section-title { font-size: 30px; }
    .token-subtitle { font-size: 24px; }
    .token-intro, .token-desc { font-size: 16px; }
    #services-section .section-title { font-size: 30px; }
    #services-section .section-subtitle { font-size: 16px; }
    #services-section > p { font-size: 15px; }
}

@media (max-width: 600px) {
    .hero-banner { min-height: auto; padding: 55px 0 50px; }
    .hero-content { width: 100%; padding: 0 18px; gap: 35px; }
    .hero-text h1 { font-size: 38px; line-height: 1; }
    .hero-text p { font-size: 13px; line-height: 1.7; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons button { width: 100%; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; margin-top: 30px; }
    .hero-stat { padding: 0 10px; border-right: none; }
    .hero-visual { min-height: 360px; }
    .hero-image-card { width: 100%; border-radius: 20px; }
    .hero-image-card img { height: 360px; }

    #rihpa-section.content-section,
    #token-section.content-section,
    #services-section.content-section {
        padding: 50px 4%;
    }

    .token-feature-grid { grid-template-columns: 1fr; gap: 18px; }
    .token-feature-card { padding: 28px 20px; }
    .token-feature-icon { font-size: 34px; }
    .token-feature-card h3 { font-size: 18px; }
    .token-header .section-title { font-size: 26px; }
    .token-subtitle { font-size: 20px; }
    .token-intro, .token-desc { font-size: 15px; line-height: 1.7; }
    .token-decentralized .rihpa-divider { margin-bottom: 35px; }
    .rihpa-divider { margin: 40px 0; }
    #services-section .section-title { font-size: 24px; }
    #services-section .section-subtitle { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
    #services-section > p { font-size: 14px; line-height: 1.7; }
}

/* ==========================================
   MOBILE: DISABLE JUSTIFICATION FOR READABILITY
   ========================================== */
@media (max-width: 768px) {
    p,
    .about-text,
    .token-intro,
    .token-desc,
    .token-feature-card p,
    .card p,
    .hero-text p,
    #services-section > p {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
        -ms-hyphens: none;
        word-spacing: normal;
    }
}