/* tokeneff global site — clean, modern, dark-accented */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #22c55e;
  --warn: #eab308;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --save-high: #22c55e;
  --save-mid: #eab308;
  --save-low: #94a3b8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links .github { color: var(--text); }
.btn-primary {
  background: var(--primary); color: white !important;
  padding: 0.5rem 1rem; border-radius: 6px;
  font-weight: 600; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

/* Hero */
.hero {
  padding: 5rem 2rem; text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--text); }
.hero-sub { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.btn-hero {
  background: var(--primary); color: white;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}
.btn-hero:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-weight: 600; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: white; text-decoration: none; }
.hero-trust { color: var(--text-muted); font-size: 0.95rem; }

/* Sections */
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; text-align: center; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }

/* Pricing table */
.pricing-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.pricing-table {
  width: 100%; border-collapse: collapse;
  background: white; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden;
}
.pricing-table th {
  background: var(--bg-subtle); padding: 0.875rem 1rem;
  text-align: left; font-weight: 600; font-size: 0.875rem;
  border-bottom: 2px solid var(--border);
}
.pricing-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); }
.pricing-table tr:hover { background: var(--bg-subtle); }
.provider { color: var(--text-muted); font-size: 0.8rem; }
.badge {
  display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--bg-subtle); color: var(--text-muted);
}
.badge.flagship { background: #fef3c7; color: #92400e; }
.badge.fast { background: #dbeafe; color: #1e40af; }
.badge.multimodal { background: #fce7f3; color: #9d174d; }
.ours { font-weight: 600; color: var(--accent); }
.save { font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; }
.save-high { background: #dcfce7; color: #166534; }
.save-mid { background: #fef3c7; color: #92400e; }
.save-low { background: var(--bg-subtle); color: var(--text-muted); }
.loading { text-align: center; color: var(--text-muted); padding: 2rem; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 2rem;
}
.feature-card {
  padding: 2rem; border-radius: 12px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Code example */
.code-example { background: var(--bg-subtle); border-radius: 16px; padding: 3rem; }
.code-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  padding: 0.5rem 1rem; border-radius: 6px;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer; font-weight: 500;
}
.tab.active { background: white; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.code-block {
  background: #1e293b; color: #e2e8f0; padding: 1.5rem;
  border-radius: 12px; overflow-x: auto;
}
.code-block pre { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9rem; line-height: 1.6; }

/* CLI promo */
.cli-promo {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white; border-radius: 16px; padding: 3rem;
}
.cli-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cli-text h2 { text-align: left; }
.cli-text p { color: #94a3b8; margin: 1rem 0 1.5rem; }
.cli-text .btn-outline { border-color: #6366f1; color: #6366f1; }
.cli-text .btn-outline:hover { background: #6366f1; color: white; }
.cli-screenshot .demo {
  background: rgba(0,0,0,0.4); padding: 1.5rem; border-radius: 12px;
  font-family: 'SF Mono', monospace; font-size: 0.85rem; color: #e2e8f0;
}

/* Footer */
.footer { background: #0f172a; color: #94a3b8; padding: 3rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: white; }
.footer-legal p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-legal strong { color: #e2e8f0; }
.copyright { color: #64748b; font-size: 0.85rem; }

/* Pricing page specific */
.page-hero { text-align: center; padding: 3rem 2rem 2rem; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.tier-card {
  padding: 2rem; border-radius: 12px; background: white;
  border: 2px solid var(--border); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier-card.highlight { border-color: var(--primary); box-shadow: 0 4px 12px rgba(99,102,241,0.15); }
.tier-card:hover { transform: translateY(-2px); }
.tier-card h3 { margin-bottom: 0.5rem; }
.tier-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.tier-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.tier-features { list-style: none; margin: 1.5rem 0; }
.tier-features li { padding: 0.4rem 0; color: var(--text-muted); }
.calculator { background: var(--bg-subtle); padding: 2rem; border-radius: 12px; }
.calc-inputs { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; align-items: end; }
.calc-field label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.calc-field input, .calc-field select {
  width: 100%; padding: 0.6rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.95rem;
}
.calc-result { margin-top: 1.5rem; }
.calc-comparison { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.calc-item { text-align: center; padding: 1.5rem; border-radius: 8px; background: white; }
.calc-item span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.calc-item strong { font-size: 1.5rem; }
.calc-item.ours strong { color: var(--accent); }
.calc-item.saved strong { color: var(--save-high); }
.calc-note { text-align: center; color: var(--text-muted); margin-top: 1rem; font-size: 0.9rem; }
.pricing-cta { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%); border-radius: 16px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; gap: 1rem; padding: 1rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 2rem; }
  .features-grid, .tiers-grid { grid-template-columns: 1fr; }
  .cli-inner { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-comparison { grid-template-columns: 1fr; }
}

/* Dashboard */
.btn-ghost { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.dash-card { padding: 1.5rem; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border); }
.dash-card span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.dash-card strong { font-size: 1.5rem; }
.dash-card.saved strong { color: var(--accent); }
.dash-section { padding: 2rem; max-width: 1200px; margin: 0 auto; }
.dash-section h2 { text-align: left; font-size: 1.25rem; margin-bottom: 1rem; }
.trend-chart { background: var(--bg-subtle); padding: 1.5rem; border-radius: 12px; font-family: 'SF Mono', monospace; font-size: 0.85rem; }
.trend-row { display: grid; grid-template-columns: 100px 1fr 80px; gap: 1rem; padding: 0.3rem 0; align-items: center; }
.trend-date { color: var(--text-muted); }
.trend-bar { color: var(--primary); letter-spacing: -1px; overflow: hidden; }
.trend-val { text-align: right; font-weight: 600; }
.keys-bar { margin-bottom: 1rem; }
.btn-danger-sm { background: #fee2e2; color: #991b1b; border: none; padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.key-alert { background: #fef3c7; border: 1px solid #f59e0b; padding: 1rem; border-radius: 8px; margin-top: 1rem; }
.key-alert code { word-break: break-all; font-weight: 700; color: #92400e; }
@media (max-width: 768px) { .dash-cards { grid-template-columns: 1fr 1fr; } }

/* Docs */
.docs-section { padding: 2rem; max-width: 900px; margin: 0 auto; }
.docs-section h2 { text-align: left; font-size: 1.5rem; margin: 2rem 0 1rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
.docs-section h3 { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }
.docs-list { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.docs-list li { padding: 0.3rem 0; }
.docs-para { margin: 0.5rem 0 1rem; color: var(--text-muted); }
.docs-note { background: #eef2ff; border-left: 3px solid var(--primary); padding: 1rem 1.5rem; border-radius: 6px; margin: 1rem 0; }
code { background: var(--bg-subtle); padding: 0.15rem 0.4rem; border-radius: 3px; font-family: 'SF Mono', monospace; font-size: 0.9em; color: var(--primary-dark); }
