/* ============================================================
   collide.love — Design System
   Professional romantic aesthetic, conversion-optimized
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --color-primary: #c2185b;
  --color-primary-dark: #880e4f;
  --color-primary-light: #e91e63;
  --color-midnight: #1a237e;
  --color-midnight-dark: #0d1347;
  --color-midnight-light: #283593;

  /* Accent palette */
  --color-gold: #ffd54f;
  --color-gold-dark: #f9a825;
  --color-gold-light: #fff176;
  --color-coral: #ff8a65;
  --color-coral-light: #ffab91;

  /* Neutral palette */
  --color-bg-deep: #0a0a14;
  --color-bg-dark: #121220;
  --color-bg-card: #1a1a2e;
  --color-bg-card-hover: #222240;
  --color-bg-surface: #ffffff;
  --color-bg-surface-alt: #faf5f7;
  --color-bg-hero: linear-gradient(135deg, #0a0a14 0%, #1a0a1e 30%, #1a1a2e 60%, #0d1347 100%);

  /* Text colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b0b0c8;
  --color-text-muted: #6e6e8a;
  --color-text-dark: #1a1a2e;
  --color-text-dark-secondary: #4a4a6a;
  --color-text-accent: #ffd54f;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.15);
  --color-border-accent: rgba(194, 24, 91, 0.4);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-primary: 0 0 30px rgba(194, 24, 91, 0.3);
  --shadow-glow-gold: 0 0 30px rgba(255, 213, 79, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* 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;
  --space-5xl: 8rem;

  /* Layout */
  --max-width-content: 1200px;
  --max-width-text: 720px;
  --max-width-narrow: 560px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

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

a:hover {
  color: var(--color-coral-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-coral), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(194, 24, 91, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-bg-deep);
  font-weight: 700;
  box-shadow: var(--shadow-glow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 213, 79, 0.4);
  color: var(--color-bg-deep);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.card-featured {
  border-color: var(--color-primary);
  position: relative;
  background: linear-gradient(180deg, rgba(194, 24, 91, 0.08) 0%, var(--color-bg-card) 40%);
}

.card-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, var(--color-primary), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Layout utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
}

.badge-primary {
  background: rgba(194, 24, 91, 0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(194, 24, 91, 0.3);
}

.badge-gold {
  background: rgba(255, 213, 79, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(255, 213, 79, 0.3);
}

/* --- Input / Form --- */
.input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.15);
}

.input::placeholder {
  color: var(--color-text-muted);
}

.label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border: none;
  border-radius: var(--radius-full);
  margin: var(--space-lg) auto;
}

/* --- Animated background particles (CSS-only) --- */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  animation: float-particle 20s ease-in-out infinite;
}

.bg-particles::before {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.bg-particles::after {
  width: 400px;
  height: 400px;
  background: var(--color-midnight);
  bottom: -5%;
  left: -5%;
  animation-delay: -10s;
}

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 20px) scale(1.05); }
  50% { transform: translate(20px, -30px) scale(0.95); }
  75% { transform: translate(-20px, -20px) scale(1.02); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }

  .container {
    padding: 0 var(--space-md);
  }

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

  .btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

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