:root {
    --primary: #0A192F;
    --primary-light: #112240;
    --primary-hover: #172a45;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #F8D15C;
    --accent-gold-soft: rgba(212, 175, 55, 0.1);
    --secondary: #1E293B;
    --accent: #E2E8F0;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --bg-light: #FFFFFF;
    --bg-muted: #F8FAFC;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border: 1px solid rgba(226, 232, 240, 0.8);
    --radius: 4px;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-dark: rgba(10, 25, 47, 0.9);

    /* Responsive Spacing Variables */
    --section-pad-x: 10%;
    --section-pad-y: 120px;
    --hero-h1-size: 5.5rem;
    --hero-p-size: 1.45rem;
    --section-h2-size: 3.5rem;
}

@media (max-width: 1024px) {
    :root {
        --section-pad-x: 5%;
        --section-pad-y: 100px;
        --hero-h1-size: 4rem;
        --section-h2-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad-x: 20px;
        --section-pad-y: 80px;
        --hero-h1-size: 3rem;
        --hero-p-size: 1.15rem;
        --section-h2-size: 2.2rem;
    }
}


/* Subtle Geometric Background for Sections */
.bg-geometric {
    background-image: radial-gradient(var(--accent-gold-soft) 1px, transparent 1px);
    background-size: 40px 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.hero h1,
.section-title h2 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* Header & Nav */
header {
    background: #fff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: var(--border);
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 5%;
    box-shadow: var(--shadow);
}

.logo img {
    height: 70px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a.active {
    color: var(--primary);
    font-weight: 600;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}

/* Dropdown arrow */
nav ul li.has-dropdown>a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

nav ul li.has-dropdown:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 15px;
}

nav ul li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--bg-muted);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dropdown-menu li a.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.auth-btns {
    display: flex;
    gap: 15px;
}

.cta-btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cta-btn-primary {
    background: var(--accent-gold);
    color: var(--primary);
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.cta-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-btn-primary:hover::after {
    left: 100%;
}

.cta-btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    box-shadow: inset 0 0 0 0 var(--accent-gold);
}

.cta-btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Market Data Ticker Tape */
.ticker-wrapper {
    display: block;
    border-bottom: var(--border);
    margin-top: 110px;
    /* Offset for fixed header */
}

/* Hero specific button overrides */
.hero .cta-btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hero .cta-btn-secondary:hover {
    background: #fff;
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--section-pad-y) + 40px) var(--section-pad-x) var(--section-pad-y);
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 100%), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-gold);
}

.hero h1 {
    font-size: var(--hero-h1-size);
    line-height: 1.1;
    margin-bottom: 35px;
    color: #fff;
}

.hero p {
    font-size: var(--hero-p-size);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 700px;
    font-weight: 300;
}

.hero-glow {
    position: absolute;
    right: -100px;
    bottom: -50px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-glow {
        display: none;
    }
}

/* Market Data Ticker */
.ticker-wrapper {
    background: #fff;
    border-bottom: var(--border);
}

/* Sections Global */
section {
    padding: var(--section-pad-y) var(--section-pad-x);
}

.section-title {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 45px;
    background: #fff;
    border: var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-gold);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--accent-gold-soft);
}

.card:hover::before {
    height: 100%;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-item {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: var(--border);
    display: flex;
    flex-direction: column;
}

.news-item .date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-item h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-item h4 a:hover {
    text-decoration: underline;
}

/* Sidebar Market Data */
.market-widget {
    background: var(--bg-muted);
    padding: 25px;
    border-radius: 4px;
}

/* About Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--section-pad-x) * 2);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-main-img {
    width: 100%;
    height: 550px;
    background: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold-soft);
}

.identity-card {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--primary);
    color: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--accent-gold);
    max-width: 320px;
    z-index: 5;
}

.identity-card h4 {
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
}

.about-title h2 {
    font-size: var(--section-h2-size);
    margin-bottom: 35px;
    line-height: 1.1;
}

.principle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Subpage Content Styles */
.standard-content {
    background: #fff;
    padding: var(--section-pad-y) var(--section-pad-x);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    font-size: 1.25rem;
    color: #333;
}

.content-wrapper h2 {
    font-size: var(--section-h2-size);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .content-wrapper {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

.principle-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.principle-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.principle-text h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.principle-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-info p,
.footer-info a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: block;
}

.footer-info a:hover {
    color: #fff;
}

.footer-partners {
    margin-bottom: 60px;
    text-align: center;
}

.footer-partners h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.partner-logos img {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 2px;
    border-radius: 4px;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.compliance {
    border-top: 1px solid #444;
    padding-top: 40px;
    font-size: 0.8rem;
    color: #aaa;
}

.compliance a {
    color: #ccc;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    font-size: 0.85rem;
    color: #888;
}

/* Auth Pages Styles */
.auth-body {
    background-color: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 480px;
    border: var(--border);
}

.login-card h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: var(--border);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-hover);
}

/* Auth Page Refinements */
.account-card {
    max-width: 650px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo img {
    height: 80px;
}

.auth-subtitle {
    margin-bottom: 30px;
    color: #666;
    text-align: center;
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kyc-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 4px;
    margin: 25px 0;
    border: 1px solid #eee;
}

.kyc-section h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: var(--primary);
}

.kyc-section p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.file-input {
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.file-status {
    display: block;
    margin-top: 5px;
    color: #28a745;
    font-weight: 600;
}

.auth-terms {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 580px) {
    .name-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .login-card {
        padding: 30px 20px;
    }

    .auth-logo img {
        height: 60px;
    }
}

/* Mobile Menu Toggle Base */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    .about-split {
        gap: 50px;
    }

    .hero {
        padding: 140px 5% 100px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 5% 80px;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero div[style*="display: flex"] {
        justify-content: center;
    }

    #about {
        padding: 80px 5% !important;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-image div[style*="height: 550px"] {
        height: 350px !important;
    }

    .about-image div[style*="position: absolute"] {
        position: relative !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: -40px 20px 0;
        max-width: 100% !important;
        padding: 25px !important;
    }

    .section-title h2 {
        font-size: 2.5rem !important;
        text-align: center;
    }

    .section-title p {
        font-size: 1rem !important;
    }

    .principle-item {
        text-align: left;
    }

    .about-content .section-title {
        text-align: center !important;
    }

    .about-content .cta-btn {
        width: 100%;
        display: block;
    }

    .ipo-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px;
    }

    .ipo-card {
        height: 300px !important;
    }

    .ipo-card h3 {
        font-size: 1.4rem !important;
    }

    .ipo-card p {
        font-size: 0.85rem !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 50px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        display: flex;
        padding: 40px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav ul li a {
        color: #fff !important;
        font-size: 1.8rem;
        font-family: 'Outfit', sans-serif;
    }


    nav.active {
        right: 0;
    }

    .auth-btns {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 15px 30px !important;
        font-size: 1rem !important;
    }
}

/* Ones to Watch Section Styles */
.ipo-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

.ipo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.ipo-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    #ones-to-watch {
        padding: var(--section-pad-y) var(--section-pad-x) !important;
    }

    .ipo-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto;
    }

    .ipo-card {
        height: 350px !important;
    }

    .ipo-card h3 {
        font-size: 1.8rem !important;
    }

    .ipo-card p {
        font-size: 1rem !important;
    }

    #ones-to-watch .section-title h2 {
        font-size: var(--section-h2-size) !important;
    }
}

/* Partner Logo Fix for Mobile */
@media (max-width: 480px) {
    .partner-logos {
        justify-content: center;
        gap: 10px;
    }

    .partner-logos img {
        height: 50px;
    }
}