:root {
    /* Premium Color Palette */
    --bg-dark: #0f0518;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --primary-gradient: linear-gradient(135deg, #FF2E93 0%, #FF8B2D 100%);
    --secondary-gradient: linear-gradient(135deg, #6E3AFF 0%, #00D2FF 100%);
    --glow-primary: rgba(255, 46, 147, 0.4);
    --glow-secondary: rgba(110, 58, 255, 0.4);

    /* Typography */
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(110, 58, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 46, 147, 0.15) 0%, transparent 25%);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(15, 5, 24, 0.7);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--glass-border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--glow-primary);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(255, 46, 147, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.store-btn {
    transition: var(--transition-smooth);
}

.store-btn:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 10px 20px var(--glow-secondary));
}

.store-btn img {
    height: 80px;
    border-radius: 8px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    width: 300px;
    height: 300px;
    background: var(--glow-primary);
    top: 10%;
    right: -20%;
}

.float-2 {
    width: 250px;
    height: 250px;
    background: var(--glow-secondary);
    bottom: 10%;
    left: -10%;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Features Section */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: inherit;
    /* use default emoji color */
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* How it Works */
.how-it-works {
    padding: 8rem 0;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.phone-card {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    border: 4px solid #2a2a2a;
    position: relative;
    box-shadow:
        0 0 0 2px #4a4a4a,
        0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phone-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 0 0 2px var(--glow-secondary),
        0 30px 60px rgba(110, 58, 255, 0.2);
    border-color: #2a2a2a;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

/* Ensure images scale responsively */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.app-screenshot {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.step-info {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    box-shadow: 0 0 20px rgba(110, 58, 255, 0.2);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    z-index: -1;
}

/* Testimonials Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 350px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: var(--glass-border);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu later if needed */
    }

    .nav-toggle {
        display: block;
    }
}

/* Legal Pages */
.legal-page {
    background: var(--bg-dark);
    padding: 2rem;
}

.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
}

.legal-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-intro {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.legal-container section {
    margin-bottom: 2.5rem;
}

.legal-container h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-container p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    z-index: 100;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.legal-updated {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}