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

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #00ff88;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e1e;
  z-index: 100;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-size: 20px;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 2px;
}

.nav-wordmark:hover {
  text-decoration: none;
}

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

.nav-links a {
  color: #666;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #d4d4d4;
  text-decoration: none;
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: #d4d4d4;
  margin-bottom: 16px;
  margin-top: 32px;
}

.subsection-title:first-of-type {
  margin-top: 0;
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
}

.hero-accent {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 320px;
  pointer-events: none;
  overflow: hidden;
}

.hero-accent svg {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 15px;
  color: #d4d4d4;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.stat-badge {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 16px 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00ff88;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.85;
}

.btn-primary {
  background: #00ff88;
  color: #000000;
}

.btn-secondary {
  background: transparent;
  color: #d4d4d4;
  border: 1px solid #1e1e1e;
}

.btn-secondary:hover {
  border-color: #00ff88;
  color: #00ff88;
}

/* Cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 24px;
}

.card-icon {
  font-size: 24px;
  color: #00ff88;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.card-code {
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: #00ff88;
  margin-top: 16px;
  overflow-x: auto;
  white-space: pre;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #0088ff;
}

/* Benchmark Tables */
.table-wrapper {
  margin-bottom: 24px;
  overflow-x: auto;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

.benchmark-table th,
.benchmark-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #1e1e1e;
  font-size: 13px;
}

