/* ============================================================
   HiveAPI dark-theme static clone — theme tokens (from capture)
   ============================================================ */
:root {
  --spacing: 0.25rem;

  /* Fonts — Geist Variable (sans) + Geist Mono Variable (mono) */
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dark theme palette */
  --p-base-100: #080808;
  --p-base-200: #121212;
  --p-base-300: #1a1a1a;
  --p-surface-panel: #171717f0;
  --p-surface-raised: #212121f2;
  --p-surface-sunken: #141414f0;
  --p-surface-glass: #0d0d0ded;
  --p-surface-bright: #ffffffd6;
  --p-surface-3: #1f1f1f;
  --p-base-content: #fafafa;
  --p-border-default: #2e2e2e;
  --p-border-strong: #3d3d3d;

  --p-primary: #ff6363;
  --p-primary-content: #1a1a1a;
  --p-accent-bright: #ff8080;
  --p-accent-dim: #ff63631f;
  --p-accent-glow: #ff636333;
  --p-button-fg: #1a1a1a;

  --p-text-secondary: #c9c9c9;
  --p-text-muted: #9e9e9e;
  --p-text-dim: #6b6b6b;
  --p-text-disabled: #4f4f4f;

  --p-error: #ff6161;
  --p-success: #59d499;
  --p-info: #57c1ff;
  --p-warning: #ffc533;
  --p-telegram: #26a5e4;
  --p-telegram-content: #fff;

  /* Text sizes */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-8xl: 80px;

  /* Corner radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-2xl: 16px;
  --radius-control: 10px;
  --radius-surface: 16px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-14: 56px;
  --s-16: 64px;
  --s-20: 80px;

  /* Content widths */
  --container: 1408px;
  --container-narrow: 896px;
  --container-small: 576px;
  --container-tiny: 224px;

  /* Breakpoints (from capture) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--p-base-100);
  color: var(--p-base-content);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}

/* Section vertical rhythm */
.section {
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

/* ============================================================
   Typography helpers
   ============================================================ */
.text-muted { color: var(--p-text-muted); }
.text-dim { color: var(--p-text-dim); }
.text-secondary { color: var(--p-text-secondary); }
.text-primary { color: var(--p-primary); }
.mono { font-family: var(--font-mono); }

h1 { font-size: var(--text-5xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

@media (min-width: var(--bp-2xl)) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: 36px; }
}

@media (max-width: var(--bp-md)) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
}

@media (max-width: var(--bp-sm)) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-xl); }
  .section {
    padding-top: var(--s-14);
    padding-bottom: var(--s-14);
  }
}
