/* Clauda Payment Platform - Pure CSS Styles */

:root {
  --primary-color: #2979ff;
  --primary-hover: #1976d2;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
}

/* Bootstrap Customization */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

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

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Brand Elements */
.brand-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-square {
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 2px;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--text-dark);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}

.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons .btn {
  padding: 12px 32px;
  font-weight: 600;
  margin: 0.5rem;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Code Cards */
.code-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.code-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-block {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Courier New", monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  margin-top: 1rem;
}

.code-line {
  color: #4ade80;
  line-height: 1.6;
  white-space: pre;
}

.code-comment {
  color: #9ca3af;
  line-height: 1.6;
  white-space: pre;
}

/* Feature Cards */
.feature-card {
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
  height: 100%;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(41, 121, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Legal Content */
.legal-content {
  max-width: none;
}

.legal-content h2 {
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Badges */
.badge {
  font-weight: 600;
}

.badge.bg-success {
  background-color: #198754 !important;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .code-card {
    padding: 1.5rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-section {
    padding: 100px 0 60px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .code-block {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .brand-square {
    width: 14px;
    height: 14px;
  }
}

/* Utilities */
.bg-gradient {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

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

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .legal-content {
    max-width: 100%;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
  background-color: var(--primary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
}
