:root {
    --bg-dark: #0a0a0b;
    --bg-card: rgba(20, 20, 23, 0.7);
    --bg-card-hover: rgba(30, 30, 35, 0.9);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: rgba(255, 255, 255, 0.05);
    --secondary-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(59, 130, 246, 0.15);
    --bg-nav-scrolled: rgba(10, 10, 11, 0.8);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

:root.light {
    --bg-dark: #fafafb;
    --bg-card: rgba(240, 240, 243, 0.7);
    --bg-card-hover: rgba(230, 230, 235, 0.9);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: rgba(0, 0, 0, 0.05);
    --secondary-hover: rgba(0, 0, 0, 0.1);
    --text-primary: #0f0f11;
    --text-secondary: #52525b;
    --border: rgba(0, 0, 0, 0.08);
    --glow-color: rgba(37, 99, 235, 0.05);
    --bg-nav-scrolled: rgba(250, 250, 251, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effects */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--bg-nav-scrolled);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-icon {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pwyw-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.carousel-window {
    position: relative;
    background: #18181b;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 45px var(--glow-color);
    overflow: hidden;
    height: 520px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.25);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.98);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 30px;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 45%, rgba(10, 10, 11, 0.2) 80%, rgba(10, 10, 11, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.slide-caption h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

.slide-caption p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: var(--primary);
    width: 36px;
}

@media (max-width: 768px) {
    .carousel-window {
        height: 350px;
    }
    .slide-caption {
        padding: 16px 20px;
    }
    .slide-caption h3 {
        font-size: 1.15rem;
    }
    .slide-caption p {
        font-size: 0.85rem;
    }
    .carousel-indicators {
        bottom: 80px;
    }
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
}

.cta-container {
    background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* Download Platform Grid */
.download-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px var(--glow-color);
}

.download-card .platform-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.download-card:hover .platform-icon {
    transform: scale(1.1);
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.download-card .platform-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.btn-subtext {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 2px;
}

.download-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.download-btn-group .btn {
    width: 100%;
    justify-content: center;
}

.trust-notice {
    margin-top: 3rem;
    background: rgba(234, 179, 8, 0.05);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trust-notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #eab308;
    margin-bottom: 0.75rem;
}

.trust-notice p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.trust-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.trust-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.trust-step code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .mockup-sidebar {
        display: none;
    }
}

/* Light Mode Gradients & Text overrides */
:root.light h1 {
    background: linear-gradient(to right, #0f0f11, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button & Icon Styling */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#theme-toggle .theme-icon-light {
    display: none;
}
#theme-toggle .theme-icon-dark {
    display: block;
}

:root.light #theme-toggle .theme-icon-light {
    display: block;
    color: #f59e0b;
}
:root.light #theme-toggle .theme-icon-dark {
    display: none;
}

/* Light Mode Mockup Overrides */
.light .app-mockup {
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(37, 99, 235, 0.05);
}
.light .mockup-header {
    background: #f4f4f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.light .mockup-title {
    color: #71717a;
}
.light .mockup-sidebar {
    background: #fafafa;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.light .mockup-text {
    background: #e4e4e7;
}
.light .mockup-text.title {
    background: #a1a1aa;
}
.light .dots span {
    background: #d4d4d8;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.light .toast {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 20px rgba(37, 99, 235, 0.05);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(-20px);
    opacity: 0;
}

.toast-icon {
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex-grow: 1;
}

