@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-orange: #f97316;
    --brand-orange-light: #fb923c;
    --brand-orange-hover: #ea580c;
    --brand-pink: #ff4757;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-soft: #e2e8f0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
}

/* --- NAVBAR (Modern Glassmorphism) --- */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
    color: var(--brand-orange) !important;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--brand-orange) !important;
    background-color: #fff7ed;
    transform: translateY(-1px);
}

/* --- MAIN CONTAINERS (Premium Apple-style Cards) --- */
.article-container, .legal-content {
    background-color: var(--card-bg);
    max-width: 950px;
    margin: 3.5rem auto;
    padding: 4rem;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05);
    border-radius: 24px;
    border: 1px solid #ffffff; /* Gives a glowing edge */
}

@media (max-width: 768px) {
    .article-container, .legal-content {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
        border-radius: 16px;
    }
}

/* --- TYPOGRAPHY --- */
.brand-heading {
    color: #0f172a;
    font-size: 2.1rem;
    font-weight: 800;
    margin: 3.5rem 0 1.5rem 0;
    position: relative;
    padding-bottom: 15px;
}
.brand-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light));
    border-radius: 4px;
}
.brand-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 1.5rem;
}
a {
    color: var(--brand-orange);
    transition: color 0.2s;
    font-weight: 500;
}
a:hover {
    color: var(--brand-orange-hover);
}

/* --- SLEEK INFO CARDS (Replacing plain tables) --- */
.info-card-container {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03);
    margin: 2.5rem 0;
}
.info-row {
    display: flex;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.2s ease;
}
.info-row:last-child {
    border-bottom: none;
}
.info-row:hover {
    background-color: #f8fafc;
}
.info-label {
    flex: 0 0 40%;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.info-label i {
    color: var(--brand-orange);
    margin-right: 12px;
    font-size: 1.1rem;
}
.info-value {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
}
@media (max-width: 576px) {
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- PULSING PREMIUM BUTTONS --- */
.btn-premium {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8a00 100%);
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 45px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    letter-spacing: 0.5px;
}
.btn-premium i {
    font-size: 1.2rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, var(--brand-orange-hover) 0%, #ff8a00 100%);
}
.btn-premium:hover i {
    transform: translateY(3px);
}

/* --- MODERN FEATURE CARDS --- */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff7ed 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: rgba(249, 115, 22, 0.3);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    background: #fff7ed;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--brand-orange);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover .feature-icon-wrapper {
    background: var(--brand-orange);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}
.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f172a;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- ELEGANT STEP GUIDES --- */
.guide-step {
    background: #ffffff;
    padding: 25px 30px 25px 80px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: visible;
}
.guide-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1);
    border-color: var(--brand-orange);
}
.guide-step::before {
    content: attr(data-step);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.guide-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.guide-step p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- FAQ ACCORDION --- */
.accordion-item {
    border: 1px solid var(--border-soft) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1.4rem 1.5rem;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--brand-orange) !important;
    background-color: #fff7ed !important;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}
.accordion-button::after {
    filter: grayscale(1);
    transition: all 0.3s ease;
}
.accordion-button:not(.collapsed)::after {
    filter: invert(53%) sepia(87%) saturate(2462%) hue-rotate(348deg) brightness(101%) contrast(96%); /* Orangish tint */
}
.accordion-body {
    background-color: #ffffff;
    color: var(--text-muted);
    padding: 1.5rem;
    font-size: 1.05rem;
}

/* --- PAGE HEADER HERO SECTIONS --- */
.page-header {
    background: #0f172a;
    padding: 4rem 0;
    margin-bottom: 0;
}
.hero-gradient-custom {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%), 
                url('https://www.transparenttextures.com/patterns/cubes.png');
    position: relative;
    border-bottom: 2px solid var(--brand-orange);
}
.page-header h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
}

/* --- CONTACT FORM ENHANCEMENTS --- */
.form-control, .form-select {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange-light);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    background-color: #ffffff;
}
.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

/* --- FOOTER ELEGANCE --- */
.footer {
    background: #0f172a !important;
    border-top: none;
    padding-top: 5rem;
    padding-bottom: 2rem;
}
.footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.footer p, .footer-links a {
    color: #94a3b8 !important;
    font-size: 0.95rem;
}
.footer-links li {
    transition: all 0.2s ease;
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--brand-orange) !important;
    padding-left: 8px; /* Slide effect */
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #ffffff !important;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--brand-orange);
    transform: translateY(-3px);
}

/* --- SCREENSHOT GALLERY --- */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-soft);
}
.screenshot-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox Utility */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
}
.lightbox-close:hover { color: var(--brand-orange); }

/* --- SCREENSHOT GALLERY (CAROUSEL) --- */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}
.carousel-compact {
    max-width: 450px;
    margin: 3rem auto;
}
.carousel-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    background: #f8fafc;
}
.carousel-item img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    padding: 15px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--brand-orange);
    border-radius: 50%;
    background-size: 50%;
}

/* App Icon Styling (Fitted & Smaller) */
.app-logo-container {
    width: 100px; /* Reduced from 150px to 100px as requested */
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-logo-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* --- NEW DOWNLOAD PILL BUTTONS --- */
.btn-download-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    text-align: center;
}
.btn-download-pill.latest {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
.btn-download-pill.old {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}
.btn-download-pill.vpn {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}
.btn-download-pill:hover {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3);
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    background: var(--brand-dark);
    transform: translateY(-5px);
}
