:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --accent: #222222;
    --bg-alt: #f8f9fa;
    --border: #eeeeee;
    --glow: rgba(72, 108, 255, 0.14);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-primary: #f5f5f5;
        --text-secondary: #aaaaaa;
        --text-tertiary: #777777;
        --accent: #ffffff;
        --bg-alt: #111111;
        --border: #222222;
        --glow: rgba(110, 138, 255, 0.18);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at top, var(--glow), transparent 34%),
        linear-gradient(to bottom, color-mix(in srgb, var(--bg-alt) 40%, transparent), transparent 30%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    padding: 24px;
}

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

.wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 60px;
    animation: fade-up 0.65s ease both;
}

/* Hero Section */
.hero {
    margin-bottom: 64px;
}

.hero-top {
    margin-bottom: 32px;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    display: block;
    margin: 0 auto;
    animation: float-in 0.8s ease both;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    text-align: center;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
    padding: 14px 28px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.btn-primary:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.btn-store {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 13px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    backdrop-filter: blur(8px);
}

.btn-store:hover {
    background-color: var(--bg-alt);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.btn-store-disabled {
    color: var(--text-secondary);
    background-color: var(--bg-alt);
    border-color: var(--border);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.store-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.hero-meta {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    max-width: 560px;
    margin: 0 auto;
}

.hero .subtitle + .hero-meta {
    margin-bottom: 18px;
}

/* Screenshots Scroller */
.screenshots {
    margin: 0 -24px 80px;
    overflow: hidden;
    position: relative;
}

.scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px 40px;
    scrollbar-width: none; /* Firefox */
}

.scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshot-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.screenshot-img {
    height: 480px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.screenshot-img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

/* Features */
.features {
    margin-bottom: 80px;
}

.feature-block {
    margin-bottom: 60px;
}

.feature-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-block > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-block ul {
    list-style: none;
    padding-left: 0;
}

.feature-block li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.feature-block li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* FAQ */
.faq {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 32px;
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
}

.faq-item a {
    text-decoration: underline;
}

/* Bottom CTA */
.bottom-cta {
    margin-bottom: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.bottom-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.cta-stacked {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.btn-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-text-disabled {
    color: var(--text-tertiary);
    cursor: default;
    pointer-events: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    filter: grayscale(100%);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

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

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

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

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wrapper,
    .app-icon {
        animation: none;
    }

    .btn,
    .screenshot-img {
        transition: none;
    }
}

/* Responsive Focus */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .screenshot-img {
        height: 380px;
    }
    .wrapper {
        padding-top: 40px;
    }
}
