:root {
    
    --bg-dark: #07070a;
    --bg-card: rgba(18, 18, 30, 0.4);
    --primary: #9b8fff;
    --primary-glow: rgba(155, 143, 255, 0.4);
    --border: rgba(42, 42, 58, 0.6);
    --border-hover: rgba(155, 143, 255, 0.5);
    
    --text-main: #ffffff;
    --text-muted: #8b8b9b;
    --success: #4ade80;
    --gold: #fbbf24;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Background Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.primary-orb {
    top: 10%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.secondary-orb {
    bottom: 0%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #5b4dbf 0%, transparent 70%);
}
.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.inline-block { display: inline-block; }

/* Typography */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}
.massive-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.animated-gradient {
    background: linear-gradient(270deg, var(--primary), #ffffff, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-play-badge { transition: transform 0.2s; display: inline-flex; }
.nav-play-badge:hover { transform: scale(1.05); }

/* Play Button with Moving Gradient Border */
.animated-border {
    position: relative;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
    display: inline-flex;
}
.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.animated-border:hover::before { opacity: 1; }
.play-btn-wrapper {
    background: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    padding: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 4rem;
}
.hero-content { flex: 1.2; margin-top: 4rem; }
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
    font-weight: 400;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(155, 143, 255, 0.1);
    border: 1px solid rgba(155, 143, 255, 0.2);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* Hero Phone Visuals */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    margin-top: 4rem;
}
.floating-phone {
    position: relative;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
}
.phone-mockup {
    width: 300px;
    height: 600px;
    border-radius: 44px;
    padding: 10px;
    background: #1a1a24;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        -20px 20px 60px rgba(0,0,0,0.8),
        0 0 40px rgba(155, 143, 255, 0.2),
        inset 0 0 20px rgba(255,255,255,0.05);
}
.mockup-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mockup-app-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(155, 143, 255, 0.3);
}
.mockup-app-title {
    font-size: 1.8rem;
    font-weight: 700;
}
.mockup-app-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.floating-badge {
    position: absolute;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.top-right { top: 15%; right: -20%; transform: translateZ(50px); }
.bottom-left { bottom: 20%; left: -30%; transform: translateZ(30px); }
@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateY(-8deg) rotateX(8deg); }
}

/* How It Works Section */
.how-it-works {
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.step-card {
    position: relative;
    padding: 1rem;
}
.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: 0;
    z-index: -1;
}
.step-image {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    max-height: 550px;
    background: #000;
    border-radius: 28px;
    margin-bottom: 2rem;
    border: 4px solid #1a1a24;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
}
.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.step-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Bento Box Grid */
.features-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

/* Interactive Spotlight Cards */
.spotlight-card {
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid transparent;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(155, 143, 255, 0.08), 
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}
.spotlight-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;  
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y), 
        rgba(155, 143, 255, 0.6), 
        rgba(255, 255, 255, 0.05) 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}
.spotlight-card:hover::before,
.spotlight-card:hover .spotlight-border {
    opacity: 1;
}
.bento-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
}
.bento-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(155, 143, 255, 0.1);
}
.large-icon { width: 96px; height: 96px; border-radius: 24px; color: var(--primary); }
.bento-title { font-size: 1.5rem; margin-bottom: 1rem; }
.bento-text { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }


.reviews-section {
    width: 100vw;
    margin: 4rem 0;
    padding: 4rem 0;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.5);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.marquee-wrapper {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.reviews-marquee-container {
    display: flex;
    width: fit-content;
    animation: marquee 35s linear infinite;
}
.reviews-marquee-container:hover { animation-play-state: paused; }
.reviews-track {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
}
.review-card {
    width: 400px;
    padding: 2.5rem;
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}
.stars { color: var(--gold); font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-size: 1.1rem; color: #e2e2e8; line-height: 1.6; margin-bottom: 2rem; }
.review-author { color: var(--primary); font-weight: 600; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

 
.cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}
.cta-container {
    position: relative;
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at top, rgba(30, 30, 45, 0.4), transparent 70%);
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

 
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem;
    background: #030305;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

 
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 { grid-column: span 2; }
    .row-span-2 { grid-row: span 1; }
    
    .hero { gap: 2rem; padding: 0 2rem; }
    .hero-title { font-size: clamp(3rem, 5vw, 4rem); }
}

 
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        height: auto;
    }
    .hero-title { font-size: 3rem; }
    .hero-content { margin-top: 0; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-image-container { margin-top: 3rem; width: 100%; perspective: none; }
    .floating-phone { transform: none; animation: float-simple 6s ease-in-out infinite; }
    @keyframes float-simple {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    .floating-badge { display: none; }
    
    .how-it-works { margin: 6rem auto 2rem; padding: 0 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 4rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 { grid-column: span 1; }
    .row-span-2 { grid-row: span 1; }
    .bento-content { padding: 2rem; }
    .massive-heading { font-size: 2.2rem; }
    
    .reviews-section { padding: 2rem 0; margin: 2rem 0; }
    .review-card { width: 85vw; padding: 1.5rem; }
    
    .cta-container { padding: 4rem 1rem; border-radius: 24px; margin: 0 1rem; }
    
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    
    .nav-container { padding: 0 1.5rem; }
}
