/* Base Styles */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #F5F5F7;
    --text-color: #111827;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --max-width: 1200px;
}

[data-theme="dark"] {
    --primary-color: #6366F1;
    --primary-dark: #818CF8;
    --secondary-color: #1F2937;
    --text-color: #F9FAFB;
    --text-light: #D1D5DB;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: transparent;
    transition: color 0.3s ease;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior: none;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    opacity: 0.1;
    z-index: -2;
}

html[data-theme="dark"] body::before {
    background: #000000;
background: radial-gradient(circle, rgba(0, 128, 255, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(2, 0, 36, 1) 100%);
    opacity: 1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Background Elements */

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    image-rendering: optimizeQuality;
    shape-rendering: geometricPrecision;
}

.gradient-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.background-arcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
}

.arc {
    transform-origin: center;
}

.arc1 {
    animation: arcFloat1 15s ease-in-out infinite;
}

.arc2 {
    animation: arcFloat2 18s ease-in-out infinite;
}

.arc3 {
    animation: arcFloat3 20s ease-in-out infinite;
}

.arc4 {
    animation: arcFloat4 17s ease-in-out infinite;
}

.arc5 {
    animation: arcFloat5 22s ease-in-out infinite;
}

html[data-theme="dark"] .background-arcs {
    opacity: 0.35;
}




/* Arc animations */

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

@keyframes arcFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

@keyframes arcFloat4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

header .container {
    padding: 0;
}

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

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.5rem 0.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    will-change: transform, opacity;
    /* Ensure hardware acceleration for smoother animations */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

html[data-theme="dark"] header {
    background: linear-gradient(135deg, rgba(40, 70, 115, 0.65) 0%, rgba(50, 75, 125, 0.6) 50%, rgba(45, 65, 110, 0.65) 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(130, 170, 210, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
    padding-left: 0.25rem;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    margin-left: 0.25rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 0.25rem;
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    outline: none;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(83, 120, 149, 0.2);
    box-shadow: 0 0 8px rgba(0, 128, 255, 0.2);
}

.theme-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.sun-icon {
    opacity: 1;
    transform: scale(1);
}

.moon-icon {
    opacity: 0;
    transform: scale(0.5);
}

html[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: scale(0.5);
}

html[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

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

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--text-color);
}

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

.download-button {
    padding: 0.4rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-credit-card {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* App Showcase */
.app-showcase {
    padding: 2rem 0 4rem;
    background-color: var(--background-light);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.app-showcase .container {
    max-width: 1600px;
    padding: 0 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.secondary {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

[data-theme="dark"] .secondary {
    background-color: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    min-height: 300px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.carousel-item {
    width: 100%;
    flex: 0 0 auto;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    text-align: center;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transform: scale(1.2);
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.carousel-item.active img {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.carousel-item:not(.active) img {
    filter: blur(2px) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.carousel-controls {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: white;
    width: 20px;
    border-radius: 10px;
}

/* Fade animation classes */
.carousel-item.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

/* Features Section */
.features {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .feature-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(83, 120, 149, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(83, 120, 149, 0.15);
}

/* Feature card headings and paragraphs */
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Download Section */
.download {
    background-color: var(--background-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.download-options.mac-only .download-option {
    padding: 3rem 4rem;
    text-align: center;
    max-width: 400px;
}

.coming-soon {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 1rem;
}

.download-option {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.download-option:hover {
    transform: translateY(-5px);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apple-logo {
    width: 40px;
    height: 40px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

html[data-theme="dark"] .apple-logo {
    fill: #ffffff;
}

.download-option h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.version-info {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    display: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes toast-in-out {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 0;
}

.minimal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.minimal-footer p {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding: 0 1rem;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    header {
        width: 95%;
        padding: 0.4rem 0.75rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
        top: 10px;
        padding: 0.5rem 0.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-right {
        gap: 0.75rem;
    }
    
    .download-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .btn {
        width: auto;
        text-align: center;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        margin-bottom: 1rem;
        white-space: nowrap;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        margin-top: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    header {
        width: 100%;
        border-radius: 0;
        top: 0;
        padding: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .theme-switch {
        height: 20px;
        width: 36px;
    }
    
    .download-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }
}
