:root {
    /* Color Palette - Premium Crypto Gold */
    --bg-body: #050505;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a1505 0%, #050505 60%);

    --bg-surface: rgba(20, 20, 20, 0.6);
    --bg-surface-hover: rgba(30, 30, 30, 0.8);
    --bg-input: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;

    --brand-gold: #D4AF37;
    --brand-gold-bright: #FFD700;
    --brand-gold-muted: #8a702a;

    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-text-gradient: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7);
    --card-gradient: linear-gradient(180deg, rgba(30, 30, 30, 0) 0%, rgba(212, 175, 55, 0.05) 100%);

    /* Trading Colors */
    --trade-buy: #00E396;
    --trade-sell: #FF4560;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(212, 175, 55, 0.3);

    --font-heading: 'Public Sans', sans-serif;
    --font-body: 'Public Sans', sans-serif;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-body);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--brand-gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Typography Enhancements */
.text-gradient-gold {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800;
}

.text-green {
    color: var(--trade-buy) !important;
    text-shadow: 0 0 10px rgba(0, 227, 150, 0.3);
}

.text-red {
    color: var(--trade-sell) !important;
    text-shadow: 0 0 10px rgba(255, 69, 96, 0.3);
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-outline {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-gold);
    color: var(--brand-gold);
}

.btn-outline:hover {
    background: var(--brand-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Navbar */
.navbar-custom {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
}

/* Background grid animation */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Cards */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-gradient);
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

/* Ticker */
.market-ticker-wrap {
    background: rgba(20, 20, 20, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.ticker-item {
    font-family: 'Courier New', monospace;
    /* Tech feel */
    font-weight: 600;
}

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) perspective(1000px) rotateX(2deg);
    }

    50% {
        transform: translateY(-15px) perspective(1000px) rotateX(2deg);
    }

    100% {
        transform: translateY(0px) perspective(1000px) rotateX(2deg);
    }
}

.hero-img-animate {
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}