:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #edf3ec;
  --ink: #202722;
  --muted: #65706b;
  --line: #dfe7df;
  --green: #3f7a62;
  --green-dark: #284f42;
  --brass: #c98246;
  --graphite: #232a26;
  --shadow: 0 24px 70px rgba(41, 52, 45, 0.16);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(229, 238, 228, 0.88), rgba(247, 248, 244, 0) 420px),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

code {
  border: 1px solid #d7e3df;
  border-radius: 6px;
  background: #fbfcfa;
  color: #2b4438;
  padding: 0.14rem 0.38rem;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 231, 223, 0.82);
  background: rgba(247, 248, 244, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 230px;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
}

.section-band {
  padding: clamp(56px, 8vw, 108px) clamp(20px, 4vw, 56px);
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 34px;
  color: var(--green-dark);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 36px;
  font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  letter-spacing: 0;
  line-height: 1.14;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.primary-button {
  gap: 10px;
  padding: 0 22px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 34px rgba(63, 122, 98, 0.24);
}

.button-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 6% -2% -5% 6%;
  border-radius: 8px;
  background: #dfe9dd;
  content: "";
  transform: rotate(-2deg);
}

.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 56px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.product-section .eyebrow {
  margin-bottom: 32px;
  font-size: 1.08rem;
}

.product-section {
  background: var(--surface);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.category-card,
.tutorial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-card {
  min-height: 158px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.category-card:hover,
.category-card.active {
  border-color: rgba(63, 122, 98, 0.48);
  box-shadow: 0 14px 34px rgba(41, 52, 45, 0.1);
  transform: translateY(-2px);
}

.category-card span {
  display: inline-flex;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--brass);
  color: var(--green-dark);
  font-weight: 900;
}

.category-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.product-toolbar strong,
.product-toolbar span {
  display: block;
}

.product-toolbar span {
  color: var(--muted);
  font-size: 0.94rem;
}

.search-box {
  display: grid;
  min-width: min(380px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfcfa;
  color: var(--ink);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tutorial-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tutorial-card:hover,
.tutorial-card.active {
  border-color: rgba(63, 122, 98, 0.5);
  box-shadow: 0 14px 34px rgba(41, 52, 45, 0.1);
  transform: translateY(-2px);
}

.tutorial-card .tag {
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf3ec;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.tutorial-card h3 {
  margin-bottom: 8px;
}

.tutorial-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.video-section {
  background: #fbfcfa;
}

.video-layout {
  display: block;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101715;
  box-shadow: var(--shadow);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101715;
}

.video-missing {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(13, 22, 20, 0.78);
  color: #fff;
  backdrop-filter: blur(12px);
}

.video-missing span {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  text-align: right;
}

.video-missing.is-hidden {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .category-grid,
  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 760px;
  }

}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    display: none;
  }

  .section-band {
    padding: 46px 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .category-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .video-missing {
    position: static;
    flex-direction: column;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
  }

  .video-missing span {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}
