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

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #7c3aed;
  --accent-soft: #f5f3ff;
  --border: #e5e5e5;
  --radius: 1.25rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --line: #f0f0f0;
  --success: #16a34a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --ink: #f0f0f0;
    --muted: #888;
    --accent: #a78bfa;
    --accent-soft: #1e1533;
    --border: #2a2a2a;
    --line: #222;
  }
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.5; min-height: 100dvh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
header nav { display: flex; align-items: center; gap: 1.25rem; }
header nav a { font-size: 0.88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }

/* App grid */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color 0.15s, box-shadow 0.15s; }
.app-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.app-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.app-icon { width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.app-card h3 { font-size: 1rem; font-weight: 700; }
.tag { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.app-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.app-actions { display: flex; gap: 0.75rem; align-items: center; }
.app-btn-open { background: var(--accent); color: white; padding: 0.4rem 1rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.pro-badge-sm { font-size: 0.6rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 0.15rem 0.4rem; border-radius: 0.25rem; }

/* Hero */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 4rem; }
footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-left .logo { display: block; margin-bottom: 0.25rem; }
.footer-left p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); }
