:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b6b6b;
    --accent-primary: #007aff;
    --accent-hover: #0056cc;
    --success: #28a745;
    --border: #333333;
    --border-focus: #007aff;
    --neumorphic-shadow-dark: -6px -6px 12px rgba(255, 255, 255, 0.02), 6px 6px 12px rgba(0, 0, 0, 0.8);
    --neumorphic-shadow-inset: inset -2px -2px 4px rgba(255, 255, 255, 0.02), inset 2px 2px 4px rgba(0, 0, 0, 0.8);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --ring: rgba(0, 122, 255, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Decorative background glows */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.glow { position: absolute; filter: blur(80px); opacity: 0.25; }
.glow-a { width: 380px; height: 380px; top: -80px; left: -60px; background: radial-gradient( circle, var(--accent-primary), transparent 60% ); }
.glow-b { width: 420px; height: 420px; bottom: -120px; right: -80px; background: radial-gradient( circle, #34c759, transparent 60% ); opacity: 0.18; }

/* Top Navigation */
.top-nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(140%) blur(10px); background: linear-gradient(180deg, rgba(15,15,15,0.75), rgba(15,15,15,0.45)); border-bottom: 1px solid var(--glass-border); }
.nav-inner { max-width: 1000px; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-primary); }
.brand-logo { width: 28px; height: 28px; }
.brand-name { font-weight: 700; letter-spacing: -0.2px; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid transparent; transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); background: var(--glass); border-color: var(--glass-border); }
.nav-links a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0,122,255,0.2), rgba(0,122,255,0.05));
    border-color: rgba(0,122,255,0.25);
}

.nav-links a.active:hover {
    box-shadow: 0 0 0 6px var(--ring);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.app-header-compact {
    margin-bottom: 2rem;
}

.app-logo {
    width: 120px;
    height: 120px;
    filter: brightness(1.1);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.app-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.app-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: -0.2px;
}

.app-store-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
}

.app-store-link img {
    height: 48px;
    width: auto;
    display: block;
}

.app-store-link.toggle-inline {
    margin-top: 0;
}

.app-store-link.toggle-inline img {
    height: 42px;
}

.headline-accent { width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); opacity: 0.7; border-radius: 2px; margin-top: -0.25rem; }

/* Toggle Controls */
.toggle-controls {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 120px;
    height: 36px;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--neumorphic-shadow-inset);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 1;
    position: relative;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 26px;
    width: 56px;
    left: 4px;
    background: var(--accent-primary);
    border-radius: 13px;
    transition: var(--transition);
    box-shadow: var(--neumorphic-shadow-dark);
}

.toggle-input:checked+.toggle-slider::before {
    transform: translateX(56px);
}

.toggle-input:checked+.toggle-slider .toggle-option.right {
    color: var(--text-primary);
}

.toggle-input:not(:checked)+.toggle-slider .toggle-option.left {
    color: var(--text-primary);
}

/* Image Showcase */
.image-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.image-showcase-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--neumorphic-shadow-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 95vw;
    width: 100%;
    position: relative;
}

.image-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumorphic-shadow-dark), 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* Internal Toggle Controls */
.internal-toggles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.internal-toggles > * {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.internal-toggles .toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row;
}

/* Images Container */
.images-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Desktop Images (default) */
.desktop-images {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Mobile Slideshow (hidden by default) */
.mobile-slideshow {
    display: none;
    width: 100%;
    max-width: 400px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.slides-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 300%; /* 3 slides */
}

.slide {
    width: 33.333%; /* 1/3 of wrapper */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide .image-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Slideshow Indicators */
.slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.4;
}

.indicator.active,
.indicator:hover {
    background: var(--accent-primary);
    opacity: 1;
    transform: scale(1.2);
}

.image-figure { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.showcase-image {
    width: auto;
    max-width: 400px;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 48px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
    flex-shrink: 0;
}

.showcase-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumorphic-shadow-dark), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.image-label { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.2px; }

/* Action Buttons */
/* Quick Links */
.quick-links { margin-top: 2rem; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.link-pill { text-decoration: none; color: var(--text-primary); padding: 0.65rem 0.9rem; border-radius: 999px; background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--glass-border); transition: var(--transition); font-weight: 600; }
.link-pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 6px var(--ring); }

.neumorphic-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--neumorphic-shadow-dark);
    font-family: inherit;
    min-width: 180px;
    justify-content: center;
}

.neumorphic-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--neumorphic-shadow-dark), 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.neumorphic-btn:active {
    transform: translateY(0);
    box-shadow: var(--neumorphic-shadow-inset);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-inner { padding: 0.5rem 0.75rem; }
    .nav-links { gap: 0.5rem; }
    .container {
        padding: 1.5rem 1rem;
    }

    .app-logo {
        width: 100px;
        height: 100px;
    }

    .app-name {
        font-size: 2rem;
    }

    .app-tagline {
        font-size: 1.2rem;
    }

    .image-showcase {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .image-showcase-card {
        padding: 1.5rem;
        max-width: 98vw;
    }

    .internal-toggles {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 1.5rem;
        justify-content: space-between;
    }

    .images-container {
        gap: 0.75rem;
    }

    .showcase-image {
        max-width: 280px;
        max-height: 450px;
    }
    .quick-links { gap: 0.5rem; }
}

@media (max-width: 480px) {
    .app-logo {
        width: 80px;
        height: 80px;
    }

    .app-name {
        font-size: 1.75rem;
    }

    .app-tagline {
        font-size: 1rem;
    }

    .image-showcase-card {
        padding: 1rem;
        max-width: 98vw;
    }

    .internal-toggles {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        align-items: center;
    }

    /* Switch to slideshow on mobile */
    .desktop-images {
        display: none;
    }

    .mobile-slideshow {
        display: block;
    }

    .showcase-image {
        max-width: 280px;
        max-height: 450px;
        min-width: 200px;
        width: auto;
        height: auto;
    }

    .image-label {
        font-size: 0.8rem;
    }
}

/* Feature Cards Section */
.features-section {
    margin: 3rem 0;
    text-align: center;
}

.features-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: left;
    border: 1px solid var(--border);
    box-shadow: var(--neumorphic-shadow-dark);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumorphic-shadow-dark), 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

.feature-icon {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-inset);
    padding: 0.6rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
    flex: 1;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Feature Cards */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .features-section {
        margin: 2rem 0;
    }
    
    .features-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 0 auto;
    }
    
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-header {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        padding: 0.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-card {
        padding: 1.25rem 1rem;
    }
    
    .feature-header {
        gap: 0.5rem;
    }
    
    .feature-icon {
        width: 1.8rem;
        height: 1.8rem;
        min-width: 1.8rem;
        padding: 0.4rem;
    }
}

/* Copyright Footer */
.copyright-footer {
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.copyright-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

/* Feature grid removed per request */

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
