/* Atomik design tokens. The ONE file with every design value of Atomik Control (colors, product accents, metal,
   circuit traces, radii, fonts, motion). styles.css reads only these variables, so this file can be swapped for the
   atomikl.com site's own tokens file and the app follows the site. Source: ATOMIK site v4 + circuit layer
   (site-redesign/machines/circuit.py, look_v4.py). */

:root {
  color-scheme: dark;

  /* ---- ink and surfaces ---- */
  --bg: #050506;
  --surface: #0b0b0d;
  --surface-2: #111216;
  --surface-3: #17191e;
  --white: #ffffff;
  --text: #ececef;
  --muted: #8a8a94;
  --placeholder: #5c5f68;

  /* ---- steel ramp ---- */
  --s1: #2a2c31;
  --s2: #3e4148;
  --s3: #5f636c;
  --s4: #9a9ea8;
  --s5: #c9ccd3;

  /* ---- hairlines ---- */
  --line: rgba(190, 205, 230, 0.1);
  --line-2: rgba(190, 205, 230, 0.16);
  --line-3: rgba(190, 205, 230, 0.28);
  --focus: rgba(201, 204, 211, 0.6);
  --focus-line: rgba(201, 204, 211, 0.45);
  --focus-ring: rgba(201, 204, 211, 0.08);
  --selection: rgba(201, 204, 211, 0.25);

  /* ---- meaning colors (only buy/up and sell/down, LIVE, kill switch) ---- */
  --up: #6ee7a8;
  --down: #ff7a6b;
  --up-soft: rgba(110, 231, 168, 0.12);
  --down-soft: rgba(255, 122, 107, 0.12);
  --up-line: rgba(110, 231, 168, 0.4);
  --down-line: rgba(255, 122, 107, 0.45);
  --up-hi: #8ff0bf;
  --up-lo: #5fd497;
  --on-up: #04140b;
  --down-hi: #ff9a8e;
  --down-lo: #f26a5a;
  --on-down: #1a0603;
  --up-glow: rgba(110, 231, 168, 0.6);
  --down-glow: rgba(255, 122, 107, 0.6);
  --down-switch: rgba(255, 122, 107, 0.25);
  --down-knob-hi: #ffc2ba;

  /* ---- product accents (the guide photos' light). Used ONLY at a circuit pulse head, the active tab
     indicator and small via nodes; everything else stays steel. ---- */
  --acc-trader: #b9a2ff;
  --acc-arbitrage: #7fd4ff;
  --acc-liquidation: #ffa15c;
  --acc-sniper: #8cf59a;
  --accent: var(--acc-trader);
  --accent-glow: rgba(185, 162, 255, 0.55);

  /* ---- liquid metal ---- */
  --chrome-hi: #f3f4f7;
  --chrome-lo: #b8bcc5;
  --chrome-mid: #c7cbd3;
  --on-chrome: #08090b;
  --chrome-text: linear-gradient(180deg, #ffffff 0%, #e4e6ea 38%, #a9adb6 62%, #e9ebef 100%);
  --sheen: rgba(255, 255, 255, 0.55);
  --sheen-soft: rgba(255, 255, 255, 0.16);
  --knob: radial-gradient(circle at 40% 35%, #ffffff, #b9bdc6 70%);
  --knob-off: radial-gradient(circle at 40% 35%, #f2f3f6, #9a9ea8 75%);
  --coin-face: radial-gradient(circle at 35% 30%, #22252b, #0c0d10 70%);
  --btn-hi: #1a1c21;
  --btn-lo: #0f1013;
  --thumb-hi: #22252b;
  --thumb-lo: #16181c;
  --bubble-hi: #1d2026;
  --bubble-lo: #15171b;
  --well: #08090b;
  --light-on: #f4f5f7;
  --light-on-glow: rgba(244, 245, 247, 0.6);
  --light-on-ring: rgba(244, 245, 247, 0.08);

  /* ---- cards, glass, overlays ---- */
  --card: linear-gradient(180deg, rgba(23, 27, 35, 0.5), rgba(9, 11, 15, 0.55));
  --card-ticket: linear-gradient(180deg, rgba(30, 34, 43, 0.55), rgba(10, 12, 16, 0.7));
  --card-hi: rgba(255, 255, 255, 0.035);
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  --shadow-knob: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-thumb: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px -6px rgba(0, 0, 0, 0.8);
  --shadow-range: 0 0 0 4px rgba(201, 204, 211, 0.12), 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-chrome: inset 0 1px 0 #ffffff, 0 10px 26px -14px rgba(210, 220, 240, 0.55);
  --shadow-up: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -14px rgba(110, 231, 168, 0.6);
  --shadow-down: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 26px -14px rgba(255, 122, 107, 0.6);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-sheet: 0 -30px 60px -20px rgba(0, 0, 0, 0.9);
  --shadow-ptr: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --tab-dot-glow: 0 0 8px rgba(255, 255, 255, 0.5);
  --glass-head: rgba(5, 5, 6, 0.74);
  --glass-tabs: rgba(8, 9, 11, 0.84);
  --glass-toast: rgba(20, 22, 27, 0.96);
  --glass-input: rgba(17, 18, 22, 0.96);
  --composer-fade: rgba(5, 5, 6, 0.92);
  --sheet-top: #121318;
  --sheet-bottom: #0a0b0d;
  --sheet-search: #0b0c0e;
  --backdrop: rgba(0, 0, 0, 0.6);
  --field-bg: rgba(11, 11, 13, 0.9);
  --option-bg: #111216;
  --hover: rgba(190, 205, 230, 0.06);
  --hover-soft: rgba(190, 205, 230, 0.03);
  --wash: rgba(190, 205, 230, 0.035);
  --track: rgba(190, 205, 230, 0.08);
  --track-2: rgba(190, 205, 230, 0.1);
  --chip-on: rgba(201, 204, 211, 0.1);
  --badge-bg: rgba(201, 204, 211, 0.05);
  --code-bg: rgba(190, 205, 230, 0.07);
  --skeleton: rgba(190, 205, 230, 0.06);
  --glow-top: rgba(130, 145, 175, 0.11);
  --glow-corner: rgba(120, 130, 150, 0.05);

  /* ---- circuit traces ---- */
  --trace-w: 1px;
  --trace-lo: #2a2c31;
  --trace-mid: #7d818b;
  --trace-hi: #c9ccd3;
  --trace-opacity: 0.9;
  --trace-corner-opacity: 0.5;
  --via-r: 2.4px;
  --via-w: 1px;
  --via-fill: #0b0c0e;
  --via-stroke: var(--accent);
  --via-opacity: 0.85;
  --trace-sheen: rgba(238, 240, 244, 0.85);
  --trace-sheen-dim: rgba(140, 145, 156, 0.25);
  --trace-sheen-clear: rgba(201, 204, 211, 0);
  --trace-sheen-opacity: 0.5;
  --pulse-core: #ffffff;
  --pulse-halo: rgba(190, 200, 220, 0.35);
  --pulse-clear: rgba(160, 170, 190, 0);
  --pulse-size: 150px;

  /* ---- radii ---- */
  --r-card: 22px;
  --r-sheet: 26px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 12px;
  --r-xs: 10px;
  --r-tag: 6px;
  --r-pill: 999px;

  /* ---- type ---- */
  --f-title: "Switzer", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --track-label: 0.16em;
  --track-word: 0.32em;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-pulse: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 0.15s;
  --dur: 0.25s;
  --dur-slow: 0.42s;
  --trace-draw: 1.8s;
  --trace-sheen-dur: 15s;
  --pulse-dur: 2600;
  --pulse-gap-min: 2400;
  --pulse-gap-rand: 2600;
  --sheen-dur: 7s;

  /* ---- layout ---- */
  --head-h: 56px;
  --tabs-h: 62px;
  --composer-h: 72px;
  --col: 560px;
  --gutter: 16px;
  --tap: 44px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
