/* Base styles */

:root {
  --bg-main: #050505;
  --bg-section-dark: #080808;
  --bg-card: rgba(255, 255, 255, 0.02);
  --text-main: #ededed;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Utilities */

.container {
  max-width: 1120px; /* approx Tailwind max-w-7xl */
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.glass {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.text-muted {
  color: #9ca3af;
}

.text-soft {
  color: #6b7280;
}

.section {
  padding-block: 6rem;
}

.section-dark {
  padding-block: 6rem;
  background-color: var(--bg-section-dark);
}

.border-y-subtle {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.border-t-subtle {
  border-top: 1px solid var(--border-subtle);
}

.card-surface {
  background-color: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-normal), transform var(--transition-normal),
    box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.card-surface:hover {
  border-color: var(--border-strong);
}

/* Custom Range Slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: #333;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.range-slider:hover {
  opacity: 1;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #ededed;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
}

/* Custom Checkbox */
.custom-checkbox input {
  display: none;
}

.custom-checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #374151;
  background-color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.custom-checkbox svg {
  width: 10px;
  height: 10px;
  display: none;
  color: #000000;
}

.custom-checkbox input:checked + .custom-checkbox-box {
  background-color: #ededed;
  border-color: #ededed;
}

.custom-checkbox input:checked + .custom-checkbox-box svg {
  display: block;
}
