:root {
  --color-bg: #ffffff;
  --color-surface: #f9fafb;
  --color-surface-strong: #111827;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-soft: #9ca3af;
  --color-primary: #16a34a;
  --color-primary-dark: #15803d;
  --color-accent: #f0fdf4;
  --color-accent-warm: #fffbeb;
  --color-border: #e5e7eb;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-card-hover: 0 10px 18px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 255 255 / 0.95);

  .header-inner {
    padding: var(--space-2) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    gap: var(--space-1);
    align-items: center;

    .brand-name {
      font-size: 1.5rem;
      font-weight: 700;
    }

    .brand-icon {
      width: 2rem;
      height: 2rem;
      stroke: var(--color-primary);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
  }

  .main-nav {
    display: none;
    gap: var(--space-4);
    align-items: center;

    a {
      color: var(--color-text-muted);
    }
  }
}

.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  text-align: center;

  .eyebrow {
    display: inline-flex;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.125rem 0.625rem;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
  }

  h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.05;

    span {
      color: var(--color-primary);
      display: block;
    }
  }

  p {
    margin: 0 auto var(--space-4);
    max-width: 42rem;
    color: var(--color-text-muted);
    font-size: 1.25rem;
  }

  .hero-actions {
    display: flex;
    gap: var(--space-2);
    flex-direction: column;
    align-items: center;
  }
}

.section {
  padding: 4rem 0;

  &.surface {
    background: var(--color-surface);
  }

  .section-head {
    text-align: center;
    margin-bottom: var(--space-5);

    h2 {
      margin: 0 0 var(--space-2);
      font-size: 1.875rem;
    }

    p {
      margin: 0 auto;
      max-width: 42rem;
      color: var(--color-text-muted);
    }
  }
}

.features-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, minmax(0, 1fr));

  .feature {
    text-align: center;

    .feature-icon {
      width: 2rem;
      height: 2rem;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      margin-bottom: var(--space-2);
    }

    h3 {
      margin: 0 0 var(--space-1);
      font-size: 1.25rem;
    }

    p {
      margin: 0;
      color: var(--color-text-muted);
    }
  }
}

.products-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;

  &:hover {
    box-shadow: var(--shadow-card-hover);
  }

  .product-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  }

  &:hover .product-media img {
    transform: scale(1.05);
  }

  .product-body {
    padding: var(--space-3);
  }

  .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-1);
  }

  .pill {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
  }

  h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
  }

  p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
  }

  .product-actions {
    padding: 0 var(--space-3) var(--space-3);
  }
}

.about-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, minmax(0, 1fr));

  .about-copy {
    h2 {
      margin: 0 0 var(--space-3);
      font-size: 1.875rem;
    }

    p {
      margin: 0 0 var(--space-3);
      color: var(--color-text-muted);
    }
  }

  .about-image {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;

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

.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;

  h2 {
    margin: 0 0 var(--space-2);
    font-size: 1.875rem;
  }

  p {
    margin: 0 auto var(--space-4);
    max-width: 42rem;
    color: #dcfce7;
    font-size: 1.25rem;
  }

  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
  }
}

.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  max-width: 56rem;
  margin-inline: auto;

  .contact-item {
    text-align: center;

    h3 {
      margin: 0 0 var(--space-1);
      font-size: 1.125rem;
    }

    p {
      margin: 0;
      color: var(--color-text-muted);
    }
  }
}

.site-footer {
  background: var(--color-surface-strong);
  color: #fff;
  padding: 3rem 0;

  .footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    text-align: center;
    color: var(--color-text-soft);
  }
}

.stats {
  display: flex;
  gap: var(--space-4);

  .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
  }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;

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

.btn-dark {
  background: var(--color-surface-strong);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn-outline {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-block {
  width: 100%;
}

@media (min-width: 640px) {
  .hero .hero-actions,
  .cta .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .site-header .main-nav {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--space-5);
  }
}
