/* === ContrastAPI Styles === */

:root {
  --bg:         #09090b;
  --bg-card:    rgba(24,24,27,0.5);
  --bg-hover:   rgba(39,39,42,0.4);
  --border:     #27272a;
  --border-dim: #1c1c1f;
  --text:       #fafafa;
  --text-muted: #a1a1aa;
  --text-dim:   #71717a;
  --primary:    #3b82f6;
  --primary-hover: #2563eb;
  --focus:      #60a5fa;
  --green:      #22c55e;
  --red:        #ef4444;
  --yellow:     #eab308;
  --orange:     #f97316;
  --purple:     #8b5cf6;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

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

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 0.875rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
  z-index: 0;
}

/* Nav */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo span { color: var(--primary); }

/* Hero CTA */
.btn-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-cta:hover { background: var(--primary-hover); }
.btn-cta:active { transform: scale(0.98); }

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

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

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

/* Hero */
.glow {
  position: fixed;
  top: -12.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 43.75rem;
  height: 31.25rem;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 6.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h1 .gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 auto 2.5rem;
}

/* Endpoints */
.endpoints {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.section-title:first-child { margin-top: 0; }

.endpoint-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-dim);
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}

.endpoint:hover {
  border-color: var(--border);
  background: rgba(24,24,27,0.8);
}

.method {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  min-width: 2.75rem;
  text-align: center;
  flex-shrink: 0;
}

.method.get  { background: rgba(34,197,94,0.15);  color: var(--green); }
.method.post { background: rgba(59,130,246,0.15); color: var(--primary); }

.endpoint-path {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.endpoint-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* Code examples */
.example-section {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.key  { color: #60a5fa; }
.str  { color: #34d399; }
.num  { color: #f59e0b; }
.bool { color: #c084fc; }

code {
  background: var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: inherit;
}

/* Auth section */
.auth-section {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.auth-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tier {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-dim);
  background: var(--bg-card);
}

.tier h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tier .price {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.tier ul {
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier ul li {
  padding: 0.3rem 0;
}

.tier ul li::before {
  content: '✓ ';
  color: var(--green);
}

.tier.pro {
  border-color: rgba(59,130,246,0.3);
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-top: 1px solid var(--border-dim);
  max-width: 1100px;
  margin: 3rem auto 0;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--text-muted); }

/* Responsive */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  .subtitle { font-size: 0.85rem; }
  .hero { padding: 3rem 1.25rem 1.5rem; }
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .endpoints, .example-section, .auth-section { padding: 0 1.25rem; }
  .endpoint-desc { display: none; }
  .auth-tiers { grid-template-columns: 1fr; }
  footer { padding: 1.5rem 1.25rem; }
}
