:root {
    --primary: #ffffff;
    --secondary: #888888;
    --accent: #aaaaaa;
    --bg-dark: #000000;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
}

h1,
h2,
h3,
.logo,
.dex-app-logo,
.btn {
    font-family: var(--font-header);
    letter-spacing: 2px;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    bottom: -8px;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        border-left: 1px solid var(--border);
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-toggle:checked~nav {
        right: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    padding: 2rem;
    border-radius: 20px;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Solar System */
.solar-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fff, #555, #000);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.orbit:nth-child(2) {
    width: 300px;
    height: 300px;
}

.orbit:nth-child(3) {
    width: 450px;
    height: 450px;
}

.orbit:nth-child(4) {
    width: 600px;
    height: 600px;
}

.orbit:nth-child(5) {
    width: 800px;
    height: 800px;
}

.orbit:nth-child(6) {
    width: 1100px;
    height: 1100px;
}

.orbit:nth-child(7) {
    width: 1400px;
    height: 1400px;
}

.orbit:nth-child(8) {
    width: 1800px;
    height: 1800px;
}

.orbit:nth-child(9) {
    width: 2200px;
    height: 2200px;
}

@media (max-width: 900px) {
    .orbit:nth-child(n+6) {
        display: none;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

.hero-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
}

.social-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* Features */
.features {
    padding: 100px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    border-color: #fff;
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-card li {
    margin-bottom: 0.5rem;
}

.feature-card .highlight {
    color: #fff;
    font-weight: 700;
    display: block;
}

/* DEX Section */
.dex-section {
    padding: 100px 0;
    text-align: center;
}

.dex-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.dex-preview {
    margin-top: 4rem;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.dex-coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: #fff;
    color: #000;
    padding: 1rem 3rem;
    font-weight: 900;
    font-size: 1.5rem;
    z-index: 100;
    border-radius: 10px;
}

.dex-ui {
    background: #000;
    border-radius: 30px;
    min-height: 600px;
    display: flex;
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
}

@media (max-width: 900px) {
    .dex-ui {
        flex-direction: column;
        min-height: auto;
    }
}

.dex-sidebar-nav {
    width: 70px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .dex-sidebar-nav {
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: center;
    }
}

.dex-nav-item {
    color: var(--text-muted);
    cursor: pointer;
}

.dex-nav-item.active {
    color: #fff;
}

.dex-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dex-app-header {
    height: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

@media (max-width: 600px) {
    .dex-app-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
}

.dex-search {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 200px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.dex-wallet-btn {
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Dashboard */
.dex-dashboard {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .dex-dashboard {
        grid-template-columns: 240px 1fr;
    }

    .dex-col-right {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .dex-dashboard {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .dex-col-right {
        grid-column: span 1;
    }

    .dex-col-left {
        order: 2;
    }

    .dex-col-main {
        order: 1;
    }

    .dex-col-right {
        order: 3;
    }
}

.dex-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.dex-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.dex-portfolio-val {
    font-size: 1.5rem;
    font-weight: 900;
}

.dex-chart-mini {
    height: 40px;
    border-bottom: 1px solid #4ade80;
    margin-top: 1rem;
}

.whale-item {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.algo-selection {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.algo-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    text-align: center;
}

.algo-option.active {
    background: #fff;
    color: #000;
}

/* Chart container */
.dex-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dex-chart-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.dex-chart-main {
    height: 250px;
    position: relative;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.02));
}

.dex-chart-line {
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    bottom: 40%;
    box-shadow: 0 0 10px #fff;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.order-side {
    height: 100px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
}

/* Swap Panel */
.swap-tabs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.swap-input {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dex-btn {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #000;
    border-radius: 10px;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}