/* ============================================================
   WikiLLM marketing — inspired by wikimind-infographic visual language
   Palette: deep navy + cyan accent + orange warm + green success
   ============================================================ */

:root {
  --bg:        #0a0a1a;
  --bg-card:   #12122a;
  --bg-alt:    #0e0e22;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --border:    #1f1f3a;
  --accent:    #00d4ff;
  --accent-dim:#008cb3;
  --warm:      #ff6b35;
  --green:     #00e676;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 8px 32px rgba(0, 212, 255, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

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

/* ---------- Top nav ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  background: #33dfff;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
}

.hero-inner {
  max-width: 900px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50%      { opacity: 1;   transform: translate(-50%, 4px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pipeline-step {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.2s ease;
}

.pipeline-step:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.pipeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pipeline-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.pipeline-badge {
  display: inline-block;
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 300;
  opacity: 0.6;
}

/* ---------- Blockquote ---------- */
.quote {
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 0 auto 3rem;
  max-width: 780px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--muted);
}

/* ---------- Compare cards ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.compare-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 4px solid;
}

.compare-warm { border-top-color: var(--warm); }
.compare-cool { border-top-color: var(--accent); }

.compare-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.compare-warm .compare-label { color: var(--warm); }
.compare-cool .compare-label { color: var(--accent); }

.compare-list {
  list-style: none;
}

.compare-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.98rem;
}

.compare-list li:last-child { border-bottom: none; }

.compare-warm .compare-list li::before {
  content: "✕ ";
  color: var(--warm);
  font-weight: 700;
  margin-right: 0.4rem;
}

.compare-cool .compare-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* ---------- Architecture diagram ---------- */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.arch-col {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.arch-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.arch-box {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.arch-detail {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.arch-link-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  position: relative;
  margin-bottom: 0.5rem;
}

.arch-link-line::before,
.arch-link-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.arch-link-line::before { left: 0;  background: var(--accent); }
.arch-link-line::after  { right: 0; background: var(--warm); }

.arch-link-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
}

/* ---------- CTA section ---------- */
.section-cta {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.cta-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-fineprint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .top-nav { padding: 0.85rem 1.25rem; }
  .top-nav-links { gap: 0.85rem; }
  .nav-link { display: none; }
  .nav-cta { display: inline-block; }

  .hero { padding: 3rem 1.25rem 1rem; }
  .hero-stats { gap: 2rem; }

  .section { padding: 4rem 1.25rem; }

  .pipeline {
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin: 0.5rem 0;
  }

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

  .arch-diagram { flex-direction: column; }
  .arch-link-line { width: 2px; height: 60px; background: linear-gradient(180deg, var(--accent), var(--warm)); }
  .arch-link-line::before,
  .arch-link-line::after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
  .arch-link-line::before { top: 0; }
  .arch-link-line::after  { bottom: 0; top: auto; }
}
