/* QuickGear — design tokens */

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

:root {
  /* Warm off-white base — feels like good paper, not a screen */
  --bg:     #F8F6F2;
  --bg-2:   #F0EDE7;
  --bg-3:   #E6E2DA;
  --paper:  #FFFFFF;

  /* Near-black ink with warm undertone */
  --ink:    #0E0D0B;
  --ink-2:  #2C2A26;
  --ink-3:  #5E5B55;
  --ink-4:  #94908A;

  /* Rules */
  --rule:   #DDD9D0;
  --rule-2: #C9C4BA;

  /* Electric amber accent — high-voltage, copper wire, American */
  --accent:      oklch(0.72 0.17 82);
  --accent-dark: oklch(0.58 0.17 82);
  --accent-ink:  #0E0D0B;
  --accent-soft: oklch(0.72 0.17 82 / 0.10);
  --accent-line: oklch(0.72 0.17 82 / 0.35);

  /* Status */
  --warn: oklch(0.78 0.16 50);
  --good: oklch(0.62 0.14 150);

  /* Dark variant (experimental page) */
  --d-bg:    #0B0C0E;
  --d-bg-2:  #131518;
  --d-bg-3:  #1C1F24;
  --d-ink:   #F2EEE6;
  --d-ink-3: #9A9DA3;
  --d-rule:  #252830;

  /* Typography */
  --display: 'Trebuchet MS', sans-serif;
  --sans:    'Trebuchet MS', sans-serif;
  --mono:    'Trebuchet MS', sans-serif;

  /* Shadows — layered for depth */
  --shadow-sm:  0 1px 2px rgba(14,13,11,0.06), 0 1px 6px rgba(14,13,11,0.04);
  --shadow-md:  0 2px 4px rgba(14,13,11,0.05), 0 8px 24px rgba(14,13,11,0.08);
  --shadow-lg:  0 4px 8px rgba(14,13,11,0.06), 0 20px 48px rgba(14,13,11,0.12);
  --shadow-card: 0 0 0 1px var(--rule), 0 2px 8px rgba(14,13,11,0.06);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Typography utilities ── */
.qg-mono {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  font-feature-settings: "tnum" 1;
  font-size: 0.8em;
}
.qg-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.qg-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Status pill ── */
.qg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.qg-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: qg-pulse 2.4s ease infinite;
}
@keyframes qg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%       { box-shadow: 0 0 0 5px var(--accent-soft); }
}

/* ── Buttons ── */
.qg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.qg-btn:active { transform: translateY(1px); }

.qg-btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(14,13,11,0.15);
}
.qg-btn--primary:hover {
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}

.qg-btn--ghost {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.qg-btn--ghost:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-md);
}

.qg-btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 3px rgba(14,13,11,0.12), 0 0 0 1px oklch(0.72 0.17 82 / 0.6);
}
.qg-btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md), 0 0 0 1px oklch(0.72 0.17 82 / 0.8);
}

.qg-btn .arrow { transition: transform 0.18s ease; }
.qg-btn:hover .arrow { transform: translateX(4px); }

/* ── Nav (sticky + blur) ── */
.qg-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: oklch(0.97 0.005 82 / 0.88);
  border-bottom: 1px solid var(--rule);
}

/* ── Cards ── */
.qg-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.qg-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Accent bar (left border decoration) ── */
.qg-accent-bar {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ── Grid bg (elevation drawing bg) ── */
.qg-grid-bg {
  background-image:
    linear-gradient(to right,  rgba(14,13,11,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,13,11,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Marquee ── */
@keyframes qg-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Scrollbar ── */
.qg-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.qg-scroll::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.qg-scroll::-webkit-scrollbar-track { background: transparent; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Animations ── */
@keyframes qg-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qg-up { animation: qg-up 0.5s ease both; }

@keyframes qg-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hairline rule ── */
.qg-rule { height: 1px; background: var(--rule); width: 100%; }

/* ── Dark section ── */
.qg-dark-section {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
}
