@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root {
    /* Color Palette */
    --bg-deep: #0B0E11;
    --bg-surface: #1B1E23;
    --bg-glass: rgba(255, 255, 255, 0.03);

    --primary: #00F2FF;
    --primary-glow: rgba(0, 242, 255, 0.3);
    --secondary: #7000FF;
    --secondary-glow: rgba(112, 0, 255, 0.3);

    --accent: #FF00E5;
    --success: #00FF88;
    --warning: #FFB800;
    --error: #FF4D4D;

    --text-main: #FFFFFF;
    --text-dim: #B0B0B0;
    --text-muted: #666666;

    --border: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.2);

    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Gradients */
.grad-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Mobile Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
    /* overflow-y: auto; */
    padding-right: 5px;
    /* space for scrollbar */
}

.drawer-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.1);
}

.drawer-footer {
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.drawer-open {
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.grad-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.grad-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 12px;
}

.grad-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Components */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-base);
}

.glass-panel:hover {
    border-color: var(--border-bright);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 80px;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dim);
}

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

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-auth {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 0 1.5rem;
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Calculator Specific */
.staking-calc-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.staking-calc-input:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

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

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