/* Hero Section */
.hero {
  background: white;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.hero-content h2 {
  font-size: 42px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.hero-content p {
  font-size: 16px;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* System Selector */
.system-selector {
  background: white;
  padding: 32px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.selector-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.system-btn {
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  color: #6b7280;
}

.system-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.system-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Demo Section */
.demo-section {
  padding: 60px 20px;
  background: white;
}

.demo-card {
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
}

.demo-input {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.demo-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  color: #1f2937;
}

.demo-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  align-self: flex-start;
}

/* Results */
.demo-results {
  margin-top: 32px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h3 {
  margin: 0;
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
}

.results-actions {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  background: white;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
}

.results-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.results-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.results-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
}

.results-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}

.results-table tbody tr:hover {
  background: #f9fafb;
}

.results-summary {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 16px;
  color: #1e40af;
  font-size: 13px;
}

.results-summary p {
  margin: 0;
}

.results-summary p:first-child {
  font-weight: 600;
  margin-bottom: 8px;
}

/* Loading */
.demo-loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.demo-loading p {
  color: #6b7280;
  margin: 0;
  font-size: 14px;
}

/* Error */
.demo-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 16px;
  color: #991b1b;
  margin-top: 20px;
  font-size: 14px;
}

.demo-error p {
  margin: 0;
}

/* Demo Info */
.demo-info {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.demo-info p {
  margin: 0;
  line-height: 1.6;
}

.demo-info p:first-child {
  margin-bottom: 8px;
}

/* Benefits Section */
.benefits {
  padding: 80px 20px;
  background: #f9fafb;
}

.benefits h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  color: #1f2937;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: 32px;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #1f2937;
  font-weight: 600;
}

.benefit-card p {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
  padding: 80px 20px;
  background: white;
}

.use-cases h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  color: #1f2937;
  font-weight: 700;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background: #f9fafb;
  padding: 28px;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #2563eb;
}

.use-case-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #1f2937;
  font-weight: 600;
}

.use-case-card p {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 80px 20px;
  background: #f9fafb;
}

.pricing h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  color: #1f2937;
  font-weight: 700;
}

.pricing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.pricing-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1f2937;
  font-weight: 600;
}

.pricing-info p {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 12px 0;
  color: #1f2937;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-example h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #1f2937;
  font-weight: 600;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.pricing-table td {
  padding: 12px 0;
  font-size: 13px;
}

.pricing-table td:first-child {
  color: #6b7280;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #2563eb;
}

/* API Example Section */
.api-example {
  padding: 80px 20px;
  background: white;
}

.api-example h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #1f2937;
  font-weight: 700;
}

.code-example {
  background: #1f2937;
  color: #e5e7eb;
  padding: 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #374151;
}

.code-example pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.api-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* CTA Section */
.cta {
  padding: 80px 20px;
  background: #f9fafb;
  color: #1f2937;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta p {
  font-size: 16px;
  margin-bottom: 32px;
  color: #6b7280;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
