/* VibeSync Landing Page Design System */
:root {
    /* Colors */
    --primary-purple: hsl(262, 83%, 58%);
    --primary-purple-dark: hsl(262, 83%, 48%);
    --primary-purple-light: hsl(262, 83%, 68%);
    
    --secondary-blue: hsl(198, 93%, 60%);
    --secondary-blue-dark: hsl(198, 93%, 50%);
    
    --accent-pink: hsl(330, 85%, 65%);
    --accent-pink-dark: hsl(330, 85%, 55%);
    --accent-yellow: hsl(45, 100%, 65%);
    --accent-yellow-dark: hsl(45, 100%, 55%);
    
    --bg-primary: hsl(240, 10%, 8%);
    --bg-secondary: hsl(240, 10%, 12%);
    --bg-tertiary: hsl(240, 10%, 16%);
    
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(0, 0%, 70%);
    --text-muted: hsl(0, 0%, 50%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;
    
    /* Spacing */
    --unit: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-xxl: 128px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(162, 89, 255, 0.3);
    
    /* Font */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-yellow);
}

.text-purple {
    color: var(--primary-purple-light);
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(162, 89, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(162, 89, 255, 0.6); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    width: 40px;
    height: 40px;
}

header .logo-image {
    width: 56px;
    height: 56px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost:hover {
    color: var(--primary-purple-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
    color: white;
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 89, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
    background: none;
}

/* Hero Section */
.hero {
    padding: 180px 48px 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at top, hsl(262, 83%, 15%), hsl(240, 10%, 8%));
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    padding-right: 48px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(162, 89, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.3);
    color: var(--primary-purple-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 24px;
    font-weight: 500;
}

h1.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.style-italic {
    font-style: italic;
    font-family: serif; /* Fallback for italic vibe */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    width: 50%;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 48px;
    border: 8px solid #333;
    position: relative;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    transform: perspective(1000px) rotateY(-15deg);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    z-index: 10;
}

.mockup-header {
    height: 40px;
    background: #111;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notch {
    width: 120px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
}

/* Pseudo UI inside mockups */
.app-header {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-chat-list {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
.avatar-1 { background-image: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.avatar-2 { background-image: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.avatar-3 { background-image: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 5;
}

.shape-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

/* Features Section */
.features {
    padding: 80px 48px 120px;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card.large {
    grid-row: span 2;
    padding: 40px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 120px 48px;
    background: radial-gradient(ellipse at center, hsl(262, 83%, 12%), hsl(240, 10%, 8%));
}

.steps-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 80px;
}

.steps-timeline::before {
    /* content: ''; */
    position: absolute;
    top: 40px;
    left: 100px;
    right: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 50%);
    background-size: 20px 100%;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 0 20px;
    text-align: center;
    max-width: 360px; /* Increased max-width for better breathing room */
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 1; /* Increased opacity for better visibility */
    line-height: 1;
    margin-bottom: 32px;
    font-family: var(--font-primary);
    display: inline-block;
    padding: 0 16px; /* Padding to mask the line effectively */
    position: relative;
    z-index: 2;
}

.step-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px; /* Increased radius */
    padding: 40px 32px; /* Increased padding */
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-content:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Testimonials */
.testimonials {
    padding: 64px 48px; /* Reduced from 120px */
    background: var(--bg-primary);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 24px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 100%;
    scroll-snap-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-purple);
    transform: scale(1.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.user-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: var(--accent-yellow);
    margin-bottom: 16px;
}

/* CTA Section */
/* Mobile Menu Overlay is below this */

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-btn {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ... existing cta styles ... */

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-heading {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-purple-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

/* Footer */
footer {
    background: hsl(240, 10%, 6%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 48px 32px;
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 15vw;
    font-weight: 800;
    /* line-height: 1; */
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 40px 0 60px;
    opacity: 0.3;
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-title {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    h1.hero-title { font-size: 3.5rem; }
    .hero-content { width: 100%; padding-right: 0; text-align: center; }
    .hero-visual { display: none; }
    .hero { flex-direction: column; padding-top: 140px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-timeline { flex-direction: column; gap: 48px; }
    .steps-timeline::before { display: none; }
    .step-item { max-width: 100%; }
    .cta-heading { font-size: 3rem; }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    /* Header adjustments */
    header { 
        padding: 0 24px; 
        background: rgb(10, 10, 20); /* Solid background on mobile to prevent transparency issues */
    }
    
    .nav-menu, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    
    /* Hero adjustments */
    .hero { 
        padding: 80px 24px 80px; /* Balanced padding */
        justify-content: center; /* Center content vertically */
    }
    h1.hero-title { font-size: 2.25rem; } /* Slightly smaller for better fit */
    .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
    
    .hero-actions {
        flex-wrap: nowrap;
        width: 100%;
        gap: 12px;
        margin-top: 24px;
    }
    
    .hero-btn {
        flex: 1;
        padding: 14px 12px;
        font-size: 0.95rem;
        justify-content: center;
        white-space: nowrap;
    }

    .hero-stats { 
        justify-content: center; 
        gap: 24px; 
        flex-wrap: wrap; 
        margin-top: 40px; 
    }
    
    /* Features adjustments */
    .features { padding: 64px 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.large { grid-row: auto; padding: 32px; min-height: auto; }
    .section-header h2 { font-size: 2.25rem !important; }
    
    /* Steps timeline adjustments */
    .how-it-works { padding: 80px 24px; }
    .step-item { max-width: 100%; margin-bottom: 32px; }
    .step-number { font-size: 3rem; margin-bottom: 16px; }
    
    /* Testimonials adjustments */
    .testimonials { padding: 64px 24px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 24px; }
    
    /* CTA adjustments */
    .cta-section { padding: 80px 24px; }
    .cta-heading { font-size: 2.5rem; }
    
    /* Footer adjustments */
    footer { padding: 64px 24px 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }

    /* Mobile Menu Overlay */
    .nav-menu.mobile-open {
        display: flex;
        position: fixed;
        top: 80px; /* Start exactly below header */
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 80px); /* Fill remaining height */
        background: rgb(10, 10, 20); /* Solid color, no transparency */
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        border-bottom: none;
        box-shadow: none;
        z-index: 998; /* Below header (1000) */
        animation: fadeIn 0.3s ease-out;
        justify-content: flex-start; /* Start from top */
        align-items: center;
        gap: 32px;
        overflow-y: auto; /* Allow scrolling inside menu if tall */
    }

    .nav-menu.mobile-open .nav-link {
        font-size: 1.5rem;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: center;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
