:root {
  --bg: #07080f;
  --surface: #11131f;
  --border: #252a3d;
  --text: #e8ecf7;
  --muted: #8b93ad;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 16px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 { width: 500px; height: 500px; background: #1e3a5f; top: -200px; left: -100px; opacity: 0.5; }
.glow-2 { width: 400px; height: 400px; background: #3b1f6e; bottom: -100px; right: -80px; opacity: 0.4; }

.header, main, footer { position: relative; z-index: 1; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; }
.logo-mark { font-size: 1.4rem; }
.logo-text .dot { color: var(--accent); }

.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 4rem; }

.hero { margin-bottom: 3.5rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle { color: var(--muted); max-width: 620px; font-size: 1.05rem; margin-bottom: 1.5rem; }

.status-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.badge-live { background: rgba(52, 211, 153, 0.12); color: var(--success); border-color: rgba(52, 211, 153, 0.3); }
.badge-dev { background: rgba(251, 191, 36, 0.12); color: var(--warning); border-color: rgba(251, 191, 36, 0.3); }
.badge-muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: rgba(110, 231, 255, 0.4); transform: translateY(-2px); }

.skill-icon { font-size: 2rem; }
.skill-card h2 { font-size: 1.2rem; font-weight: 600; }
.skill-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.skill-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.price small { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.endpoint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  word-break: break-all;
}

.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-stripe { background: linear-gradient(135deg, #635bff 0%, #8b7cf8 100%); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.checkout-card {
  max-width: 640px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.checkout-card .btn { display: inline-block; margin-top: 1.5rem; text-decoration: none; }

.output {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
}

.partner-section { margin-bottom: 3rem; }
.partner-section h2 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.partner-section > .subtitle { margin-bottom: 1.5rem; }
.partner-card { border-color: rgba(167, 139, 250, 0.25); }
.partner-provider { margin-bottom: 0.25rem !important; font-size: 0.72rem !important; color: var(--accent-2) !important; text-transform: none !important; letter-spacing: 0.02em !important; }

.agent-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.agent-section h2 { margin-bottom: 0.75rem; }
.agent-section p { color: var(--muted); margin-bottom: 1rem; }
.agent-section code { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

.code-block {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
  overflow-x: auto;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent); text-decoration: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-actions .btn { text-decoration: none; display: inline-block; }

.applet-body { min-height: 100vh; }
.applet-shell { max-width: 720px; margin: 0 auto; padding: 2rem; }
.applet-header { margin-bottom: 1.5rem; }
.applet-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.applet-header p { color: var(--muted); }
.applet-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.applet-grid label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.applet-grid input, .applet-grid select, .applet-grid textarea {
  font-family: var(--font);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
}
.applet-results h2 { margin-bottom: 0.75rem; font-size: 1.1rem; }

.doc-page { max-width: 760px; margin: 0 auto; padding: 2rem; }
.doc-content { line-height: 1.7; }
.doc-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.doc-content h2 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; color: var(--accent); }
.doc-content h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.doc-content p, .doc-content li { color: var(--muted); margin-bottom: 0.6rem; }
.doc-content code { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.doc-content pre {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 1rem; }
}