@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary:    #5B5BD6;
  --primary-dk: #4747B2;
  --primary-lt: #eff0ff;
  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Aliases for older references inside HTML scripts */
  --ink-950: #0f172a;
  --ink-900: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border:       rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm:  8px;

  --warning: #f59e0b;
  --danger:  #ef4444;
}

/* ── Reset ───────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-950);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ──────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.site-nav-inner,
.section,
.footer-grid,
.footer-bottom-inner,
.workspace-shell,
.press-shell,
.release-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-right: 16px;
}

.brand-mark-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
}

.brand-mark-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--slate-950);
}

.brand-mark-text span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--slate-950); background: var(--slate-100); }
.nav-links a.active { color: var(--primary); background: var(--primary-lt); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--slate-700);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 16px;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 10px 0;
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--slate-100);
}

/* ── Buttons ─────────────────────────────────────── */
.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn {
  background: var(--primary);
  color: var(--white);
}

.btn:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: var(--slate-200);
}

.btn-ghost:hover {
  background: var(--slate-100);
}

/* ── Eyebrow label ───────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--slate-950);
}

.hero-copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-500);
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hide metric chips — they clutter the hero */
.hero-metrics { display: none; }

/* Hero panel — clean card, no rotation */
.hero-panel {
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow);
}

.glass-card { background: var(--white); }

.hero-panel-inner {
  padding: 28px;
  background: linear-gradient(160deg, #0f172a 0%, #1a1a4e 100%);
  color: var(--white);
  transform: none;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.panel-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.panel-list li:last-child { border-bottom: none; }
.panel-list li strong { display: block; font-weight: 700; color: var(--white); margin-bottom: 2px; }

/* ── Sections ────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-title,
.hero-copy h1,
.release-title,
.auth-panel h1,
.workspace-header h1,
.editor-header h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  color: var(--slate-950);
}

.section-copy {
  max-width: 480px;
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 0.925rem;
  flex-shrink: 0;
}

/* ── Feature / Step / Proof cards ───────────────── */
.feature-grid,
.steps-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
}

.feature-card,
.step-card,
.proof-card {
  background: var(--white);
  padding: 28px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.feature-card h3,
.step-card h3,
.proof-card h3 {
  margin: 14px 0 8px;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--slate-950);
}

.feature-card p,
.step-card p,
.proof-card p {
  color: var(--slate-500);
  line-height: 1.65;
  font-size: 0.875rem;
  margin: 0;
}

.icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.steps-grid { counter-reset: steps; }

.step-card::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--slate-950);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
}

/* Proof band — just a subtle bg tint */
.proof-band {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

/* ── Press pages ─────────────────────────────────── */
.press-hero,
.release-hero,
.workspace-shell,
.auth-shell {
  padding-top: 40px;
}

.press-hero-card,
.release-hero-card {
  border-radius: 16px;
  padding: 40px 48px;
  background: linear-gradient(160deg, #0f172a 0%, #1a1a4e 100%);
  color: var(--white);
}

.press-hero-card .eyebrow,
.release-hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.press-hero-card h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.press-hero-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

/* Filter pills — inside dark hero */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.filter-row button {
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.15s;
  cursor: pointer;
}

.filter-row button:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.filter-row button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Press grid / cards ──────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 12px;
}

.press-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
  transition: border-color 0.15s;
}

.press-card:hover {
  border-color: var(--slate-300);
}

.press-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.press-card-top span:first-child {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.press-card-top span:last-child {
  font-size: 0.78rem;
  color: var(--slate-400);
}

.press-card h3 {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--slate-950);
  line-height: 1.35;
}

.press-card h3 a:hover { color: var(--primary); }

.press-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tag / status pills ──────────────────────────── */
.tag-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
}

.status-pill.published {
  background: var(--primary-lt);
  border-color: rgba(91, 91, 214, 0.2);
  color: var(--primary);
}

.status-pill.draft {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

/* ── Pagination ──────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 56px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--slate-500);
  transition: all 0.15s;
}

.page-btn:hover { border-color: var(--slate-300); color: var(--slate-800); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Release ─────────────────────────────────────── */
.release-shell { padding-bottom: 64px; }

.release-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--white);
}

.release-subtitle {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 680px;
  line-height: 1.65;
}

.release-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.release-article {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: none;
}

.release-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--slate-700);
}

.release-body h2,
.release-body h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-950);
  margin-top: 32px;
  margin-bottom: 10px;
}

.release-body p,
.release-body ul,
.release-body ol,
.release-body blockquote { margin: 0 0 16px; }
.release-body ul, .release-body ol { padding-left: 22px; }

.release-body blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: var(--primary-lt);
  border-radius: 0 8px 8px 0;
  color: var(--slate-700);
  font-style: italic;
}

.release-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
}

/* ── Share panel ─────────────────────────────────── */
.share-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.share-panel h3 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-950);
}

.share-row { display: flex; gap: 8px; align-items: center; }
.share-row input { flex: 1; min-width: 0; }

.share-panel textarea {
  min-height: 100px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 10px 12px;
  resize: vertical;
  color: var(--slate-700);
  font-size: 0.875rem;
}

/* ── Forms ───────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-600);
}

.field input,
.field textarea,
.field select,
.toolbar,
.rte {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-950);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.1);
}

.field input, .field textarea, .field select { padding: 10px 12px; font-size: 0.9rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field-help, .tiny { font-size: 0.78rem; color: var(--slate-400); }

.field-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-600);
  cursor: pointer;
  line-height: 1.5;
}

.field-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.field-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── States ──────────────────────────────────────── */
.notice,
.error-box,
.empty-state,
.loading-state {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-500);
  text-align: center;
  font-size: 0.9rem;
}

