/* --- 1. Variables & Global Reset --- */
:root {
    --black: #000000;
    --dark-grey: #0a0a0a;
    --blue: #00a2ff;
    --blue-dark: #0051ff;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- 2. Ambient Background Effects --- */
.glow-top {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.glow-bottom {
    position: fixed;
    bottom: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 81, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- 3. Navigation (Glassmorphism) --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo span { color: var(--blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- 4. Hero Section --- */
.hero {
    padding: 180px 10% 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    color: var(--text-dim);
    max-width: 550px;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

/* --- 5. Refined Button Architecture --- */

/* Primary White Button */
.btn-primary {
    background: #ffffff;
    color: #000000;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

/* Secondary Ghost Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Nav specific small button */
.btn-primary-sm {
    background: linear-gradient(180deg, #1e1e1e 0%, #000 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.btn-primary-sm:hover {
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
}

/* Massive Download Button with Shimmer Effect */
.download-btn-massive {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    text-decoration: none;
    padding: 1.4rem 4.5rem;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn-massive::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg);
    transition: all 0.7s ease;
}

.download-btn-massive:hover::after {
    left: 130%;
}

.download-btn-massive:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 112, 243, 0.3);
}

.version-tag {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 4px;
    font-weight: 400;
}

/* --- 6. Bento Grid (Features) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    padding: 4rem 10%;
}

.bento-item {
    background: var(--dark-grey);
    border: 1px solid var(--border);
    padding: 2.2rem;
    border-radius: 20px;
    transition: 0.4s ease;
}

.bento-item:hover {
    border-color: var(--blue);
    background: rgba(0, 162, 255, 0.015);
}

.wide { grid-column: span 2; }
.tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }

.bento-item h3 {
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.bento-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- 7. Download Card Section --- */
.cta-section {
    padding: 80px 10% 120px;
}

.cta-card {
    background: linear-gradient(145deg, #080808 0%, #000 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.border-beam {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    animation: beam 4s linear infinite;
}

@keyframes beam {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- 8. Footer --- */
footer {
    text-align: center;
    padding: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- 9. Animations --- */
.reveal {
    animation: reveal linear forwards;
    animation-timeline: view();
    animation-range: entry 50px crossing 150px;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .wide { grid-column: span 1; }
    .hero { padding-top: 140px; }
    h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
}