/* ================================================================
   eval++ — GitHub Pages Site
   Design: Snarky frontend-library aesthetic
   ================================================================ */

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

:root {
  /* Colors */
  --bg:           #09090b;
  --bg-card:      #111113;
  --bg-card-alt:  #18181b;
  --bg-strip:     #0f0f11;
  --border:       rgba(255,255,255,0.07);
  --border-bright:rgba(255,255,255,0.12);

  --text:         #fafafa;
  --text-muted:   #71717a;
  --text-dim:     #a1a1aa;

  /* Brand accent: electric violet */
  --accent:       #a855f7;
  --accent-light: #c084fc;
  --accent-dim:   rgba(168,85,247,0.15);
  --accent-glow:  rgba(168,85,247,0.30);

  /* Danger/warning tones */
  --warn:         #f59e0b;
  --warn-dim:     rgba(245,158,11,0.12);
  --danger:       #ef4444;
  --ok:           #22c55e;

  /* Code block */
  --code-bg:      #0d0d0f;
  --code-border:  rgba(255,255,255,0.06);

  /* Layout */
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --max-w:        1100px;
  --nav-h:        64px;

  /* Type */
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent-light);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 1px 6px;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9,9,11,0.80);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-eval { color: var(--text); }
.logo-pp   { color: var(--accent); }

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

.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--border-bright) !important;
  color: var(--text) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.20) !important;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%);
  top: -100px; left: -150px;
  animation: float1 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  bottom: 50px; right: -80px;
  animation: float2 11s ease-in-out infinite;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
  top: 40%; left: 55%;
  animation: float1 14s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 30px); }
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

/* Badge row */
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-wtfpl {
  color: var(--ok);
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
}
.badge-warning {
  color: var(--warn);
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.08);
}
.badge-node {
  color: var(--text-dim);
  border-color: var(--border-bright);
  background: rgba(255,255,255,0.04);
}

/* Title */
.hero-title {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.title-eval { color: var(--text); }
.title-pp {
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
}

/* Tagline */
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
}
.hero-tagline code {
  font-size: 0.95em;
}
.tagline-sub {
  font-size: 0.8em;
  color: var(--text-muted);
  font-style: italic;
}

/* Hero code window */
.hero-code-window {
  width: 100%;
  max-width: 660px;
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(168,85,247,0.06);
  overflow: hidden;
  text-align: left;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--code-border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #22c55e; }

.window-title {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.window-body { padding: 20px 24px; }

.hero-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
}

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(168,85,247,0.4);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 40px rgba(168,85,247,0.6);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -8px;
}

/* ================================================================
   FEATURE STRIP
   ================================================================ */
.feature-strip {
  background: var(--bg-strip);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  overflow-x: auto;
}

.strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 640px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  padding: 0 28px;
}
.strip-icon { font-size: 1rem; }

.strip-divider {
  width: 1px;
  height: 20px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ================================================================
   SECTIONS (shared)
   ================================================================ */
.section {
  padding: 100px 24px;
}
.section:nth-child(even) {
  background: var(--bg-card);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.accent { color: var(--accent); }

/* ================================================================
   WHY SECTION — Cards
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Why Not box */
.why-not {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-not-header {
  background: rgba(239,68,68,0.10);
  border-bottom: 1px solid rgba(239,68,68,0.15);
  padding: 12px 24px;
}

.why-not-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f87171;
}

.why-not-list {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-not-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.x {
  color: #f87171;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================================================================
   INSTALL SECTION — Steps
   ================================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(168,85,247,0.1));
}

.step {
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px var(--accent-glow);
  position: relative;
  z-index: 1;
}

.step-content { flex: 1; padding-top: 8px; }

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content > p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.65;
}

/* ================================================================
   CODE BLOCKS (shared)
   ================================================================ */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--code-border);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.copy-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--border-bright);
}
.copy-btn.copied {
  color: var(--ok);
  border-color: rgba(34,197,94,0.35);
}

.code-block pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* ================================================================
   SYNTAX COLORS
   ================================================================ */
.c-keyword  { color: #c084fc; }
.c-string   { color: #86efac; }
.c-comment  { color: #52525b; font-style: italic; }
.c-type     { color: #67e8f9; }
.c-num      { color: #fb923c; }

/* ================================================================
   TABS (Quick Start)
   ================================================================ */
.tabs-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-bar {
  display: flex;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
  padding: 4px;
  gap: 2px;
}

.tab {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab:hover {
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
}
.tab.active {
  color: var(--text);
  background: rgba(168,85,247,0.15);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .code-block { border: none; border-radius: 0; }
.tab-panel .code-block pre { font-size: 0.83rem; }

/* ================================================================
   API SECTION
   ================================================================ */
.api-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.api-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.api-card:hover { border-color: var(--border-bright); }

.api-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.api-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-light);
  background: var(--accent-dim);
  padding: 3px 10px;
}

.api-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

.api-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.65;
}

.api-sig { }
.api-sig pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow-x: auto;
}

/* Options Table */
.table-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.options-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.options-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.options-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.6;
}
.options-table tr:last-child td { border-bottom: none; }
.options-table tr:hover td { background: rgba(255,255,255,0.02); }

.muted { color: var(--text-muted); font-style: italic; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: rgba(168,85,247,0.04); }

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.15s;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.faq-item[open] summary::before {
  content: '–';
}
.faq-item summary:hover { color: var(--accent-light); }

.faq-item > p {
  padding: 0 24px 20px 54px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 0;
  background: var(--bg-card);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
}
.footer-tagline a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.12);
}
.footer-tagline a:hover { color: var(--text); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }
.footer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }

  .hero-inner { padding: 60px 20px 80px; }

  .hero-code-window { max-width: 100%; }
  .hero-code { font-size: 0.75rem; }

  .section { padding: 72px 20px; }

  .section-subtitle { margin-bottom: 40px; }

  .steps::before { display: none; }

  .tab { padding: 8px 12px; font-size: 0.78rem; }

  .api-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }

  .strip-inner { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 4.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .faq-item > p { padding-left: 24px; }
}
