/* SandboxAPI Website — Base Styles
   Design: claude.com-inspired minimal aesthetic with logo color palette */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Logo-derived palette */
  --accent: #d4a017;
  --accent-hover: #e8b430;
  --accent-dim: rgba(212, 160, 23, 0.08);
  --accent-glow: rgba(212, 160, 23, 0.15);
  --silver: #a0a0a8;
  --silver-dim: rgba(160, 160, 168, 0.08);

  /* Backgrounds — near-black with subtle warmth */
  --bg-primary: #09090b;
  --bg-secondary: #0f0f11;
  --bg-card: #141416;
  --bg-elevated: #1a1a1e;
  --bg-code: #0c0c0e;

  /* Text */
  --text-primary: #ededef;
  --text-secondary: #a0a0a8;
  --text-muted: #5a5a64;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(212, 160, 23, 0.3);

  /* Status */
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;

  /* Radii — generous, claude-style */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Spacing */
  --max-width: 1120px;
  --section-padding: 120px;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography — claude.com scale ---- */
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Links ---- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* ---- Container — narrow, content-focused ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons — rounded, understated ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.2);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ---- Cards — subtle, claude-style ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.card-featured {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.card-featured:hover {
  border-color: var(--accent);
}

/* ---- Code blocks ---- */
code, pre {
  font-family: var(--font-mono);
}

code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--accent);
}

pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212, 160, 23, 0.15);
}

/* ---- Section spacing — very generous, claude-style ---- */
section {
  padding: var(--section-padding) 0;
}

/* Subtle section divider */
section + section {
  border-top: 1px solid var(--border);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.2s;
  opacity: 0.7;
}

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

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-primary);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* ---- Grid utilities ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
