/* ============================================================
   nninnis developer portal — shared styles
   ============================================================ */

:root {
  --bg:        #0f0e17;
  --surface:   #1a1825;
  --surface-2: #221f30;
  --border:    #2e2a42;
  --text:      #e8e6f0;
  --muted:     #9b97b0;
  --accent-a:  #7c5cff;
  --accent-b:  #f54468;
  --radius:    16px;
  --maxw:      860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #a98bff; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- top nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav .brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav .brand span {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav .links a { color: var(--muted); margin-left: 20px; font-size: 0.92rem; }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 56px 24px 40px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- app grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 24px 0 64px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #443e63;
  text-decoration: none;
}
.card .icon {
  width: 64px; height: 64px;
  border-radius: 15px;
  object-fit: cover;
  background: var(--surface-2);
}
.card .title { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.card .desc  { color: var(--muted); font-size: 0.92rem; margin: -6px 0 0; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9a6ff;
  background: rgba(124, 92, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
}
.card.soon { opacity: 0.55; }
.card.soon .tag { color: var(--muted); background: rgba(155,151,176,0.1); }

/* ---- app detail page ---- */
.app-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 40px 0 28px;
}
.app-head img {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: var(--surface-2);
}
.app-head h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.app-head .sub { color: var(--muted); margin: 0; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: #443e63; background: var(--surface-2); }
.btn.primary {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  border: none;
  color: #fff;
}
.btn.primary:hover { opacity: 0.92; }

.section { padding: 8px 0 24px; }
.section h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section p, .section li { color: #cfccdd; }
.section ul { padding-left: 20px; }

/* ---- legal / privacy ---- */
.legal h1 { font-size: 1.8rem; margin-bottom: 4px; }
.legal h2 { font-size: 1.12rem; margin-top: 30px; }
.legal p, .legal li { color: #cfccdd; font-size: 0.95rem; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.legal code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 24px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
