/* CSS Variables - App Theme Match */
:root {
    --bg-color: #0A0A0A;
    --surface-color: #141414;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --primary: #25A7DA;
    --primary-glow: rgba(37, 167, 218, 0.4);
    --primary-hover: #3CC6F5;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
p { color: var(--text-secondary); margin-bottom: 15px; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; border-radius: 16px; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-height: 1000;
    padding: 20px 5%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 167, 218, 0.15);
    color: var(--primary);
    border: 1px solid rgba(37, 167, 218, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Abstract Mockup UI */
.glass-mockup {
    width: 320px;
    height: 600px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.9));
    border: 2px solid var(--glass-border);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header { display: flex; align-items: center; gap: 10px; }
.mockup-circle { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); }
.mockup-line { height: 10px; width: 100px; background: var(--glass-border); border-radius: 10px; }
.mockup-body { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.mockup-card { height: 80px; background: rgba(255,255,255,0.05); border-radius: 16px; }
.mockup-card.alt { height: 120px; background: rgba(37, 167, 218, 0.1); border: 1px solid rgba(37, 167, 218, 0.2); }
.mockup-bottom { height: 60px; background: rgba(255,255,255,0.08); border-radius: 20px; margin-bottom: 10px; }

/* Trust Strip */
.trust-strip {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(20, 20, 20, 0.4);
    padding: 20px 0;
    overflow: hidden;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i { color: var(--primary); }
.separator { color: var(--glass-border); }

/* App Preview Horizontal */
.preview-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.preview-scroll::-webkit-scrollbar { display: none; } /* Chrome */

.preview-card {
    min-width: 320px;
    height: 480px;
    border-radius: 24px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.preview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.card-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-weight: 600;
    text-align: center;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(25, 25, 25, 0.8);
    border-color: rgba(37, 167, 218, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 167, 218, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--glass-border);
    margin-top: 25px;
}

/* Download Section Focus */
.download-card {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
}

.download-card h2, .download-meta, .download-actions, .qr-code-hint {
    position: relative;
    z-index: 1;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.repo-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}
.repo-link:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

/* Split Layout Docs/Changelog */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Accordion */
.accordion-item {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
}

.accordion-content.open {
    padding-bottom: 20px;
    max-height: 200px;
}

/* Timeline */
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--glass-border);
    margin-top: 5px;
    position: relative;
}

.timeline-dot.primary {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 4px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--glass-border);
}

.timeline-item:last-child .timeline-dot::after { display: none; }

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 5% 30px 5%;
    background: rgba(10, 10, 10, 0.6);
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a { color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.muted { opacity: 0.5; margin-top: 5px; font-size: 0.8rem; }

/* Sticky Download Bar */
.sticky-download {
    position: fixed;
    bottom: -100px;
    left: 0; right: 0;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 15px 5%;
    z-index: 100;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sticky-download.visible { bottom: 0; }

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

.sticky-info { display: flex; gap: 15px; align-items: center; }
.sticky-info span { color: var(--text-secondary); font-size: 0.9rem; }

/* Animations - Intersection Observer classes */
.animate-on-scroll {
    opacity: 0;
    transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in { transform: translateY(0); }
.fade-up { transform: translateY(30px); }
.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }
.scale-in { transform: scale(0.95); }

.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsiveness */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-buttons { justify-content: center; }
    .hero-mockup { margin-top: 40px; }
    
    .trust-container { flex-wrap: wrap; gap: 20px; }
    
    .steps-container { flex-direction: column; align-items: center; gap: 40px; }
    .step-connector { display: none; }
    
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .sticky-info span { display: none; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .download-actions { flex-direction: column; }
    .btn { width: 100%; }
}
.preview-img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; position: absolute; top: 0; left: 0; }
.preview-card { position: relative; overflow: hidden; }
.card-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 20px; text-align: center; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.5); z-index: 2; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }

