:root {
    --bg-page: #f5f5f7;
    --bg-card: #ffffff;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ED;
    --gradient-text: linear-gradient(90deg, #0071e3, #34c759);
}

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

body.apple-body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Floating Nav */
.pill-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}
.pill-nav .logo { font-weight: 700; font-size: 1.1rem; }
.btn-sm {
    background: var(--apple-blue);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-sm:hover { background: var(--apple-blue-hover); }

/* Hero */
.hero-immersive {
    padding-top: 180px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
}
.hero-content h1 {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-gray);
    line-height: 1.4;
    letter-spacing: -0.5px;
}
.btn-large {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-large:hover { transform: scale(1.03); }

.hero-image-center {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}
.hero-image-center img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Mega Bento Grid */
.mega-bento-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.bento-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-box {
    background: var(--bg-card);
    border-radius: 36px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.box-label { font-size: 1.2rem; color: var(--text-gray); font-weight: 500; margin-bottom: 10px; }
.box-wide { grid-column: span 2; padding: 60px; text-align: center; }
.box-tall { grid-row: span 2; justify-content: flex-start; }
.box-full { grid-column: span 2; }
.bento-column { display: flex; flex-direction: column; gap: 20px; }

/* Themes inside boxes */
.dark-theme { background: #000; color: white; }
.dark-theme .box-label { color: #888; }
.huge-stat { font-size: 8rem; font-weight: 800; letter-spacing: -4px; line-height: 1; margin: 10px 0; }
.mid-stat { font-size: 4rem; font-weight: 700; letter-spacing: -2px; }
.text-blue { color: var(--apple-blue); }

/* iOS Notifications Stream */
.ios-bg { background: linear-gradient(180deg, #e5e5ea 0%, #f5f5f7 100%); }
.notif-stream {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ios-bubble {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.bubble-head { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 8px; font-weight: 500;}
.bubble-body { font-size: 1rem; color: #000; line-height: 1.4; }
.bubble-body strong { display: block; }

/* Flow Horizontal */
.flow-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
.flow-step { text-align: center; flex: 1; }
.step-num { 
    width: 50px; height: 50px; background: #000; color: #fff; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 15px;
}
.flow-step h4 { font-size: 1.3rem; margin-bottom: 5px; }
.flow-step p { color: var(--text-gray); }
.step-line { height: 2px; background: #eaeaea; flex: 1; margin: 0 20px; transform: translateY(-25px); }

/* Footer */
.apple-footer { text-align: center; padding: 100px 20px; }
.apple-footer h2 { font-size: 2.5rem; margin-bottom: 30px; letter-spacing: -1px; }
.copyright { margin-top: 60px; color: var(--text-gray); font-size: 0.9rem; }

/* Animations */
.animate-in, .animate-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 900px) {
    /* Nav */
    .pill-nav { gap: 15px; padding: 8px 15px; width: 90%; max-width: 350px; justify-content: space-between; }
    .pill-nav .logo { font-size: 1rem; }
    .btn-sm { padding: 6px 12px; font-size: 0.8rem; }
    
    /* Hero */
    .hero-immersive { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
    .hero-content h1 { font-size: 15vw; margin-bottom: 15px; }
    .hero-subtitle { font-size: 1.1rem; }
    .btn-large { padding: 15px 30px; font-size: 1rem; width: 100%; max-width: 300px; }
    
    /* Mega Bento Grid */
    .mega-bento-section { padding: 40px 15px; }
    .bento-container { grid-template-columns: 1fr; gap: 15px; }
    .bento-box { padding: 25px; border-radius: 24px; }
    .box-wide { grid-column: span 1; padding: 30px 20px; }
    .box-full, .box-tall { grid-column: span 1; grid-row: auto; }
    .bento-column .bento-box { text-align: center; align-items: center; }
    .huge-stat { font-size: 20vw; letter-spacing: -2px; }
    .mid-stat { font-size: 3rem; }
    
    /* Flow */
    .flow-horizontal { flex-direction: column; gap: 30px; padding: 10px; }
    .step-line { display: none; }
    
    /* Footer */
    .apple-footer { padding: 60px 20px; }
    .apple-footer h2 { font-size: 2rem; }
}
