/* Design System & Variables */
:root {
    /* Colors - Deep Space Theme */
    --bg-dark: #0a0a0a;
    /* Deep black */
    --bg-darker: #000000;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab2;

    /* Brand Colors */
    --primary: #FFB800;
    /* Lunabix Gold */
    --primary-light: #FFD25F;
    --secondary: #E89E00;
    /* Darker Gold */
    --accent: #FFA500;
    /* Star Orange */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(255, 184, 0, 0.4), rgba(232, 158, 0, 0.4));

    /* Base Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.glass {
    background: rgba(15, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(25, 30, 45, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.5);
    color: var(--bg-darker);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Background Effects */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -2;
    opacity: 0.5;
    animation: twinkle 15s linear infinite;
}

@keyframes twinkle {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 20px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 50px) scale(0.9);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-fast);
    padding: 1.25rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(7, 9, 20, 0.85);
    /* Darker on scroll */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary);
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    text-align: center;
    padding: var(--space-sm);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed nav */
    gap: var(--space-xl);
    position: relative;
}

.hero-content {
    padding-left: var(--space-lg);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.avatars {
    display: flex;
}

.avatars img,
.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -15px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatar-more {
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-light);
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    border-radius: 40px;
    padding: 10px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.app-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-darker);
    position: relative;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 184, 0, 0.1) 0%, rgba(10, 10, 10, 1) 100%);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    z-index: 3;
    animation: float 6s infinite ease-in-out alternate;
}

.floating-badge i {
    font-size: 1.5rem;
}

.badge-1 {
    top: 20%;
    left: -10%;
    animation-delay: -2s;
}

.badge-2 {
    bottom: 30%;
    right: -5%;
    animation-delay: -4s;
}

.floating-badge strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.floating-badge span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sections Common */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
}

.icon-natal {
    color: var(--primary);
    background: rgba(255, 184, 0, 0.1);
}

.icon-daily {
    color: var(--secondary);
    background: rgba(232, 158, 0, 0.1);
}

.icon-compat {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

.icon-chat {
    color: var(--accent);
    background: rgba(255, 165, 0, 0.1);
}

/* How It Works Section */
.how-it-works {
    position: relative;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: var(--space-lg) 0;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Connector line between steps */
.connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.2), rgba(232, 158, 0, 0.2));
    margin-top: 4rem;
    /* Align roughy with step numbers */
    display: none;
    /* Hide on small screens, show on desktop */
}

@media (min-width: 768px) {
    .connector {
        display: block;
    }
}

/* Download Section */
.download-section {
    padding-bottom: calc(var(--space-xl) * 2);
}

.download-card {
    background: linear-gradient(135deg, rgba(29, 23, 10, 0.6) 0%, rgba(45, 30, 0, 0.6) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 184, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.download-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.download-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.download-content .hero-cta {
    justify-content: center;
    margin-bottom: 0;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(3, 4, 9, 0.8);
    padding-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: space-around;
    gap: var(--space-lg);
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-column h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.link-column a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* CSS Animations & Interactivity */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-visual {
        margin-top: var(--space-xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto var(--space-md);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger */
    }

    .mobile-menu {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 300px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}