/* Modern Reset & Variables */
:root {
    --primary: #F50777;
    --secondary: #F93E51;
    --tertiary: #FE742B;
    --dark: #0f0f0f;
    --light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --noise-url: 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.05'/%3E%3C/svg%3E");
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FAFAFA;
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

/* Global Noise Texture for "Film Grain" feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--noise-url);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* Animated Mesh Gradient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(245, 7, 119, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(254, 116, 43, 0.08), transparent 25%);
    filter: blur(60px);
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------
   Floating Pill Navbar 
   -------------------------------------------------- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 32px;
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 16px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.nav-links .cta-button {
    background: var(--dark);
    color: white !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-links .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------
   Hero Section - Editorial Style
   -------------------------------------------------- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    padding-right: 10px;
}

.hero-description {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Primary Button - Gradient instead of Black */
.primary-button {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(245, 7, 119, 0.2);
}

.primary-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(245, 7, 119, 0.3);
}

.secondary-button {
    background: white;
    color: var(--dark);
    border: 1px solid #e5e5e5;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
}

/* 3D Phone Container */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    z-index: 2;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Phone Frame - Dark Grey instead of pure black */
.phone-frame {
    border-radius: 48px;
    border: 8px solid #2a2a2a;
    overflow: hidden;
    box-shadow: 20px 30px 50px rgba(0, 0, 0, 0.15);
    background: #2a2a2a;
    aspect-ratio: 9/19.5;
    max-width: 320px;
    margin: 0 auto;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements behind phone */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--tertiary);
    bottom: -10%;
    left: 0%;
    animation-delay: 2s;
}

/* --------------------------------------------------
   Features Section (Clean & Premium)
   -------------------------------------------------- */
.features {
    padding: 120px 0;
    position: relative;
    background: transparent;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(245, 7, 119, 0.15);
    border-color: rgba(245, 7, 119, 0.1);
}

/* Feature Icon Wrapper */
.feature-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Unique gradients for each icon box */
.icon-bg-1 {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
}

.icon-bg-2 {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.icon-bg-3 {
    background: linear-gradient(120deg, #a18cd1 0%, #fbc2eb 100%);
}

.icon-bg-4 {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

.icon-bg-5 {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon-box img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Featured Card (Span 2) */
.feature-span-2 {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
}

.feature-span-2 .feature-title,
.feature-span-2 .feature-desc {
    color: white;
}

.feature-span-2 .feature-icon-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feature-span-2:hover {
    box-shadow: 0 30px 60px rgba(245, 7, 119, 0.4);
}

/* Decorative Background Icon */
.bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    opacity: 0.05;
    transform: rotate(-15deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.feature-card:hover .bg-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
    bottom: -10px;
    right: -10px;
}

.feature-span-2 .bg-icon {
    opacity: 0.1;
    filter: invert(1);
}

.feature-span-2:hover .bg-icon {
    opacity: 0.2;
}

/* Mobile Responsiveness for Grid */
@media (max-width: 968px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-span-2 {
        grid-column: span 1;
    }
}

/* --------------------------------------------------
   AI Characters - Horizontal Scroll
   -------------------------------------------------- */
.ai-section {
    padding: 100px 0;
    background: #111;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-section .section-title {
    color: white;
}

.ai-section .section-description {
    color: #888;
}

.scrolling-wrapper {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 40px 24px;
    scrollbar-width: none;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.ai-card {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.ai-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ai-avatar {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

/* --------------------------------------------------
   How It Works - Vertical Timeline
   -------------------------------------------------- */
.timeline {
    padding: 120px 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    max-width: 400px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-number {
    font-size: 120px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.timeline-img-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 10px #FAFAFA, 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.timeline-img-wrapper img {
    width: 40px;
    height: 40px;
}

/* --------------------------------------------------
   CTA Section
   -------------------------------------------------- */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    border-radius: 48px;
    padding: 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.cta-box h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.store-btn {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.store-btn:hover {
    background: white;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 968px) {
    .navbar {
        min-width: 90%;
        top: 16px;
    }

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

    .hero-title {
        font-size: 48px;
    }

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

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .timeline-line {
        left: 24px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        gap: 20px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-img-wrapper {
        position: absolute;
        left: -16px;
    }
}

/* Phone Mockup Image Styles */
@keyframes float {

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

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

.phone-mockup-wrapper {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.phone-mockup-img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------- */
@media (max-width: 768px) {

    /* Global Adjustments */
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 32px;
    }

    /* Navbar */
    .navbar {
        min-width: 90%;
        top: 16px;
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
        /* Hide links on mobile for now, or use a hamburger menu */
    }

    .nav-content {
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
    }

    /* Bento Grid */
    .features {
        padding: 60px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
        gap: 16px;
    }

    .bento-span-2,
    .bento-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        padding: 24px;
        min-height: auto;
    }

    /* Timeline */
    .timeline {
        padding: 60px 0;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        gap: 16px;
        margin-bottom: 60px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        max-width: 100%;
    }

    .timeline-img-wrapper {
        left: -20px;
        /* Align with line */
        width: 60px;
        height: 60px;
    }

    .timeline-img-wrapper img {
        width: 30px;
        height: 30px;
    }

    .timeline-number {
        font-size: 80px;
        top: -40px;
        left: 20px;
        transform: none;
    }

    /* CTA Section */
    .cta-box {
        padding: 40px 24px;
        border-radius: 32px;
    }

    .cta-box h2 {
        font-size: 32px;
    }

    .store-buttons {
        flex-direction: column;
    }

    /* Phone Mockup */
    .phone-mockup-img {
        max-width: 280px;
    }
}