/* Minimal dark theme CSS - core layout and components */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-text: #e8e8e8;
  --color-text-dim: #999;
  --color-primary: #8b5cf6;
  --color-primary-dark: #7c3aed;
  --color-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--color-bg); color: var(--color-text); line-height: 1.5; font-size: 16px; }

.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.5rem; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

.container { width: 100%; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; background: rgba(10, 10, 10, 0.95); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; gap: 1.5rem; }
.navbar-start, .navbar-end { display: flex; align-items: center; gap: 1.5rem; }
.navbar-item { color: var(--color-text); padding: 0.5rem 1rem; border-radius: 0.375rem; transition: all 0.2s; white-space: nowrap; }
.navbar-item:hover { color: var(--color-primary); background: var(--color-surface); }

.grid { display: grid; gap: 2rem; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0.5rem; padding: 2rem; transition: all 0.2s; }
.card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.card-header { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1px solid transparent; border-radius: 0.375rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover:not(:disabled) { background: var(--color-primary); color: white; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 1000; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0.5rem; padding: 3rem; max-width: 500px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

section { padding: 3rem 2rem; }
footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3rem 2rem; }
footer p { margin-bottom: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.min-h-screen { min-height: 100vh; }
.text-dim { color: var(--color-text-dim); }
.text-primary { color: var(--color-primary); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

@media (max-width: 768px) {
  section { padding: 2rem 1.5rem; }
  .navbar { padding: 1rem 1.5rem; }
  .modal-content { padding: 1.5rem; }
}
