/* ============================================
   Altimetric - RL Gym Website
   Design: linear.app structure + stripe density
           + raycast glassmorphism + loom social proof
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette — linear.app inspired deep dark */
  --bg-primary: #08080c;
  --bg-secondary: #0e0e14;
  --bg-tertiary: #151520;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(255, 255, 255, 0.04);

  /* Accent — electric green / teal */
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-muted: rgba(94, 234, 212, 0.08);
  --accent-border: rgba(94, 234, 212, 0.15);
  --accent-glow: rgba(94, 234, 212, 0.06);

  /* Secondary accent — violet (stripe-inspired) */
  --accent2: #a78bfa;
  --accent2-muted: rgba(167, 139, 250, 0.08);
  --accent2-border: rgba(167, 139, 250, 0.15);

  /* Text — linear.app hierarchy */
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.56);
  --text-tertiary: rgba(245, 245, 247, 0.36);
  --text-muted: rgba(245, 245, 247, 0.2);

  /* Borders — ultra subtle */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(94, 234, 212, 0.3);

  /* Status */
  --status-green: #34d399;
  --status-green-bg: rgba(52, 211, 153, 0.1);
  --status-blue: #60a5fa;
  --status-blue-bg: rgba(96, 165, 250, 0.1);
  --status-amber: #fbbf24;
  --status-amber-bg: rgba(251, 191, 36, 0.1);
  --status-red: #f87171;
  --status-red-bg: rgba(248, 113, 113, 0.1);
  --status-purple: #a78bfa;
  --status-purple-bg: rgba(167, 139, 250, 0.1);

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows — layered, raycast-style */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(94, 234, 212, 0.04);

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography — linear.app tight system --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h4 { font-size: 1rem; font-weight: 500; }

p {
  line-height: 1.65;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }

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

/* --- Navigation — linear.app minimal --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #000;
}

.navbar-brand span.version {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 400;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.navbar-links a,
.navbar-links button {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links button:hover {
  color: var(--text-primary);
}

.navbar-links a.active {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.375rem;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.badge-accent { background: var(--accent-muted); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-red { background: var(--status-red-bg); color: var(--status-red); }
.badge-blue { background: var(--status-blue-bg); color: var(--status-blue); }
.badge-green { background: var(--status-green-bg); color: var(--status-green); }
.badge-amber { background: var(--status-amber-bg); color: var(--status-amber); }
.badge-purple { background: var(--status-purple-bg); color: var(--status-purple); }

/* --- Buttons — stripe-inspired clean hierarchy --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 16px rgba(255,255,255,0.1);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-elevated);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.375rem 0.625rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm { padding: 0.3125rem 0.75rem; font-size: 0.8125rem; }

.btn-lg {
  padding: 0.6875rem 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-icon { padding: 0.375rem; border-radius: var(--radius-sm); }

/* --- Cards — glassmorphism (raycast) --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-slow);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.card-header { margin-bottom: 0.75rem; }
.card-title { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.card-body { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.6; }

/* --- Hero — linear.app inspired --- */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gradient orb backgrounds — raycast style */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.08) 0%, rgba(167, 139, 250, 0.04) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* --- Stats — stripe-style dense metrics --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-value .accent { color: var(--accent); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 0.875rem;
  font-size: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

/* --- Section divider line — linear style --- */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* --- Process Steps — linear.app grid cards --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  transition: background var(--transition-slow);
}

.process-step:hover {
  background: var(--bg-secondary);
}

.process-number {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.process-step h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Job Cards — stripe bento density --- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.job-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  transition: background var(--transition-slow);
  cursor: pointer;
  position: relative;
}

.job-card:hover {
  background: var(--bg-secondary);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.job-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.job-card-meta .tag {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.job-card-footer .pay { font-weight: 600; color: var(--accent); }

/* --- Dashboard --- */
.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  margin-top: 56px; /* navbar offset */
}

.dashboard-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  white-space: nowrap;
  margin-bottom: -1px;
}

.dashboard-tab:hover { color: var(--text-secondary); }

.dashboard-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.dashboard-tab .tab-badge {
  font-size: 0.625rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 100px;
}

/* --- Data Table — linear.app clean --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 0.5rem 0.875rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table td {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Status Badges --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.1875rem 0.625rem;
  border-radius: 100px;
}

.status-dot { width: 5px; height: 5px; border-radius: 50%; }

.status-delivered { background: var(--status-green-bg); color: var(--status-green); }
.status-delivered .status-dot { background: var(--status-green); }

.status-in-progress { background: var(--status-blue-bg); color: var(--status-blue); }
.status-in-progress .status-dot { background: var(--status-blue); }

.status-too-easy { background: var(--status-amber-bg); color: var(--status-amber); }
.status-too-easy .status-dot { background: var(--status-amber); }

.status-running { background: var(--status-blue-bg); color: var(--status-blue); }
.status-running .status-dot { background: var(--status-blue); animation: pulse 2s infinite; }

.status-done { background: var(--status-green-bg); color: var(--status-green); }
.status-pending { background: rgba(255,255,255,0.04); color: var(--text-tertiary); }

/* --- Filter Pills --- */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-pill:hover {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.filter-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

/* --- Search Input --- */
.search-input {
  position: relative;
}

.search-input svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

.search-input input {
  width: 100%;
  padding: 0.4375rem 0.75rem 0.4375rem 2rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.search-input input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.search-input input::placeholder { color: var(--text-muted); }

/* --- Editor Page --- */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: start;
}

.editor-main { background: var(--bg-primary); }
.editor-sidebar { background: var(--bg-primary); }

.editor-section {
  border-bottom: 1px solid var(--border);
}

.editor-section:last-child { border-bottom: none; }

.editor-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}

