/* Klaussy landing page — dark theme mirroring the app's aesthetic.
   System font stack, no external dependencies, no framework. */

:root {
  --bg: #0f1117;
  --bg-elevated: #161923;
  --surface: #1a1e2a;
  --surface-hover: #232838;
  --border: #262c3d;
  --border-strong: #333c54;
  --text: #e9ebf2;
  --text-muted: #9ba3b8;
  --text-dim: #6b7388;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.18);
  --code-bg: #0b0d14;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;

  --container: 1040px;
}

* {
  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: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
}

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

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ---- Hero ---- */

.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(1000px circle at 50% -10%, var(--accent-dim), transparent 60%),
    var(--bg);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.wordmark {
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #d3bdfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: -8px 0 24px;
}

.lede {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

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

.hero-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Example / tour section */

.example {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.example h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  text-align: center;
}

.example-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.example-shot-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.example-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 0 64px 8px rgba(139, 92, 246, 0.12);
}

@media (max-width: 640px) {
  .example { padding: 72px 0; }
  .example-shot { border-radius: 8px; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-sub {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  padding: 16px 24px;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
  color: var(--text);
}

/* ---- Features ---- */

.features {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.features h2,
.requirements h2,
.faq h2,
.final-cta h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 48px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 18px;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature code {
  font-size: 12px;
}

/* ---- Requirements ---- */

.requirements {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.req-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req-list li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.req-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- FAQ ---- */

.faq {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.faq details {
  max-width: 780px;
  margin: 0 auto 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.15s;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Final CTA ---- */

.final-cta {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(800px circle at 50% 120%, var(--accent-dim), transparent 60%),
    var(--bg);
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 14px;
}

/* ---- Footer ---- */

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- Doc pages (privacy, eula) ---- */

.container-narrow {
  max-width: 720px;
}

.doc {
  padding: 56px 0 96px;
}

.doc-crumb {
  font-size: 13px;
  margin-bottom: 32px;
}

.doc h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.doc-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
}

.doc p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.doc ul {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 8px 0 16px;
  padding-left: 22px;
}

.doc ul li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---- Responsive tweaks ---- */

@media (max-width: 640px) {
  .nav-links {
    gap: 14px;
    font-size: 12px;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .features,
  .requirements,
  .faq,
  .final-cta {
    padding: 72px 0;
  }
  .btn {
    padding: 11px 18px;
  }
}
