:root {
  --bg: #0e1014;
  --panel: #161922;
  --panel-2: #1e222d;
  --border: #262b38;
  --text: #e8eaf0;
  --muted: #8b93a7;
  --accent: #7aa2ff;
  --accent-hover: #9cb9ff;
  --danger: #ff7a8a;
  --good: #6fcf97;
  --shadow: 0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.topbar .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.topbar nav a {
  margin-left: 18px;
  color: var(--muted);
}
.topbar nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 36px 28px 80px; }

.footer {
  color: var(--muted);
  padding: 20px 28px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer-row {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-nav a { margin-left: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero (generic) */
.hero { text-align: center; padding: 64px 0 32px; }
.hero h1 {
  font-size: 56px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.hero .tagline { font-size: 20px; color: var(--text); margin: 0 0 14px; }
.hero .sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero .cta { margin-top: 24px; }

/* Landing page hero */
.hero--lp {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.hero-orb--a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #6f8bff 0%, transparent 70%);
  top: -120px; left: -80px;
}
.hero-orb--b {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #b07aff 0%, transparent 70%);
  top: 40px; right: -60px;
  opacity: 0.45;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(122, 162, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.hero-title .grad {
  background: linear-gradient(90deg, #7aa2ff 0%, #b07aff 60%, #ff8fb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Mock feed preview */
.feed-mock {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feed-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.feed-card:hover { transform: translateY(-3px); }
.feed-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: linear-gradient(135deg, #1f2433, #2a304a);
  overflow: hidden;
}
.feed-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-card .dur {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.feed-card .meta { padding: 10px 4px 4px; }
.feed-card .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feed-card .sub { font-size: 12px; color: var(--muted); }

/* Section title */
.section-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: -0.3px;
  margin: 0 0 28px;
}

/* Features */
.features { padding: 64px 0 32px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.feature h3 { margin: 6px 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-icon {
  font-size: 20px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Sources strip */
.sources { padding: 48px 0 32px; }
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.source-list li {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.src-name { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.src-role { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Privacy callout */
.privacy-callout {
  margin-top: 48px;
  padding: 28px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.privacy-callout p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}
.privacy-callout .section-title { margin-bottom: 12px; }

/* Generic doc page (privacy, terms) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 32px;
}
.doc h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.3px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc ul { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }

@media (max-width: 720px) {
  .hero-title { font-size: 44px; }
  .feed-mock,
  .features-grid,
  .source-list { grid-template-columns: 1fr; }
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.button:hover {
  background: var(--panel);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}
.button.primary {
  background: var(--accent);
  color: #0e1014;
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0e1014;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
}
.link-button:hover { color: var(--accent-hover); text-decoration: underline; }
.link-button.danger { color: var(--danger); }

/* Admin layout */
.dadmin {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-top: 8px;
}

.sidebar h3 {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  margin: 8px 0 12px;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 2px 0; }
.sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
}
.sidebar a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.sidebar a.active { background: var(--panel-2); color: var(--text); }

.content h1 { margin-top: 0; font-size: 28px; }
.content .muted { color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-top: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; }

/* Services form */
.flash {
  background: rgba(111, 207, 151, 0.12);
  border: 1px solid var(--good);
  color: var(--good);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.services-form .field {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.services-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.services-form .field-row {
  display: flex;
  gap: 8px;
}
.services-form input[type="password"],
.services-form input[type="text"] {
  flex: 1;
  padding: 9px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.services-form input:focus { outline: none; border-color: var(--accent); }
.reveal {
  padding: 6px 12px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.reveal:hover { color: var(--text); }

.field-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.field-meta .status.set { color: var(--good); }
.field-meta .status.unset { color: var(--muted); }
.field-meta code { font-size: 12px; }

.actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}
