/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Finance & Tokenization Theme */
    --bg-primary: #050a14;
    --bg-secondary: #0a1628;
    --bg-card: rgba(15, 30, 55, 0.6);

    /* Deep institutional blue with gold accent */
    --accent-primary: #1e4a8f;
    --accent-secondary: #2d6bc4;
    --accent-gold: #d4a853;
    --accent-gold-light: #e8c77b;
    --accent-teal: #0d9488;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, #fff 100%);
    --gradient-blue: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-glow: radial-gradient(circle, rgba(212, 168, 83, 0.2) 0%, transparent 70%);
}

html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Gradient Orbs - Refined for finance theme */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30, 74, 143, 0.5) 0%, transparent 70%);
    top: -250px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.25) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -8s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -25px) scale(1.03);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.97);
    }

    75% {
        transform: translate(-25px, -15px) scale(1.01);
    }
}

.orb-3 {
    animation-name: floatCenter;
}

@keyframes floatCenter {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    25% {
        transform: translate(-47%, -53%) scale(1.05);
    }

    50% {
        transform: translate(-53%, -47%) scale(0.95);
    }

    75% {
        transform: translate(-49%, -51%) scale(1.02);
    }
}

/* Floating Token Blocks */
.token-blocks {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.token-block {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    background: linear-gradient(135deg, rgba(30, 74, 143, 0.1) 0%, rgba(212, 168, 83, 0.05) 100%);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    animation: floatBlock 20s ease-in-out infinite;
}

.token-block::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 4px;
}

.token-block:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.token-block:nth-child(2) {
    top: 70%;
    left: 8%;
    width: 45px;
    height: 45px;
    animation-delay: -5s;
    animation-duration: 18s;
}

.token-block:nth-child(3) {
    top: 25%;
    right: 12%;
    width: 50px;
    height: 50px;
    animation-delay: -10s;
    animation-duration: 24s;
}

.token-block:nth-child(4) {
    top: 65%;
    right: 15%;
    animation-delay: -15s;
    animation-duration: 20s;
}

.token-block:nth-child(5) {
    top: 45%;
    left: 5%;
    width: 40px;
    height: 40px;
    animation-delay: -8s;
    animation-duration: 26s;
}

.token-block:nth-child(6) {
    top: 80%;
    right: 8%;
    width: 35px;
    height: 35px;
    animation-delay: -12s;
    animation-duration: 19s;
}

@keyframes floatBlock {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(10px) rotate(-3deg);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.7;
    }
}

/* Connection Lines */
.connection-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.connection-lines svg {
    width: 100%;
    height: 100%;
}

.connection-line {
    stroke: url(#lineGradient);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 8 4;
    animation: dashMove 30s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -200;
    }
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Blockchain grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Logo Container */
.logo-container {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: var(--gradient-glow);
    z-index: -1;
    filter: blur(50px);
    opacity: 0.9;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

/* Tagline */
.tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Subtitle */
.subtitle {
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.5s both;
}

.subtitle span {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Asset badges */
.asset-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    animation: fadeIn 1s ease-out 0.7s both;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: rgba(212, 168, 83, 0.5);
    background: rgba(212, 168, 83, 0.1);
    transform: translateY(-2px);
}

.badge-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 4px;
    font-size: 10px;
}

.badge-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--bg-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-orb {
        filter: blur(80px);
    }

    .orb-1 {
        width: 450px;
        height: 450px;
    }

    .orb-2 {
        width: 400px;
        height: 400px;
    }

    .orb-3 {
        width: 350px;
        height: 350px;
    }

    .token-block {
        display: none;
    }

    .token-block:nth-child(1),
    .token-block:nth-child(4) {
        display: block;
    }

    .asset-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .token-block {
        display: none;
    }
}