/* Fallback critical CSS - ensures styles show even if Tailwind bundle is delayed or preview is static */
:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --brand: #14b8a6;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
html { background: var(--bg); color: var(--text); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tailwind-like utilities used across the site */
.bg-surface-950 { background-color: #020617; }
.bg-surface-900 { background-color: #0f172a; }
.bg-surface-800 { background-color: #1e293b; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-700 { background-color: #334155; }
.text-white { color: #fff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-brand-400 { color: #2dd4bf; }
.text-brand-300 { color: #5eead4; }
.text-red-400 { color: #f87171; }
.text-accent-emerald { color: #10b981; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-700 { border-color: #334155; }
.border-slate-600 { border-color: #475569; }
.border-brand-500 { border-color: #14b8a6; }

.gradient-brand {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
}
.gradient-surface {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-16 { padding-top: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.grid { display: grid; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.transition { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:opacity-95:hover { opacity: 0.95; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-brand-500\/10:hover { background-color: rgba(20, 184, 166, 0.1); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-brand-300:hover { color: #5eead4; }
.uppercase { text-transform: uppercase; }
.shrink-0 { flex-shrink: 0; }
.break-all { word-break: break-all; }
.antialiased { -webkit-font-smoothing: antialiased; }
.font-sans { font-family: system-ui, sans-serif; }
.font-mono { font-family: ui-monospace, monospace; }
.placeholder-slate-500::placeholder { color: #64748b; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px; }
.focus\:ring-brand-500:focus { box-shadow: 0 0 0 2px #14b8a6; }
.focus\:border-brand-500:focus { border-color: #14b8a6; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }
.fixed { position: fixed; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.left-4 { left: 1rem; }
.bottom-4 { bottom: 1rem; }
.cursor-pointer { cursor: pointer; }
.opacity-60 { opacity: 0.6; }
.resize { resize: both; }
.read-only\:bg-slate-900\/80:read-only { background-color: rgba(15, 23, 42, 0.8); }
input, textarea { background: rgba(15, 23, 42, 0.8); border: 1px solid #475569; color: #f1f5f9; border-radius: 0.75rem; padding: 0.5rem 0.75rem; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px #14b8a6; border-color: #14b8a6; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}
