@import "tailwindcss";
@import "tw-animate-css";

@theme {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --color-background: #07080a;
  --color-foreground: #ecece8;
  --color-card: #101214;
  --color-card-foreground: #ecece8;
  --color-popover: #16181c;
  --color-popover-foreground: #ecece8;
  --color-primary: #d4d7dc;
  --color-primary-foreground: #0b0c0e;
  --color-secondary: #1a1c20;
  --color-secondary-foreground: #ecece8;
  --color-muted: #16181c;
  --color-muted-foreground: #8a8d93;
  --color-accent: #22252b;
  --color-accent-foreground: #ecece8;
  --color-destructive: #c45c54;
  --color-destructive-foreground: #f7efee;
  --color-border: rgb(236 236 232 / 0.08);
  --color-input: rgb(236 236 232 / 0.1);
  --color-ring: #b8c0c8;
  --color-up: #2f9d78;
  --color-down: #c45c54;
  --color-up-fg: #d8f5ea;
  --color-down-fg: #fde8e6;
  --color-warn: #b89a62;
  --color-chart: #0b0c0e;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 22px;

  --text-micro: 0.6875rem;
  --text-2xs: 0.625rem;

  --shadow-border: 0 0 0 1px rgb(255 255 255 / 0.07);
}

@layer base {
  * {
    border-color: var(--color-border);
  }

  html {
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html,
  body,
  #app {
    min-height: 100%;
    background: var(--color-background);
    color: var(--color-foreground);
  }

  body {
    font-family: var(--font-sans);
    letter-spacing: -0.011em;
  }

  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  :focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
  }

  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

@keyframes helix-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.live-dot {
  animation: helix-pulse 1.6s var(--ease-in-out, ease-in-out) infinite;
}

@keyframes helix-scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
