/* ==========================================================================
   XAPK Installer Stylesheet
   ========================================================================== */

:root {
    --primary: #10b981;          /* Emerald Green - represents Android & clean install */
    --primary-hover: #059669;
    --primary-light: #ecfdf5;
    --accent: #0ea5e9;           /* Cyber Blue - representing speed & technology */
    --accent-hover: #0284c7;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    
    --text-dark: #0f172a;        /* Deep slate for titles */
    --text-muted: #475569;       /* Slate for readable body copy */
    --text-light: #ffffff;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.5rem;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    gap: 0.5rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain; /* Ensures the logo scales correctly without distortion */
    vertical-align: middle; /* Better alignment with adjacent text */
    border-radius: 4px; /* Optional: slightly rounded corners for the image */
}

.logo-text .accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 5rem 1.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(236, 253, 245, 0.6) 0%, rgba(255, 255, 255, 0) 90%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-icon {
    font-size: 1.1rem;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background-color: var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* CSS Simulated App Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background-color: #1e293b;
    border-radius: 3rem;
    border: 10px solid #1e293b;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #1e293b;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 10;
}

.phone-screen {
    flex: 1;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    font-family: var(--font-family);
    padding: 2.5rem 1rem 1rem 1rem;
    position: relative;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 1rem;
}

.app-header i {
    color: var(--primary);
}

.app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scan-status {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px dashed rgba(16, 185, 129, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.scan-status i {
    color: var(--primary);
}

.spin-icon {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.file-item {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
}

.file-item.xapk .file-icon {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent);
}

.file-item.apk .file-icon {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.65rem;
    color: #94a3b8;
}

.install-badge {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.app-scan-btn {
    background-color: var(--primary);
    border: none;
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: background-color 0.2s;
}

.app-scan-btn:hover {
    background-color: var(--primary-hover);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* Sections & Grid Headers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Features */
.features-section {
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Layout */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.features-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-circle {
    width: 250px;
    height: 250px;
    background-color: var(--primary-light);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.illustration-card {
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    z-index: 2;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.illustration-card.card-1 {
    top: 25%;
    left: -10%;
    border-left: 4px solid var(--primary);
}

.illustration-card.card-1 i {
    color: var(--primary);
    font-size: 1.25rem;
}

.illustration-card.card-2 {
    bottom: 25%;
    right: -10%;
    border-left: 4px solid var(--accent);
}

.illustration-card.card-2 i {
    color: var(--accent);
    font-size: 1.25rem;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.checklist {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.checklist li i {
    color: var(--primary);
    background-color: var(--primary-light);
    font-size: 0.75rem;
    padding: 0.3rem;
    border-radius: 50%;
    margin-top: 0.2rem;
}

/* Reviews Grid */
.reviews-section {
    background-color: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.reviewer-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
    display: flex;
    gap: 0.1rem;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0;
}

/* Support Form Card */
.support-section {
    background-color: var(--bg-light);
}

.support-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.support-info h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.support-form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.support-form-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    font-family: var(--font-family);
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Legal prose style */
.policy-header {
    background: radial-gradient(circle at 10% 20%, rgba(236, 253, 245, 0.4) 0%, rgba(255, 255, 255, 0) 90%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 1.5rem 3rem 1.5rem;
}

.policy-header-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.policy-body-section {
    background-color: var(--bg-white);
    padding: 4rem 1.5rem;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
}

.prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: var(--text-dark);
    margin-top: 2.25rem;
    margin-bottom: 1.25rem;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a { text-decoration: underline; font-weight: 500; }
.prose strong { color: var(--text-dark); font-weight: 600; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.prose th, .prose td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer layout */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.footer-logo .accent {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    background-color: #1e293b;
    color: #94a3b8;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-socials a:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-links-group h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-group a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links-group a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    background-color: #020617;
    padding: 2rem 1.5rem;
    border-top: 1px solid #1e293b;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom-container p {
    margin-bottom: 0;
    color: #64748b;
}

.trademark-disclaimer {
    color: #475569 !important;
    line-height: 1.4;
}

/* Responsiveness media breakpoints */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .badge-trust { margin: 0 auto 1.5rem auto; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: 2; }
    .about-content { order: 1; }
    
    .support-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active { display: flex; }
    .nav-link { width: 100%; text-align: center; padding: 0.5rem 0; }
    .nav-btn { width: 100%; justify-content: center; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-divider { display: none; }
    .support-form-card { padding: 1.5rem; }
}
