@font-face {
    font-family: 'regular';
    src: url('../fonts/regular.woff2') format('woff2');
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'bold';
    src: url('../fonts/bold.woff2') format('woff2');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000000;
    --near-black: #0a0a0a;
    --white: #ffffff;
    --white-dim: #a0a0a0;
    --gray: #505050;
    --purple: #8b5cf6;
    --purple-dim: #7c3aed;
    --purple-light: #c4b5fd;
    --purple-glow: rgba(139, 92, 246, 0.5);
    --border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-family: 'regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
    font-family: 'regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    line-height: 1.5;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 32px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar:hover {
    background: rgba(15, 15, 15, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

.navbar .logo {
    font-family: 'bold', sans-serif;
    font-size: 16px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.8));
    animation: logoGlow 3s ease-in-out infinite, gradientShift 4s ease infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.logo-icon {
    width: 20px;
    height: 20px;
    fill: var(--purple-light);
    flex-shrink: 0;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.8));
        opacity: 0.95;
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 1)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-pills {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-pill {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-pill:hover {
    color: var(--white);
}

.nav-pill:hover::before {
    opacity: 1;
}

.nav-pill-login {
    background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.nav-pill-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.flashes {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 360px;
}

.flash-success,
.flash-error,
.flash-warning {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 12px;
    letter-spacing: -0.01em;
}

.flash-success {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.flash-error {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.flash-warning {
    background: rgba(251, 146, 60, 0.08);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.2);
}

.mobile-menu {
    display: none;
}

.mobile-menu-button {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.mobile-dropdown {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    position: fixed;
    right: 12px;
    top: 50px;
    width: calc(100% - 24px);
    max-width: 240px;
    border-radius: 8px;
    border: 1px solid var(--border);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    opacity: 0;
}

.mobile-dropdown.show {
    max-height: 300px;
    opacity: 1;
}

.mobile-button {
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: var(--white);
    text-align: left;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-button:last-child {
    border-bottom: none;
}

.mobile-button:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

    .mobile-menu {
        display: flex;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'bold', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
}
