:root {
  --bg: #0d1117;
  --card: #161b22;
  --accent: #3b79ff;
  --muted: #8b949e;
  --white: #f0f6fc;
  --line: #30363d;
  --hover: #21262d;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  background: var(--bg);
  color: var(--white);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.topbar .brand {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: var(--muted);
}

.topbar .btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.topbar .btn:hover {
  background: var(--hover);
}

.intro h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.intro p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.template-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 10px #00000022;
  transition: transform 0.2s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px #00000055;
}

.template-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.template-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  border: none;
}

.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn.primary:hover {
  background: #2554d3;
  transform: scale(1.03);
}

.btn.ghost:hover {
  background: var(--hover);
  transform: scale(1.03);
}

.topbar {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0;
  padding: 0 20px;
}

.topbar nav a.btn {
  background-color: #3b79ff;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  margin-right: 10px;
  display: inline-block;
  transition: background-color 0.2s ease-in-out;
}

.topbar nav a.btn:hover {
  background-color: #2a66db;
  color: white;
}
