/**
 * QOTA — Design System & Stylesheet
 * Inspired by the clean, tactile, Apple-grade aesthetic of getkeeby.com
 * Soft rounded typography, warm off-white canvas, jet-black tactile CTA pills,
 * authentic macOS MacBook frame, and responsive light/dark themes.
 */

:root,
[data-theme="light"] {
  --bg-body: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f9fafb;
  --bg-pill: #eeeeee;
  --bg-btn-primary: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
  --bg-btn-secondary: #ffffff;

  --text-heading: #1a1a1a;
  --text-body: #666666;
  --text-muted: #8e8e93;
  --text-dim: #b0b0b5;

  --border-light: rgba(0, 0, 0, 0.07);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-btn: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.15);

  --color-green: #22c55e;
  --color-blue: #3b82f6;
  --color-orange: #f97316;

  --font-sans: ui-rounded, "SF Pro Rounded", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg-body: #090a0d;
  --bg-card: #12141a;
  --bg-card-subtle: #171a22;
  --bg-pill: #1a1e28;
  --bg-btn-primary: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
  --bg-btn-secondary: #171a22;

  --text-heading: #ffffff;
  --text-body: #9da4b2;
  --text-muted: #6b7280;
  --text-dim: #4b5563;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-btn: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-btn: 0 4px 20px rgba(255, 255, 255, 0.15);

  --color-green: #34d399;
  --color-blue: #60a5fa;
  --color-orange: #fb923c;
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.55;
  font-weight: 500;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mono {
  font-family: var(--font-mono);
}

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

/* --------------------------------------------------------------------------
   Top Pill Navigation (Keeby Style)
   -------------------------------------------------------------------------- */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
  background: rgba(245, 245, 245, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.25s ease;
}

[data-theme="dark"] .navbar-wrap {
  background: rgba(9, 10, 13, 0.85);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
}

.status-pill-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.status-live-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.ping-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-green);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-green);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-pill-text {
  color: var(--text-body);
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.15s ease;
}

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

.nav-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-btn-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

[data-theme="dark"] .nav-btn-dark {
  color: #0a0a0a;
}

.nav-btn-dark:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Navigation GitHub Star Button */
.nav-github-star {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.nav-github-star:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 179, 65, 0.6);
  box-shadow: 0 2px 12px rgba(227, 179, 65, 0.2);
}

.nav-github-star .gh-icon {
  opacity: 0.85;
}

.nav-github-star .star-icon {
  color: #e3b341;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-github-star:hover .star-icon {
  transform: scale(1.25) rotate(12deg);
}

.nav-github-star .gh-star-text {
  font-size: 13px;
  font-weight: 600;
}

.nav-github-star .gh-count-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  padding: 1px 7px;
  border-radius: 9999px;
  color: var(--text-muted);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* --------------------------------------------------------------------------
   Hero Section (Keeby's Iconic Treatment)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 60px 20px 40px;
  text-align: center;
}

.hero-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.app-icon-squircle {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon-squircle:hover {
  transform: scale(1.06) rotate(-2deg);
}

.app-icon-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-heading);
  margin-bottom: 18px;
}

.hero-title-accent {
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.45;
  margin-bottom: 32px;
}

.hero-subtitle strong {
  color: var(--text-heading);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-btn-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

[data-theme="dark"] .cta-primary-btn {
  color: #0a0a0a;
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-btn);
  padding: 14px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: left;
}

.cta-secondary-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-card-subtle);
}

.cta-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cta-btn-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.7;
  text-transform: uppercase;
}

.cta-btn-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-foot-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Hero GitHub Star Badge */
.hero-star-row {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.hero-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-star-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 179, 65, 0.7);
  box-shadow: 0 4px 18px rgba(227, 179, 65, 0.25);
}

.hero-star-badge .gh-icon {
  opacity: 0.9;
}

.hero-star-badge .star-sparkle {
  color: #e3b341;
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-star-badge:hover .star-sparkle {
  transform: scale(1.3) rotate(20deg);
}

.hero-star-badge .hero-star-counter {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-light);
  padding: 1px 7px;
  border-radius: 9999px;
  color: var(--text-muted);
}

