/*
 * General Bots — Standard site identity
 * Mantis visual language of generalbots.org (canvas #050505, ink #ededed,
 * 1px #262626 borders, Geist/Geist Mono) expressed through the --id-* identity
 * tokens required by src/generalbots/DESIGN-SYSTEM.md. All assets are local.
 * Loaded after css/site.min.css; legacy variables are aliased to the tokens.
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/5d5b209f-74f1-435a-9395-af8fc2c59a3b.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/56103413-7186-4b8e-8774-fda9c14675fb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/79368ad0-7ae5-4383-93f9-a57c6eadff40.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/1ddc210d-5d2d-4804-80e4-17e3db43d2e6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/22c794a4-0de1-4260-aeaf-b67ee485821a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/5d5b209f-74f1-435a-9395-af8fc2c59a3b.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/56103413-7186-4b8e-8774-fda9c14675fb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/79368ad0-7ae5-4383-93f9-a57c6eadff40.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/1ddc210d-5d2d-4804-80e4-17e3db43d2e6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/22c794a4-0de1-4260-aeaf-b67ee485821a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/5d5b209f-74f1-435a-9395-af8fc2c59a3b.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/56103413-7186-4b8e-8774-fda9c14675fb.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/79368ad0-7ae5-4383-93f9-a57c6eadff40.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/1ddc210d-5d2d-4804-80e4-17e3db43d2e6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/22c794a4-0de1-4260-aeaf-b67ee485821a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fde36e33-7221-415e-936e-85cd987d3e31.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/35d5ce27-8147-4fd2-bb02-7780e33c291c.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/92e37ef7-ee90-4915-b13e-a8519ebca3d9.woff2") format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/d0b77b15-9452-494a-a5e7-4e6ea1a706d9.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/b8bebdb5-b63b-4738-b29e-27141a5bf931.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/27044a11-d7c3-4362-b488-68803b5e61a8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fde36e33-7221-415e-936e-85cd987d3e31.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/35d5ce27-8147-4fd2-bb02-7780e33c291c.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/92e37ef7-ee90-4915-b13e-a8519ebca3d9.woff2") format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/d0b77b15-9452-494a-a5e7-4e6ea1a706d9.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/b8bebdb5-b63b-4738-b29e-27141a5bf931.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/27044a11-d7c3-4362-b488-68803b5e61a8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Mantis surfaces, ink and states */
  --id-canvas: #050505;
  --id-canvas-2: #0a0a0a;
  --id-panel: #141414;
  --id-panel-2: #1a1a1a;
  --id-line: #262626;
  --id-line-soft: #1f1f1f;
  --id-ink: #ededed;
  --id-text: #a1a1a1;
  --id-muted: #8a8a8a;
  --id-faint: #5a5a5a;
  --id-glass: rgba(0, 0, 0, .62);
  --id-card-bg: rgba(8, 8, 10, .58);
  --id-card-line: rgba(255, 255, 255, .1);
  --id-accent: #ededed;
  --id-accent-hover: #ffffff;
  --id-accent-text: #ededed;
  --id-accent-soft: rgba(237, 237, 237, .08);
  --id-accent-glow: rgba(237, 237, 237, .14);
  --id-on-accent: #050505;
  --id-success: #4ade80;
  --id-warn: #f5b83d;

  /* Typography */
  --id-font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --id-font-heading: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --id-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;

  /* Spacing, radii, shadows, motion — DESIGN-SYSTEM.md §2.5–2.8 */
  --id-space-1: 4px;
  --id-space-2: 8px;
  --id-space-3: 12px;
  --id-space-4: 16px;
  --id-space-5: 20px;
  --id-space-6: 24px;
  --id-space-8: 32px;
  --id-space-10: 40px;
  --id-radius-sm: 4px;
  --id-radius-control: 6px;
  --id-radius-card: 8px;
  --id-radius-pill: 999px;
  --id-shadow-card: 0 1px 3px rgba(0, 0, 0, .55);
  --id-shadow-float: 0 10px 15px -3px rgba(0, 0, 0, .5), 0 4px 6px -4px rgba(0, 0, 0, .5);
  --id-focus: 0 0 0 2px var(--id-ink);
  --id-ease: cubic-bezier(.22, 1, .36, 1);
  --id-dur-fast: 150ms;
  --id-dur-normal: 200ms;
  --id-dur-medium: 350ms;
}

html[data-theme="light"] {
  color-scheme: light;
  --id-canvas: #ffffff;
  --id-canvas-2: #fafafa;
  --id-panel: #f5f5f5;
  --id-panel-2: #f0f0f0;
  --id-line: #dedede;
  --id-line-soft: #e8e8e8;
  --id-ink: #171717;
  --id-text: #4a4a4a;
  --id-muted: #5f5f5f;
  --id-faint: #9a9a9a;
  --id-glass: rgba(255, 255, 255, .82);
  --id-card-bg: rgba(255, 255, 255, .72);
  --id-card-line: rgba(0, 0, 0, .1);
  --id-accent: #171717;
  --id-accent-hover: #000000;
  --id-accent-text: #171717;
  --id-accent-soft: rgba(0, 0, 0, .06);
  --id-accent-glow: rgba(0, 0, 0, .1);
  --id-on-accent: #ffffff;
  --id-success: #15803d;
  --id-warn: #a16207;
  --id-focus: 0 0 0 2px var(--id-ink);
  --id-shadow-card: 0 1px 3px rgba(0, 0, 0, .18);
  --id-shadow-float: 0 10px 15px -3px rgba(0, 0, 0, .12), 0 4px 6px -4px rgba(0, 0, 0, .12);
}