.editor-section-header:hover { background: rgba(255,255,255,0.02); }

.editor-section-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.editor-section-body {
  padding: 0 1.25rem 1.25rem;
}

.editor-section-body textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.625rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition);
}

.editor-section-body textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.editor-section-body textarea::placeholder { color: var(--text-muted); }

/* --- Docs Sidebar + Content --- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 56px);
  margin-top: 56px;
}

.docs-sidebar {
  position: sticky;
  top: 56px;
  padding: 1.5rem 0;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.docs-sidebar-group { margin-bottom: 1.25rem; }

.docs-sidebar-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.375rem 1.25rem;
}

.docs-sidebar-link {
  display: block;
  padding: 0.375rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color var(--transition);
  border-left: 2px solid transparent;
}

.docs-sidebar-link:hover { color: var(--text-primary); }

.docs-sidebar-link.active {
  color: var(--text-primary);
  border-left-color: var(--text-primary);
}

/* --- Docs Prose — vercel-style code blocks --- */
.docs-content {
  padding: 2.5rem 3rem;
  max-width: 720px;
}

.docs-content h1 {
  font-size: 1.75rem;
  margin-bottom: 0.375rem;
}

.docs-content .docs-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.docs-content h2 {
  font-size: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 0.9375rem;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.docs-content ul, .docs-content ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.docs-content li {
  margin-bottom: 0.25rem;
  line-height: 1.65;
}

.docs-content strong { color: var(--text-primary); font-weight: 600; }

.docs-content code {
  background: rgba(255,255,255,0.06);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  color: var(--accent);
  border: 1px solid var(--border);
}

.docs-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.625rem 1rem;
  margin: 1rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.docs-content table th {
  text-align: left;
  padding: 0.5rem 0.875rem;
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-content table td {
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.docs-content table tr:last-child td { border-bottom: none; }

.docs-content .note {
  background: var(--accent2-muted);
  border: 1px solid var(--accent2-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.docs-content .note strong { color: var(--accent2); }

/* --- Inbox --- */
.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}

.inbox-item:hover { background: rgba(255,255,255,0.02); }
.inbox-item.unread { background: rgba(94, 234, 212, 0.02); }

.inbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.inbox-dot.read { background: var(--text-muted); }

.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-title { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.125rem; }
.inbox-item-text { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

.inbox-item-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.inbox-tag {
  font-size: 0.625rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.inbox-time { font-size: 0.6875rem; color: var(--text-muted); }

/* --- Environments Grid --- */
.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.env-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  transition: background var(--transition-slow);
  display: block;
  color: inherit;
}

.env-card:hover { background: var(--bg-secondary); color: inherit; }

.env-card-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; letter-spacing: -0.01em; }
.env-card-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 1rem; }

.env-card-footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}

.env-card-stat { font-size: 0.6875rem; color: var(--text-muted); }
.env-card-stat strong { color: var(--text-secondary); }

/* --- Footer — minimal linear style --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-brand span {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* --- Select --- */
.select-wrapper {
  position: relative;
  display: inline-flex;
}

.select-wrapper select {
  appearance: none;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
}

.select-wrapper select:focus { outline: none; border-color: var(--border-focus); }

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--text-muted);
  pointer-events: none;
}

/* --- Toggle --- */
.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle.active {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}

.toggle.active::after { transform: translateX(14px); }

/* --- Misc --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* --- Category Tabs --- */
.category-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.category-tab:not(:last-child) { border-right: 1px solid var(--border); }
.category-tab:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }

.category-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* --- Checklist --- */
.checklist { list-style: none; padding: 0; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.checklist li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- File Attachment --- */
.file-attachment {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.file-attachment-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--status-green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-attachment-name { font-size: 0.8125rem; font-weight: 500; color: var(--text-primary); }
.file-attachment-size { font-size: 0.6875rem; color: var(--text-muted); }

/* --- Verifier Tag --- */
.verifier-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-tertiary);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 { font-size: 1.125rem; margin-bottom: 1rem; }

/* --- Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.rounded { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-layout { grid-template-columns: 1fr; background: var(--bg-primary); gap: 0; border: none; }
  .editor-main, .editor-sidebar { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 0;
  }
  .docs-content { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  :root { --container-padding: 1rem; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem;
  }

  .navbar-links.open { display: flex; }
  .navbar-mobile-toggle { display: block; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .env-grid { grid-template-columns: 1fr; }

  .hero { padding: 7rem 0 3rem; }
  .hero-actions { flex-direction: column; }

  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }

  .dashboard-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
