/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0D0D17;
  --surface:   #13131F;
  --border:    #1E1E30;
  --accent:    #7C6AF7;
  --accent-lt: #A78BFA;
  --text:      #E8E8F0;
  --muted:     #7A7A9A;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max:       720px;
  --r:         12px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

nav {
  max-width: var(--max);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── Main ─────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { margin-bottom: 5rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

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

/* ── Apps section ─────────────────────────────────────── */
.apps { margin-bottom: 5rem; }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.app-icon {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 48px;
  height: 48px;
}

.app-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.app-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(124, 106, 247, 0.15);
  color: var(--accent-lt);
  border: 1px solid rgba(124, 106, 247, 0.3);
  border-radius: 999px;
  padding: 0.2em 0.75em;
}

/* ── About section ────────────────────────────────────── */
.about { margin-bottom: 4rem; }

.about p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 580px;
}

.about p + p { margin-top: 0.75rem; }

.about strong { color: var(--text); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  font-size: 0.75rem;
  color: #3D3D5C;
}

/* ── Inner pages ──────────────────────────────────────── */
.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-header .updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.prose h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p, .prose li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.prose ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.prose li { margin-bottom: 0.25rem; }

.prose p + p { margin-top: 0.75rem; }

.contact-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.contact-block p {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-block a { color: var(--accent-lt); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 500px) {
  .app-card { flex-direction: column; }
  main { padding: 2.5rem 1.25rem; }
  .hero { margin-bottom: 3.5rem; }
}
