/* =========================================================================
   Hostfory — Design Tokens & Base
   Эстетика: techно-инженерная, тёмная база, плотная типографика, метрики
   ========================================================================= */

:root {
  /* ----- Surfaces (warm-cool neutral with slight blue tint) ----- */
  --bg-0: oklch(0.16 0.012 250);   /* deepest */
  --bg-1: oklch(0.19 0.012 250);   /* page bg */
  --bg-2: oklch(0.22 0.014 250);   /* card */
  --bg-3: oklch(0.26 0.016 250);   /* card hover / elevated */
  --bg-4: oklch(0.31 0.018 250);   /* input bg */

  --line: oklch(0.30 0.018 250);
  --line-2: oklch(0.36 0.020 250);

  /* ----- Text ----- */
  --fg-0: oklch(0.97 0.005 250);
  --fg-1: oklch(0.86 0.008 250);
  --fg-2: oklch(0.66 0.010 250);
  --fg-3: oklch(0.50 0.012 250);

  /* ----- Accents (chroma matched ~0.18) ----- */
  --accent: oklch(0.78 0.18 155);          /* lime/teal — "online" */
  --accent-fg: oklch(0.18 0.04 155);
  --accent-soft: oklch(0.30 0.07 155);

  --hot: oklch(0.78 0.18 60);              /* amber — price/highlight */
  --hot-fg: oklch(0.20 0.05 60);

  --danger: oklch(0.66 0.20 25);
  --info: oklch(0.72 0.14 230);

  /* ----- Type ----- */
  --font-sans: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ----- Geometry ----- */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1280px;

  /* ----- Shadows ----- */
  --shadow-sm: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 0 24px -4px var(--accent);
}

/* ----- Light theme (alt) ----- */
[data-theme="light"] {
  --bg-0: oklch(0.99 0.003 250);
  --bg-1: oklch(0.98 0.005 250);
  --bg-2: oklch(0.96 0.006 250);
  --bg-3: oklch(0.93 0.008 250);
  --bg-4: oklch(0.99 0.003 250);
  --line: oklch(0.88 0.010 250);
  --line-2: oklch(0.80 0.012 250);
  --fg-0: oklch(0.18 0.012 250);
  --fg-1: oklch(0.30 0.012 250);
  --fg-2: oklch(0.46 0.012 250);
  --fg-3: oklch(0.60 0.012 250);
  --accent-fg: oklch(0.99 0.005 155);
  --hot-fg: oklch(0.99 0.005 60);
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; color: var(--fg-0); letter-spacing: -0.01em; }

/* ============== Layout ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== Typography utilities ============== */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-2);
}
.eyebrow--accent { color: var(--accent); }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  color: var(--fg-0);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--bg-3); border-color: var(--fg-3); }
.btn--quiet {
  background: var(--bg-3);
  color: var(--fg-0);
  border-color: var(--line);
}
.btn--quiet:hover { background: var(--bg-4); }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--disabled, .btn[disabled] {
  background: var(--bg-3);
  color: var(--fg-3);
  border-color: var(--line);
  cursor: not-allowed;
}

/* ============== Status pills ============== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  background: var(--bg-2);
}
.pill--accent {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: oklch(from var(--accent) 0.30 0.07 h);
}
.pill--hot {
  border-color: oklch(from var(--hot) 0.30 0.07 h);
  color: var(--hot);
  background: oklch(from var(--hot) 0.30 0.07 h);
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ============== Cards ============== */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 120ms ease, background 120ms ease;
}
.card--hover:hover { border-color: var(--line-2); background: var(--bg-3); }

/* ============== Section headers ============== */
.section {
  padding: 80px 0;
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 760px;
}
.section__head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section__head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  text-wrap: pretty;
}

/* ============== Divider ============== */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============== Grid scrollbar ============== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

/* ============== Hot price ============== */
.price-hot { color: var(--hot); }
.text-accent { color: var(--accent); }

/* ============== Animations ============== */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

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

/* ============== Form ============== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--fg-2);
}
.input, .select {
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 120ms ease;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); }

/* ============== Mobile ============== */
@media (max-width: 800px) {
  .section { padding: 56px 0; }
  .section__head h2 { font-size: 26px; }
  .container { padding: 0 16px; }
}
