:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0066cc;
    --card-bg: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--accent-color); }

.site-header { text-align: center; padding: 60px 0 40px; }
.site-header h1 { font-size: 2.5rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.subtitle { font-size: 1.2rem; color: var(--text-secondary); margin: 0; }
.top-nav { padding: 20px 0; }
.back-link { font-weight: 500; }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 60px;
}

.app-card {
    background: var(--card-bg); border-radius: 18px; padding: 30px; text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; display: block;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

.app-icon {
    width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold;
}
.app-card h2 { margin: 0 0 10px; font-size: 1.4rem; color: var(--text-primary); }
.app-card p { color: var(--text-secondary); margin: 0 0 20px; font-size: 0.95rem; }
.text-link { font-weight: 600; color: var(--accent-color); }

.app-product-page, .text-document {
    background: var(--card-bg); border-radius: 24px; padding: 60px 40px; margin-bottom: 60px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.app-hero { text-align: center; margin-bottom: 50px; border-bottom: 1px solid #eee; padding-bottom: 50px; }
.app-icon-large {
    width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 28px;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold;
}
.app-hero h1 { font-size: 2.5rem; margin: 0 0 10px; }
.tagline { font-size: 1.2rem; color: var(--text-secondary); margin: 0 0 30px; }
.app-store-button {
    display: inline-block; background-color: var(--text-primary); color: white;
    padding: 12px 24px; border-radius: 24px; font-weight: 600; transition: opacity 0.2s;
}
.app-store-button:hover { opacity: 0.8; }

.screenshot-gallery {
    display: flex; gap: 24px; overflow-x: auto; padding: 20px 0 40px; margin: 0 -40px 40px;
    padding-left: 40px; padding-right: 40px; scrollbar-width: none; -ms-overflow-style: none;
}
.screenshot-gallery::-webkit-scrollbar { display: none; }
.screenshot {
    width: 250px; height: 541px; border-radius: 32px; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover;
}
.placeholder-screen {
    background: #e2e2e7; border: 8px solid #1d1d1f; display: flex; align-items: center; justify-content: center;
    color: #86868b; font-weight: 600;
}

.app-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.feature h3 { margin: 0 0 10px; font-size: 1.2rem; }
.feature p { color: var(--text-secondary); margin: 0; }

.text-document h1 { margin-top: 0; }
.text-document h2 { font-size: 1.2rem; margin-top: 30px; }
.text-document p { color: var(--text-secondary); margin-bottom: 20px; }

.site-footer { text-align: center; padding: 40px 0; color: var(--text-secondary); font-size: 0.9rem; }
.site-footer a { color: var(--text-secondary); margin: 0 10px; }
.site-footer a:hover { color: var(--text-primary); }