/* PairipCore Research - Modern Card-Based UI */

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern Dark Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --surface: #111111;
  --surface-elevated: #1a1a1a;
  --surface-hover: #222222;
  
  --text-primary: #ffffff;
  --text-secondary: #e4e4e7;
  --text-tertiary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #1d4ed8;
  
  --border: #27272a;
  --border-light: #3f3f46;
  
  /* Modern shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  
  /* Smooth animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.availability {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* Primary Button */
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-light));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Services Overview */
.services-overview {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface-elevated) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.service-card p {
  color: var(--text-tertiary);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 16px;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.service-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Contact Section */
.contact-section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface-elevated);
  border: 2px solid var(--accent);
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.contact-card h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-card > p {
  color: var(--text-tertiary);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-item strong {
  color: var(--accent);
  font-weight: 600;
  min-width: 100px;
}

.contact-item span {
  color: var(--text-secondary);
}

.contact-btn-large {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-base);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-btn-large:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5);
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(168, 85, 247, 0.02) 100%);
  border-radius: 32px;
  margin-top: 60px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.faq-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-item h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item p {
  color: var(--text-tertiary);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.contact-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-light));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:active {
  transform: translateY(0);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

/* Modern Card System */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin: 24px 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

/* Card Variants */
.card-primary {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-secondary {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(168, 85, 247, 0.2);
}

.card-accent {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.2);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin: 48px 0;
  padding: 24px;
}

.info-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 40px 80px -20px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.info-card:hover::after {
  opacity: 1;
}

/* Content Cards */
.content-section {
  margin: 64px 0;
  padding: 0 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.8px;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.section-description {
  font-size: 20px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
  line-height: 1.8;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* Typography in Cards */
.card h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.info-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.3px;
  position: relative;
}

.info-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.card h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.card p {
  color: var(--text-tertiary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card ul {
  color: var(--text-tertiary);
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.card li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.card li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 8px;
  top: 0;
}

.card li:hover {
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

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

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

/* Code Styling */
code {
  background: var(--surface-elevated);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

code:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
}

pre {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

pre:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

th {
  background: var(--surface-hover);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

td {
  color: var(--text-tertiary);
  font-size: 14px;
}

tr:hover td {
  background: rgba(59, 130, 246, 0.05);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--surface-elevated);
  border-radius: 0 12px 12px 0;
  color: var(--text-tertiary);
  font-style: italic;
  position: relative;
  transition: all var(--transition-base);
}

blockquote:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 64px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition-base);
}

.footer-content p:hover {
  color: var(--text-tertiary);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
  }
  
  .hero-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
  }
  
  .services-overview {
    padding: 40px 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-section {
    padding: 40px 20px;
  }
  
  .contact-card {
    padding: 32px;
  }
  
  .faq-section {
    padding: 60px 20px;
    margin-top: 40px;
  }
  
  .faq-item {
    padding: 24px;
  }
  
  main {
    padding: 32px 20px;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .section-description {
    font-size: 18px;
    margin-bottom: 40px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
  
  .cards-grid {
    gap: 32px;
    padding: 16px;
  }
  
  .info-card {
    padding: 32px;
    border-radius: 20px;
  }
  
  .card {
    padding: 28px;
    margin: 20px 0;
    border-radius: 16px;
  }
  
  .content-section {
    margin: 48px 0;
    padding: 0 8px;
  }
  
  pre {
    padding: 20px;
    font-size: 14px;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 12px 8px;
  }
  
  footer {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 32px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .primary-btn {
    padding: 16px 32px;
    font-size: 16px;
  }
  
  .services-overview {
    padding: 32px 16px;
  }
  
  .service-card {
    padding: 24px;
  }
  
  .contact-section {
    padding: 32px 16px;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .faq-section {
    padding: 40px 16px;
    margin-top: 32px;
  }
  
  .faq-item {
    padding: 20px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .card {
    padding: 16px;
    border-radius: 12px;
  }
  
  pre {
    padding: 12px;
    margin: 16px 0;
  }
}

/* Professional Staggered Animations */
@media (prefers-reduced-motion: no-preference) {
  .card, .info-card {
    animation: slideInFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  
  .info-card:nth-child(1) { animation-delay: 0.1s; }
  .info-card:nth-child(2) { animation-delay: 0.25s; }
  .info-card:nth-child(3) { animation-delay: 0.4s; }
  
  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
  .card:nth-child(4) { animation-delay: 0.4s; }
  .card:nth-child(5) { animation-delay: 0.5s; }
  .card:nth-child(6) { animation-delay: 0.6s; }
  
  .section-title {
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  
  .section-description {
    animation: slideInFade 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
  }
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
  }
  70% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: #555555;
    --border-light: #777777;
    --surface: #1a1a1a;
    --surface-elevated: #2a2a2a;
  }
}