* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #0d1117;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* Header */
header {
  background-color: #0d1117;
  border-bottom: 1px solid #1a1a1a;
}

.logo {
  font-weight: bold;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 44px;
  border-radius: 16px;
}

/* Primary button */
.nav-btn.primary {
  background-color: #2563eb;
  color: black;
  border: none;
  padding: 0.75rem 1.5rem;
}

/* Secondary button */
.nav-btn.secondary {
  background-color: #1f2937;
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
}

/* Main */
main {
  flex: 1;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

/* App Grid */
.app-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  border: 1px dashed #2a2a2a;
  border-radius: 16px;
  padding: 1.5rem;
  background-color: #111;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-header h2 {
  font-size: 1.25rem;
}

.app-desc {
  font-size: 0.95rem;
  color: #aaa;
}

.app-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-outline,
.btn-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid #444;
  background: transparent;
  color: white;
}

.btn-outline:hover {
  background-color: #222;
}

.btn-outline.disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background-color: #2563eb;
  color: black;
  border: none;
}

.btn-primary:hover {
  background-color: #3b82f6;
}

/* Footer */
footer {
  background-color: #0d1117;
  border-top: 1px solid #1a1a1a;
  padding: 1rem 2rem;
  font-size: 0.85rem;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

footer a {
  color: #a1a1aa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}