/**
 * BeautyTech Lite - Base Styles
 * Reset, Typography, Colors
 */

/* CSS Variables - SWELL Inspired */
:root {
  /* Colors - Enhanced SWELL-like palette */
  --bt-white: #ffffff;
  --bt-pure-white: #fefefe;
  --bt-light-pink: #ffe8f0;
  --bt-light-pink-alt: #fff5f8;
  --bt-light-pink-hover: #fdd6e7;
  --bt-rose-gold: #c87ba3;
  --bt-rose-gold-light: #d88cb0;
  --bt-rose-gold-hover: #b86992;
  --bt-rose-gold-dark: #a85881;
  --bt-dark-gray: #2a2a2a;
  --bt-medium-gray: #4a4a4a;
  --bt-gray: #6a6a6a;
  --bt-light-gray: #f8f9fa;
  --bt-border-light: rgba(200, 123, 163, 0.08);
  --bt-border: rgba(200, 123, 163, 0.15);
  --bt-border-medium: rgba(200, 123, 163, 0.25);
  
  /* Gradients */
  --bt-gradient-primary: linear-gradient(135deg, var(--bt-rose-gold) 0%, var(--bt-rose-gold-light) 100%);
  --bt-gradient-subtle: linear-gradient(135deg, rgba(255, 232, 240, 0.6) 0%, rgba(255, 245, 250, 0.4) 100%);
  --bt-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Shadows - More refined SWELL-style */
  --bt-shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --bt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --bt-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --bt-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --bt-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --bt-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
  --bt-shadow-colored: 0 4px 16px rgba(200, 123, 163, 0.15);
  --bt-shadow-colored-lg: 0 8px 32px rgba(200, 123, 163, 0.2);
  
  /* Border radius - More modern */
  --bt-radius-xs: 6px;
  --bt-radius-sm: 10px;
  --bt-radius: 14px;
  --bt-radius-lg: 18px;
  --bt-radius-xl: 24px;
  --bt-radius-round: 50px;
  
  /* Spacing */
  --bt-spacing-xs: 0.5rem;
  --bt-spacing-sm: 1rem;
  --bt-spacing: 1.5rem;
  --bt-spacing-lg: 2rem;
  --bt-spacing-xl: 3rem;
  --bt-spacing-2xl: 4rem;
  
  /* Transitions - More sophisticated */
  --bt-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --bt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bt-transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --bt-transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Typography - Enhanced font stack */
  --bt-font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --bt-font-heading: 'Inter', 'Montserrat', 'Noto Sans JP', system-ui, sans-serif;
  --bt-font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Mobile viewport height */
  --vh: 1vh;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* Enhanced scroll behavior for SWELL feel */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--bt-font-main);
  font-weight: 400;
  line-height: 1.7;
  color: var(--bt-dark-gray);
  background: linear-gradient(180deg, #fefefe 0%, #f8f9fa 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Typography - SWELL Enhanced */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bt-font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--bt-spacing-sm);
  color: var(--bt-dark-gray);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--bt-spacing-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--bt-spacing);
  font-weight: 750;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

p {
  margin-bottom: var(--bt-spacing-sm);
}

a {
  color: var(--bt-rose-gold);
  text-decoration: none;
  transition: var(--bt-transition);
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bt-gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--bt-rose-gold-hover);
  text-decoration: none;
}

a:hover::after {
  width: 100%;
}

a:focus {
  outline: 2px solid var(--bt-rose-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lists */
ul, ol {
  margin-bottom: var(--bt-spacing-sm);
  padding-left: var(--bt-spacing);
}

li {
  margin-bottom: var(--bt-spacing-xs);
}

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

/* Forms */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--bt-spacing);
}

th, td {
  padding: var(--bt-spacing-xs);
  text-align: left;
  border-bottom: 1px solid var(--bt-border);
}

th {
  font-weight: 600;
  background-color: var(--bt-light-pink);
}

/* Blockquote */
blockquote {
  margin: var(--bt-spacing) 0;
  padding: var(--bt-spacing);
  background-color: var(--bt-light-gray);
  border-left: 4px solid var(--bt-rose-gold);
  font-style: italic;
}

/* Code */
code {
  padding: 2px 6px;
  background-color: var(--bt-light-gray);
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875em;
}

pre {
  margin: var(--bt-spacing) 0;
  padding: var(--bt-spacing);
  background-color: var(--bt-dark-gray);
  color: var(--bt-white);
  border-radius: var(--bt-radius-sm);
  overflow-x: auto;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--bt-spacing);
}

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

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--bt-spacing-xs); }
.mt-2 { margin-top: var(--bt-spacing-sm); }
.mt-3 { margin-top: var(--bt-spacing); }
.mt-4 { margin-top: var(--bt-spacing-lg); }
.mt-5 { margin-top: var(--bt-spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--bt-spacing-xs); }
.mb-2 { margin-bottom: var(--bt-spacing-sm); }
.mb-3 { margin-bottom: var(--bt-spacing); }
.mb-4 { margin-bottom: var(--bt-spacing-lg); }
.mb-5 { margin-bottom: var(--bt-spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--bt-spacing-xs); }
.pt-2 { padding-top: var(--bt-spacing-sm); }
.pt-3 { padding-top: var(--bt-spacing); }
.pt-4 { padding-top: var(--bt-spacing-lg); }
.pt-5 { padding-top: var(--bt-spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--bt-spacing-xs); }
.pb-2 { padding-bottom: var(--bt-spacing-sm); }
.pb-3 { padding-bottom: var(--bt-spacing); }
.pb-4 { padding-bottom: var(--bt-spacing-lg); }
.pb-5 { padding-bottom: var(--bt-spacing-xl); }

/* SWELL-inspired Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(200, 123, 163, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(200, 123, 163, 0.2);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-fadeIn {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse {
  animation: gentlePulse 3s ease-in-out infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }

/* Interactive hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(200, 123, 163, 0.3);
}