/* ============================================================
   Avtouni · Operator design language
   Light theme · Geist + Geist Mono · single dark primary +
   signal yellow accent for active/marked states.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #f7f6f2;
  --bg-deep: #efece6;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --surface-3: #f1efe9;

  /* text */
  --text: #0f1115;
  --text-2: #38393f;
  --text-muted: #6d6f76;
  --text-faint: #98999e;
  --text-on-dark: #f7f6f2;

  /* lines */
  --line: rgba(15,17,21,0.08);
  --line-strong: rgba(15,17,21,0.16);
  --line-faint: rgba(15,17,21,0.04);

  /* brand / signal */
  --signal: #f2c600;
  --signal-soft: #fff3a8;
  --signal-on: #2a2300;

  --dark: #0f1115;
  --dark-2: #1c1e23;
  --dark-3: #2a2c32;

  /* status */
  --go: #18794e;
  --go-soft: #d5efe1;
  --wait: #b45309;
  --wait-soft: #fde8c4;
  --busy: #b91c1c;
  --busy-soft: #fbdada;
  --info: #1f4cab;
  --info-soft: #d8e3ff;
  --muted-soft: #e9e7e0;

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 0 rgba(15,17,21,0.04), 0 1px 2px rgba(15,17,21,0.04);
  --sh-2: 0 2px 4px rgba(15,17,21,0.04), 0 6px 16px -8px rgba(15,17,21,0.08);
  --sh-3: 0 6px 20px -10px rgba(15,17,21,0.16), 0 1px 2px rgba(15,17,21,0.04);

  /* type */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, monospace;
  --font-display: 'Bricolage Grotesque', 'Geist', sans-serif;

  /* spacing */
  --gutter: 32px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
strong { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum', 'zero'; letter-spacing: -0.01em; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* ============= ICONS ============= */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'opsz' 24, 'wght' 400, 'FILL' 0, 'GRAD' 0;
  font-feature-settings: 'liga';
  font-size: 20px;
  flex-shrink: 0;
}
.ms-sm { font-size: 16px; font-variation-settings: 'opsz' 20, 'wght' 500, 'FILL' 0, 'GRAD' 0; }
.ms-xl { font-size: 40px; font-variation-settings: 'opsz' 40, 'wght' 400, 'FILL' 0, 'GRAD' 0; }
.ms-fill { font-variation-settings: 'opsz' 24, 'wght' 500, 'FILL' 1, 'GRAD' 0; }

/* ============= BUTTONS ============= */
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, color 120ms ease;
  white-space: nowrap;
  font-family: inherit;
}

.primary-btn {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 10px 18px;
}
.primary-btn:hover { background: var(--dark-2); }
.primary-btn:active { transform: translateY(0.5px); }
.primary-btn--inverse { background: var(--signal); color: var(--signal-on); }
.primary-btn--inverse:hover { background: #ffd324; }

.secondary-btn {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  padding: 10px 18px;
}
.secondary-btn:hover { background: var(--surface-2); border-color: var(--text); }

.ghost-btn {
  background: transparent;
  color: var(--text-2);
  padding: 8px 12px;
  font-weight: 500;
}
.ghost-btn:hover { background: var(--surface-3); color: var(--text); }
.ghost-btn--lg { padding: 12px 22px; font-size: 14px; border: 1px solid var(--line-strong); }
.ghost-btn--lg:hover { background: var(--surface); }
.ghost-btn--inverse { color: var(--text-on-dark); }
.ghost-btn--inverse:hover { background: rgba(255,255,255,0.08); color: #fff; }

.icon-btn {
  background: transparent;
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--r-pill);
  color: var(--text-2);
  justify-content: center;
  position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .dot-indicator {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); border: 2px solid var(--bg);
}

.text-btn {
  background: transparent;
  color: var(--text-2);
  padding: 4px 0;
  font-weight: 500;
}
.text-btn:hover { color: var(--text); }

/* ============= CHIPS / PILLS ============= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  font-family: inherit;
}
.chip:hover { background: var(--surface-3); border-color: var(--line-strong); }
.chip .ms { color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: var(--signal-on);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ============= STATUS ============= */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}
.status-pill .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status-go { background: var(--go-soft); color: var(--go); }
.status-go .status-dot { background: var(--go); }
.status-wait { background: var(--wait-soft); color: var(--wait); }
.status-wait .status-dot { background: var(--wait); }
.status-busy { background: var(--busy-soft); color: var(--busy); }
.status-busy .status-dot { background: var(--busy); }
.status-info { background: var(--info-soft); color: var(--info); }
.status-info .status-dot { background: var(--info); }

.status-dot--go { background: var(--go); }
.status-dot--wait { background: var(--wait); }
.status-dot--busy { background: var(--busy); }

/* ============= SEGMENTED CONTROL ============= */
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.seg-btn.active {
  background: var(--dark);
  color: var(--text-on-dark);
}
.seg-btn:not(.active):hover { color: var(--text); }

/* ============= TOP NAV ============= */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--signal);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  position: relative;
}
.primary-nav a:hover { background: var(--surface-3); color: var(--text); }
.primary-nav a.active { color: var(--text); font-weight: 600; }
.primary-nav a.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: -2px;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
}
.user-chip:hover { background: var(--surface-3); }
.user-chip .avatar {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--text-on-dark);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
}

/* ============= TYPE ============= */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; font-family: var(--font-display); }
h1 { font-size: 56px; font-weight: 600; line-height: 1.02; }
h2 { font-size: 28px; font-weight: 600; line-height: 1.1; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; font-family: var(--font); }
p { margin: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: 24px; }
.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.main { padding: 40px 0 80px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.kicker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 3px rgba(24, 121, 78, 0.15);
}

/* ============= FOOTER ============= */
.footer {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand-name { color: var(--text-on-dark); }
.footer-brand .brand-mark { background: var(--signal); color: var(--signal-on); }
.footer-tag {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(247, 246, 242, 0.7);
  max-width: 320px;
  line-height: 1.55;
}
.footer-stamp {
  margin-top: 24px;
  color: rgba(247, 246, 242, 0.4);
  font-size: 12px;
}
.footer-stamp .status-stamp { color: #6fcf97; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(247, 246, 242, 0.5);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(247, 246, 242, 0.85);
}
.footer-col a:hover { color: var(--signal); }
