/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-outside: #03050d;
    --bg-frame: #0b1126;
    --bg-content: #111833;
    --brand-pink: #EF476F;
    --brand-pink-glow: #ff758c;
    --brand-blue: #2A3B7A;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-outside);
    /* Abstract ambient background for desktop */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(239, 71, 111, 0.12), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(42, 59, 122, 0.2), transparent 30%);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
}

/* Modern Floating Mobile App Shell for Desktop */
.sp-app-frame {
    width: 100%;
    max-width: 410px;
    height: 92vh; /* Float like a phone */
    margin: auto;
    background-color: var(--bg-frame);
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 40px; /* Phone-like curves */
    border: 8px solid #151d38; /* Fake phone bezel */
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8), 
        0 0 30px rgba(239, 71, 111, 0.1);
    overflow-x: hidden; overflow-y: auto;
}

/* Top Navigation - Glassmorphism */
.sp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(11, 17, 38, 0.7);
    backdrop-filter: blur(12px); /* Glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sp-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sp-brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(to right, #fff, var(--brand-pink-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hamburger Menu */
.sp-hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.sp-hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-pink-glow));
    border-radius: 4px;
    transition: 0.3s;
}

/* Dropdown */
.sp-menu-dropdown {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    background: rgba(21, 29, 56, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 210px;
    overflow-x: hidden; overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 99;
}

.sp-menu-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-menu-dropdown a {
    display: block;
    padding: 15px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.sp-menu-dropdown a:last-child {
    border-bottom: none;
}

.sp-menu-dropdown a:hover {
    background-color: rgba(239, 71, 111, 0.1);
    color: var(--brand-pink-glow);
    padding-left: 28px;
}

/* Scrollable Main Area */
.sp-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
}
/* Custom Scrollbar */
.sp-scroll-area::-webkit-scrollbar, .sp-app-frame::-webkit-scrollbar {
    width: 5px;
}
.sp-scroll-area::-webkit-scrollbar-track, .sp-app-frame::-webkit-scrollbar-track {
    background: transparent;
}
.sp-scroll-area::-webkit-scrollbar-thumb, .sp-app-frame::-webkit-scrollbar-thumb {
    background: rgba(239, 71, 111, 0.5); 
    border-radius: 10px;
}
.sp-scroll-area::-webkit-scrollbar-thumb:hover, .sp-app-frame::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 71, 111, 0.9); 
}
.sp-scroll-area, .sp-app-frame {
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 71, 111, 0.5) transparent;
}

/* Hero Section */
.sp-banner {
    padding: 50px 24px 40px;
    text-align: center;
    position: relative;
}

/* Decorative glow behind hero icon */
.sp-banner::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(239, 71, 111, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.sp-hero-icon {
    width: 95px;
    height: 95px;
    border-radius: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 30px rgba(239, 71, 111, 0.3);
    border: 2px solid rgba(255,255,255,0.05);
}

.sp-banner h1 {
    font-size: 1.7rem;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.sp-banner p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

/* Buttons */
.sp-action-row {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.sp-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px; /* modern slight rounded rectangle */
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-btn-solid {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-pink-glow));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 71, 111, 0.35);
    border: none;
}

.sp-btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 71, 111, 0.45);
}

.sp-btn-outline {
    background-color: rgba(255,255,255,0.03);
    color: var(--brand-pink-glow);
    border: 1px solid rgba(239, 71, 111, 0.4);
}

.sp-btn-outline:hover {
    background-color: rgba(239, 71, 111, 0.08);
    border-color: var(--brand-pink);
}

/* Unique Content Boxes */
.sp-content-box {
    margin: 20px 18px;
    padding: 26px 22px;
    background: linear-gradient(160deg, #131A35 0%, #0d1226 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--brand-pink);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    position: relative;
    overflow-x: hidden; overflow-y: auto;
}

/* Subtle inner glow for content box */
.sp-content-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(239, 71, 111, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.sp-content-box h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-content-box h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--brand-pink-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-pink);
}

.sp-content-box h3 {
    font-size: 1rem;
    color: var(--brand-pink-glow);
    margin: 22px 0 10px 0;
}

.sp-content-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 15px;
}

/* Screenshots */
.sp-screenshot {
    width: 100%;
    border-radius: 12px;
    margin: 15px 0 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.sp-screenshot:hover {
    transform: scale(1.02);
}

/* Table of Contents - Redesigned */
.sp-toc-box {
    background: linear-gradient(160deg, #1A2245 0%, #111833 100%);
    border-top: 4px solid var(--brand-pink);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.sp-toc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.sp-toc-item {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.25);
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.04);
    transition: 0.3s ease;
}

.sp-toc-item:hover {
    background: rgba(239, 71, 111, 0.12);
    border-color: rgba(239, 71, 111, 0.4);
    transform: translateX(6px);
}

.toc-icon {
    font-size: 1.3rem;
    margin-right: 15px;
    background: rgba(255,255,255,0.05);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.toc-text {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Lists */
.sp-feature-list {
    list-style: none;
    margin: 15px 0 25px 0;
}

.sp-feature-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.sp-feature-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 0.9rem;
}

.sp-feature-list strong {
    color: var(--text-main);
}

/* Copy Code Widget */
.sp-copy-widget {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}
.sp-copy-text {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--brand-pink-glow);
    margin-right: 15px;
    letter-spacing: 1px;
}
.sp-copy-btn {
    background: var(--brand-pink);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.sp-copy-btn:hover {
    background: var(--brand-pink-glow);
    transform: scale(1.05);
}
.sp-copy-btn.copied {
    background: #10B981; /* Success Green */
    transform: scale(1);
}

/* Pros & Cons */
.sp-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.sp-pros-box, .sp-cons-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
}

.pros-title {
    color: #10B981 !important; /* Emerald Green */
    font-size: 1.1rem;
    margin-top: 0 !important;
}

.cons-title {
    color: #F59E0B !important; /* Amber */
    font-size: 1.1rem;
    margin-top: 0 !important;
}

.sp-list-green, .sp-list-yellow {
    list-style: none;
    margin-top: 15px;
}

.sp-list-green li, .sp-list-yellow li {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.sp-list-green li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 0.9rem;
}

.sp-list-yellow li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 0.9rem;
}

.sp-list-green strong, .sp-list-yellow strong {
    color: var(--text-main);
}

/* FAQ Accordion */
.sp-faq-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-faq-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow-x: hidden; overflow-y: auto;
}

.sp-faq-item summary {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    transition: 0.3s;
}

.sp-faq-item summary::-webkit-details-marker {
    display: none;
}

.sp-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--brand-pink);
    transition: 0.3s;
}

.sp-faq-item[open] summary {
    background: rgba(239, 71, 111, 0.1);
    color: var(--brand-pink-glow);
}

.sp-faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 15px 20px 20px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* App Details Section */
.sp-app-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.stat-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-pink-glow);
}

/* Footer */
.sp-bottom-bar {
    position: relative !important;
    width: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    body {
        background: var(--bg-frame);
    }
    .sp-app-frame {
        max-width: 100%;
        height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .sp-content-box {
        margin: 16px 12px;
        border-radius: 20px;
    }
}