/* AI Generated 3D Mockup Inspired by Dashboard Image */
.glass-mockup.phone-3d {
    width: 330px;
    height: 660px;
    background: #090909;
    border: 12px solid #141414;
    border-radius: 44px;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.8), 
        0 0 80px rgba(37, 167, 218, 0.12),
        inset 0 0 0 2px #2a2a2a,
        inset 0 0 10px rgba(37, 167, 218, 0.1);
    position: relative;
    overflow: hidden;
    transform: perspective(1200px) rotateY(-18deg) rotateX(8deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
}

.glass-mockup.phone-3d::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 32px;
    pointer-events: none;
}

.glass-mockup.phone-3d:hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) scale(1);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.9), 
        0 0 100px rgba(37, 167, 218, 0.2),
        inset 0 0 0 2px #333;
}

.mockup-screen {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    color: #fff;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.m-header { display: flex; justify-content: space-between; align-items: center; }
.m-logo { font-weight: 800; font-size: 15px; display:flex; align-items: center; gap: 8px; }
.m-logo img { width: 24px; filter: drop-shadow(0 0 6px rgba(37,167,218,0.5)); }
.m-logo span { color: #25a7da; }
.m-settings { background: #141414; padding: 8px; border-radius: 10px; font-size: 14px; border: 1px solid rgba(255,255,255,0.05);}

.m-greeting { font-size: 18px; font-weight: 700; margin-top:-8px; }
.m-greeting span { color: var(--primary); }

.m-stats-row { display: flex; gap: 10px; }
.m-stat-box { background: #111; border-radius: 14px; padding: 12px; flex: 1; display:flex; flex-direction:column; gap:8px; border: 1px solid rgba(255,255,255,0.03); }
.m-stat-box i { font-size: 14px; color: var(--primary); }
.m-stat-box .num { font-size: 16px; font-weight: 800; }
.m-stat-box .lbl { font-size: 9px; color: #888; font-weight: 500;}

.m-card { background: #111; border-radius: 18px; padding: 16px; border: 1px solid rgba(255,255,255,0.03); }
.m-card-title { font-size: 12px; font-weight: 700; margin-bottom: 14px; color: #eee; display:flex; justify-content:space-between; align-items: center;}
.m-card-title .badge { background: rgba(37,167,218,0.15); color: var(--primary); padding: 3px 8px; border-radius: 12px; font-size: 10px; }
.m-card-labels { display:flex; justify-content:space-between; font-size: 10px; color: #555; font-weight:600;}

.m-galaxy { flex: 1; display: flex; flex-direction: column; overflow: hidden; align-items: center; position: relative;}
.m-orbit-container { position: relative; width: 140px; height: 140px; margin-top: 15px; display:flex; justify-content:center; align-items:center; }
.m-orbit { position: absolute; border: 1px dashed rgba(255,255,255,0.05); border-radius: 50%; display:flex; justify-content:center; align-items:center; }
.orbit-1 { width: 50px; height: 50px; animation: spin 10s linear infinite; }
.orbit-2 { width: 95px; height: 95px; animation: spin 15s linear infinite reverse;}
.orbit-3 { width: 140px; height: 140px; animation: spin 20s linear infinite; }

.m-center-star { width: 12px; height: 12px; background: #25a7da; box-shadow: 0 0 15px #25a7da, 0 0 30px #25a7da; border-radius: 50%; position:absolute;}
.m-planet { width: 7px; height: 7px; border-radius: 50%; position: absolute; box-shadow: 0 0 10px currentColor;}

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

.m-galaxy-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px;}
.m-galaxy-legend span { font-size: 8px; color: #777; display: flex; align-items: center; gap: 4px;}
.m-galaxy-legend i { font-size: 6px; }

.m-nav { background: #161616; padding: 14px 18px; border-radius: 20px; display:flex; justify-content:space-between; align-items:center; position:absolute; bottom:20px; left:18px; right:18px; border: 1px solid rgba(255,255,255,0.05);}
.m-nav-item { color: #555; font-size: 16px; }
.m-nav-item.active { background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 14px; font-size: 12px; display:flex; gap:8px; align-items:center; font-weight:700;}

