/* llmindexed.com — MVP design system (ported from aitracker prototype) */
:root {
  --bg: #0a0c10;
  --bg2: #10141b;
  --surface: #141a23;
  --surface2: #1a222e;
  --border: #232d3b;
  --ink: #e8edf4;
  --ink-dim: #9aa7b8;
  --ink-faint: #5c6a7c;
  --accent: #4dd0a5;
  --accent-dim: #2a8f70;
  --accent-ink: #07120e;
  --warn: #e0b34f;
  --danger: #e06c5f;
  --blue: #8fb1ff;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ─────────────────────────────── */
.b-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.b-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 16px;
}
.b-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.b-logo span { color: var(--accent); }
.b-logo small { color: var(--ink-faint); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.b-nav { display: flex; gap: 24px; align-items: center; font-size: 14px; color: var(--ink-dim); }
.b-nav a:hover { color: var(--ink); }
.b-lang-switch {
  background: var(--surface2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; cursor: pointer;
}

/* ── Buttons ─────────────────────────── */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--sans);
}
.t-btn:hover { border-color: var(--accent-dim); }
.t-btn-primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.t-btn-primary:hover { background: #5fdcb5; }

/* ── Hero ─────────────────────────────── */
.h-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 96px 32px 72px;
  text-align: center;
  position: relative; overflow: hidden;
}
.h-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(77, 208, 165, .10), transparent),
    radial-gradient(ellipse 45% 40% at 82% 15%, rgba(143, 177, 255, .07), transparent),
    radial-gradient(ellipse 40% 35% at 15% 20%, rgba(224, 179, 79, .05), transparent);
  pointer-events: none;
}
.h-hero-content { position: relative; }
.h-hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.08;
  margin-bottom: 24px;
}
.h-hero-title em { font-style: normal; color: var(--accent); }
.h-hero-sub {
  color: var(--ink-dim); font-size: 19px;
  max-width: 680px; margin: 0 auto 40px; line-height: 1.55;
}
.h-search {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 10px;
}
.h-search:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(77, 208, 165, .08); }
.h-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 17px; padding: 8px 12px;
  font-family: var(--mono);
}
.h-search-input::placeholder { color: var(--ink-faint); }
.h-search-icon { color: var(--ink-faint); flex-shrink: 0; margin-left: 8px; }
.h-hero .trust { margin-top: 20px; font-size: 13.5px; color: var(--ink-faint); }

/* ── Scanbox + Demo results (MVP port) ─── */
.scanbox {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 10px;
}
.scanbox:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 3px rgba(77, 208, 165, .08); }
.scanbox input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-size: 17px; padding: 8px 12px;
  font-family: var(--mono);
}
.scanbox input::placeholder { color: var(--ink-faint); }
.scanbox .t-btn { flex-shrink: 0; }

.h-demo { max-width: 1200px; margin: 0 auto; padding: 0 32px 24px; }
.demo-note {
  text-align: center; font-size: 13px; color: var(--ink-faint);
  margin-bottom: 20px; font-family: var(--mono);
}
.scan-progress {
  max-width: 640px; margin: 0 auto 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  display: none;
}
.scan-progress.active { display: block; }
.prog-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; }
.prog-engine { color: var(--ink-dim); }
.prog-status { color: var(--accent); }
.prog-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: var(--accent); transition: width .3s ease; }

.results { display: none; }
.results.active { display: block; }

.score-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  margin-bottom: 16px;
  align-items: center;
}
.score-big { text-align: center; }
.score-big .num {
  font-size: 72px; font-weight: 800; letter-spacing: -.04em;
  color: var(--warn); line-height: 1;
  font-family: var(--mono);
}
.score-big .label { color: var(--ink-dim); font-size: 13px; margin-top: 8px; }
.score-detail h3 { font-size: 17px; margin-bottom: 12px; }
.score-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: 13.5px; }
.score-item { display: flex; justify-content: space-between; color: var(--ink-dim); padding: 8px 0; border-bottom: 1px solid var(--border); }
.score-item b { color: var(--ink); font-weight: 600; }
.ok { color: var(--accent); }
.bad { color: var(--warn); }
.warn { color: var(--danger); }

