/* =========================================
   BIOGLOW-AI — STITCH SKINCARE APP DESIGN
   "Monochrome Clinical Tech"
   Strictly Navy, Blue, and White
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

.stitch-app {
    /* Strict Base Color Palette - ONLY application colors */
    --navy: #0A2647;
    --navy-light: #164074;
    --blue: #2C74B3;
    --blue-light: #5296D1;
    --blue-pale: #E6F0FA;
    
    --bg-base: #F8FBFF;
    --bg-surface: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(44, 116, 179, 0.15);
    --glass-shadow: 0 20px 40px rgba(10, 38, 71, 0.05);
    
    --app-radius: 32px;
    --card-radius: 24px;
    
    background-color: var(--bg-base);
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
}

/* ── OVERRIDING GLOBAL NAV ── */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(10, 38, 71, 0.08) !important;
}

/* ── HERO SECTION: THE APP MOCKUP ── */
.stitch-app .hero-wrap {
    position: relative;
    padding: 100px 0 60px;
    background: radial-gradient(circle at 80% 20%, rgba(44, 116, 179, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(10, 38, 71, 0.04) 0%, transparent 40%);
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjust based on navbar height */
}

/* Background animated organic shapes - strict blue tones */
.stitch-app .hero-wrap::before {
    content: '';
    position: absolute;
    top: -5%; right: -5%;
    width: 60vw; height: 60vw;
    background: linear-gradient(135deg, rgba(230, 240, 250, 0.8), rgba(44, 116, 179, 0.05));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 18s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
    50% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(5deg) scale(1.05); }
}

.stitch-app .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Hero Content */
.stitch-app .hero-content {
    padding-left: 4vw;
}

.stitch-app .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blue);
    box-shadow: 0 10px 20px rgba(44, 116, 179, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(44, 116, 179, 0.15);
    text-transform: uppercase;
}

.stitch-app .badge-tag i { color: var(--blue); }

.stitch-app .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 4.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.stitch-app .hero-title span {
    font-style: italic;
    color: var(--blue);
}

.stitch-app .hero-desc {
    font-size: 1.15rem;
    color: #4A5D75;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.stitch-app .btn-app-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: white;
    padding: 18px 44px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(10, 38, 71, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.stitch-app .btn-app-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 45px rgba(44, 116, 179, 0.3);
}

/* Mobile App Mockup - Monochromatic */
.stitch-app .app-device {
    position: relative;
    width: 290px;
    height: 560px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(10, 38, 71, 0.15), 0 0 0 10px rgba(255,255,255,0.8), inset 0 0 0 4px var(--blue-pale);
    margin: 0 auto;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(-10px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stitch-app .app-device:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(0);
    box-shadow: 0 40px 100px rgba(10, 38, 71, 0.25), 0 0 0 10px white, inset 0 0 0 4px var(--blue-pale);
}

/* Interior of App Mockup */
.stitch-app .app-screen {
    position: absolute;
    inset: 4px;
    border-radius: 38px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 100%);
    overflow: hidden;
    
    /* Fix for iOS/mobile Safari overflow+transform bugs */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.stitch-app .app-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 26px;
    background: var(--navy);
    border-radius: 0 0 18px 18px;
    z-index: 100;
}

/* The Female Face Image */
.stitch-app .face-scan-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: auto 165%; /* Replicates exactly zoom 1.65x safely without transforms */
    background-position: center 25%;
    background-repeat: no-repeat;
    filter: contrast(1.05) brightness(1.1);
    z-index: 1;
}

/* Tech Face Overlay Grid */
.stitch-app .scan-grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(44, 116, 179, 0.4) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(44, 116, 179, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 2;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

/* Sweeping Scan Line */
.stitch-app .scan-line-horizontal {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 3px;
    background: var(--blue);
    box-shadow: 0 0 20px 8px rgba(44, 116, 179, 0.6);
    z-index: 5;
    animation: facialScan 3.5s ease-in-out infinite alternate;
}

@keyframes facialScan {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 95%; opacity: 0; }
}


/* AI Scanning Tags */
.stitch-app .ai-scan-tags {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.stitch-app .ai-tag {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(10, 38, 71, 0.15);
    animation: tagFloat 3s ease-in-out infinite alternate;
    --shiftX: 0px;
}

.stitch-app .ai-tag.tag-1 {
    --shiftX: -15px;
}
.stitch-app .ai-tag.tag-2 {
    background: linear-gradient(135deg, var(--navy), #1a426e);
    border-color: rgba(255,255,255,0.1);
    color: white;
    --shiftX: 18px;
    animation-delay: -1.5s;
}

.stitch-app .ai-tag i { color: var(--blue); font-size: 1rem; }
.stitch-app .ai-tag.tag-2 i { color: #A0CFF8; }

@keyframes tagFloat {
    0% { transform: translate(var(--shiftX), 0); }
    100% { transform: translate(var(--shiftX), -8px); }
}


/* ── SECTIONS ── */
.stitch-app .section-glass {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

.stitch-app .section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 70px;
}

.stitch-app .section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue);
    margin-bottom: 16px;
    display: block;
}

.stitch-app .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
}

.stitch-app .section-title span {
    font-style: italic;
    color: var(--blue);
}

/* ── STUNNING GLASS CARDS (WHY CHOOSE US) ── */
.stitch-app .features-grid-beautiful {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stitch-app .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 44px 36px;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.stitch-app .glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stitch-app .glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 70px rgba(10, 38, 71, 0.12);
    border-color: rgba(44, 116, 179, 0.3);
}
.stitch-app .glass-card:hover::before { opacity: 1; }

