:root {
    --color-bg: #050505;
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --color-accent-violet: #8b5cf6;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #22d3ee;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
    z-index: -1;
}

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

/* NAV */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-glass-border);
    z-index: 1000;
}

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

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

.logo-x {
    height: 54px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: -2px;
    margin-top: -10px; /* Offset to align with the bold text */
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.accent-text {
    color: var(--color-accent-violet);
}


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

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

/* Invisible structural bridge to prevent hover loss between link and menu */
.dropdown::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -25px;
    height: 30px;
    z-index: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(15, 15, 15, 0.95);
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 1001;
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--color-text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-violet), var(--color-accent-blue));
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    opacity: 1 !important;
}

/* HERO */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--color-accent-violet), var(--color-accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
}

.btn-main-download {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: black;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-main-download:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.version-tag {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* WAVEFORM ANIMATION */
.hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 800px;
}

.waveform-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100px;
}

.waveform-bar {
    width: 4px;
    height: 20px;
    background: var(--color-accent-violet);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(even) {
    background: var(--color-accent-blue);
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3n) {
    background: var(--color-accent-cyan);
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 80px; }
}

/* FEATURES */
.features {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
}

.feature-card {
    padding: 3rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-icon svg {
    width: 32px;
}

.violet { background: rgba(139, 92, 246, 0.1); color: var(--color-accent-violet); }
.blue { background: rgba(59, 130, 246, 0.1); color: var(--color-accent-blue); }
.cyan { background: rgba(34, 211, 238, 0.1); color: var(--color-accent-cyan); }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* FOOTER */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-glass-border);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

/* ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { display: none; }
}