.error-box {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ── Embed ───────────────────────────────────────── */
.embed-shell { padding: 12px; min-height: 100vh; }

.embed-card {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  padding: 18px;
}

.embed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.embed-card h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; color: var(--slate-950); }
.embed-subtitle, .embed-excerpt { margin: 0 0 8px; color: var(--slate-500); font-size: 0.9rem; }
.embed-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--slate-400); font-size: 0.84rem; margin-bottom: 12px; }

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.doc-list { margin: 0; padding-left: 18px; color: var(--slate-500); line-height: 1.8; }

/* ── Auth ────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.auth-copy {
  padding: 36px;
  border-radius: 14px;
  background: linear-gradient(160deg, #0f172a 0%, #1a1a4e 100%);
  color: var(--white);
}

.auth-copy ul { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-copy li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.auth-card { padding: 32px; border: 1px solid var(--slate-200); background: var(--white); border-radius: 14px; box-shadow: none; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 24px; }

.auth-tabs button,
.mini-toggle button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-500);
  transition: all 0.15s;
}

.auth-tabs button.active,
.mini-toggle button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.auth-panel h1,
.workspace-header h1,
.editor-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.muted { color: var(--slate-500); }

/* ── Workspace ───────────────────────────────────── */
.workspace-shell { padding-bottom: 56px; }

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.workspace-user { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.875rem;
}

.dashboard-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.dashboard-stats .workspace-card { flex: 1 1 200px; }
.stat-value { font-size: 1.9rem; font-weight: 900; margin-top: 8px; color: var(--slate-950); }

/* ── Cards (workspace/editor) ────────────────────── */
.workspace-card,
.editor-card,
.table-card,
.auth-card {
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: none;
}

.table-card { padding: 0; overflow: hidden; }

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--slate-100);
}

.workspace-table { width: 100%; border-collapse: collapse; }

.workspace-table th,
.workspace-table td {
  text-align: left;
  padding: 13px 22px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}

.workspace-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  font-weight: 700;
}

.workspace-table tr:last-child td { border-bottom: none; }
.workspace-table tr:hover td { background: var(--slate-50); }
.workspace-table a:hover { color: var(--primary); }

/* ── Editor ──────────────────────────────────────── */
.editor-layout { display: flex; gap: 20px; align-items: start; flex-wrap: wrap; }
.editor-main { flex: 1 1 620px; }
.editor-side { flex: 0 0 300px; display: grid; gap: 16px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.body-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.ai-icon-btn {
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--slate-700);
  transition: border-color 0.15s;
}

.ai-icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.toolbar button {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
  color: var(--slate-600);
  font-size: 0.84rem;
  transition: all 0.12s;
}

.toolbar button:hover { background: var(--slate-200); color: var(--slate-950); }
.toolbar button.active { background: var(--slate-950); color: var(--white); }

.rte {
  min-height: 340px;
  padding: 16px;
  line-height: 1.75;
  color: var(--slate-800);
  border-radius: 0 0 8px 8px;
  font-size: 0.95rem;
}

.rte:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.1); }
.rte:empty::before { content: attr(data-placeholder); color: var(--slate-400); }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 600;
  padding: 20px;
  overflow: auto;
  backdrop-filter: blur(4px);
}

.ai-modal-card {
  max-width: 820px;
  margin: 24px auto;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
  padding: 24px;
}

.ai-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ai-modal-head h3 { margin: 0; font-size: 0.975rem; font-weight: 700; }

/* ── Toast ───────────────────────────────────────── */
.toast-stack { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 900; }

.toast {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--slate-950);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
}

.toast.error { background: #7f1d1d; }

/* ── Spinner ─────────────────────────────────────── */
.loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2.5px solid var(--slate-200);
  border-top-color: var(--primary);
  animation: spin 700ms linear infinite;
  margin: 10px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────── */
.footer {
  margin-top: auto;
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-top: none;
}

.footer-brand-col { display: flex; flex-direction: column; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-brand-text span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.footer-brand .brand-mark-badge {
  background: var(--primary);
  box-shadow: none;
}

.footer-about {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 0 1.25rem;
}

.footer-social { display: flex; gap: 0.5rem; }

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: background 0.15s, color 0.15s;
}

.social-link:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.footer-col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.footer-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col-links a {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 400;
  transition: color 0.15s;
}

.footer-col-links a:hover { color: rgba(255, 255, 255, 0.8); }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.22); margin: 0; }

.footer-legal { display: flex; gap: 1.25rem; }

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255, 255, 255, 0.6); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel { display: none; }

  .feature-grid,
  .steps-grid,
  .proof-grid,
  .press-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editor-side { flex-basis: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .section-heading { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .site-nav-inner { height: 56px; }

  .section { padding: 48px 0; }

  .feature-grid,
  .steps-grid,
  .proof-grid,
  .press-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .press-hero-card,
  .release-hero-card {
    padding: 28px 24px;
  }

  .release-article { padding: 24px; }

  .workspace-topbar,
  .table-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-table,
  .workspace-table thead,
  .workspace-table tbody,
  .workspace-table th,
  .workspace-table td,
  .workspace-table tr { display: block; width: 100%; }

  .workspace-table thead { display: none; }
  .workspace-table td { padding: 10px 18px; }

  .workspace-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    font-weight: 700;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 2rem; }

  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
