:root {
    --bg-color: #0f0c15;
    --text-color: #e0d9f0;
    --primary: #9b51e0;
    --secondary: #00d2ff;
    --accent: #ff007a;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.05em;
}

.links {
    display: flex;
    align-items: center;
}

.links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-login {
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: var(--glass);
    color: var(--text-color);
    cursor: pointer;
    margin-left: 2rem;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Info in Nav */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 2rem;
    background: var(--glass);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.user-name {
    font-weight: 700;
    color: var(--secondary);
}

.user-balance {
    color: #ffd700;
    font-weight: 700;
}

.btn-logout {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-logout:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    padding: 4rem 0;
}

.hero-content {
    max-width: 50%;
}

.badge {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.2rem;
    color: rgba(224, 217, 240, 0.7);
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 1rem;
    cursor: pointer;
}

/* Visuals */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    width: 200px;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;\n    right: 0;
    animation-delay: 3s;
}

.icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.details {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: 700;
    font-size: 0.9rem;
}

.price {
    font-size: 0.8rem;
    color: var(--secondary);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Features */
#features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on large screens */
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    #features {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

.feature-card {
    background: var(--glass);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: background 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

footer {
    margin-top: 6rem;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: rgba(224, 217, 240, 0.5);
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1625;
    margin: 15% auto; 
    padding: 2rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(155, 81, 224, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

input[type="text"] {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}
