/* ==========================================================================
   RipeCheck Landing Page Stylesheet
   Modern, Dark Mode, Vibrant Accent Gradients
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Fredoka', system-ui, -apple-system, sans-serif;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FF5E62, #FF9966);
    --grad-accent: linear-gradient(135deg, #2EC4B6, #00F2FE);
    --grad-strawberry: linear-gradient(135deg, #FF3366, #FF66B2);
    --grad-avocado: linear-gradient(135deg, #7FB02F, #1B4D3E);
    --grad-mango: linear-gradient(135deg, #FF6B35, #FFB627);
    --grad-watermelon: linear-gradient(135deg, #2EC4B6, #FF4B72);

    /* Neutral Colors */
    --bg-dark: #090A0F;
    --card-dark: rgba(20, 22, 33, 0.6);
    --border-dark: rgba(255, 255, 255, 0.08);
    --text-white: #FFFFFF;
    --text-gray: #9EAFB7;

    /* Shadows */
    --shadow-neon: 0 15px 40px rgba(255, 94, 98, 0.15);
    --shadow-accent: 0 15px 40px rgba(46, 196, 182, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 15% 15%, rgba(255, 94, 98, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 85% 75%, rgba(46, 196, 182, 0.1) 0%, transparent 40%);
}

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

/* --- Navigation Bar --- */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-dark);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 94, 98, 0.2);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 15px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 94, 98, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0;
    position: relative;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFF 40%, #FF9966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
}

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

.stat-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* Hero Right: 3D-angled app mockup frame */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup-container {
    width: 310px;
    height: 630px;
    border: 8px solid #222;
    border-radius: 40px;
    background: #FFF9EE;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 100px rgba(255, 94, 98, 0.15);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg) rotateZ(2deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 
                0 0 120px rgba(255, 94, 98, 0.25);
}

.mockup-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Features Grid --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 15px;
}

.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 94, 98, 0.3);
    background: rgba(255, 94, 98, 0.02);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

/* --- Interactive Live Sandbox Simulator --- */
.live-demo-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(46, 196, 182, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--border-dark);
}

.live-demo-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.live-demo-title h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    margin-bottom: 12px;
}

.live-demo-title p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive phone frame */
.live-phone-frame {
    position: relative;
    width: 375px;
    height: 760px;
    border: 12px solid #222;
    border-radius: 46px;
    background: #000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                0 0 80px rgba(46, 196, 182, 0.15);
    overflow: hidden;
}

.live-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.live-phone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Call To Action Footer --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 94, 98, 0.04) 100%);
    border-top: 1px solid var(--border-dark);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 32px;
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Floating Fruit Decor Background --- */
.decor-fruit {
    position: absolute;
    font-size: 32px;
    opacity: 0.08;
    pointer-events: none;
    animation: floatAnim 10s ease-in-out infinite alternate;
}

@keyframes floatAnim {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(15deg); }
}

/* --- Responsive Adaptations --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-mockup {
        order: -1;
    }
    .mockup-container {
        transform: none !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
}

@media (max-width: 600px) {
    nav {
        display: none; /* Hide header menu for simplicity on mobile devices */
    }
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .live-phone-frame {
        width: 100%;
        height: 600px;
        border-radius: 30px;
    }
}
