/* ============================================================
   FEATURE SHOWCASE - Interactive App Preview
   Inspired by iOS BartHelperMenu
   ============================================================ */

/* Showcase Section Container */
.feature-showcase-section {
    padding: 120px 0;
    background: linear-gradient(180deg,
            rgba(99, 102, 241, 0.03) 0%,
            var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.feature-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Header with BART */
.showcase-header {
    text-align: center;
    margin-bottom: 48px;
}

.showcase-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Tab Selector Pills */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.showcase-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 90px;
}

.showcase-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.showcase-tab.active {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.showcase-tab .tab-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.showcase-tab:hover .tab-icon {
    transform: scale(1.1);
}

.showcase-tab .tab-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-tab.active .tab-label {
    color: #111;
}

/* Feature Content Container */
.showcase-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 500px;
}

.showcase-panel {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.showcase-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   FOCUS TIMER DEMO
   ============================================================ */

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

.focus-demo-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
}

.timer-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.timer-circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.08);
}

.timer-circle-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: white;
    transform: rotate(-90deg);
    animation: timerProgress 4s linear infinite;
}

@keyframes timerProgress {
    0% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(270deg);
    }
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-display .time {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: white;
}

.timer-display .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.focus-mode-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.focus-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.focus-pill.active {
    background: white;
    color: #111;
}

.focus-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Focus Feature Points */
.feature-points {
    display: grid;
    gap: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-point .point-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 1rem;
}

.feature-point .point-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   EQ (Emotional Intelligence) DEMO
   ============================================================ */

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

.eq-demo-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.mood-emoji-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-emoji-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.mood-emoji-btn.active {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* BART Response Bubble */
.bart-response-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.bart-mini-avatar {
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.bart-mini-eyes {
    display: flex;
    gap: 6px;
}

.bart-mini-eye {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bart-mini-pupil {
    width: 4px;
    height: 4px;
    background: #111;
    border-radius: 50%;
}

.bart-response-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 18px 4px;
    padding: 16px 20px;
    text-align: left;
    flex: 1;
    animation: bubblePop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bart-response-bubble p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.eq-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 24px;
}

/* ============================================================
   MOOD TRACKER DEMO
   ============================================================ */

.mood-tracker-demo {
    text-align: center;
}

.mood-tracker-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
}

.week-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.day-cell:hover {
    background: rgba(255, 255, 255, 0.05);
}

.day-cell.active {
    background: rgba(255, 255, 255, 0.1);
}

.day-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.day-mood {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.day-cell.active .day-mood {
    background: white;
    transform: scale(1.1);
}

.selected-mood-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 14px;
    margin-top: 16px;
}

.mood-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mood-info-emoji {
    font-size: 1.5rem;
}

.mood-info-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.mood-info-right {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   SMART CHAT DEMO
   ============================================================ */

.chat-demo-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.chat-demo-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.chat-demo-header {
    text-align: center;
    margin-bottom: 48px;
}

.chat-demo-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

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

.chat-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
}

.chat-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-bart-avatar {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bart-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.chat-messages {
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlide 0.4s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    background: rgba(99, 102, 241, 0.3);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.chat-message.bart {
    background: rgba(255, 255, 255, 0.08);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

/* Task Card Result */
.parsed-task-card {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
    animation: cardPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.task-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.task-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(64, 224, 208, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.task-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.task-card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 48px;
}

.chat-input-bar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-mic-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-mic-btn:hover {
    transform: scale(1.05);
}

/* ============================================================
   WEEKLY INSIGHTS PREVIEW
   ============================================================ */

.insights-section {
    padding: 100px 0;
    background: linear-gradient(180deg,
            var(--bg-primary) 0%,
            rgba(99, 102, 241, 0.05) 100%);
}

.insights-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.insights-header {
    text-align: center;
    margin-bottom: 48px;
}

.insights-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.insights-header p {
    color: var(--text-muted);
}

.insights-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .insights-preview {
        grid-template-columns: 1fr;
    }
}

/* Productivity Score Card */
.productivity-score-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.score-circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid rgba(255, 255, 255, 0.08);
}

.score-circle-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid transparent;
    border-top-color: #10B981;
    border-right-color: #10B981;
    transform: rotate(-45deg);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10B981;
    display: block;
}

.score-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.score-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Grid */
.stats-grid-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   DESIGN PHILOSOPHY SECTION
   ============================================================ */

.philosophy-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.philosophy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 64px;
}

.philosophy-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.philosophy-header h2 span {
    background: linear-gradient(135deg, #F472B6, #A78BFA, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

.philosophy-card {
    background: var(--bg-card);
    /* System Gray 6 equivalent */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.philosophy-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--bg-elevated);
}

.philosophy-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.philosophy-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* --- STICKY STACKING LOGIC (Desktop) --- */
@media (min-width: 901px) {
    .philosophy-section.stacking-active {
        height: 300vh;
        /* Drag out scroll distance */
        position: relative;
        /* For pin */
    }

    .philosophy-container.stacking-active {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    /* Override Grid for Stacking */
    .philosophy-grid.stacking-active {
        display: block;
        position: relative;
        width: 100%;
        max-width: 600px;
        /* Focus width */
        margin: 0 auto;
        height: 400px;
        /* Card height approx */
    }

    .philosophy-card.stacking-active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform-origin: center top;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        /* Deep shadow for depth */
        /* Start stacked or allow GSAP to handle */
    }
}

.philosophy-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.judges-title {
    white-space: nowrap !important;
    font-size: 1.15rem !important;
}

.never-wrapper {
    position: relative;
    display: inline-block;
}

.never-wrapper del {
    text-decoration: line-through;
}

.handwritten {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    font-family: 'Caveat', cursive;
    font-size: 1.4em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    font-style: italic;
}

.philosophy-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .feature-showcase-section {
        padding: 80px 0;
    }

    .showcase-tabs {
        gap: 6px;
    }

    .showcase-tab {
        padding: 12px 16px;
        min-width: auto;
    }

    .timer-circle-container {
        width: 160px;
        height: 160px;
    }

    .timer-display .time {
        font-size: 2rem;
    }

    .mood-selector {
        gap: 10px;
    }

    .mood-emoji-btn {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .week-strip {
        gap: 6px;
    }

    .day-mood {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .focus-demo-container,
    .eq-demo-container,
    .mood-tracker-container {
        padding: 28px 20px;
    }
}

/* --- HORIZONTAL SCROLL GALLERY --- */
.screenshots-section {
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-primary);
    /* Blend with page */
    position: relative;
    /* Ensure height is enough for pin if needed, but GSAP handles pin spacer */
}

.screenshots-container {
    padding: 0 5vw;
    /* Use vw for dynamic padding */
    width: 100%;
}

.screenshots-header {
    text-align: center;
    margin-bottom: 80px;
}

.screenshots-gallery {
    display: flex;
    gap: 60px;
    /* Spacious gap */
    width: fit-content;
    padding-right: 10vw;
    /* End padding */
}

.screenshot-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: transform 0.5s ease-out;
}

.screenshot-card:hover {
    transform: translateY(-10px);
}

.screenshot-phone {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #2a2a2a;
    /* Mockup bezel */
    position: relative;
}

.screenshot-phone img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}