@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --card: rgba(16, 24, 42, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #8b9cb8;
  --accent: #f5b942;
  --accent-2: #5b8def;
  --accent-3: #34d399;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(91, 141, 239, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(245, 185, 66, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(52, 211, 153, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #e88b2e);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  box-shadow: 0 10px 30px rgba(245, 185, 66, 0.25);
}

.brand h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
  font-size: 0.88rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
}

.hero {
  margin-bottom: 40px;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero h2 span {
  background: linear-gradient(135deg, var(--accent), #ffd88a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chip.get { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.chip.post { background: rgba(91, 141, 239, 0.15); color: #93c5fd; }
.chip.put { background: rgba(245, 185, 66, 0.15); color: #fcd34d; }
.chip.delete { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.endpoint code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: #dbeafe;
  word-break: break-all;
}

.endpoint small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e88b2e);
  color: #111827;
  box-shadow: 0 12px 30px rgba(245, 185, 66, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border);
  color: var(--text);
}

.btn-blue {
  background: rgba(91, 141, 239, 0.18);
  border-color: rgba(91, 141, 239, 0.35);
  color: #bfdbfe;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 36px 0 16px;
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  color: #c4d4ff;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
