/* SAVOV Clusterer — shared styles */

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

:root {
  --bg: #0b0b0b;
  --bg-elev: #131313;
  --bg-card: #181818;
  --bg-card-2: #1f1f1f;
  --bg-input: #0f0f0f;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f3f1ee;
  --text-dim: #a8a4a0;
  --text-mute: #6b6864;
  --accent: #F5821F;
  --accent-soft: rgba(245,130,31,0.15);
  --accent-text: #1a0d04;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --font-display: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f1ede7;
  --bg-input: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
  --text: #161513;
  --text-dim: #5a5651;
  --text-mute: #8c8884;
  --accent-text: #fff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  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; }

/* Wide-grotesque feel for display headings (mimics RF Dewi Expanded) */
.display {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-stretch: expanded;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.mono { font-family: var(--font-mono); }

/* === SHELL === */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

/* === HEADER === */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand .logo {
  height: 20px;
  width: auto;
  display: block;
}
.brand .sep {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
  align-self: center;
}
.brand .product {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav {
  display: flex;
  gap: 6px;
  flex: 1;
}
.nav a, .nav button {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: 120ms;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--bg-card); }
.nav a.active, .nav button.active {
  background: var(--bg-card);
  color: var(--text);
}
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-contact {
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-dim);
}
.hdr-contact b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 140ms;
  white-space: nowrap;
  text-decoration: none;
}
.btn-pri {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-pri:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-dim); }
.btn-soft {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-soft:hover { background: var(--bg-card-2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
}
.card-tight { padding: 18px; border-radius: var(--radius); }
.card-section { padding: 36px; }

/* === INPUTS === */
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: 120ms;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 200px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }
.select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* range slider */
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--border);
  border-radius: 999px; outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}

/* checkbox */
.check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 14px; color: var(--text);
}
.check input { display: none; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); transition: 120ms;
}
.check input:checked + .box {
  background: var(--accent); border-color: var(--accent);
}
.check input:checked + .box::after {
  content: ""; width: 5px; height: 9px; border: solid var(--accent-text);
  border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}

/* badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-card-2);
  font-size: 12px; font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.chip-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.chip-dot::before {
  content:""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* layout helpers */
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--text-dim); }
.dim { color: var(--text-mute); }

/* table */
.table {
  width: 100%; border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.table th {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim);
}
.table tbody tr:hover { background: var(--bg-card-2); }

/* footer */
.foot {
  margin-top: auto;
  padding: 40px 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.foot-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}

/* utility */
.hr { height: 1px; background: var(--border); margin: 24px 0; }
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