.benchmark-table th {
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benchmark-table td {
  color: #d4d4d4;
}

.benchmark-table .highlight-row td {
  color: #00ff88;
  font-weight: 600;
}

.benchmark-note {
  font-size: 14px;
  color: #00ff88;
  margin-top: 16px;
  font-weight: 500;
}

/* Benchmark Intro */
.benchmark-intro {
  font-size: 15px;
  color: #999;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 12px;
}

.benchmark-intro-highlight {
  color: #00ff88;
  font-weight: 600;
  margin-bottom: 32px;
}

/* Methodology Bar */
.method-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.method-stat {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.method-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.method-label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Benchmark Descriptions */
.benchmark-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.benchmark-desc code {
  color: #d4d4d4;
  background: #1e1e1e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Efficiency Chart */
.eff-chart {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.eff-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.eff-row:last-child {
  margin-bottom: 0;
}

.eff-label {
  width: 52px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  flex-shrink: 0;
}

.eff-lean { color: #00ff88; }
.eff-yaml { color: #60a5fa; }
.eff-json { color: #888; }

.eff-track {
  flex: 1;
  height: 10px;
  background: #1e1e1e;
  border-radius: 5px;
  overflow: hidden;
}

.eff-fill {
  height: 100%;
  border-radius: 5px;
}

.eff-fill-lean { background: #00ff88; }
.eff-fill-yaml { background: #60a5fa; }
.eff-fill-json { background: #888; }

.eff-value {
  width: 180px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-align: right;
  flex-shrink: 0;
}

.eff-value small {
  font-weight: 400;
  font-size: 11px;
  color: #666;
}

/* Benchmark Callout */
.benchmark-callout {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 15px;
  color: #00ff88;
  font-weight: 500;
  margin-bottom: 48px;
  text-align: center;
}

/* Track Titles */
.track-title {
  font-size: 15px;
  font-weight: 600;
  color: #d4d4d4;
  margin-top: 32px;
  margin-bottom: 8px;
}

/* Token Cards */
.tok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tok-card {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 20px;
}

.tok-grand {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.02);
  margin-bottom: 32px;
}

.tok-total {
  border-color: #2a2a2a;
  margin-bottom: 32px;
}

.tok-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tok-icon {
  font-size: 16px;
}

.tok-name {
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d4;
}

.tok-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tok-row:last-child {
  margin-bottom: 0;
}

.tok-label {
  width: 40px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  flex-shrink: 0;
}

.tok-lean { color: #00ff88; }
.tok-yaml { color: #60a5fa; }

.tok-track {
  flex: 1;
  height: 8px;
  background: #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
}

.tok-fill {
  height: 100%;
  border-radius: 4px;
}

.tok-json { background: #888; }
.tok-lean-fill { background: #00ff88; }
.tok-yaml-fill { background: #60a5fa; }

.tok-count {
  width: 56px;
  font-size: 12px;
  color: #d4d4d4;
  text-align: right;
  flex-shrink: 0;
}

.tok-badge {
  width: 56px;
  font-size: 11px;
  color: #666;
  text-align: right;
  flex-shrink: 0;
}

.tok-badge-lean { color: #00ff88; font-weight: 600; }
.tok-badge-yaml { color: #60a5fa; font-weight: 600; }

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.model-card {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 20px;
}

.model-name {
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d4;
  margin-bottom: 16px;
}

.model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.model-row:last-child {
  margin-bottom: 0;
}

.model-label {
  width: 40px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  flex-shrink: 0;
}

.model-lean { color: #00ff88; }
.model-yaml { color: #60a5fa; }

.model-bar-track {
  flex: 1;
  height: 8px;
  background: #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
}

.model-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.model-bar-lean { background: #00ff88; }
.model-bar-yaml { background: #60a5fa; }
.model-bar-json { background: #888; }

.model-score {
  width: 44px;
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d4;
  text-align: right;
  flex-shrink: 0;
}

.model-detail {
  width: 56px;
  font-size: 11px;
  color: #666;
  text-align: right;
  flex-shrink: 0;
}

/* Cell Highlighting */
.cell-best {
  color: #00ff88;
  font-weight: 600;
}

/* Format Comparison */
.format-compare {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.format-panel {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

.format-panel-lean {
  border-color: rgba(0, 255, 136, 0.3);
}

.format-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #1e1e1e;
  background: #0d0d0d;
}

.format-panel-lean .format-header {
  color: #00ff88;
}

.format-name {
  color: inherit;
}

.format-tokens {
  font-size: 11px;
  font-weight: 400;
  color: #444;
  text-transform: none;
  letter-spacing: 0;
}

.format-panel-lean .format-tokens {
  color: rgba(0, 255, 136, 0.6);
}

.format-code {
  padding: 16px;
  font-size: 12px;
  color: #d4d4d4;
  line-height: 1.5;
  background: #0d0d0d;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

.format-note {
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  border-top: 1px solid #1e1e1e;
}

.format-note code {
  color: #d4d4d4;
  background: #1e1e1e;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* Evaluation Steps */
.eval-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.eval-step {
  flex: 1;
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.eval-num {
  width: 28px;
  height: 28px;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.eval-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eval-content strong {
  color: #d4d4d4;
  font-size: 13px;
}

.eval-content span {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Method Details */
.method-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
}

.method-detail {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.method-detail-label {
  color: #666;
  min-width: 80px;
}

.method-detail-value {
  color: #d4d4d4;
}

/* Takeaway List */
.takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.takeaway {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 16px 20px;
}

.takeaway-num {
  width: 28px;
  height: 28px;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.takeaway-text {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.takeaway-text strong {
  color: #d4d4d4;
}

/* Benchmark Bottom */
.benchmark-bottom {
  font-size: 16px;
  color: #d4d4d4;
  line-height: 1.7;
  padding: 24px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.benchmark-repo-link {
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* Playground */
.playground-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.playground-controls label {
  font-size: 13px;
  color: #666;
}

.playground-controls select {
  background: #111111;
  color: #d4d4d4;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
}

.playground-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-highlight {
  border-color: #00ff8840;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #1e1e1e;
  background: #0d0d0d;
}

.panel-label {
  color: inherit;
}

.panel-size {
  font-size: 11px;
  font-weight: 400;
  color: #444;
  letter-spacing: 0;
  text-transform: none;
}

.panel-highlight .panel-header {
  color: #00ff88;
}

.panel-content {
  background: #0d0d0d;
  color: #d4d4d4;
  border: none;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: none;
  min-height: 280px;
  flex: 1;
  outline: none;
  overflow: auto;
  white-space: pre;
  margin: 0;
}

textarea.panel-content {
  width: 100%;
}

/* Stats Bar */
.stats-bar {
  margin-bottom: 16px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

.stats-table th,
.stats-table td {
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid #1e1e1e;
}

.stats-table th {
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-table td {
  color: #d4d4d4;
}

.stats-table td:first-child,
.stats-table th:first-child {
  text-align: left;
}

.stats-highlight {
  color: #00ff88 !important;
  font-weight: 600;
}

/* Playground Error */
.playground-error {
  color: #ff4444;
  font-size: 13px;
  min-height: 20px;
}

/* Footer */
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #1e1e1e;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: #666;
}

.footer a {
  color: #0088ff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-badge {
    width: 100%;
    max-width: 240px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .playground-panels {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .tok-grid {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .format-compare {
    grid-template-columns: 1fr;
  }

  .eval-steps {
    flex-direction: column;
  }

  .method-bar {
    gap: 8px;
  }

  .method-stat {
    min-width: 60px;
    padding: 8px 12px;
  }

  .method-value {
    font-size: 16px;
  }

  .method-details {
    grid-template-columns: 1fr;
  }

  .eff-value {
    width: auto;
    font-size: 12px;
  }

  .eff-value small {
    display: none;
  }

  .eff-label {
    width: 44px;
    font-size: 12px;
  }
}
