:root {
  --ink: #141c1a;
  --ink-soft: #44524d;
  --muted: #6f7d76;
  --paper: #edf2f0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --line: rgba(20, 28, 26, 0.09);
  --forest: #1b6a54;
  --forest-deep: #124c3d;
  --forest-soft: rgba(27, 106, 84, 0.1);
  --chestnut: #9a5630;
  --header-h: 4.25rem;
  --radius: 1.35rem;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(20, 28, 26, 0.08);
  --shadow-hover: 0 24px 56px rgba(20, 28, 26, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #e8efec;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -5%, rgba(27, 106, 84, 0.18), transparent 55%),
    radial-gradient(780px 480px at 92% 8%, rgba(154, 86, 48, 0.12), transparent 50%),
    radial-gradient(700px 420px at 50% 100%, rgba(27, 106, 84, 0.08), transparent 55%),
    linear-gradient(180deg, #f3f7f5 0%, var(--paper) 45%, #e4ebe8 100%);
}

.page-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 28, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 26, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 10%, transparent 75%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(243, 247, 245, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 247, 245, 0.9);
  box-shadow: 0 8px 28px rgba(20, 28, 26, 0.04);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 28% 28%, #e0b08a, transparent 42%),
    linear-gradient(145deg, var(--chestnut), #6f3a1f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 6px 14px rgba(154, 86, 48, 0.28);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--forest-deep);
  outline: none;
}

.site-nav a.is-active {
  background: var(--surface-strong);
  color: var(--forest-deep);
  box-shadow: 0 6px 16px rgba(20, 28, 26, 0.06);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.75rem;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle span + span {
  margin-top: 0.35rem;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Intro + Products */
.products {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.intro {
  margin-bottom: 2.25rem;
  max-width: 38rem;
  animation: rise 0.75s var(--ease) both;
}

.intro-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.08;
  color: var(--ink);
}

.intro h1 {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--forest);
}

.intro h1::before {
  content: "";
  width: 1.65rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), transparent);
}

.intro-desc {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(22px);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.product-tile.is-inview {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i) * 55ms);
}

.product-tile:hover,
.product-tile:focus-within {
  transform: translateY(-5px);
  background: var(--surface-strong);
  border-color: rgba(27, 106, 84, 0.16);
  box-shadow: var(--shadow-hover);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-icon {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(20, 28, 26, 0.12);
  transition: transform 0.28s var(--ease);
}

.product-tile:hover .product-icon {
  transform: scale(1.04) rotate(-1.5deg);
}

.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.product-tile h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.product-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Contact */
.contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    linear-gradient(145deg, rgba(27, 106, 84, 0.16), transparent 42%),
    linear-gradient(320deg, rgba(154, 86, 48, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.contact-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 106, 84, 0.18), transparent 70%);
  pointer-events: none;
}

.section-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}

.contact-copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.contact-mail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label arrow"
    "value arrow";
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border-radius: 1.1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.contact-mail:hover,
.contact-mail:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.contact-mail-label {
  grid-area: label;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-mail-value {
  grid-area: value;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 600;
  color: var(--forest-deep);
  word-break: break-all;
}

.contact-mail-arrow {
  grid-area: arrow;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest-deep);
  font-size: 1.1rem;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.contact-mail:hover .contact-mail-arrow {
  transform: translateX(3px);
  background: rgba(27, 106, 84, 0.18);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.9rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand {
  margin: 0 0 0.3rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-inner a:hover {
  color: var(--forest-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro,
  .product-tile {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + 0.5rem) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.65rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav a.is-active {
    background: var(--forest-soft);
    box-shadow: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .intro-brand {
    letter-spacing: 0.06em;
  }

  .product-icon {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1rem;
  }
}
