/* ===== FEATURE SHOWCASE ===== */
.feat-section { padding: 80px 0; background: rgba(255,255,255,0.015); }

/* Tabs */
.feat-tabs {
    display: flex; justify-content: center; gap: 4px;
    margin-bottom: 40px; flex-wrap: wrap;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 5px;
    max-width: 640px; margin-left: auto; margin-right: auto;
    margin-bottom: 40px;
}
.feat-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: #94A3B8; cursor: pointer;
    border: none; background: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
}
.feat-tab:hover { color: #E2E8F0; background: rgba(255,255,255,0.04); }
.feat-tab.active {
    color: #fff; background: rgba(74,144,217,0.15);
    box-shadow: 0 2px 12px rgba(74,144,217,0.15);
}
.feat-tab i { font-size: 15px; }
.feat-tab.active i { color: #4A90D9; }

/* Timer bar (desktop) */
.feat-timer { 
    height: 3px; background: rgba(255,255,255,0.06);
    border-radius: 3px; margin-top: 4px;
    max-width: 640px; margin-left: auto; margin-right: auto;
    margin-bottom: 40px; overflow: hidden;
}
.feat-timer-bar {
    height: 100%; width: 0; background: linear-gradient(90deg, #4A90D9, #2563EB);
    border-radius: 3px; transition: width 0.1s linear;
}

/* Dot indicators (mobile — iOS page control style) */
.feat-dots {
    display: none;
    justify-content: center; align-items: center;
    gap: 10px; margin: 16px auto 28px;
}
.feat-dot-btn {
    width: 8px; height: 8px;
    border-radius: 50%; border: none;
    background: rgba(255,255,255,0.2);
    padding: 0; cursor: pointer;
    transition: all 0.3s ease;
}
.feat-dot-btn.active {
    background: #4A90D9;
    width: 24px; border-radius: 4px;
    box-shadow: 0 0 8px rgba(74,144,217,0.4);
}

/* Panel Container */
.feat-panels { position: relative; max-width: 420px; margin: 0 auto; }
.feat-panel {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transform: translateY(16px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none; visibility: hidden;
}
.feat-panel.active {
    opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto; position: relative; visibility: visible;
}

/* Phone Mockup Frame */
.feat-frame {
    background: rgba(10, 12, 24, 0.95);
    border: 3px solid rgba(255,255,255,0.12);
    border-radius: 36px; padding: 0;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5), 
        0 0 80px rgba(74,144,217,0.08),
        0 0 120px rgba(74,144,217,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    animation: frameGlow 2s ease-out forwards;
}
@keyframes frameGlow {
    0% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(74,144,217,0.02), inset 0 0 0 1px rgba(255,255,255,0.03); }
    100% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(74,144,217,0.08), 0 0 120px rgba(74,144,217,0.04), inset 0 0 0 1px rgba(255,255,255,0.05); }
}
.feat-frame-header {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 20px 10px;
    position: relative;
}
/* Phone notch */
.feat-frame-notch {
    width: 100px; height: 26px;
    background: #000;
    border-radius: 0 0 16px 16px;
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
/* Phone status bar items */
.feat-frame-status {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 0 8px;
    font-size: 12px; font-weight: 600; color: #94A3B8;
}
.feat-frame-status-time { font-size: 13px; font-weight: 700; color: #E2E8F0; }
.feat-frame-status-icons { display: flex; gap: 5px; align-items: center; font-size: 11px; }
/* Phone content area — fixed height like a real phone screen */
.feat-frame-body {
    padding: 8px 16px 24px;
    height: 620px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.feat-frame-body::-webkit-scrollbar { width: 3px; }
.feat-frame-body::-webkit-scrollbar-track { background: transparent; }
.feat-frame-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
/* Hide old browser dots */
.feat-frame-dot { display: none; }
.feat-frame-title { display: none; }
/* Phone home indicator */
.feat-frame-home {
    width: 120px; height: 4px; background: rgba(255,255,255,0.2);
    border-radius: 4px; margin: 16px auto 10px;
}

/* Shared Card Style — Glass effect (lightweight) */
.mk-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 18px 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mk-card:hover {
    transform: translateY(-1px);
    border-color: rgba(74,144,217,0.2);
}

/* Staggered entrance animation */
.feat-panel.active .mk-card,
.feat-panel.active .mk-grid-2,
.feat-panel.active .mk-grid-3,
.feat-panel.active .mk-label {
    animation: cardSlideIn 0.5s ease forwards;
    opacity: 0;
}
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(1) { animation-delay: 0s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(2) { animation-delay: 0.08s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(3) { animation-delay: 0.16s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(4) { animation-delay: 0.24s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(5) { animation-delay: 0.32s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(6) { animation-delay: 0.40s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(7) { animation-delay: 0.48s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(8) { animation-delay: 0.56s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(9) { animation-delay: 0.64s; }
.feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(10) { animation-delay: 0.72s; }

@keyframes cardSlideIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Value glow effect on key numbers */
.mk-value {
    font-size: 22px; font-weight: 800; color: #F1F5F9; letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(241,245,249,0.1);
}
.mk-value-sm {
    font-size: 16px; font-weight: 700; color: #F1F5F9;
}
.mk-green {
    color: #22C55E;
    text-shadow: 0 0 16px rgba(34,197,94,0.3);
}
.mk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.mk-label { font-size: 11px; color: #64748B; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 6px; }
.mk-blue { color: #4A90D9; text-shadow: 0 0 16px rgba(74,144,217,0.3); }
.mk-gold { color: #F59E0B; text-shadow: 0 0 16px rgba(245,158,11,0.3); }
.mk-red { color: #EF4444; text-shadow: 0 0 16px rgba(239,68,68,0.3); }
.mk-muted { color: #64748B; font-size: 12px; }

/* Coin row */
.mk-coin { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mk-coin:last-child { border-bottom: none; }
.mk-coin-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mk-coin-name { font-weight: 600; font-size: 14px; color: #E2E8F0; flex: 1; }
.mk-coin-name small { color: #64748B; font-weight: 400; margin-left: 4px; font-size: 11px; }
.mk-coin-price { font-size: 14px; font-weight: 600; color: #F1F5F9; text-align: right; }
.mk-coin-change { font-size: 12px; font-weight: 700; text-align: right; min-width: 55px; }

/* SVG Chart animation */
.mk-chart-line {
    stroke-dasharray: 600; stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease;
}
.feat-panel.active .mk-chart-line { stroke-dashoffset: 0; }

/* Donut */
.mk-donut-segment {
    transition: stroke-dashoffset 1.2s ease;
}

/* Badge */
.mk-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.mk-badge-green { background: rgba(34,197,94,0.12); color: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,0.1); }
.mk-badge-blue { background: rgba(74,144,217,0.12); color: #4A90D9; box-shadow: 0 0 8px rgba(74,144,217,0.1); }
.mk-badge-gold { background: rgba(245,158,11,0.12); color: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.1); }

/* Progress bar */
.mk-progress { height: 8px; background: rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.mk-progress-fill {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, #4A90D9, #2563EB);
    width: 0; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.feat-panel.active .mk-progress-fill { width: var(--progress, 65%); }

/* Animated counter */
.mk-counter { font-variant-numeric: tabular-nums; }

/* Bottom caption */
.feat-caption {
    text-align: center; margin-top: 20px;
    font-size: 14px; color: #64748B;
}
.feat-caption strong { color: #F1F5F9; }

/* Swipe hint — mobile only */
.feat-swipe-hint {
    display: none;
    text-align: center;
    font-size: 12px; color: #64748B;
    margin-top: 12px;
    animation: swipeHintFade 4s ease forwards;
}
.feat-swipe-hint i { margin: 0 4px; color: #4A90D9; }
@keyframes swipeHintFade {
    0%, 60% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Responsive */
@media (max-width: 767px) {
    .feat-section { padding: 48px 0; }
    .feat-tabs { display: none; } /* Mobile: only dots, no tabs */
    .feat-frame { border-radius: 28px; border-width: 2px; }
    .feat-frame-body { padding: 6px 12px 18px; height: 580px; }
    .feat-frame-notch { width: 80px; height: 22px; border-radius: 0 0 12px 12px; }
    .mk-grid-3 { grid-template-columns: 1fr; }
    .mk-grid-2 { grid-template-columns: 1fr; }
    .mk-value { font-size: 18px; }
    .feat-panels { max-width: 340px; }
    .feat-swipe-hint { display: block; }
    .feat-timer { display: none; }
    .feat-dots { display: flex; }
    .feat-caption { font-size: 15px; margin-top: 16px; }
    /* Faster transitions on mobile — less CPU/battery */
    .feat-panel { transition: opacity 0.25s ease, transform 0.25s ease; }
    .mk-chart-line { transition: stroke-dashoffset 0.8s ease; }
    .mk-progress-fill { transition: width 0.8s ease; }
    /* Faster stagger on mobile */
    .feat-panel.active > .feat-frame > .feat-frame-body > :nth-child(n) { animation-duration: 0.3s; }
    .feat-frame { animation-duration: 6s; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .feat-frame { padding: 24px 20px; }
}

/* Accessibility: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .feat-panel { transition: opacity 0.15s ease; transform: none !important; }
    .mk-chart-line { transition: none; stroke-dashoffset: 0 !important; }
    .mk-donut-segment { transition: none; }
    .mk-progress-fill { transition: none; }
    .feat-timer-bar { transition: none; }
    .feat-frame { animation: none; }
    .feat-panel.active .mk-card,
    .feat-panel.active .mk-grid-2,
    .feat-panel.active .mk-grid-3,
    .feat-panel.active .mk-label { animation: none; opacity: 1; }
}
