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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0047ab;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0047ab;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #0047ab;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: #0047ab;
  color: white;
}

.btn-secondary {
  background: white;
  color: #0047ab;
  border: 2px solid #0047ab;
}

/* Features */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  color: #0047ab;
}

/* Demo */
.demo-section {
  padding: 4rem 2rem;
  background: #f0f4ff;
  text-align: center;
}

.demo-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.demo-section>p {
  color: #555;
  margin-bottom: 2rem;
}

#demo-container {
  max-width: 600px;
  margin: 0 auto;
}

#reader-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#qr-video {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 3px solid #0047ab;
}

#demo-result {
  text-align: left;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #ddd;
}

#demo-result img {
  max-width: 120px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#demo-json {
  background: #1a1a2e;
  color: #a8e6cf;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* Pricing */
.pricing {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-desc {
  color: #555;
  margin-bottom: 1.5rem;
}

.pricing-example {
  text-align: left;
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.pricing-example code {
  color: #82aaff;
  font-size: 0.9rem;
}

.pricing-example pre {
  color: #a8e6cf;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.pricing-cta {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Contact */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background: #f0f4ff;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  color: #555;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

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

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links a {
    margin-left: 1rem;
  }
}