/* Nekosoft — studio marketing home.
   Self-contained: no webfonts, no CDN, no build step. */

:root {
    --bg: #ffffff;
    --bg-card: #f5f5f7;
    --text: #1d1d1f;
    --text-dim: #6e6e73;
    --accent: #0071e3;
    --rule: #e5e5ea;
    --wide: 980px;
    --col: 720px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-card: #1c1c1e;
        --text: #f5f5f7;
        --text-dim: #98989d;
        --accent: #2997ff;
        --rule: #2c2c2e;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 20px 80px;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Noto Sans TC", "Hiragino Sans", sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wide { max-width: var(--wide); margin: 0 auto; }
.wrap { max-width: var(--col); margin: 0 auto; }

/* Header ------------------------------------------------------------------ */
header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 8px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 17px;
    color: var(--text); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--text-dim); text-decoration: none; }
nav a:hover { color: var(--accent); }

/* Hero -------------------------------------------------------------------- */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 {
    font-size: 44px; line-height: 1.1; letter-spacing: -.02em;
    margin: 0 0 14px;
}
.hero .sub {
    color: var(--text-dim); font-size: 21px; line-height: 1.4;
    max-width: 560px; margin: 0 auto;
}
@media (max-width: 560px) {
    .hero { padding: 40px 0 28px; }
    .hero h1 { font-size: 34px; }
    .hero .sub { font-size: 18px; }
}

/* Sections ---------------------------------------------------------------- */
section h2 {
    font-size: 26px; letter-spacing: -.01em;
    margin: 0 0 24px; text-align: center;
}

/* App grid ---------------------------------------------------------------- */
.apps { padding: 32px 0 24px; }
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.app-card {
    display: block;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}
a.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}
.app-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #63b3ff);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-bottom: 16px;
}
.app-icon svg { width: 34px; height: 34px; }
.app-card h3 { font-size: 19px; margin: 0 0 6px; }
.app-card p { color: var(--text-dim); font-size: 15px; margin: 0 0 14px; }
.app-card .more { color: var(--accent); font-size: 15px; font-weight: 500; }

/* Coming-soon 佔位卡 */
.app-card.coming {
    background: transparent;
    border: 1px dashed var(--rule);
}
.app-card.coming .app-icon { background: var(--bg-card); }
.app-card.coming h3 { color: var(--text-dim); }

/* About ------------------------------------------------------------------- */
.about { padding: 48px 0 24px; }
.about h2 { text-align: left; }
.about p { margin: 0 0 14px; }

/* Footer ------------------------------------------------------------------ */
footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    color: var(--text-dim);
    font-size: 15px;
    text-align: center;
}
footer a { color: var(--accent); }
footer p { margin: 0 0 6px; }
