@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Prevent the '$' character in shell blocks from being copied */
.gp {
  user-select: none;
}

:root {
  --md-primary-fg-color: #0057B7;
  --md-primary-fg-color--light: #4698CA;
  --card-background: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --text-muted: #64748b;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* horizontal dividers */
.md-content h2::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

/* Hero section container */
.md-hero {
  background-image: linear-gradient(135deg, var(--md-primary-fg-color), #1e40af);
  background: 
    linear-gradient(rgba(0, 48, 102, 0.4), rgba(0, 48, 102, 0.4)),
    url("../assets/banner_fade.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
  clip-path: ellipse(150% 100% at 50% 0%);
}

.md-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.md-hero__content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.md-hero__content div {
  font-size: 1.25rem;
  max-width: 40rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: -3rem auto 4rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* Professional Product Card */
.product-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--md-primary-fg-color--light);
}

.product-card__image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-card__summary {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-card__description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  color: var(--md-primary-fg-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.product-card__link i {
  margin-left: 0.25rem;
  transition: var(--transition);
}

.product-card__link:hover {
  color: #1a73e8;
}

.product-card__link:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  
  .md-hero__content h1 {
    font-size: 2.25rem;
  }
}
