:root {
  --ground: #0B0B0D;
  --surface: #131317;
  --surface-2: #18181E;
  --surface-3: #202028;
  --ink: #F4F4F2;
  --ink-2: #B9B9C2;
  --ink-3: #8E8EA0;
  --ink-4: #5A5A68;
  --line: rgba(244, 244, 242, 0.09);
  --line-2: rgba(244, 244, 242, 0.18);
  --accent: #C8F04D;
  --accent-ink: #0B0B0D;
  --danger: #FF6B6B;
  --warn: #F5B942;
  --ok: #5CE08A;
  --display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

a { color: var(--ink); text-decoration-color: rgba(200, 240, 77, 0.55); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

button, select, input, textarea { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.req { color: var(--accent); }

/* ---- Header & Footer ------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 240, 77, 0.55);
}
.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--ink);
  font-weight: 500;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---- Buttons & Cards ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, opacity 120ms ease;
}
.btn:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover:not(:disabled) {
  background: #d5f66c;
  color: var(--accent-ink);
}
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-block { width: 100%; height: 48px; font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---- Landing Page --------------------------------------------------------- */

.hero {
  padding-top: 56px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.legal-inline { max-width: 56ch; margin: 0; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(200, 240, 77, 0.35);
  color: var(--accent);
  background: rgba(200, 240, 77, 0.08);
}

.dest-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dest-preview-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dest-preview-list p { margin: 4px 0 0; }

.dest-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.dest-icon.tt { background: #1f1f26; color: #00f2ea; border: 1px solid rgba(0, 242, 234, 0.3); }
.dest-icon.yt { background: #291416; color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.3); }
.dest-icon.ig { background: #261626; color: #f783ac; border: 1px solid rgba(247, 131, 172, 0.3); }

.status-pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill.live { background: rgba(92, 224, 138, 0.12); color: var(--ok); border: 1px solid rgba(92, 224, 138, 0.3); }
.status-pill.soon { background: var(--surface-3); color: var(--ink-3); border: 1px solid var(--line); }

.section { padding-top: 28px; padding-bottom: 24px; }
.section-title { font-family: var(--display); font-size: 26px; margin: 0 0 18px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-card h3 { font-family: var(--display); margin: 8px 0 8px; font-size: 18px; }
.step-card p { margin: 0; }
.step-num { color: var(--accent); font-size: 13px; }

.trust-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-banner h2 { font-family: var(--display); margin: 0 0 12px; font-size: 22px; }
.check-list { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.check-list strong { color: var(--ink); }
.trust-links { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }

/* ---- Legal Prose ---------------------------------------------------------- */

.prose {
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 24px;
}
.prose h1 { font-family: var(--display); font-size: 36px; margin: 0 0 8px; }
.prose h2 { font-family: var(--display); font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--ink);
}

/* ---- Publisher Workspace -------------------------------------------------- */

.publish-wrap { padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }

.notice-banner {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}
.notice-dev { border-color: rgba(200, 240, 77, 0.4); background: rgba(200, 240, 77, 0.07); }
.notice-sandbox { border-color: rgba(245, 185, 66, 0.4); background: rgba(245, 185, 66, 0.08); }

.publish-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.publish-header h1 { font-family: var(--display); font-size: 28px; margin: 0 0 4px; }
.publish-header p { margin: 0; }

.publish-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-head h2, .form-panel > h2 {
  font-family: var(--display);
  font-size: 17px;
  margin: 0;
}
.form-panel > h2 { margin-bottom: 14px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  background: var(--ground);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 120ms ease, background 120ms ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(200, 240, 77, 0.03);
}
.dropzone.has-video {
  border-style: solid;
  cursor: default;
}
.dropzone-empty {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 6px;
}
.preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050507;
}
.preview-container video {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
}
.video-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.video-meta > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-file-actions { margin-top: 10px; display: flex; justify-content: flex-end; }

/* ---- Destination Rows & Form Controls ------------------------------------- */

.destinations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.dest-row.disabled-dest { opacity: 0.62; }
.dest-check {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.dest-row.disabled-dest .dest-check { cursor: not-allowed; }
.dest-label { display: flex; flex-direction: column; line-height: 1.3; }

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.creator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.creator-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.creator-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field { margin-bottom: 16px; }
.field > label, .fieldset-plain > legend {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.field-label-row label { font-weight: 500; font-size: 14px; }

textarea, .input-select {
  width: 100%;
  background: var(--ground);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
}
textarea { resize: vertical; min-height: 76px; }
.input-select { height: 42px; }
.input-sm { height: 32px; padding: 0 10px; font-size: 13px; width: auto; }
.field-hint { margin: 6px 0 0; }

.fieldset-plain {
  border: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}
.check-row-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ground);
  border: 1px solid var(--line);
}
.check-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
}
.check-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.check-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.disclosure-box {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--ground);
  border: 1px solid var(--line);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.toggle-row p { margin: 2px 0 0; }
.toggle-title { font-weight: 500; font-size: 14px; cursor: pointer; }
.switch-input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.disclosure-subpanel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disclosure-callout {
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(200, 240, 77, 0.08);
  border: 1px solid rgba(200, 240, 77, 0.3);
  color: var(--ink);
}
.disclosure-warning {
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(245, 185, 66, 0.1);
  border: 1px solid rgba(245, 185, 66, 0.35);
  color: var(--warn);
}

.consent-box {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.consent-box p { margin: 0; }

.processing-note { margin: 8px 0 0; text-align: center; }

.empty-connect-prompt {
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  background: var(--ground);
  border: 1px dashed var(--line-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-connect-prompt p { margin: 0; max-width: 44ch; }

.alert {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}
.alert-error {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb3b3;
}
.alert-ok {
  border-color: rgba(92, 224, 138, 0.45);
  background: rgba(92, 224, 138, 0.1);
  color: #b7f5cd;
}

.progress-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--ground);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}
.progress-card p { margin: 8px 0 0; }

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recent-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .publish-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 300px; }
}
