/**
 * Nibiru Design System — v4.0.0 Tailwind Preset
 *
 *   // tailwind.config.js
 *   module.exports = {
 *     presets: [require('@nibiru/design-system/tailwind.preset')],
 *     content: ['./src/**\/*.{html,js,ts,jsx,tsx,vue,astro}'],
 *   };
 */

module.exports = {
	theme: {
		extend: {
			colors: {
				nibiru: {
					void:           '#06030f',
					space:          '#0a0414',
					night:          '#120825',
					plum:           '#1c0f3a',
					'nebula-mag':   '#b86bff',
					'nebula-blue':  '#5b8dff',
					'nebula-amber': '#ffb574',
					iris:           '#b86bff',
					'iris-deep':    '#8a3fd0',
					'iris-soft':    '#d4b4ff',
					skyfall:        '#5b8dff',
					'skyfall-deep': '#3a6ad0',
					'skyfall-soft': '#a8c0ff',
					aurum:          '#ffb574',
					star:           '#f4eedb',
					paper:          '#f4eedb',
					'paper-2':      '#ebe3c8',
					mist:           '#f8f3e2',
					ink:            '#0a0414',
					'ink-2':        '#2a2438',
					'ink-deep':     '#06030f',
					'ink-faint':    '#6e6680',
					muted:          '#6e6680',
					success:        '#7ad6a3',
					rose:           '#ff8a9d',
					'code-bg':      '#050208',
					'code-text':    '#f4eedb',
				},
			},
			fontFamily: {
				display: ['"Inter Tight"', 'ui-sans-serif', 'system-ui', 'sans-serif'],
				sans:    ['"Inter Tight"', 'ui-sans-serif', 'system-ui', 'sans-serif'],
				mono:    ['"JetBrains Mono"', 'ui-monospace', '"SF Mono"', 'Menlo', 'monospace'],
			},
			fontSize: {
				hero:    ['clamp(3.5rem, 7vw + 0.5rem, 7.75rem)', { lineHeight: '0.95',  letterSpacing: '-0.04em' }],
				section: ['clamp(2.5rem, 4vw + 0.5rem, 5rem)',    { lineHeight: '1.02',  letterSpacing: '-0.03em' }],
			},
			letterSpacing: {
				display: '-0.04em',
				heading: '-0.03em',
				body:    '-0.005em',
				mono:     '0.04em',
				label:    '0.10em',
				eyebrow:  '0.18em',
			},
			borderRadius: {
				sm:   '6px',
				md:   '10px',
				lg:   '14px',
				xl:   '18px',
				'2xl':'22px',
				pill: '999px',
			},
			boxShadow: {
				'nibiru-sm':       '0 1px 2px rgba(0, 0, 0, 0.20)',
				'nibiru-md':       '0 8px 24px -8px rgba(0, 0, 0, 0.40)',
				'nibiru-lg':       '0 30px 60px -30px rgba(0, 0, 0, 0.7)',
				'nibiru-xl':       '0 60px 120px -40px rgba(0, 0, 0, 0.7)',
				'nibiru-cosmos':   '0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(184, 107, 255, 0.06) inset',
				'nibiru-glow-mag': '0 0 24px rgba(184, 107, 255, 0.45)',
				'nibiru-glow-amb': '0 0 24px rgba(255, 181, 116, 0.45)',
				'nibiru-glow-blue':'0 0 24px rgba(91, 141, 255, 0.45)',
			},
			backgroundImage: {
				'iris-to-sky':     'linear-gradient(135deg, #b86bff 0%, #5b8dff 100%)',
				'headline':        'linear-gradient(110deg, #ffb574 0%, #b86bff 50%, #5b8dff 100%)',
				'accent':          'linear-gradient(110deg, #ffb574, #b86bff 70%)',
				'accent-light':    'linear-gradient(110deg, #b46500, #5b1f9e 70%)',
				'nebula':          'radial-gradient(120% 90% at 50% 20%, #2a2156 0%, #1a1442 24%, #0e0a2a 52%, #06050f 82%), linear-gradient(180deg, #06050f 0%, #07060f 100%)',
				'mmvc-stage':      'radial-gradient(ellipse at 50% 50%, #1c0f3a, #0a0414 60%)',
			},
			animation: {
				'tele-pulse': 'nibiru-tele-pulse 2.4s ease-in-out infinite',
				blink:        'nibiru-blink 1s steps(1) infinite',
				breathe:      'nibiru-breathe 18s ease-in-out infinite',
			},
			keyframes: {
				'nibiru-tele-pulse': {
					'0%, 100%': { opacity: '0.5', transform: 'scale(0.85)' },
					'50%':      { opacity: '1',   transform: 'scale(1.15)' },
				},
				'nibiru-blink': {
					'50%': { opacity: '0' },
				},
				'nibiru-breathe': {
					'0%, 100%': { transform: 'translateY(0) rotate(0deg)' },
					'50%':      { transform: 'translateY(-6px) rotate(0.6deg)' },
				},
			},
		},
	},
};
