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

/* Variables */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #1db954;
    --accent-hover: #1ed760;
    --gray-dark: #121212;
    --gray-light: #b3b3b3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(29, 185, 84, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(100, 100, 255, 0.05), transparent 25%);
}



/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links a {
    text-decoration: none;
    color: #ddd;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.links a:hover {
    color: white;
}

.btn-download {
    background: white;
    color: black !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700 !important;
    transition: transform 0.3s;
}

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

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px 8% 50px;
    background: transparent;
    position: relative;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
    z-index: 5;
    animation: fadeIn 1s ease-out;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.primary {
    background-color: var(--accent-color);
    color: black;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.6);
}

.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Device Showcase Wrapper */
.device-showcase {
    flex: 1.5;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 500px;
    height: 600px;
}

/* --- Laptop CSS Frame --- */
.laptop-wrapper {
    width: 712px;
    height: 400px;
    background: #000;
    border: 12px solid #333;
    border-radius: 12px 12px 0 0;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.laptop-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #121212;
    position: relative;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.laptop-screen img.active {
    opacity: 1;
}

.laptop-base {
    position: absolute;
    bottom: -25px;
    left: -60px;
    width: 832px;
    height: 25px;
    background: #333;
    border-radius: 0 0 15px 15px;
}

.laptop-base::after {
    /* Trackpad indentation */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 8px;
    background: #222;
    border-radius: 0 0 5px 5px;
}

/* --- Phone CSS Frame --- */
.phone-wrapper {
    width: 233px;
    height: 380px;
    background: #000;
    border: 8px solid #111;
    border-radius: 25px;
    position: absolute;
    bottom: -30px;
    right: 20px;
    /* Overlap Position */
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #121212;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.phone-screen img.active {
    opacity: 1;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #111;
    border-radius: 0 0 10px 10px;
    z-index: 11;
}

/* Features */
.features {
    padding: 100px 8%;
    background: #080808;
    text-align: center;
}

.features h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
    background: rgba(29, 185, 84, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.feature-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: white;
}

.feature-text p {
    margin: 0;
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

footer {
    padding: 40px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-text {
        padding: 0;
        margin-bottom: 50px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .device-showcase {
        transform: scale(0.7);
        height: 400px;
        margin-top: -50px;
    }

    .phone-wrapper {
        right: -20px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
        /* Add background for readability */
        backdrop-filter: blur(10px);
    }

    .links {
        display: flex;
        flex-direction: row;
        /* Keep links in a row but below logo */
        gap: 15px;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        justify-content: center;
    }

    .links a {
        margin-left: 0;
        /* Remove default margin */
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Reduce font size slightly more */
    }

    .device-showcase {
        transform: scale(0.55);
        transform-origin: top center;
        height: 550px;
        /* Increase height for unscaled content */
        margin-top: 20px;
        margin-bottom: -250px;
        /* Remove gap caused by scaling */
        width: 100%;
        min-width: auto;
        overflow: visible;
    }

    .phone-wrapper {
        right: -50px;
        /* Adjust for smaller scale overlap */
    }

    .laptop-base {
        width: 760px;
        /* Slightly tighter base for mobile visual */
        left: -24px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}