/* JINBO Design System - Based on concept/technical/design-system.md */

:root {
  /* Korean Minimalist - Monochrome Palette */
  --primary-50: #fafafa;
  --primary-100: #f5f5f5;
  --primary-200: #e5e5e5;
  --primary-300: #d4d4d4;
  --primary-400: #a3a3a3;
  --primary-500: #737373;
  --primary-600: #000000;  /* JINBO Black - Primary */
  --primary-700: #000000;
  --primary-800: #000000;
  --primary-900: #000000;

  /* Success - Monochrome (no green) */
  --success-50: #fafafa;
  --success-100: #f5f5f5;
  --success-200: #e5e5e5;
  --success-300: #d4d4d4;
  --success-400: #a3a3a3;
  --success-500: #737373;  /* Gray for success */
  --success-600: #525252;
  --success-700: #404040;
  --success-800: #262626;
  --success-900: #171717;

  /* Neutral Grays - Korean Minimalist */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  
  /* Font sizes - Modular scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

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

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows - Korean Minimalist (none) */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --shadow-xl: none;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.heading-1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--gray-900);
}

.heading-2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--gray-900);
}

.heading-3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-normal);
  color: var(--gray-700);
}

.text-primary {
  color: var(--primary-600);
}

.text-success {
  color: var(--success-600);
}

.text-muted {
  color: var(--gray-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-secondary:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  min-height: 56px;
  padding: 16px 32px;
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* Forms */
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: var(--text-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-900);
  font-weight: 500;
  transition: border-color 0.2s ease;
}

/* Input text visibility fix */
input[type='email'], 
input[type='password'], 
input[type='text'],
select {
  color: #1f2937 !important;
  font-weight: 500 !important;
}

input[type='email']:focus, 
input[type='password']:focus, 
input[type='text']:focus,
select:focus {
  color: #111827 !important;
}

.form-input::placeholder {
  color: var(--gray-500);
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-200);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-group {
  margin-bottom: var(--space-6);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* ============================================
   ENHANCED STYLES - Added Sept 30, 2025
   ============================================ */

/* Better mobile responsiveness */
@media (max-width: 768px) {
  .heading-1 {
    font-size: var(--text-2xl);
  }
  
  .heading-2 {
    font-size: var(--text-xl);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-large {
    min-height: 52px;
    padding: 14px 24px;
  }
}

/* Demo CTA Styles */
.demo-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: var(--space-16) var(--space-6);
  border-radius: var(--radius-2xl);
  text-align: center;
  margin: var(--space-12) 0;
}

.demo-cta h2 {
  color: white;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.demo-cta p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

.btn-demo {
  display: inline-block;
  background: white;
  color: var(--primary-600);
  padding: 16px 40px;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.btn-demo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.demo-credentials {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  opacity: 0.8;
  font-family: 'Courier New', monospace;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

.feature {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
}

.feature h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.feature p {
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* Credential Box */
.credential-box {
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-family: 'Courier New', monospace;
}

.credential-box p {
  margin: var(--space-2) 0;
  font-size: var(--text-lg);
}

.credential-box strong {
  color: var(--primary-600);
}

/* Demo Features List */
.demo-features {
  background: var(--success-50);
  border: 2px solid var(--success-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.demo-features h3 {
  color: var(--success-900);
  margin-bottom: var(--space-4);
}

.demo-features ul {
  list-style: none;
  padding: 0;
}

.demo-features li {
  padding: var(--space-3) 0;
  color: var(--success-800);
  font-size: var(--text-lg);
}

/* Demo Restrictions */
.demo-restrictions {
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.demo-restrictions h3 {
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.demo-restrictions ul {
  list-style: disc;
  padding-left: var(--space-6);
}

.demo-restrictions li {
  padding: var(--space-2) 0;
  color: var(--gray-700);
}

/* Enhanced contrast for better readability */
.text-high-contrast {
  color: var(--gray-900) !important;
  font-weight: 600;
}

/* Improved focus states */
*:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 2px;
}

/* Better link styles */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* Success/Error messages */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.alert-success {
  background: var(--success-50);
  border: 2px solid var(--success-200);
  color: var(--success-900);
}

.alert-error {
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: var(--primary-50);
  border: 2px solid var(--primary-200);
  color: var(--primary-900);
}
