:root {
  --bg: #f5f2ec;
  --panel: #ffffff;
  --ink: #14231e;
  --muted: #5f6b64;
  --brand: #0e7a77;
  --brand-bright: #13a2b8;
  --brand-deep: #092f2b;
  --gold: #c08a4e;
  --line: #e6e1d7;
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(9, 47, 43, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .section-title, .hero-claim, .block-title {
  font-family: "Prata", Georgia, serif;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(245, 242, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 35, 30, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.logo-img { height: 30px; width: auto; display: block; }
.brand-sub { font-size: 9px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; letter-spacing: 0.4px; }
.nav a { color: var(--ink); opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.nav a:hover, .nav a.active { opacity: 1; color: var(--brand); }
.nav a.active { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: all 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 12px 30px -12px rgba(14, 122, 119, 0.6); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn.small { padding: 8px 16px; font-size: 12px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 32px 90px;
  color: #eaf4f2;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(19, 162, 184, 0.30), transparent 60%),
    radial-gradient(640px 460px at -8% 112%, rgba(192, 138, 78, 0.20), transparent 55%),
    linear-gradient(180deg, rgba(6, 32, 29, 0.68) 0%, rgba(6, 32, 29, 0.86) 100%),
    url("assets/hero-main.png") center / cover no-repeat,
    #0c3b36;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; z-index: 1; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--brand-bright);
  margin: 0 0 20px;
}

.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; margin: 0 0 22px; color: #fff; }
.hero-sub { font-size: 18px; color: #bfd5d0; max-width: 620px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 60px; }
.stat b { display: block; font-family: "Prata", serif; font-weight: 400; font-size: 30px; color: #fff; }
.stat span { font-size: 13px; color: #9fc2bd; letter-spacing: 0.5px; }

/* Sections */
section { padding: 88px 32px; max-width: 1080px; margin: 0 auto; }
.section-title { font-size: 32px; margin: 0 0 12px; color: var(--ink); }
.section-sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--brand); border-color: var(--brand); }
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
section .eyebrow { margin-bottom: 12px; }

/* Pillars */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillars .grid { counter-reset: pillar; }
.pillar {
  counter-increment: pillar;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar::before {
  content: "0" counter(pillar);
  display: block;
  font-family: "Prata", serif;
  font-size: 34px;
  color: var(--brand-bright);
  opacity: 0.45;
  margin-bottom: 14px;
}
.pillar h3 { font-size: 16px; margin: 0 0 10px; font-family: "Inter", sans-serif; font-weight: 600; }
.pillar p { color: var(--muted); font-size: 14px; margin: 0; }

/* Products */
.products-grid { grid-template-columns: repeat(4, 1fr); }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 22px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; aspect-ratio: 3 / 4; margin-bottom: 14px; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.035); }
.product-cat {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}
.product-card h3 { font-size: 15px; line-height: 1.35; margin: 8px 0 6px; font-family: "Inter", sans-serif; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card p { color: var(--muted); font-size: 14px; margin: 0; }
.product-card .claim { color: var(--brand); font-size: 14px; margin: 0 0 12px; font-weight: 500; }
.product-card.muted { opacity: 0.6; }
.product-card .chips { margin-top: 12px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip {
  display: inline-block;
  background: #eaf2ef;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
}
.chip.link { cursor: pointer; }
.chip.link:hover { background: var(--brand); color: #fff; }

/* Science (dark panel on landing) */
.science { max-width: none; padding: 0 32px; }
.science-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 40px;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(19, 162, 184, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(7, 38, 34, 0.80) 0%, rgba(7, 38, 34, 0.92) 100%),
    url("assets/hero-science.png") center / cover no-repeat,
    var(--brand-deep);
  color: #eaf4f2;
  border-radius: 24px;
}
.science .section-title { color: #fff; }
.science-sub { max-width: 720px; color: #cde0dd; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
}
.science-note { font-size: 12px; color: #8fb8b0; margin: 14px 0 0; }

/* Brand scene (landing) */
.brand-scene {
  max-width: none;
  padding: 0;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eaf4f2;
  background:
    linear-gradient(180deg, rgba(6, 32, 29, 0.55) 0%, rgba(6, 32, 29, 0.74) 100%),
    url("assets/hero-brand.png") center / cover no-repeat;
}
.brand-scene-inner { max-width: 760px; padding: 48px 24px; }
.brand-scene .section-title { color: #fff; }
.brand-scene-sub { color: #cde0dd; font-size: 16px; line-height: 1.6; }

/* Science banner (science.html) */
.science-banner {
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 40px;
  color: #eaf4f2;
  margin-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(7, 38, 34, 0.82) 0%, rgba(7, 38, 34, 0.92) 100%),
    url("assets/hero-science.png") center / cover no-repeat;
}
.science-banner .section-title { color: #fff; }
.science-banner .section-sub { color: #cde0dd; margin-bottom: 0; }

/* Category banner (products.html) */
.cat-banner {
  border-radius: 20px;
  overflow: hidden;
  padding: 48px 36px;
  color: #eaf4f2;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(6, 32, 29, 0.66) 0%, rgba(6, 32, 29, 0.84) 100%),
    url("assets/category-shampoo.png") center / cover no-repeat;
}
.cat-banner .section-title { color: #fff; }
.cat-banner .section-sub { color: #cde0dd; margin-bottom: 0; }

/* Where */
.where { text-align: center; }
.where p { color: var(--muted); margin: 0 0 26px; }

/* Product detail */
.product-detail { max-width: 820px; margin: 0 auto; }
.product-detail h1 { font-size: 26px; line-height: 1.3; margin: 0 0 8px; }
.back { display: inline-block; color: var(--brand); font-size: 14px; margin-bottom: 26px; }
.gallery { max-width: 460px; margin-bottom: 24px; }
.gallery-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; width: 64px; height: 64px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.thumb.active { border-color: var(--brand); }
.hero-claim { font-size: 22px; color: var(--brand); margin: 14px 0; }
.detail-sub { color: var(--muted); max-width: 720px; }
.block-title { font-size: 21px; margin: 34px 0 12px; }
.benefits { margin: 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); }
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-bright);
}
.inci { font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.where-inline { margin-top: 36px; }

/* Science page */
.ingredients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ingredient {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  scroll-margin-top: 100px;
}
.ingredient h3 { font-size: 20px; margin: 0 0 8px; font-family: "Inter", sans-serif; font-weight: 600; }
.latin { color: var(--muted); font-weight: 400; font-size: 14px; font-style: italic; }
.ing-desc { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.chips-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.study-list { margin: 16px 0 0; }
.study { border-top: 1px solid var(--line); padding: 12px 0; }
.study summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.study summary::-webkit-details-marker { display: none; }
.study-title { font-size: 15px; margin: 0; line-height: 1.4; }
.study-meta { font-size: 12px; color: var(--muted); }
.study-summary { font-size: 13px; color: #35423d; margin: 10px 0 0; }
.study-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--brand); font-weight: 500; }
.study-link svg { flex-shrink: 0; }
.study-link:hover { color: var(--brand-deep); }
.prod-links { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.prod-link { font-size: 13px; color: var(--brand); font-weight: 500; line-height: 1.4; }
.prod-link:hover { color: var(--brand-deep); text-decoration: underline; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 32px;
  background: var(--brand-deep);
  color: #9fc2bd;
  font-size: 13px;
  flex-wrap: wrap;
  margin-top: 80px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer strong { color: #fff; font-family: "Prata", serif; font-weight: 400; font-size: 18px; }

/* Responsive */
@media (max-width: 960px) {
  .grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 80px 24px 64px; }
}

@media (max-width: 600px) {
  .grid, .products-grid { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 56px 20px; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 28px; margin-top: 40px; }
  .science-inner { padding: 44px 22px; }
  .footer { padding: 36px 22px; }
}
