/* =========================================================
   Bitelo Design System – Tokens
   ========================================================= */

html {
	color-scheme: light;

	/* Brand colors – unique Bitelo identity */
	--bit-primary: #ff6a3d;
	--bit-primary-600: #e85a2f;
	--bit-primary-100: #fff0eb;
	--bit-secondary: #00b4d8;
	--bit-secondary-100: #e0f8fc;
	--bit-accent: #38b000;
	--bit-accent-100: #e8f8e1;
	--bit-warning: #fbbf24;
	--bit-error: #ef4444;
	--bit-info: #8b5cf6;

	/* Neutral */
	--bit-white: #ffffff;
	--bit-black: #0b0d11;
	--bit-gray-50: #f7f8fa;
	--bit-gray-100: #f1f2f5;
	--bit-gray-200: #e5e7eb;
	--bit-gray-300: #d1d5db;
	--bit-gray-400: #9ca3af;
	--bit-gray-500: #6b7280;
	--bit-gray-600: #4b5563;
	--bit-gray-700: #374151;
	--bit-gray-800: #1f2937;
	--bit-gray-900: #111827;

	/* Surfaces & text (Light) */
	--bit-bg: var(--bit-gray-50);
	--bit-surface: var(--bit-white);
	--bit-surface-elevated: var(--bit-white);
	--bit-surface-glass: rgba(255, 255, 255, 0.78);
	--bit-border: rgba(0, 0, 0, 0.06);
	--bit-border-strong: rgba(0, 0, 0, 0.12);
	--bit-text: var(--bit-black);
	--bit-text-muted: var(--bit-gray-500);
	--bit-text-subtle: var(--bit-gray-400);
	--bit-link: var(--bit-primary);

	/* Elevation */
	--bit-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
	--bit-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--bit-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
	--bit-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
	--bit-shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.16);
	--bit-shadow-glow: 0 0 24px rgba(255, 106, 61, 0.24);

	/* Radius */
	--bit-radius-sm: 8px;
	--bit-radius-md: 12px;
	--bit-radius: 16px;
	--bit-radius-lg: 24px;
	--bit-radius-xl: 32px;
	--bit-radius-pill: 999px;

	/* Spacing scale */
	--bit-space-1: 0.25rem;
	--bit-space-2: 0.5rem;
	--bit-space-3: 0.75rem;
	--bit-space-4: 1rem;
	--bit-space-5: 1.25rem;
	--bit-space-6: 1.5rem;
	--bit-space-8: 2rem;
	--bit-space-10: 2.5rem;
	--bit-space-12: 3rem;
	--bit-space-16: 4rem;
	--bit-space-20: 5rem;
	--bit-space-24: 6rem;

	/* Typography */
	--bit-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--bit-text-xs: 0.75rem;
	--bit-text-sm: 0.875rem;
	--bit-text-base: 1rem;
	--bit-text-lg: 1.125rem;
	--bit-text-xl: 1.25rem;
	--bit-text-2xl: 1.5rem;
	--bit-text-3xl: 1.875rem;
	--bit-text-4xl: 2.25rem;
	--bit-text-5xl: 3rem;

	--bit-line-none: 1;
	--bit-line-tight: 1.2;
	--bit-line-snug: 1.35;
	--bit-line-normal: 1.55;
	--bit-line-relaxed: 1.75;

	--bit-weight-light: 300;
	--bit-weight-regular: 400;
	--bit-weight-medium: 500;
	--bit-weight-semibold: 600;
	--bit-weight-bold: 700;
	--bit-weight-extrabold: 800;

	/* Motion */
	--bit-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--bit-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--bit-transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	--bit-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Layout */
	--bit-container: 1280px;
	--bit-header-height: 76px;
	--bit-bottom-nav-height: 64px;
}

html[data-theme="dark"] {
	color-scheme: dark;

	--bit-bg: #0b0d11;
	--bit-surface: #151821;
	--bit-surface-elevated: #1c1f28;
	--bit-surface-glass: rgba(21, 24, 33, 0.78);
	--bit-border: rgba(255, 255, 255, 0.08);
	--bit-border-strong: rgba(255, 255, 255, 0.14);
	--bit-text: #f7f8fa;
	--bit-text-muted: #9ca3af;
	--bit-text-subtle: #6b7280;
	--bit-link: #ff8c6a;

	--bit-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
	--bit-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
	--bit-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
	--bit-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
	--bit-shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.6);
}

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

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--bit-font);
	font-size: var(--bit-text-base);
	line-height: var(--bit-line-normal);
	color: var(--bit-text);
	background-color: var(--bit-bg);
	min-height: 100vh;
	overflow-x: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bit-link);
	text-decoration: none;
	transition: color var(--bit-transition-fast);
}

a:hover {
	text-decoration: underline;
	color: var(--bit-primary);
}

button {
	font-family: inherit;
}

:focus-visible {
	outline: 2px solid var(--bit-primary);
	outline-offset: 2px;
}

.bit-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
