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

:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  background-color: transparent;
  padding: 32px 0;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}


/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 16px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.hero-button-primary {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
}

.hero-button-primary:hover {
  opacity: 0.85;
}

.hero-button-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.hero-button-secondary:hover {
  border-color: var(--text-primary);
}

.highlight {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 0 16px;
  display: inline-block;
  transform: rotate(-2deg);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0 80px;
}

.product-card {
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

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

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
}

.product-info {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-details {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-category {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal {
  background-color: var(--bg-secondary);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
}

.modal-image {
  aspect-ratio: 1;
}

.product-placeholder.large {
  height: 100%;
}

.product-icon.large {
  font-size: 80px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-category {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-price {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
}

.modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.preview-btn,
.buy-now-btn {
  flex: 1;
  text-align: center;
  border: none;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-block;
}

.preview-btn {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.buy-now-btn {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
}

.buy-now-btn:hover {
  opacity: 0.85;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer a {
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    padding: 0 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .highlight {
    padding: 0 12px;
  }

  .modal-content {
    padding: 40px 24px;
  }

  .modal-overlay {
    padding: 20px;
  }

  .modal-info h2 {
    font-size: 24px;
  }

  .modal-price {
    font-size: 20px;
  }
}

/* Alpine.js transitions */
[x-cloak] {
  display: none !important;
}

/* About Page */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 100px;
}

.about-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

.about-section {
  margin-bottom: 80px;
}

.lead {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 500;
}

.about-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.inline-code {
  background-color: var(--bg-primary);
  padding: 3px 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.code-example {
  margin: 32px 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.code-header {
  background-color: var(--bg-primary);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.code-filename {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.code-block {
  padding: 24px;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.code-caption {
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 16px;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.principle {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.principle-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.principle-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.principle-content p {
  margin: 0;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.comparison-column {
  background-color: var(--bg-secondary);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.comparison-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.comparison-title.bad {
  color: var(--text-secondary);
}

.comparison-title.good {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.comparison-list {
  list-style: none;
  padding: 0;
}

.comparison-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
}

.comparison-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.use-case {
  background-color: var(--bg-secondary);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.use-case h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.use-case p {
  margin: 0;
  font-size: 15px;
}

.about-cta {
  text-align: center;
  padding: 80px 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-top: 60px;
}

.about-cta h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.cta-button:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 24px;
  }

  .lead {
    font-size: 20px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .principle {
    flex-direction: column;
    gap: 16px;
  }

  .about-cta {
    padding: 60px 24px;
  }
}
