/* ==========================================================================
   Aily Single-Page Product Landing Page Stylesheet
   Theme: Aily App Default Pink Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary: #e91e63;
    --primary-light: #f06292;
    --primary-dark: #c2185b;
    --primary-rgb: 233, 30, 99;
    --primary-tint: rgba(233, 30, 99, 0.05);
    --primary-tint-hover: rgba(233, 30, 99, 0.1);
    
    /* Neutral Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #fef8fa; /* soft pink tint */
    --bg-dark: #1e0b14;      /* deep black-pink */
    --border-color: #f1e4e8;
    
    /* Layout Details */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
    --shadow-pink: 0 20px 40px -10px rgba(233, 30, 99, 0.15);
    
    /* Animation Constants */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --------------------------------------------------------------------------
   2. Typography & Layout Utilities
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    line-height: 1.15;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ab47bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-secondary {
    background-color: var(--primary-tint);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-tint-hover);
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   4. Header / Navigation
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 72px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}



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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

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

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 140px 0 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(233,30,99,0.04) 0%, transparent 60%);
    overflow: hidden;
}

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

.badge-new {
    display: inline-block;
    background-color: var(--primary-tint);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

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

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* Hero Mockup & Phone frame details */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame-wrapper {
    position: relative;
    padding: 10px;
}

.phone-frame {
    width: 290px;
    height: 590px;
    background-color: #0f172a;
    border: 12px solid #1e293b;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.phone-speaker {
    width: 60px;
    height: 18px;
    background-color: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

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

/* Floating widgets inside Hero */
.floating-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.floating-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.floating-card p {
    font-size: 0.75rem;
}

.floating-card i.icon-pink {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.card-1 {
    top: 60px;
    left: -90px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 140px;
    right: -80px;
    animation-delay: 1.6s;
}

.card-3 {
    top: 130px;
    right: -90px;
    animation-delay: 0.8s;
}

.card-4 {
    top: 240px;
    left: -100px;
    animation-delay: 2.4s;
}

.card-5 {
    bottom: 80px;
    left: -80px;
    animation-delay: 3.2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* --------------------------------------------------------------------------
   6. Features Explorer Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Scroll Spy Layout */
.scroll-spy-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

.sticky-column {
    position: sticky;
    top: 110px;
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sticky-column .phone-frame {
    width: 270px;
    height: 550px;
    box-shadow: var(--shadow-pink);
    border-color: #1e293b;
}

.showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

.scroll-column {
    display: flex;
    flex-direction: column;
}

.feature-scroll-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    border-bottom: 1px dashed var(--border-color);
    opacity: 0.35;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-scroll-section.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-scroll-section:last-child {
    border-bottom: none;
    padding-bottom: 120px;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: var(--primary-tint);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.1);
}

.feature-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.feature-scroll-title {
    font-size: 1.85rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
}

.feature-scroll-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

.mobile-only-mockup {
    display: none;
}

.details-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.details-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--primary-tint);
    color: var(--primary);
    border-radius: 50%;
    margin-top: 2px;
}

.bullet-icon i {
    width: 12px;
    height: 12px;
}

.details-bullets span {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Pro Tip Panel */
.pro-tip-card {
    display: flex;
    gap: 16px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pro-tip-icon {
    font-size: 1.25rem;
}

.pro-tip-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

.pro-tip-text strong {
    color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   7. Seamless Ecosystem & Connections
   -------------------------------------------------------------------------- */
.integration-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.integration-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-pink {
    display: inline-block;
    background-color: var(--primary-tint);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.integration-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.integration-item {
    display: flex;
    gap: 18px;
}

.integration-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background-color: var(--primary-tint);
    color: var(--primary);
    border-radius: 50%;
}

.integration-icon-box i {
    width: 20px;
    height: 20px;
}

.integration-item h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.integration-item p {
    font-size: 0.92rem;
}

/* Connection Wheel layout styling */
.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.connection-wheel {
    position: relative;
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(233, 30, 99, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-center {
    width: 90px;
    height: 90px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    z-index: 5;
}

.wheel-center .logo-text {
    color: white;
    font-size: 1.4rem;
}

.wheel-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 5;
}

.wheel-node i {
    width: 20px;
    height: 20px;
}

.wheel-node:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.n-recipes { top: 15px; left: calc(50% - 25px); }
.n-mealplan { top: 60px; left: 229px; }
.n-grocery { top: 162px; left: 252px; }
.n-storage { top: 243px; left: 187px; }
.n-todo { top: 243px; left: 83px; }
.n-expenses { top: 162px; left: 18px; }
.n-bills { top: 60px; left: 41px; }

/* Animation loop for connection lines */
.connection-line {
    position: absolute;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    z-index: 1;
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   8. Personalization Cards
   -------------------------------------------------------------------------- */
.personalization-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.pers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pers-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.pers-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pers-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-tint);
    color: var(--primary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.pers-icon-box i {
    width: 24px;
    height: 24px;
}

.pers-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.pers-card p {
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. CTA & Download Buttons
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.cta-container {
    position: relative;
    z-index: 5;
    max-width: 750px;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}.play-store-badge-link {
    display: inline-block;
    line-height: 0;
}

.play-store-badge {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.play-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: white;
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-base);
    border: 2px solid white;
}

.store-btn i {
    width: 28px;
    height: 28px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.store-main {
    font-size: 1rem;
    font-weight: 700;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background-color: transparent;
    color: white;
}

.btn-secondary-store {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.pronunciation-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   10. Footer Section
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand p {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-base);
}

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

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   11. Media Queries (Responsiveness)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }

    .scroll-spy-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sticky-column {
        display: none;
    }

    .feature-scroll-section {
        min-height: auto;
        padding: 50px 0;
        opacity: 1;
        transform: none;
        border-bottom: 1px dashed var(--border-color);
    }

    .feature-scroll-section:last-child {
        padding-bottom: 50px;
    }

    .mobile-only-mockup {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }

    .mobile-only-mockup .phone-frame {
        width: 250px;
        height: 510px;
        box-shadow: var(--shadow-pink);
        border-color: #1e293b;
    }

    .integration-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .integration-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .integration-item {
        text-align: left;
    }

    .pers-grid {
        grid-template-columns: 1fr;
    }

    .pers-card {
        max-width: 100%;
    }
}

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

    .hero-section {
        padding-top: 100px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .play-store-badge-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .floating-card {
        display: none !important;
    }
}
