:root {
  --bg-main: #0b120d;
  --bg-card: #131d15;
  --bg-card-hover: #19271c;
  --bg-code: #0a0f0b;
  --border-color: rgba(74, 155, 96, 0.2);
  --border-accent: #2e7d32;
  --text-main: #f0f7f1;
  --text-muted: #94ab98;
  --primary: #4caf50;
  --primary-glow: rgba(76, 175, 80, 0.25);
  --accent-yellow: #fbc02d;
  --accent-blue: #0288d1;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-mono: "Fira Code", "Courier New", Courier, monospace;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(46, 125, 50, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(251, 192, 45, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 13, 0.85);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 20px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent-yellow));
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #b3d1b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Live Demo Card */
.live-demo-container {
  max-width: 640px;
  margin: 0 auto 60px;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.demo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50, #fbc02d);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.demo-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(76, 175, 80, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
}

.demo-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.demo-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.demo-text {
  font-size: 15px;
  line-height: 1.7;
  color: #d1e2d4;
  margin-bottom: 20px;
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 13px;
}

.demo-source {
  color: var(--text-muted);
  font-style: italic;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-controls {
  display: flex;
  gap: 10px;
}

.btn {
  background: var(--primary);
  color: #051407;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn:hover {
  background: #66bb6a;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Playground / Docs */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 850px) {
  .playground-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.endpoint-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.endpoint-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.endpoint-option:hover, .endpoint-option.active {
  background: rgba(76, 175, 80, 0.12);
  border-color: var(--primary);
}

.method {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(76, 175, 80, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  flex-grow: 1;
  margin-left: 12px;
}

/* Code Console */
pre {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a9b7a6;
  overflow-x: auto;
  max-height: 380px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(76, 175, 80, 0.15);
  color: var(--primary);
}

.code-box {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--primary);
  color: #000;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 60px;
}
