/* ============================================================
   VELAMIR — shared stylesheet
   Palette:
     --ink        #0B0D17  deep indigo-black (page bg)
     --panel      #141726  raised surface (cards, header)
     --panel-2    #1C2033  hover / nested surface
     --line       #262B40  hairline borders
     --text       #E7E9F2  primary text
     --muted      #9AA0B8  secondary text
     --accent     #6C5CE7  electric indigo (brand)
     --accent-2   #00E0B8  signal teal (live status)
     --amber       #F5A524  in-development status
   Type:
     Display: "Space Grotesk"  (characteristic, geometric)
     Body:    "Inter"
     Mono:    "JetBrains Mono" (version/status vernacular)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0B0D17;
  --panel: #141726;
  --panel-2: #1C2033;
  --line: #262B40;
  --text: #E7E9F2;
  --muted: #9AA0B8;
  --accent: #6C5CE7;
  --accent-soft: rgba(108, 92, 231, 0.14);
  --accent-2: #00E0B8;
  --amber: #F5A524;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.925rem; color: var(--muted); font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent; transition: all 0.18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5849d6; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; max-width: 15ch; margin-bottom: 22px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 52ch; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section scaffold ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head .kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* ---------- App cards (signature element) ---------- */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.app-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4834b8);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff;
  overflow: hidden;
}
.app-card .icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.app-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.app-card .meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
}

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
  border: 1px solid var(--line);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill.live { color: var(--accent-2); }
.pill.live::before { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.pill.soon { color: var(--accent); }
.pill.soon::before { background: var(--accent); }
.pill.dev { color: var(--amber); }
.pill.dev::before { background: var(--amber); }

/* ---------- Update / changelog list ---------- */
.updates { display: flex; flex-direction: column; gap: 0; }
.update-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.update-row:first-child { border-top: 0; }
.update-row .date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.update-row h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.update-row p { color: var(--muted); font-size: 0.94rem; }
.update-row .tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-2);
}
@media (max-width: 560px) {
  .update-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Generic content (privacy, about) ---------- */
.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.4rem; margin: 36px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent-2); }
.prose a:hover { text-decoration: underline; }
.note {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px;
  font-size: 0.9rem; color: var(--text);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px; text-align: center;
  margin: 8px 0;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto; border-top: 1px solid var(--line);
  padding: 40px 0; color: var(--muted); font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-brand { font-family: var(--font-display); font-weight: 600; color: var(--text); }
