/* Minimal Theme — Swiss-style, achromatic, warm grey */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */

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

:root {
  --bg: #fafaf9;
  --fg: #2a2a28;
  --primary: #2a2a28;
  --secondary-bg: #f0f0ee;
  --muted: #7a7a76;
  --border: #e5e5e2;
  --radius: 0.5rem;
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
  --max-w: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Navbar ───────────────────────────────────────────── */

.navbar {
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.navbar-brand {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.navbar-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--fg);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  margin: 4px 0;
  transition: 0.2s;
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

/* ── Container ────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3rem 0;
}

/* ── Typography ───────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--fg);
}

/* ── Cards ────────────────────────────────────────────── */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* ── Grid ─────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ── Stats ────────────────────────────────────────────── */

.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Features ─────────────────────────────────────────── */

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CTA ──────────────────────────────────────────────── */

.cta {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Blog ─────────────────────────────────────────────── */

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--secondary-bg);
  border-radius: 0.25rem;
  color: var(--muted);
}

.blog-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-card h3 {
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────── */

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-name {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pricing-features li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--secondary-bg);
}

.pricing-card .btn {
  width: 100%;
}

/* ── About ────────────────────────────────────────────── */

.about-story {
  max-width: 680px;
}

.about-story p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.team-card {
  text-align: center;
}

.avatar-placeholder {
  width: 5rem;
  height: 5rem;
  background: var(--secondary-bg);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted);
}

.team-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Contact ──────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.sidebar-card {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  margin-bottom: 0.75rem;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '-';
}

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

.faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── KB ───────────────────────────────────────────────── */

.search-bar {
  max-width: 480px;
  margin: 0 auto 3rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.kb-category {
  margin-bottom: 2.5rem;
}

.kb-category-title {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.kb-article h4 {
  margin-bottom: 0.375rem;
}

.kb-article p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Page Header ──────────────────────────────────────── */

.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* ── Theme Switcher ───────────────────────────────────── */

.theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
}

.theme-switcher-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.theme-switcher-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.theme-switcher-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 140px;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.theme-switcher-menu.open {
  display: block;
}

.theme-switcher-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-radius: 0.25rem;
  transition: background 0.1s ease, color 0.1s ease;
}

.theme-switcher-menu a:hover {
  background: var(--secondary-bg);
  color: var(--fg);
}

.theme-switcher-menu a.current {
  color: var(--fg);
  font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 4rem 0 3rem; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .cta { padding: 2.5rem 1.5rem; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .navbar-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .logo-bar__logos {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* ── Eyebrow ─────────────────────────────────────────── */

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ── Logo Bar ────────────────────────────────────────── */

.logo-bar {
  text-align: center;
}

.logo-bar__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.logo-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.logo-bar__logos span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  opacity: 0.55;
}

/* ── Split Layout ────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── Check List ──────────────────────────────────────── */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-list li::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--secondary-bg);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.7rem;
}

/* ── Code Block ──────────────────────────────────────── */

.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.code-block__header {
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.code-block__dots {
  display: flex;
  gap: 0.375rem;
}

.code-block__dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border);
}

.code-block__filename {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
}

.code-block__body {
  padding: 1.25rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  overflow-x: auto;
  color: var(--fg);
}

.code-block__body code {
  font-family: inherit;
}

.code-kw {
  color: var(--fg);
  font-weight: 600;
}

.code-str {
  color: #5a5a56;
}

.code-val {
  color: #8a8a86;
}

/* ── Quote Section (Design Philosophy) ───────────────── */

.quote-section {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}

.quote-section__quote {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-style: normal;
  border: none;
  padding: 0;
}

.quote-section__attribution {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Testimonials ────────────────────────────────────── */

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial__quote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Pricing Section ─────────────────────────────────── */

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

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