/* ═══════════════════════════════════════════════════════
   Beetle — About Page
   Apple-inspired editorial layout with sticky sidebar nav
   ═══════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --about-font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --about-text: #1d1d1f;
  --about-text-sec: #6e6e73;
  --about-text-ter: #aeaeb2;
  --about-bg: #ffffff;
  --about-sidebar-bg: #fafafa;
  --about-line: rgba(0, 0, 0, 0.08);
  --about-blue: #0071e3;
  --about-blue-hover: #0077ed;
  --about-card-bg: #ffffff;
  --about-card-border: rgba(0, 0, 0, 0.06);
  --about-card-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  --about-nav-active: rgba(0, 0, 0, 0.05);
  --about-nav-indicator: #0071e3;
  --about-content-w: 1200px;
  --about-sidebar-w: 240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body.about-body {
  margin: 0;
  font-family: var(--about-font);
  color: var(--about-text);
  background: var(--about-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════ */
.about-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--about-line);
}

.about-topbar-inner {
  max-width: var(--about-content-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
}

.about-topbar-logo {
  height: 22px;
  width: auto;
  display: block;
}

.about-topbar-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   LAYOUT — sidebar + content
═══════════════════════════════════════════ */
.about-layout {
  max-width: var(--about-content-w);
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 52px);
}

/* ── Sidebar ── */
.about-sidebar {
  width: var(--about-sidebar-w);
  flex-shrink: 0;
  padding: 48px 0 48px 32px;
  position: sticky;
  top: 52px;
  height: fit-content;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
}

.about-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-nav-item {
  display: block;
}

.about-nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--about-text-sec);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}

.about-nav-link:hover {
  color: var(--about-text);
  background: var(--about-nav-active);
}

.about-nav-link.active {
  color: var(--about-text);
  background: var(--about-nav-active);
  font-weight: 600;
}

.about-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--about-nav-indicator);
}

/* ── Content ── */
.about-content {
  flex: 1;
  min-width: 0;
  padding: 48px 32px 120px 64px;
  border-left: 1px solid var(--about-line);
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.about-section {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--about-line);
  scroll-margin-top: 80px;
}

.about-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ── Section header ── */
.about-section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--about-text);
}

.about-section-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--about-text-sec);
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ── Body text ── */
.about-body-text {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3a3c;
  margin-bottom: 20px;
  max-width: 640px;
}

.about-body-text:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--about-text);
  margin-bottom: 24px;
  max-width: 640px;
}

/* ═══════════════════════════════════════════
   STATS ROW
═══════════════════════════════════════════ */
.about-stats {
  display: flex;
  gap: 0;
  margin: 40px 0;
  max-width: 640px;
}

.about-stat {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  position: relative;
}

.about-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--about-line);
}

.about-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--about-text);
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 11px;
  color: var(--about-text-ter);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════════ */
.about-feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--about-text-sec);
}

.about-feature-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--about-text);
}

.about-feature-tagline {
  font-size: 15px;
  color: var(--about-text-sec);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
  max-width: 640px;
}

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.about-cta {
  margin-top: 16px;
}

.about-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--about-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.about-cta-btn:hover {
  background: var(--about-blue-hover);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
}

.about-cta-btn:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.about-footer {
  text-align: center;
  width: 100%;
  padding: 20px 16px 28px;
  font-size: 12px;
  font-family: var(--about-font);
  color: var(--about-text-ter);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--about-line);
}

.about-footer a {
  color: inherit;
  text-decoration: none;
}

.about-footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════ */
[data-theme="dark"] {
  --about-text: #f2f2f7;
  --about-text-sec: #8e8e93;
  --about-text-ter: #636366;
  --about-bg: #000000;
  --about-sidebar-bg: #000000;
  --about-line: rgba(255, 255, 255, 0.08);
  --about-blue: #2997ff;
  --about-blue-hover: #40a3ff;
  --about-card-bg: #1c1c1e;
  --about-card-border: rgba(255, 255, 255, 0.08);
  --about-card-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  --about-nav-active: rgba(255, 255, 255, 0.06);
  --about-nav-indicator: #2997ff;
}

[data-theme="dark"] body.about-body,
[data-theme="dark"] .about-body {
  background: #000000;
}

[data-theme="dark"] .about-topbar {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .about-topbar-logo {
  filter: invert(1);
}

[data-theme="dark"] .about-body-text {
  color: #a1a1a6;
}

[data-theme="dark"] .about-lead {
  color: #d1d1d6;
}

[data-theme="dark"] .about-feature-icon {
  background: #2c2c2e;
}

[data-theme="dark"] .about-feature-icon svg {
  color: #8e8e93;
}

[data-theme="dark"] .about-cta-btn {
  background: #2997ff;
}

[data-theme="dark"] .about-cta-btn:hover {
  background: #40a3ff;
  box-shadow: 0 4px 16px rgba(41, 151, 255, 0.25);
}

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-sidebar {
    display: none;
  }

  .about-content {
    border-left: none;
    padding: 32px 24px 80px;
  }

  .about-layout {
    display: block;
  }

  /* Mobile nav — horizontal scrolling pill bar */
  .about-mobile-nav {
    display: flex;
    gap: 6px;
    padding: 12px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--about-line);
    background: var(--about-bg);
    position: sticky;
    top: 52px;
    z-index: 90;
  }

  .about-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .about-mobile-link {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    color: var(--about-text-sec);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--about-line);
    transition: all 0.15s ease;
    white-space: nowrap;
  }

  .about-mobile-link:hover,
  .about-mobile-link.active {
    color: var(--about-text);
    background: var(--about-nav-active);
    border-color: transparent;
  }

  .about-section-title {
    font-size: 24px;
  }

  .about-stats {
    gap: 0;
  }

  .about-stat {
    padding: 20px 12px;
  }

  .about-stat-value {
    font-size: 18px;
  }
}

/* Desktop: hide mobile nav */
@media (min-width: 901px) {
  .about-mobile-nav {
    display: none;
  }
}
