/* ===== FEATURES RE-IMAGINED (APPLE STYLE) ===== */

/* Base & Typography Overrides for Features */
body.features-page {
    background-color: #fbfbfd; /* Apple's signature off-white */
    overflow-x: hidden;
}

.features-page h1, 
.features-page h2, 
.features-page h3 {
    letter-spacing: -0.04em;
    font-weight: 700;
}

/* ===== DYNAMIC ISLAND (FLOATING NAV) ===== */
.floating-dock {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
}

.floating-dock.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.dock-item {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #86868b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.dock-item:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.04);
}

.dock-item.active {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== PREMIUM HERO ===== */
.premium-hero {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.premium-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
    margin: 0 auto 24px;
    line-height: 1.05;
}

.premium-hero p.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #86868b;
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 500;
}

/* Glass Hero Showcase */
.hero-glass-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
}

.hero-mockup-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    z-index: 10;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 8px solid #fff;
}

.hero-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
}

.glass-left {
    top: 20%;
    left: 10%;
    animation: drift 8s ease-in-out infinite alternate;
}

.glass-right {
    bottom: 20%;
    right: 10%;
    animation: drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.icon-blur-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

/* ===== BENTO BOX GRID ===== */
.bento-section {
    padding: 80px var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-item {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

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

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}
.bento-desc {
    font-size: 1rem;
    color: #86868b;
    line-height: 1.5;
}

/* Bento specialized backgrounds */
.bento-gradient-bg {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}
.bento-dark-bg {
    background: #1d1d1f;
}
.bento-dark-bg .bento-title { color: #f5f5f7; }
.bento-dark-bg .bento-desc { color: #86868b; }

.bento-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
}

.bento-image-wrapper img {
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ===== SCROLL REVEAL SHOWCASE ===== */
.showcase-section {
    padding: 120px 0;
    position: relative;
}

.showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    gap: 80px;
}

.showcase-reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.showcase-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    line-height: 1.1;
}

.showcase-desc {
    font-size: 1.25rem;
    color: #86868b;
    line-height: 1.6;
}

.showcase-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Device Frame / Mockup Glows */
.device-frame {
    width: 320px;
    border-radius: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(0,0,0,0.05);
    background: #fff;
    border: 12px solid #1d1d1f;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.device-frame img {
    border-radius: 36px;
    width: 100%;
    display: block;
}

.ambient-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    border-radius: 50%;
}

.glow-blue { background: #bfdbfe; }
.glow-purple { background: #e9d5ff; }
.glow-green { background: #bbf7d0; }
.glow-orange { background: #fed7aa; }

/* ===== UTILITIES (REVEALS) ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.is-revealed {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-span-3 { grid-column: span 2; }
    
    .showcase-inner.showcase-reverse,
    .showcase-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }
    
    .premium-hero h1 { font-size: 3.5rem; }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-span-2, .bento-span-3 { grid-column: span 1; }
    
    .floating-dock {
        width: 90%;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .device-frame { width: 280px; }
}
