/* ============================================
   BOOZLE — Design System & Base Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Pacifico&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Backgrounds */
  --bg-primary: #0D0D0D;
  --bg-secondary: #111118;
  --bg-card: #1A1A2E;
  --bg-card-hover: #22223A;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-gold: #F5A623;
  --accent-amber: #E8872A;
  --accent-purple: #7B2FF7;
  --accent-purple-light: #9D5CFF;
  --accent-teal: #00D4AA;
  --accent-rose: #FF4D6A;

  /* Text */
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0B0;
  --text-muted: #606070;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  --gradient-cta: linear-gradient(135deg, #F5A623, #E8872A);
  --gradient-cta-hover: linear-gradient(135deg, #FFB840, #F09530);
  --gradient-purple: linear-gradient(135deg, #7B2FF7, #9D5CFF);
  --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #1A1A2E 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 166, 35, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 30px rgba(245, 166, 35, 0.15);
  --shadow-glow-purple: 0 0 30px rgba(123, 47, 247, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Pacifico', cursive;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-gold);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  border: none;
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #1b1b2a;
  color: #f5f5f7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.6rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent-gold);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay utility */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* ---- Selection ---- */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.45rem; }
  .container { padding: 0 var(--space-lg); }
  .section { padding: var(--space-3xl) 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  .container { padding: 0 var(--space-md); }
}
