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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: #262626;
    --text: #fafafa;
    --text-muted: #888;
    --accent: #e2c074;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Hero */
.hero {
    margin-bottom: 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Section headings */
h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Apps */
.apps {
    margin-bottom: 3rem;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-card:hover {
    background: var(--surface-hover);
    border-color: #333;
    transform: translateY(-2px);
}

.app-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-info h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.app-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.app-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(226, 192, 116, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.app-card:hover .arrow {
    transform: translateX(4px);
    color: var(--text);
}

/* Links */
.links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.link-item:hover {
    color: var(--text);
    background: var(--surface);
}

.link-item svg {
    opacity: 0.7;
}

.link-item:hover svg {
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============ Screenshots ============ */
.screenshots {
    margin-bottom: 3rem;
}

.screenshot-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 3px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.screenshot-scroll img {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ============ Moon App Page ============ */
.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 18px;
    border: 1px solid var(--border);
}

.app-page header {
    margin-bottom: 3rem;
}

.app-page header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* App page sections */
.app-page section {
    margin-bottom: 2.5rem;
}

.app-page section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.app-page section ul {
    list-style: none;
    margin: 0;
}

.app-page section li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.app-page section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
    }

    .links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