.hero-cli-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
}

.cli-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cli-cmd {
  font-size: 12px;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cli-copy-action {
  background: var(--bg-pill);
  border: none;
  color: var(--text-heading);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cli-copy-action:hover {
  background: var(--text-heading);
  color: var(--bg-card);
}

/* --------------------------------------------------------------------------
   MacBook Visualizer Frame (Showcase Section)
   -------------------------------------------------------------------------- */
.visualizer-section {
  padding: 20px 20px 60px;
}

.vis-container {
  max-width: 1040px;
  margin: 0 auto;
}

.macbook-frame {
  background: #0d0f14;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

[data-theme="dark"] .macbook-frame {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
}

.macos-menubar {
  background: rgba(22, 26, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e6edf3;
  user-select: none;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple-glyph {
  font-size: 14px;
}

.menubar-app {
  font-weight: 700;
}

.menubar-item {
  color: #8b949e;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9d1d9;
  position: relative;
}

.menubar-qota-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.menubar-qota-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.menubar-qota-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2ea043;
}

.menubar-qota-pill .pill-pct {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.menubar-qota-pill .pill-model {
  font-size: 9px;
  color: #8b949e;
}

/* Native macOS Menu Bar Popover */
.macos-menu-popover {
  position: absolute;
  top: 32px;
  right: 0;
  width: 230px;
  background: rgba(18, 22, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pop-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #e6edf3;
}

.pop-header .pop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea043;
}

.pop-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3px 4px;
}

.pop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  font-size: 10px;
  color: #8b949e;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pop-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pop-highlight {
  color: #2ea043;
  font-weight: 700;
}

.mac-canvas {
  background: #090a0f;
  padding: 16px 20px 28px;
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.canvas-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.canvas-dots {
  display: flex;
  gap: 6px;
}

.c-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.c-dot.red { background: #ff5f56; }
.c-dot.yellow { background: #ffbd2e; }
.c-dot.green { background: #27c93f; }

.canvas-title {
  font-size: 11px;
  color: #6e7681;
}

.canvas-level-tag {
  font-size: 10px;
  color: #2ea043;
  background: rgba(46, 160, 67, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.canvas-body {
  position: relative;
  min-height: 340px;
}

.canvas-code {
  font-size: 12px;
  line-height: 1.8;
  color: #c9d1d9;
}

.c-comment { color: #6e7681; font-style: italic; }
.c-keyword { color: #ff7b72; font-weight: 600; }
.c-string { color: #a5d6ff; }
.c-const { color: #79c0ff; }
.c-func { color: #d2a8ff; }
.c-number { color: #ffa657; }

/* The Anchored Floating HUD (Authentic Desktop Island Replica) */
.screen-hud-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 296px;
  background: rgba(14, 17, 24, 0.95);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 10;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  touch-action: none;
}

.screen-hud-pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hud-drag-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
}

.sim-draggable.is-dragging {
  cursor: grabbing !important;
}

.sim-draggable.is-dragging .hud-drag-zone,
.sim-draggable.is-dragging .dash-header {
  cursor: grabbing !important;
}

.hud-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.hud-brand-tag {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-brand-tag:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}

.hud-model-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.hud-rate-badge {
  font-size: 9.5px;
  color: #2ea043;
  font-weight: 700;
}

.hud-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-mini-btn {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  height: 16px;
  line-height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hud-mini-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.hud-mini-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.hud-rail-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hud-rail-item.hide-rail {
  display: none !important;
}

.rail-title-row {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #8b949e;
  font-weight: 600;
  margin-bottom: 3px;
}

.weekly-row {
  margin-top: 1px;
}

.rail-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.rail-bar-fill {
  height: 100%;
  border-radius: 2px;
  position: relative;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sprint-fill {
  background: linear-gradient(90deg, #2ea043 0%, #3fb950 100%);
  box-shadow: 0 0 6px rgba(46, 160, 67, 0.4);
}

.weekly-fill {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.rail-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmerSweep 3s infinite ease-in-out;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.hud-bottom-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #6e7681;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  margin-top: 2px;
}

.zero-cloud-tag {
  color: #8b949e;
}

/* Interactive Expanded Matrix Dashboard Replica */
.sim-dashboard-shell {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 335px;
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  z-index: 20;
  user-select: none;
  touch-action: none;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.dash-status {
  font-size: 8px;
  font-weight: 700;
  color: #2ea043;
  background: rgba(46, 160, 67, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.dash-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-ctrl-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-ctrl-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.dash-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 10px 0;
  gap: 4px;
}

.dash-tab {
  background: transparent;
  border: none;
  font-size: 10px;
  color: #8b949e;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease;
}

.dash-tab:hover {
  color: #ffffff;
}

.dash-tab.active {
  color: #ffffff;
  border-bottom-color: #2ea043;
  font-weight: 700;
}

.dash-content {
  padding: 12px 14px;
}

.dash-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.tile-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #8b949e;
  margin-bottom: 4px;
}

.tile-val-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.chip-safe {
  font-size: 8px;
  color: #2ea043;
  background: rgba(46, 160, 67, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.chip-mult {
  font-size: 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

.model-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #e6edf3;
}

.tag-unit {
  font-size: 9px;
  color: #2ea043;
  background: rgba(46, 160, 67, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
  color: #8b949e;
}

.canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 20px;
  font-size: 9.5px;
  color: #6e7681;
  pointer-events: none;
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.vis-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.vis-caption strong {
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   Keeby-Style 3-Step Visual Tutorial ("See it in action")
   -------------------------------------------------------------------------- */
.tutorial-section {
  padding: 60px 20px;
}

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

.section-header {
  margin-bottom: 48px;
}

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

.pill-kicker {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto;
}

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

.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.t-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.t-step-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-heading);
}

.t-step-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-pill);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.t-card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.t-card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.t-card-visual {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.t-visual-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  min-width: 0;
}

.one-liner {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-size: 13px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-dot.green { background: var(--color-green); }
.t-dot.blue { background: var(--color-blue); }
.t-dot.orange { background: var(--color-orange); }

.t-card-foot {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   Keeby-Style Feature Grid (6 Cards)
   -------------------------------------------------------------------------- */
.features-section {
  padding: 60px 20px;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-pill);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-heading {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Specifications & Multiplier Table
   -------------------------------------------------------------------------- */
.specs-section {
  padding: 60px 20px;
}

.specs-wrapper {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .specs-wrapper {
    grid-template-columns: 1fr;
  }
}

.specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.specs-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.keeby-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.keeby-table th {
  color: var(--text-muted);
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.keeby-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-heading);
}

.keeby-table tr:last-child td {
  border-bottom: none;
}

.multiplier-chip {
  background: var(--bg-btn-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .multiplier-chip {
  color: #0a0a0a;
}

.specs-meta-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.spec-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.meta-val {
  color: var(--text-heading);
  font-weight: 600;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--text-heading);
  color: var(--bg-card);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  z-index: 1000;
  transition: top 0.15s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Keeby-Style FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 60px 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.faq-question {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-answer code {
  background: var(--bg-pill);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   Keeby-Style Bottom Hero CTA ("Try it. You'll feel the clarity.")
   -------------------------------------------------------------------------- */
.bottom-cta-section {
  padding: 60px 20px 80px;
}

.bottom-cta-box {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-cta-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.bottom-cta-sub {
  font-size: 17px;
  color: var(--text-body);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.bottom-checksum {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Footer (Keeby Style)
   -------------------------------------------------------------------------- */
.keeby-footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.f-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   Mobile Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .navbar {
    flex-wrap: wrap;
  }
  .status-pill-wrap {
    display: none;
  }
  .nav-right .nav-link {
    display: none;
  }
  .nav-github-star .gh-star-text {
    display: none;
  }
  .screen-hud-pill {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
  .sim-dashboard-shell {
    position: static;
    width: 100%;
    margin-top: 16px;
  }
  .canvas-hint {
    position: static;
    margin-top: 12px;
    display: block;
    text-align: center;
  }
  .menubar-item {
    display: none;
  }
}
