@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #818cf8;
    --accent-hover: #6366f1;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More subtle */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 25%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 25%, 1) 0, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.15), transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

ul {
    list-style: none;
    margin-bottom: 0;
    /* Remove bottom margin for cleaner cards */
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
}

li:last-child {
    margin-bottom: 0;
}

li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

strong {
    color: var(--text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    text-decoration: none;
}

/* Header/Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 2.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #fff;
    transform: scale(1.02);
}

.logo img {
    width: auto;
    height: 120px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Landing Page */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    min-width: 320px;
    z-index: 2;
}

.hero-image {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.phone-mockup {
    background: #0f172a;
    border-radius: 48px;
    padding: 12px;
    box-shadow:
        0 0 0 4px #334155,
        0 0 0 8px #1e293b,
        0 50px 100px -20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: translateY(-5px);
}

.phone-mockup img {
    border-radius: 36px;
    display: block;
    width: 100%;
    height: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2.5rem;
    box-shadow: 0 4px 20px 0 rgba(129, 140, 248, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px 0 rgba(129, 140, 248, 0.6);
    color: #fff;
    text-decoration: none;
}

/* Features Grid (New Clean Layout) */
.features {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Icons with Glow */
.feature-card h3 .icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.4));
    transition: transform 0.3s ease;
}

.feature-card:hover h3 .icon {
    transform: scale(1.1);
}

.feature-card h3 .text {
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Screenshots Gallery */
.screenshots {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.screenshots.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-grid {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 3rem 1rem;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.screenshot-grid img {
    height: 550px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.screenshot-grid img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    background: rgba(15, 23, 42, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile Responsiveness (Critical Updates) */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Slightly smaller min width */
    }

    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    .logo img {
        height: 60px !important;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        text-align: center;
        flex-direction: column-reverse;
        padding: 4rem 1.5rem;
        padding-top: 8rem;
        /* ENSURE GAP for navbar */
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(15, 23, 42, 0.95);
    }

    .nav-links {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .screenshot-grid img {
        height: 300px;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 1rem;
    }
}