:root {
  --teal: #008c97;
  --teal-dark: #006c75;
  --ink: #14373b;
  --muted: #5f767a;
  --bg: #f4f8f9;
  --white: #ffffff;
  --line: #d7e4e6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0a9aa7 0%, #007f89 65%, #00727c 100%);
  color: var(--white);
}

.hero__curves::before,
.hero__curves::after {
  content: "";
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-left: none;
  border-top: none;
  width: 55vmax;
  height: 55vmax;
  border-radius: 0 0 100% 0;
  pointer-events: none;
}

.hero__curves::before {
  right: -10vmax;
  top: -8vmax;
  transform: rotate(8deg);
}

.hero__curves::after {
  left: -20vmax;
  bottom: -45vmax;
  transform: rotate(188deg);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 0;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand__icon {
  width: 56px;
  height: 40px;
}

.brand__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 4;
}

.brand__text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__content {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0;
  max-width: 900px;
}

.lead {
  max-width: 800px;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #e7fcff;
}

.hero__actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: #eef9fb;
}

.btn--secondary,
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--secondary:hover,
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 4.25rem 0;
}

.section--light {
  background: var(--bg);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin: 0 0 0.9rem;
}

.section__intro {
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  box-shadow: 0 3px 16px rgba(9, 79, 86, 0.05);
}

.card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.55rem;
  color: var(--teal-dark);
}

.compound {
  margin: 0.9rem 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem;
  background: #fbfefe;
}

.compound img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.compound__meta,
.compound__desc,
.compound__uses {
  margin: 0.42rem 0;
  font-size: 0.9rem;
}

.compound__desc,
.compound__uses {
  color: #335156;
}

.product-controls {
  margin-bottom: 1rem;
}

#product-search {
  width: min(460px, 100%);
  border: 1px solid #bdd0d3;
  background: var(--white);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
}

#product-search:focus {
  outline: 2px solid #83d0d8;
  outline-offset: 1px;
}

.products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.94rem;
}

.product-empty {
  margin-top: 0.8rem;
  color: var(--muted);
}

.footer {
  background: linear-gradient(180deg, #eef6f8 0%, #e5f1f4 100%);
  border-top: 1px solid var(--line);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 2rem 0;
}

.footer__brand {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.footer__cta {
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .cards,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }

  .hero__content {
    padding-top: 2.5rem;
    padding-bottom: 3.3rem;
  }

  .cards,
  .products {
    grid-template-columns: 1fr;
  }

  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__cta {
    text-align: left;
  }
}
