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

:root {
    --primary: #01875f;
    --primary-glow: rgba(1, 135, 95, 0.4);
    --secondary: #1a73e8;
    
    /* Light Theme Defs (Fallback/Toggleable) */
    --bg-main: #ffffff;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #0B0E14;
    --bg-surface: #151A22;
    --bg-glass: rgba(21, 26, 34, 0.6);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --primary: #00e676; /* Brighter in dark mode */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Background Mesh Animations */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background-color: var(--primary);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 40vw;
    background-color: var(--secondary);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-icon {
    color: var(--primary);
    font-size: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none; border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 5% 60px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glow-container {
    position: relative;
    width: clamp(250px, 30vw, 400px);
    aspect-ratio: 1;
}

.glow-container::after {
    content: '';
    position: absolute;
    inset: 10%;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.floating-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: bounce 6s infinite ease-in-out;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Floating Stats */
.stats-glass-container {
    max-width: 1000px;
    margin: -60px auto 100px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.stats-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

.star-icon { color: #fbbf24; font-size: 24px; }
.verified-icon { color: var(--primary); font-size: 36px; }

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

/* Common Section */
.section-heading {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 64px;
    line-height: 1.2;
}

/* Features Bento Grid */
.features-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-glow);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.bento-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
}

.card-large .card-icon { width: 64px; height: 64px; font-size: 32px; }
.card-large h3 { font-size: 28px; }

.card-wide {
    grid-column: span 2;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.device-toggles {
    display: inline-flex;
    background: var(--bg-surface);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.device-btn {
    background: transparent;
    border: none;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.device-btn.active {
    background: var(--bg-main);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-track {
    display: flex;
    gap: 32px;
    padding: 20px 50vw 20px 5%; /* Start at left edge */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.app-screen {
    flex: 0 0 clamp(240px, 20vw, 300px);
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 4px solid var(--bg-surface);
    transition: transform 0.4s ease;
}

.app-screen:hover {
    transform: scale(1.05);
}

.app-screen img {
    width: 100%;
    display: block;
}

/* Reviews */
.reviews-section {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 24px;
}

.review-stars {
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-size: 20px;
}

.review-comment {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    color: white; font-weight: bold;
}

.reviewer h4 { font-size: 15px; }
.reviewer span { font-size: 13px; color: var(--text-secondary); }

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 40px;
    background: var(--bg-surface);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 { margin: 16px 0 8px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; }

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

.link-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.link-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

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

/* Modal Overlays (Base) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Disclaimer Specific Modal */
.disclaimer-modal {
    background: var(--bg-surface);
    padding: 32px 40px;
    border-radius: 32px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .disclaimer-modal {
    transform: translateY(0);
}

.disclaimer-modal p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-info {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.legal-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-actions button {
    flex: 1;
    justify-content: center;
}

/* Install Overlay Modal */
.install-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.install-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.install-modal {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-overlay.active .install-modal {
    transform: translateY(0);
}

.spinner {
    width: 60px; height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

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

.install-modal h3 { margin-bottom: 24px; font-size: 20px; }

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-main);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.2s ease;
}

.install-helper {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-content { margin: 0 auto; }
    .hero-cta-group { justify-content: center; }
    .stats-glass { flex-direction: column; gap: 24px; }
    .stat-divider { width: 100%; height: 1px; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .card-large, .card-wide { grid-column: span 1; grid-row: span 1; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
}
