:root {
  --primary: #0070d1;
  --primary-pressed: #0064b7;
  --primary-active: #004d8d;
  --commerce: #d53b00;
  --warning: #c81b3a;
  --ink: #000000;
  --ink-deep: #121314;
  --ink-elevated: #181818;
  --body-light: rgba(0, 0, 0, 0.6);
  --mute-light: #6b6b6b;
  --ash-light: #cccccc;
  --canvas-light: #ffffff;
  --surface-soft: #f3f3f3;
  --surface-card: #f5f7fa;
  --canvas-dark: #000000;
  --surface-dark-elevated: #121314;
  --surface-dark-card: #181818;
  --hairline-light: #f3f3f3;
  --hairline-dark: rgba(229, 229, 229, 0.2);
  --on-dark: #ffffff;
  --body-dark: rgba(255, 255, 255, 0.7);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --page-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas-light);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--canvas-light);
  font-family: Inter, Roboto, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  background: var(--canvas-dark);
  color: var(--on-dark);
  border-bottom: 1px solid var(--hairline-dark);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--canvas-dark);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.18) 100%), url("/hero-visual.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  width: min(var(--page-max), calc(100% - 48px));
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 96px 0;
}

.hero-copy {
  width: min(560px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-full);
  color: var(--body-dark);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.14;
}

.hero p {
  margin: 0;
  color: var(--body-dark);
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-pressed);
}

.btn-secondary-dark {
  color: #fff;
  background: transparent;
  border-color: var(--hairline-dark);
}

.btn-secondary-light {
  color: var(--ink);
  background: transparent;
  border-color: var(--ash-light);
}

.btn-danger {
  color: #fff;
  background: var(--warning);
}

.btn-small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

.section-dark {
  color: var(--on-dark);
  background: var(--canvas-dark);
}

.section-light {
  color: var(--ink);
  background: var(--canvas-light);
}

.section-blue {
  color: #fff;
  background: var(--primary);
}

.section-inner {
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.2;
}

.feature-grid,
.capacity-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.capacity-card,
.admin-card {
  min-height: 180px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.section-dark .feature-card,
.section-dark .admin-card {
  background: var(--surface-dark-card);
}

.feature-card h3,
.capacity-card h3,
.admin-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 300;
}

.feature-card p,
.capacity-card p,
.admin-card p {
  margin: 0;
  color: var(--body-light);
  line-height: 1.6;
}

.section-dark .feature-card p,
.section-dark .admin-card p {
  color: var(--body-dark);
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}

.login-box,
.workspace-panel,
.project-list,
.admin-table,
.report-detail {
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.login-box {
  padding: 32px;
}

.login-box h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 300;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--mute-light);
  font-size: 14px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ash-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border: 2px solid var(--primary);
}

.textarea {
  min-height: 520px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.55;
}

.notice {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--primary-active);
  background: rgba(0, 112, 209, 0.08);
  font-size: 14px;
}

.workspace {
  min-height: 100vh;
  background: var(--surface-soft);
}

.workspace-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.project-list {
  align-self: start;
  padding: 18px;
}

.project-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-list h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
}

.project-item {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.project-item:hover,
.project-item.active {
  background: #fff;
}

.project-title {
  font-size: 15px;
  font-weight: 700;
}

.project-meta,
.status-line {
  color: var(--mute-light);
  font-size: 12px;
  line-height: 1.4;
}

.workspace-panel {
  overflow: hidden;
  background: #fff;
}

.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--hairline-light);
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.published {
  color: #fff;
  background: var(--primary);
}

.status-pill.takedown {
  color: #fff;
  background: var(--warning);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 650px;
}

.editor-pane,
.preview-pane {
  min-width: 0;
  padding: 16px;
}

.editor-pane {
  border-right: 1px solid var(--hairline-light);
}

.pane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 12px;
}

.pane-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.preview-frame {
  width: 100%;
  height: 520px;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.publish-link {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--hairline-light);
  color: var(--mute-light);
  font-size: 14px;
}

.publish-link a {
  color: var(--primary-pressed);
  font-weight: 700;
  word-break: break-all;
}

.admin-shell {
  min-height: 100vh;
  background: var(--canvas-light);
}

.admin-layout {
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.admin-heading {
  margin: 0 0 24px;
  font-size: 44px;
  font-weight: 300;
}

.admin-table {
  overflow: auto;
  padding: 16px;
}

.admin-preview {
  margin: 32px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.admin-preview .preview-frame {
  height: 460px;
  margin-top: 12px;
}

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--hairline-light);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--mute-light);
  font-size: 13px;
  font-weight: 700;
}

.published-page {
  min-height: 100vh;
  background: #101114;
}

.published-frame {
  width: 100%;
  height: 100vh;
  border: 0;
  background: #fff;
}

.report-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  color: #fff;
  background: rgba(0, 112, 209, 0.94);
  font-size: 14px;
  font-weight: 700;
}

.report-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 50;
  display: none;
  width: min(380px, calc(100vw - 36px));
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
}

.report-panel.open {
  display: block;
}

.report-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 300;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 32px;
  color: var(--mute-light);
  text-align: center;
}

.muted {
  color: var(--mute-light);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hide {
  display: none !important;
}

@media (max-width: 1024px) {
  .feature-grid,
  .capacity-grid,
  .admin-grid,
  .login-panel,
  .workspace-shell,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-light);
  }

  .workspace-shell {
    width: min(100% - 24px, 900px);
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .hero-inner,
  .section-inner,
  .admin-layout {
    width: calc(100% - 32px);
  }

  .hero-inner {
    min-height: 700px;
    padding: 64px 0;
  }

  .section {
    padding: 56px 0;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-link {
    display: none;
  }

  .hero-actions,
  .toolbar-group {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .textarea,
  .preview-frame {
    min-height: 360px;
    height: 360px;
  }
}
