:root {
  --bg-color: #050505;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  
  --accent-primary: #7c3aed; /* Purple */
  --accent-secondary: #3b82f6; /* Blue */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  
  --badge-get: rgba(59, 130, 246, 0.2);
  --badge-get-text: #60a5fa;
  --badge-post: rgba(16, 185, 129, 0.2);
  --badge-post-text: #34d399;
  --badge-put: rgba(245, 158, 11, 0.2);
  --badge-put-text: #fbbf24;
  --badge-delete: rgba(239, 68, 68, 0.2);
  --badge-delete-text: #f87171;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Blobs (Accentricity Style) */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  animation-duration: 25s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
  100% { transform: translateY(30px) scale(0.95); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--accent-primary);
  margin-right: 4px;
}

.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--panel-border);
  padding: 0.4rem 1rem !important;
  border-radius: 6px;
}

.btn-outline:hover {
  border-color: var(--text-muted);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border: none;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 2rem 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Glass Panels */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

/* Code Demo */
.code-demo {
  margin: 0 auto 5rem;
  max-width: 700px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--panel-border);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dots span:nth-child(1) { background: #ff5f56; }
.mac-dots span:nth-child(2) { background: #ffbd2e; }
.mac-dots span:nth-child(3) { background: #27c93f; }

.code-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.keyword { color: #f472b6; }
.string { color: #a78bfa; }
.function { color: #60a5fa; }

.run-button-container {
  padding: 1rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.2);
}

.demo-output {
  padding: 1rem;
  background: #000;
  border-top: 1px solid var(--panel-border);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
  color: #10b981;
  max-height: 200px;
  overflow-y: auto;
}

.hidden {
  display: none;
}

/* Sections */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Resource Grid */
.resources-section {
  margin-bottom: 6rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.resource-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--accent-secondary);
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Routes Table */
.routes-section {
  margin-bottom: 6rem;
}

.table-panel {
  padding: 1rem;
}

.routes-table {
  width: 100%;
  border-collapse: collapse;
}

.routes-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--panel-border);
}

.routes-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.routes-table tr:last-child td {
  border-bottom: none;
}

.inline-code {
  font-family: ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.get { background: var(--badge-get); color: var(--badge-get-text); }
.post { background: var(--badge-post); color: var(--badge-post-text); }
.put { background: var(--badge-put); color: var(--badge-put-text); }
.delete { background: var(--badge-delete); color: var(--badge-delete-text); }

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-table th, .routes-table td { padding: 0.8rem 0.5rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}