.stitch-app .icon-sphere {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 32px;
    transition: all 0.5s ease;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 4px 10px rgba(255,255,255,0.8), 0 10px 25px rgba(44, 116, 179, 0.15);
}

.stitch-app .glass-card:hover .icon-sphere {
    transform: scale(1.15) rotate(8deg);
    background: var(--blue);
    color: white;
    box-shadow: 0 15px 35px rgba(44, 116, 179, 0.3);
}

.stitch-app .glass-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--navy);
}

.stitch-app .glass-card p {
    color: #4A5D75;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}


/* ── JOURNEY UI FLOW ── */
.stitch-app .journey-ui {
    background: white;
    border-radius: var(--app-radius);
    padding: 70px 60px;
    box-shadow: 0 40px 100px rgba(10, 38, 71, 0.08);
    display: flex;
    justify-content: space-between;
    position: relative;
    border: 1px solid var(--blue-pale);
}

/* Connecting Line */
.stitch-app .journey-ui::before {
    content: '';
    position: absolute;
    top: 120px;
    left: 140px;
    right: 140px;
    height: 3px;
    background: linear-gradient(90deg, rgba(44, 116, 179, 0.1), var(--blue), rgba(44, 116, 179, 0.1));
    z-index: 1;
}

.stitch-app .j-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 30px;
}

.stitch-app .j-icon {
    width: 100px; height: 100px;
    margin: 0 auto 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--navy);
    border: 6px solid var(--blue-pale);
    box-shadow: 0 15px 35px rgba(44, 116, 179, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stitch-app .j-step:hover .j-icon {
    transform: scale(1.15);
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 20px 45px rgba(44, 116, 179, 0.2);
}

.stitch-app .j-step h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.stitch-app .j-step p {
    color: #4A5D75;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* ── TESTIMONIALS APP SCROLL ── */
.stitch-app .test-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 24px 0 60px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.stitch-app .test-slider::-webkit-scrollbar { display: none; }

.stitch-app .test-card {
    min-width: 440px;
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 15px 40px rgba(10,38,71,0.06);
    scroll-snap-align: center;
    border: 1px solid var(--blue-pale);
}

.stitch-app .test-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--navy);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 30px;
}

.stitch-app .test-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stitch-app .author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--blue-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-weight: 700; font-size: 1.2rem;
}

.stitch-app .test-author strong {
    display: block;
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
}

.stitch-app .test-author .text-muted {
    color: #5296D1 !important; /* light blue */
    margin: 0;
}

/* ── PREMIUM CTA COMPONENT ── */
.stitch-app .cta-app {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 40px;
    padding: 90px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
    box-shadow: 0 30px 60px rgba(10, 38, 71, 0.25);
}

.stitch-app .cta-app::after {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    bottom: -300px; left: 50%; transform: translateX(-50%);
    filter: blur(50px);
}

.stitch-app .cta-app h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    position: relative; z-index: 2;
    letter-spacing: -0.02em;
}

.stitch-app .cta-app p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative; z-index: 2;
    line-height: 1.7;
}

.stitch-app .btn-app-light {
    background: white;
    color: var(--navy);
    padding: 20px 50px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    position: relative; z-index: 2;
    transition: all 0.3s ease;
}
.stitch-app .btn-app-light:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    color: var(--blue);
}


/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .stitch-app .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .stitch-app .hero-desc { margin: 0 auto 40px; }
    .stitch-app .features-grid-beautiful { grid-template-columns: 1fr 1fr; }
    .stitch-app .journey-ui { flex-direction: column; gap: 60px; }
    .stitch-app .journey-ui::before { display: none; }
    .stitch-app .test-card { min-width: 320px; }
}

@media (max-width: 768px) {
    .stitch-app .features-grid-beautiful { grid-template-columns: 1fr; }
    .stitch-app .app-device { width: 290px; height: 600px; }
    .stitch-app .hero-wrap {
        padding: 50px 0 40px;
        min-height: auto;
        align-items: flex-start;
    }
    .stitch-app .hero-content {
        padding-top: 20px;
    }
}

/* ── PROMOTIONAL BANNER (Introductory Offer) ── */
.tropical-offer {
    background: linear-gradient(135deg, #0A2647 0%, #144272 50%, #0A2647 100%);
    color: white;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 64px;
    border-radius: 20px;
    margin-bottom: 35px;
    box-shadow: 0 20px 50px rgba(10, 38, 71, 0.3), 
                inset 0 1px 1px rgba(255,255,255,0.1),
                0 0 0 1px rgba(212, 175, 55, 0.2);
    border: 1px solid #ff4d4d; /* Added thin red border */
    transform: none; /* Removed rotation as per user's request */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tropical-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 55%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shimmer-banner 6s infinite;
    pointer-events: none;
}

@keyframes shimmer-banner {
    0% { transform: translateX(-100%) rotate(45deg); }
    30% { transform: translateX(100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.tropical-offer:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(10, 38, 71, 0.4), 
                inset 0 1px 1px rgba(255,255,255,0.2),
                0 0 15px rgba(212, 175, 55, 0.3);
}

.tropical-title {
    font-family: 'Outfit', sans-serif; /* Modernized font */
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-shadow: none; /* Clear text-shadow since we use background-clip */
}

.tropical-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #D4AF37;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.tropical-subtitle::before,
.tropical-subtitle::after {
    content: '';
    height: 1px;
    width: 20px;
    background: currentColor;
    opacity: 0.5;
}

@media (max-width: 576px) {
    .tropical-offer { padding: 20px 32px; }
    .tropical-title { font-size: 1.8rem; }
    .tropical-subtitle { font-size: 0.75rem; letter-spacing: 3px; }
}
