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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Header */
.site-header {
  background: #003087;
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  height: 60px;
  width: auto;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.header-text p {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.sdk-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  animation: pulse 2s infinite;
}

.status-indicator.active {
  background: #4ade80;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-section h2 {
  font-size: 2.5rem;
  color: #003087;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  background: #003087;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-info h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin: 0.5rem 0 0.75rem 0;
}

.product-info p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cta-btn {
  display: inline-block;
  background: #003087;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: #002366;
}

/* Resources Section */
.resources-section {
  margin-top: 4rem;
}

.resources-section h2 {
  font-size: 2rem;
  color: #003087;
  margin-bottom: 1.5rem;
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.resource-card h3 {
  font-size: 1.5rem;
  color: #003087;
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: #666;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #003087;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.disclaimer {
  opacity: 0.8;
  font-size: 0.85rem !important;
}

/* Debug Panel */
.debug-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid #003087;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.debug-panel.collapsed {
  transform: translateY(calc(100% - 48px));
}

.debug-panel.expanded {
  transform: translateY(0);
  max-height: 50vh;
}

.debug-toggle {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #003087;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s;
}

.debug-toggle:hover {
  background: #002366;
}

.debug-content {
  max-height: calc(50vh - 48px);
  overflow-y: auto;
  padding: 1.5rem;
}

.debug-content h3 {
  margin: 0 0 0.5rem 0;
  color: #003087;
  font-size: 1.25rem;
}

.debug-subtitle {
  margin: 0 0 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-events {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

.event-item {
  background: #f8fafc;
  border-left: 4px solid #003087;
  padding: 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.event-item:hover {
  background: #f1f5f9;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-type {
  font-weight: 600;
  color: #003087;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.event-time {
  font-size: 0.85rem;
  color: #666;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.event-detail {
  font-size: 0.9rem;
  color: #444;
}

.event-detail strong {
  color: #003087;
  margin-right: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
}
