/* ni0ntech.com — shared styles
   Palette matches MotifScribe's 2026-07-11 redesign for portfolio cohesion:
   dark ground #0A0E17→#151C2E gradient, electric blue #5B8CFF accent. */

:root {
  --bg: #0a0e17;
  --bg-elevated: #10151f;
  --bg-card: #151c2e;
  --border: #232b3d;
  --text: #eef1f7;
  --text-dim: #9aa4b8;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --radius: 14px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

img { max-width: 100%; display: block; }

/* ---- Topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--accent), #3357d1);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06070a; }
.btn-primary:hover { background: #74a0ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-title {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---- Cards / grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--text-dim); margin: 0 0 16px; font-size: 15px; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge-live { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.badge-soon { background: var(--accent-soft); color: var(--accent); }
.badge-dev { background: rgba(250, 204, 21, 0.14); color: #facc15; }

/* ---- Prose (privacy/terms/press) ---- */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 0 96px; }
.prose h1 { font-size: 34px; margin-bottom: 8px; }
.prose .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 21px; margin-top: 40px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose ul { padding-left: 22px; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.foot-brand { max-width: 320px; }
.foot-tagline { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.foot-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.foot-col-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--text); font-size: 14px; }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--text-dim); }

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links.nav-links-open { display: flex; }
  .nav-toggle { display: flex; }
}
