:root {
    --primary: #cd4c4c;
    --primary-light: #e85d5d;
    --primary-dark: #a83c3c;
    --accent: #ff6b6b;
    --bg-dark: #0d0d0f;
    --bg-dark-secondary: #16161a;
    --bg-dark-tertiary: #1e1e24;
    --text-dark: #ffffff;
    --text-dark-muted: #a0a0a8;
    --bg-light: #fafafa;
    --bg-light-secondary: #ffffff;
    --bg-light-tertiary: #f0f0f2;
    --text-light: #1a1a1f;
    --text-light-muted: #6b6b75;
    --gradient-dark: linear-gradient(135deg, #0d0d0f 0%, #1a1a22 50%, #0d0d0f 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f8fa 50%, #ffffff 100%);
    --card-shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-shadow-light: 0 4px 24px rgba(0, 0, 0, 0.08);
    --glow: 0 0 60px rgba(205, 76, 76, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

body.light-mode {
    background: var(--gradient-light);
    color: var(--text-light);
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary) 1px, transparent 1px);
    background-size: 60px 60px;
}

body.light-mode .bg-pattern {
    opacity: 0.05;
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.08;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    opacity: 0.05;
    bottom: 10%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

body.light-mode .orb-1 {
    opacity: 0.12;
}

body.light-mode .orb-2 {
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
}

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

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: var(--glow), var(--card-shadow-dark);
    animation: iconPulse 4s ease-in-out infinite;
}

body.light-mode .app-icon {
    box-shadow: var(--glow), var(--card-shadow-light);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(205, 76, 76, 0.15);
    border: 1px solid rgba(205, 76, 76, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(205, 76, 76, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--text-dark-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease 0.3s both;
}

body.light-mode .hero-subtitle {
    color: var(--text-light-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(205, 76, 76, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(205, 76, 76, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(205, 76, 76, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(205, 76, 76, 0.4);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* Sections */
section {
    padding: 60px 0;
}

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

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
    max-width: 600px;
    margin: 0 auto;
}

body.light-mode .section-subtitle {
    color: var(--text-light-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.light-mode .feature-card {
    background: var(--bg-light-secondary);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: var(--card-shadow-light);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(205, 76, 76, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(205, 76, 76, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

body.light-mode .feature-card p {
    color: var(--text-light-muted);
}

/* Screenshots */
.screenshots-section {
    overflow: hidden;
}

.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-dark-tertiary);
    color: var(--text-dark-muted);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.light-mode .tab-btn {
    background: var(--bg-light-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-light-muted);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

body.light-mode .tab-btn.active,
body.light-mode .tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.screenshots-container {
    position: relative;
}

.screenshots-wrapper {
    display: none;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.screenshots-wrapper.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

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

.screenshot {
    border-radius: 24px;
    box-shadow: var(--card-shadow-dark);
    transition: transform 0.4s ease;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .screenshot {
    box-shadow: var(--card-shadow-light);
    border-color: rgba(0, 0, 0, 0.08);
}

.screenshot:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Theme-specific screenshots */
.dark-only {
    display: block;
}

.light-only {
    display: none;
}

body.light-mode .dark-only {
    display: none;
}

body.light-mode .light-only {
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 28px;
    height: 28px;
    fill: white;
    pointer-events: none;
}

.screenshot-ios {
    width: 220px;
    height: auto;
}

.screenshot-mac {
    max-width: 100%;
    width: 600px;
    height: auto;
}

/* Download Section */
.download-section {
    background: var(--bg-dark-secondary);
    border-radius: 32px;
    padding: 80px 40px;
    margin: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.light-mode .download-section {
    background: var(--bg-light-secondary);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: var(--card-shadow-light);
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(205, 76, 76, 0.1), transparent 60%);
    pointer-events: none;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

body.light-mode .download-card {
    background: var(--bg-light-tertiary);
    border-color: rgba(0, 0, 0, 0.06);
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-card h3 svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.download-card .requirements {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dark-muted);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(205, 76, 76, 0.1);
    border-radius: 8px;
    display: inline-block;
}

body.light-mode .download-card .requirements {
    color: var(--text-light-muted);
}

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

.download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link.app-store {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
}

.download-link.app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.download-link.gumroad {
    background: var(--bg-dark-secondary);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .download-link.gumroad {
    background: var(--bg-light-secondary);
    color: var(--text-light);
    border-color: rgba(0, 0, 0, 0.1);
}

.download-link.gumroad:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.download-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Pi Monitor Section */
.pi-monitor-section {
    text-align: center;
}

.pi-monitor-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
}

body.light-mode .pi-monitor-card {
    background: var(--bg-light-secondary);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: var(--card-shadow-light);
}

.pi-monitor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pi-monitor-card p {
    color: var(--text-dark-muted);
    margin-bottom: 24px;
}

body.light-mode .pi-monitor-card p {
    color: var(--text-light-muted);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-link:hover {
    color: var(--accent);
}

.github-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Compatibility Badge */
.compatibility {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.compat-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(205, 76, 76, 0.1);
    border: 1px solid rgba(205, 76, 76, 0.2);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.compat-badge strong {
    color: var(--primary-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-dark-muted);
    font-size: 0.9rem;
}

body.light-mode footer {
    color: var(--text-light-muted);
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        padding: 40px 24px 30px;
    }

    .app-icon {
        width: 110px;
        height: 110px;
        border-radius: 26px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

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

    section {
        padding: 48px 0;
    }

    .download-section {
        margin: 0 16px;
        padding: 48px 24px;
        border-radius: 24px;
    }

    .screenshot-ios {
        width: 180px;
    }

    .screenshot-mac {
        width: 100%;
    }

    .pi-monitor-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .screenshots-tabs {
        flex-wrap: wrap;
    }

    .feature-card {
        padding: 24px;
    }
}

