/* Pauhu Data Marketplace - v1.0.0 */
/* Last updated: 2026-01-21 */

:root {
  --color-primary: #0052cc;
  --color-primary-dark: #003d99;
  --color-secondary: #172b4d;
  --color-accent: #00875a;
  --color-live: #0052cc;
  --color-stale: #00875a;
  --color-text: #172b4d;
  --color-text-light: #5e6c84;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-border: #dfe1e6;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.logo-badge {
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-border);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

.btn-product {
  background: var(--color-secondary);
  color: white;
  width: 100%;
  text-align: center;
}

.btn-product:hover {
  background: var(--color-primary);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 6rem 2rem;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Sections */
section {
  padding: 5rem 2rem;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Products */
.products {
  background: var(--color-bg);
}

.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card.live {
  border-top: 4px solid var(--color-live);
}

.product-card.stale {
  border-top: 4px solid var(--color-stale);
}

.product-badge {
  display: inline-block;
  background: var(--color-live);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.product-badge.stale-badge {
  background: var(--color-stale);
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

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

.product-pricing {
  margin-bottom: 1.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.price-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Pricing */
.pricing {
  background: var(--color-bg-alt);
}

.pricing-tables {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.pricing-table {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.pricing-table h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-table > p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

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

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

/* Free Samples */
.free-samples {
  background: var(--color-bg);
}

.samples-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.sample-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sample-card h4 {
  margin-bottom: 0.5rem;
}

.sample-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Connector */
.connector {
  background: var(--color-secondary);
  color: white;
}

.connector h2 {
  color: white;
}

.connector .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.connector-info {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.connector-details h4,
.connector-code h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.connector-details ul {
  list-style: none;
}

.connector-details li {
  padding: 0.5rem 0;
}

.connector-code pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

.connector-code code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #a5d6ff;
}

/* CTA */
.cta {
  background: var(--color-primary);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

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

.cta .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

/* Footer */
.footer {
  background: var(--color-secondary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.3rem 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

  .connector-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
}
