/* ═══════════════════════════════════════════════════════════════════════════
   OmniLister — Precision Architect palette + tokens
   Built by Marketmate Solutions Ltd
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette ────────────────────────────────────────────── */
  --primary: #000000;                       /* high-impact typography */
  --secondary: #712ae2;                     /* AI intelligence accent */
  --secondary-container: #8a4cfc;
  --secondary-fixed: #eaddff;
  --secondary-fixed-dim: #d2bbff;

  /* Surface hierarchy — tonal layering, no borders */
  --surface: #f7f9fb;                       /* base */
  --surface-container-low: #f2f4f6;         /* blotter */
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --surface-container-lowest: #ffffff;      /* paper */
  --surface-bright: #f7f9fb;
  --surface-dark: #0f1115;
  --surface-dim: #d8dadc;

  /* Text on surfaces */
  --on-surface: #191c1e;
  --on-surface-variant: #45464d;
  --text-muted: #6b7280;
  --outline: #76777d;
  --outline-variant: #c6c6cd;

  /* State */
  --success: #16a34a;
  --warning: #d97706;
  --error: #ba1a1a;

  /* Elevation (tonal — no harsh shadows) */
  --shadow-soft: 0 0 32px rgba(25, 28, 30, 0.06);
  --shadow-ai: 0 0 0 2px rgba(113, 42, 226, 0.2);

  /* Border — "ghost only", never 100% opaque */
  --border: rgba(198, 198, 205, 0.35);
  --border-strong: rgba(198, 198, 205, 0.6);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Layout */
  --nav-height: 72px;
  --container-max: 1200px;
}

/* ── Reset ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
*, *::before, *::after { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--on-surface-variant); }

.accent { color: var(--secondary); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-block;
}

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

/* ── NAV ──────────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-wrap.scrolled {
  background: rgba(247, 249, 251, 0.95);
  box-shadow: var(--shadow-soft);
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--secondary); }

.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links li { position: relative; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 8px 0;
  transition: color 120ms;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 160ms ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-container) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(113, 42, 226, 0.18);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(113, 42, 226, 0.28);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover {
  background: rgba(113, 42, 226, 0.08);
  text-decoration: none;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: absolute; top: var(--nav-height); left: 0; right: 0;
  background: var(--surface-container-lowest);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 0;
  color: var(--on-surface);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(113,42,226,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(138,76,252,0.05) 0%, transparent 50%),
    var(--surface);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(113, 42, 226, 0.08);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title { max-width: 820px; margin: 0 auto 20px; }
.hero-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  max-width: 680px; margin: 0 auto 36px;
  color: var(--on-surface-variant);
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.hero-chip {
  padding: 6px 12px;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-full);
  font-size: 0.78rem; color: var(--on-surface-variant);
  font-weight: 500;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.section-dark {
  background: var(--surface-dark);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.65); }

/* ── CARD GRID ──────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  align-items: center;
}

.card {
  background: var(--surface-container-lowest);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 200ms;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(113, 42, 226, 0.1);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.muted {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
}
.card h3 { margin-bottom: 10px; }
.card p { line-height: 1.65; }

/* Marketplace logo tile — used on channels.html */
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 80px;
  background: var(--surface-container-lowest);
  border-radius: 12px;
  margin-bottom: 18px;
  padding: 16px;
}
.logo-tile img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  display: block;
}
.logo-tile.muted {
  background: var(--surface-container-low);
  filter: grayscale(0.6);
  opacity: 0.75;
  transition: all 200ms;
}
.card:hover .logo-tile.muted {
  filter: grayscale(0);
  opacity: 1;
}

/* Hero chip with inline logo (kept for legacy use) */
.hero-chip-logo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-full);
  font-size: 0.82rem; color: var(--on-surface);
  font-weight: 500;
}
.hero-chip-logo img { width: 22px; height: 22px; object-fit: contain; }

/* ── Logo marquee (auto-scrolling carousel) ─────────────── */
.logo-marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  /* fade edges so logos appear/disappear smoothly */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-slide {
  flex-shrink: 0;
  height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.logo-slide img {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 200ms;
}
.logo-slide img:hover { opacity: 1; }
@keyframes logo-scroll {
  from { transform: translateX(0); }
  /* Half the track is one full set of logos; translating by -50% loops seamlessly */
  to   { transform: translateX(-50%); }
}

/* ── Numbered card marker (used in place of icons) ──────── */
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(113,42,226,0.18) 0%, rgba(138,76,252,0.08) 100%);
  color: var(--secondary);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.card-num.muted {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
}