.engines {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 16px;
}
.engine {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.engine .name { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.engine .status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.st-cited { background: rgba(77,208,165,.14); color: var(--accent); }
.st-partial { background: rgba(224,179,79,.14); color: var(--warn); }
.st-zero { background: rgba(224,108,95,.14); color: var(--danger); }
.engine .quote {
  font-size: 12.5px; color: var(--ink-dim);
  background: var(--bg2); border-radius: 8px; padding: 10px;
  font-style: italic; margin-bottom: 10px; min-height: 56px;
}
.engine .meta { font-size: 11.5px; color: var(--ink-faint); font-family: var(--mono); }

.fix-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 32px; margin-bottom: 48px;
}
.fix-panel h3 { font-size: 17px; margin-bottom: 6px; }
.fix-panel .desc { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 18px; }
.fix-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  gap: 16px;
}
.fix-item:last-child { border-bottom: none; }
.fix-item .txt b { display: block; font-size: 14px; margin-bottom: 3px; }
.fix-item .txt span { font-size: 12.5px; color: var(--ink-dim); }
.tag {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  font-family: var(--mono); flex-shrink: 0;
}
.tag-action { background: rgba(77,208,165,.12); color: var(--accent); }
.tag-submit { background: rgba(104,146,255,.12); color: var(--blue); }
.tag-detect { background: rgba(224,179,79,.12); color: var(--warn); }

/* ── Tool grid ──────────────────────── */
.h-tools { max-width: 1200px; margin: 0 auto; padding: 0 32px 88px; }
.h-section-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 24px; }
.h-hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 48px; }
.h-category { margin-bottom: 48px; }
.h-cat-title { font-size: 17px; font-weight: 600; color: var(--ink-dim); margin-bottom: 16px; }
.h-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hc-card {
  display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.hc-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.hc-card.hc-hot { border-color: rgba(77, 208, 165, .35); }
.hc-icon { color: var(--accent); font-size: 20px; margin-bottom: 8px; font-family: var(--mono); }
.hc-name { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.hc-desc { font-size: 13.5px; color: var(--ink-dim); }

/* ── How it works ───────────────────── */
.h-how { border-top: 1px solid var(--border); padding: 88px 0; }
.h-how-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.h-how-title { font-size: 32px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 40px; text-align: center; }
.h-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-how-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
}
.h-how-step { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.h-how-name { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.h-how-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; }

/* ── Free banner ────────────────────── */
.h-free { border-top: 1px solid var(--border); padding: 72px 0; text-align: center; }
.h-free-inner { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.h-free-title { font-size: 32px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.h-free-title em { font-style: normal; color: var(--accent); }
.h-free-sub { color: var(--ink-dim); font-size: 16px; }

/* ── Tool page ──────────────────────── */
.t-section { max-width: 1080px; margin: 0 auto; padding: 48px 24px 8px; }
.t-container { max-width: 760px; margin: 0 auto; }
.t-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.t-desc { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 28px; }
.t-subtitle { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.t-toolbox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.t-input-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-dim); margin-bottom: 6px; }
.t-input {
  width: 100%; background: var(--bg2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; outline: none;
  font-family: var(--sans);
}
.t-input:focus { border-color: var(--accent-dim); }
.t-textarea {
  width: 100%; background: var(--bg2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; font-size: 14px; outline: none;
  font-family: var(--mono); resize: vertical;
}
.t-textarea:focus { border-color: var(--accent-dim); }
.t-actions { display: flex; gap: 10px; margin-top: 18px; }
.t-output-area { margin-top: 20px; }
.t-output-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.t-output {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; min-height: 60px; font-size: 13px; word-break: break-word;
  text-align: left; font-family: var(--mono); line-height: 1.7;
}

/* llms.txt generator form */
.llm-form { display: grid; gap: 16px; }
.llm-field { display: grid; gap: 6px; }
.llm-page-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto;
  gap: 8px; margin-bottom: 8px; align-items: center;
}
.llm-add-row { padding: 8px 14px; font-size: 13px; }
.llm-del-row { padding: 8px 12px; font-size: 13px; }

/* ── Related / FAQ ──────────────────── */
.t-related { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.t-related h3 { font-size: 16px; margin-bottom: 14px; }
.t-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.t-faq { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.t-faq h3 { font-size: 18px; margin-bottom: 16px; }
.t-faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 10px;
}
.t-faq-item h4 { font-size: 14.5px; margin-bottom: 6px; }
.t-faq-item p { font-size: 13.5px; color: var(--ink-dim); }

/* ── Static pages ───────────────────── */
.s-section { max-width: 760px; margin: 0 auto; padding: 48px 24px 32px; }
.s-container h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.s-container p { color: var(--ink-dim); margin-bottom: 14px; font-size: 14.5px; }
.s-container ul { color: var(--ink-dim); margin: 0 0 14px 20px; font-size: 14.5px; }
.s-container li { margin-bottom: 6px; }

/* ── Footer ─────────────────────────── */
.b-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.b-footer-inner { max-width: 1080px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.b-footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink-dim); }
.b-footer-links a:hover { color: var(--ink); }
.b-footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ── Responsive ─────────────────────── */
@media (max-width: 900px) {
  .score-head { grid-template-columns: 1fr; text-align: center; }
  .engines { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .score-items { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .b-nav { display: none; }
  .llm-page-row { grid-template-columns: 1fr; }
  .h-hero { padding: 48px 16px 40px; }
  .engines { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