/* Legacy component variables are aliases — no component markup is changed. */
:root, html[data-theme] {
  --bg: var(--id-canvas);
  --bg-secondary: var(--id-canvas-2);
  --bg-tertiary: var(--id-panel);
  --bg-card: var(--id-card-bg);
  --bg-card-solid: var(--id-panel);
  --fg: var(--id-ink);
  --fg-secondary: var(--id-text);
  --fg-muted: var(--id-muted);
  --border: var(--id-line);
  --border-subtle: var(--id-line-soft);
  --border-hover: var(--id-line);
  --accent: var(--id-accent);
  --accent-light: var(--id-accent-hover);
  --accent-soft: var(--id-accent-soft);
  --accent-glow: var(--id-accent-glow);
  --font: var(--id-font-sans);
  --font-display: var(--id-font-heading);
  --mono: var(--id-font-mono);
  --radius: var(--id-radius-control);
  --radius-sm: var(--id-radius-sm);
  --radius-lg: var(--id-radius-card);
  --radius-xl: var(--id-radius-card);
  --radius-2xl: var(--id-radius-card);
  --transition: all var(--id-dur-normal) var(--id-ease);
  --transition-slow: all var(--id-dur-medium) var(--id-ease);
  --glass-blur: blur(14px) saturate(1.6);
  --rainbow: linear-gradient(90deg, var(--id-line), var(--id-line));
  --rainbow-subtle: linear-gradient(90deg, var(--id-accent-soft), var(--id-accent-soft));
}

html { background: var(--id-canvas); }
body { font-family: var(--id-font-sans) !important; background: var(--id-canvas) !important; color: var(--id-ink) !important; }

/* One-pixel chrome, no rainbow borders — matches generalbots.org. */
.site-header {
  background: var(--id-glass) !important;
  border-bottom: 1px solid var(--id-line) !important;
  border-image: none !important;
  animation: none !important;
}
html[data-theme="light"] .site-header { background: var(--id-glass) !important; }
.nav-cta {
  background: var(--id-panel) !important;
  border: 1px solid var(--id-line) !important;
  border-image: none !important;
  border-radius: var(--id-radius-control) !important;
  color: var(--id-ink) !important;
}
.nav-cta:hover { opacity: 1 !important; border-color: var(--id-muted) !important; transform: none !important; }
.site-footer {
  background: var(--id-canvas-2) !important;
  border-top: 1px solid var(--id-line) !important;
  border-image: none !important;
}
.preview-banner { background: var(--id-panel) !important; color: var(--id-muted) !important; }
html[data-theme] .preview-banner { background: var(--id-panel) !important; color: var(--id-muted) !important; }
.preview-banner a { color: var(--id-text) !important; }

/* Neutral status labels — the legacy purple/amber badges are off-palette. */
html .badge-ai, html .badge-new, html .badge-beta, html .badge-alpha,
html[data-theme] .badge-ai, html[data-theme] .badge-new,
html[data-theme] .badge-beta, html[data-theme] .badge-alpha {
  background: var(--id-accent-soft) !important;
  color: var(--id-text) !important;
  border-color: var(--id-line) !important;
  border: 1px solid var(--id-line) !important;
}

/* Hero and cards: flat panels, mono eyebrows, no rainbow motion. */
.hero::after { background: none !important; animation: none !important; }
.hero-content h1 .gradient-word {
  background: none !important;
  -webkit-text-fill-color: var(--id-ink) !important;
  background-clip: border-box !important;
  color: var(--id-ink) !important;
  animation: none !important;
}
.hero-chat-glass {
  background: var(--id-card-bg) !important;
  border: 1px solid var(--id-line) !important;
  border-radius: var(--id-radius-card) !important;
  box-shadow: var(--id-shadow-card) !important;
}
.hero-chat-glass::before, .home .card::before { display: none !important; }
.hero-chat-input-inner:focus-within {
  border-color: var(--id-ink) !important;
  border-image: none !important;
  box-shadow: var(--id-focus) !important;
}
.arch-card, .home .home .card {
  background: var(--id-card-bg) !important;
  border: 1px solid var(--id-line) !important;
  border-radius: var(--id-radius-card) !important;
}
.card-tag { font-family: var(--id-font-mono); color: var(--id-muted); border-color: var(--id-line); background: var(--id-panel); }
.hero-badge { font-family: var(--id-font-mono); color: var(--id-muted); border-color: var(--id-line); }

/* --id-focus is a box-shadow, never an outline color (DESIGN-SYSTEM.md §2.1). */
:focus-visible { outline: none !important; box-shadow: var(--id-focus) !important; }

a { color: var(--id-accent); text-decoration: none; }
a:hover { color: var(--id-accent-hover); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
