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

:root {
    --bg: #0c0c0c;
    --surface: #161616;
    --surface-hover: #1c1c1c;
    --border: #2a2a2a;
    --text: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent: #d4a855;
    --accent-hover: #e5bc6a;
    --accent-subtle: rgba(212, 168, 85, 0.1);
}

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

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

/* ============ Home Page ============ */
.home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.home .hero {
    text-align: center;
    margin-bottom: 3rem;
}

.home .hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.home .tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.home .projects {
    margin-bottom: 2rem;
}

.home footer {
    margin-top: auto;
    padding-top: 3rem;
}

/* ============ Project Card ============ */
.project-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.project-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;
}

.project-info {
    flex: 1;
}

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

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

/* ============ Links ============ */
.links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    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.6;
}

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

/* ============ Footer ============ */
footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ App Page ============ */
.app-page header {
    margin-bottom: 3rem;
}

.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;
}

.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 h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

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

.app-page section {
    margin-bottom: 2.5rem;
}

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

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

.app-page section li {
    color: var(--text-secondary);
    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 {
    color: var(--accent-hover);
}

/* ============ 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);
}

/* ============ Responsive ============ */
@media (max-width: 480px) {
    .home .hero h1 {
        font-size: 2rem;
    }

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

    .project-card {
        padding: 1rem;
    }

    .project-icon {
        width: 56px;
        height: 56px;
    }

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