:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --border: #e5e5e7;
  --text: #1a1a1a;
  --muted: #6b6b70;
  --accent: #0a84ff;
  --accent-contrast: #ffffff;
  --radius: 16px;
  --maxw: 640px;
  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --border: #2c2c2e;
    --text: #f5f5f7;
    --muted: #9a9aa0;
    --accent: #0a84ff;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 20px 48px;
}

/* Hero */
.hero { text-align: center; margin-bottom: 48px; }
.hero h1 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.tagline { color: var(--muted); font-size: 17px; margin-top: 8px; }

/* Projects */
.projects { display: grid; gap: 16px; }

.card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card-icon { flex: 0 0 auto; }
.card-icon img,
.icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-placeholder {
  background: linear-gradient(135deg, var(--accent), #5e5ce6);
  color: #fff;
  font-weight: 700;
  font-size: 24px;
}

.card-body { flex: 1 1 auto; min-width: 0; }
.card-body h2 { font-size: 18px; font-weight: 600; }
.card-title { color: var(--text); text-decoration: none; }
.card-title:hover { text-decoration: underline; }
.card-desc { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }

/* App Store button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 980px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* Live state: clickable App Store link */
.appstore-btn.is-live {
  background: var(--accent);
  color: var(--accent-contrast);
}
.appstore-btn.is-live:hover { opacity: 0.9; transform: translateY(-1px); }
/* Review / coming-soon state: muted, non-interactive */
.appstore-btn[data-state="review"] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}
.appstore-btn .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffb020;
  box-shadow: 0 0 0 3px rgba(255,176,32,0.18);
}

/* Footer */
.footer { margin-top: 56px; text-align: center; color: var(--muted); }
.links, .legal { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.legal { margin-top: 10px; }
.footer a { color: var(--text); text-decoration: none; font-size: 14px; }
.legal a { color: var(--muted); font-size: 13px; }
.footer a:hover { text-decoration: underline; }
.copyright { font-size: 13px; margin-top: 20px; }

@media (max-width: 420px) {
  .wrap { padding-top: 48px; }
  .hero h1 { font-size: 28px; }
}