/* List content — bigger spacing between bullets in body copy */
.content-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 22px;
  margin: 24px 0;
  padding: 0;
}
.content-list li {
  display: flex; gap: 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
}
.content-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(113, 42, 226, 0.12);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  margin-top: 2px;
}
.content-list strong { color: var(--on-surface); font-weight: 700; }

/* Prose content — improved spacing for About-style pages */
.prose h2 {
  margin-top: 56px;
  margin-bottom: 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose p {
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 1rem;
}
/* Only affect generic prose lists — custom-styled lists (feature-list, content-list) keep their own rhythm */
.prose ul:not(.feature-list):not(.content-list) { margin: 18px 0 24px 20px; }
.prose ul:not(.feature-list):not(.content-list) li { margin-bottom: 10px; line-height: 1.7; }
.prose a { color: var(--secondary); font-weight: 500; }

.card-ai {
  background: rgba(138, 76, 252, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(113, 42, 226, 0.15);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(113, 42, 226, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 8px;
  vertical-align: middle;
}
.chip-live { background: rgba(22, 163, 74, 0.12); color: var(--success); }
.chip-soon { background: rgba(107, 114, 128, 0.12); color: var(--text-muted); }
.chip-beta { background: rgba(217, 119, 6, 0.12); color: var(--warning); }

/* ── FEATURE LIST ───────────────────────────────────────── */
/* Each li must have exactly two direct children:
     <span class="check">✓</span>
     <span>... content with optional <strong>…</strong> ...</span>
   Otherwise flex treats every sibling as its own column (and text wraps oddly). */
.feature-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
}
.feature-list li > span:last-child { flex: 1; min-width: 0; }
.feature-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(113, 42, 226, 0.12);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  margin-top: 3px;
}
.feature-list strong { color: var(--on-surface); font-weight: 700; }

/* ── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-container-highest);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem;
  color: var(--on-surface);
  outline: none;
  transition: all 160ms;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-ai);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h5 {
  color: #fff; font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 120ms;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); line-height: 1.6; max-width: 380px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
}

/* ── LEGAL / DOCS PAGES ─────────────────────────────────── */
.legal-hero {
  background: var(--surface-dark);
  padding: 80px 0 56px;
  text-align: center;
  color: #fff;
}
.legal-hero h1 { color: #fff; margin-bottom: 10px; }
.legal-hero .meta { color: rgba(255, 255, 255, 0.5); font-size: 0.88rem; }

.legal-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

.legal-toc {
  position: sticky; top: calc(var(--nav-height) + 24px);
  background: var(--surface-container-lowest);
  padding: 24px;
  border-radius: var(--radius-lg);
  align-self: start;
}
.legal-toc h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: 14px;
}
.legal-toc a {
  display: block; padding: 6px 0;
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms;
}
.legal-toc a:hover { color: var(--secondary); text-decoration: none; }

.legal-body { font-size: 0.95rem; line-height: 1.75; }
.legal-body h2 {
  font-size: 1.3rem; font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 16px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal-body p { margin-bottom: 14px; color: var(--on-surface-variant); }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body ul li { margin-bottom: 8px; color: var(--on-surface-variant); }
.legal-body strong { color: var(--on-surface); font-weight: 600; }
.legal-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.88rem;
}
.legal-body th, .legal-body td { padding: 12px 16px; text-align: left; }
.legal-body th { background: var(--surface-container-high); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-body tr + tr td { border-top: 1px solid var(--border); }

/* ── COMING SOON STUB ───────────────────────────────────── */
.coming-soon {
  padding: 140px 24px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.coming-soon .chip { margin-left: 0; margin-bottom: 24px; }
.coming-soon h1 { margin-bottom: 20px; }
.coming-soon p { font-size: 1.05rem; margin-bottom: 32px; }

/* ── TIMELINE (roadmap) ─────────────────────────────────── */
.timeline {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}
.timeline-item {
  background: var(--surface-container-lowest);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  position: relative;
}
.timeline-item.active {
  background: rgba(113, 42, 226, 0.05);
  box-shadow: 0 0 0 1px rgba(113, 42, 226, 0.15);
}
.timeline-phase {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.timeline-item.active .timeline-phase { color: var(--secondary); }
.timeline-item h3 { margin-bottom: 10px; }
.timeline-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.timeline-features span {
  padding: 4px 10px;
  background: var(--surface-container-low);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--on-surface-variant);
}

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
