:root {
  --bg: #050505;
  --panel: #0c0f0c;
  --text: #f5f7f2;
  --muted: rgba(245, 247, 242, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --green: #49b26b;
  --green-strong: #7ef0a0;
  --green-soft: #dfead8;
  --light: #f4f1e8;
  --dark-green: #102317;
  --panel-strong: rgba(255, 255, 255, 0.05);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 42px;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: grid;
  gap: 4px;
  white-space: nowrap;
}

.brand-mark {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 30px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.06em;
}

.main-nav a,
.mobile-menu a {
  position: relative;
}

.main-nav a::after,
.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.mobile-menu a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.mobile-menu {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 25;
  display: grid;
  gap: 16px;
  min-width: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 8, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.panel {
  position: relative;
}

.hero {
  min-height: 100vh;
  padding: 176px 42px 84px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74)),
    url("assets/hero-forest.png") center/cover no-repeat;
  background-size: cover;
  animation: heroBackgroundZoom 9s ease-in-out infinite alternate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: 14%;
  right: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(126, 240, 160, 0.22), transparent 68%);
  filter: blur(10px);
  opacity: 1;
  animation: heroOrbFloat 6.5s ease-in-out infinite;
}

.hero::after {
  left: -8%;
  bottom: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(73, 178, 107, 0.2), transparent 70%);
  filter: blur(18px);
  animation: heroOrbFloat 8.5s ease-in-out infinite reverse;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(126, 240, 160, 0.14), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(73, 178, 107, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(6, 9, 7, 0.48), rgba(6, 9, 7, 0.08) 55%, rgba(6, 9, 7, 0.42));
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  transition: transform 0.45s ease-out;
  animation: heroOverlayPulse 6.5s ease-in-out infinite alternate;
}

.overlay::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: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.88));
  opacity: 0.3;
  animation: heroGridDrift 14s linear infinite;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(126, 240, 160, 0.15) 49%, rgba(255, 255, 255, 0.08) 50%, transparent 62%);
  transform: translateX(-35%) skewX(-12deg);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: heroSweep 8s ease-in-out infinite;
}

.hero-content,
.section-copy,
.image-break-copy,
.metrics-copy,
.contact-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-content {
  opacity: 0;
  transform: translate3d(var(--hero-content-x, 0px), var(--hero-content-y, 0px), 0);
  transition: transform 0.45s ease-out;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow.accent {
  color: var(--green);
}

.hero h1,
.section-copy h2,
.image-break-copy h2,
.metrics-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-text,
.section-copy p,
.image-break-copy p,
.metrics-copy p,
.contact-copy p,
.card p,
.feature-item p,
.metric p,
.contact-box li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 22px 0 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 242, 0.88);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 40px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: rgba(245, 247, 242, 0.96);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #dff7e5);
  color: #061108;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.scroll-indicator {
  position: absolute;
  left: 42px;
  bottom: 28px;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.58);
  animation: scrollIndicatorFloat 2.8s ease-in-out infinite;
}

.dark-section,
.services,
.metrics,
.contact {
  padding: 124px 42px;
}

.dark-section {
  background: linear-gradient(180deg, #050505 0%, #0b140d 100%);
}

.stats-grid,
.cards,
.metrics-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid article,
.card,
.metric,
.contact-box {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.stats-grid article {
  padding: 32px;
  border-radius: 20px;
}

.stats-grid strong,
.card span {
  display: block;
  margin-bottom: 14px;
  color: var(--green-strong);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(126, 240, 160, 0.16);
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 34px 30px;
  min-height: 260px;
  border-radius: 22px;
}

.card h3,
.feature-item h3,
.metric h3 {
  margin: 0 0 14px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.image-break {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 42px 82px;
  background:
    linear-gradient(180deg, rgba(16, 35, 23, 0.08), rgba(10, 20, 14, 0.88)),
    url("assets/forest-line.jpg") center/cover no-repeat;
}

.light-section {
  padding: 124px 42px;
  color: #101010;
  background: var(--light);
}

.solution-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-item {
  padding: 30px;
  border: 1px solid rgba(16, 35, 23, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(16, 35, 23, 0.08);
}

.metrics {
  background:
    radial-gradient(circle at top right, rgba(73, 178, 107, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.92)),
    linear-gradient(135deg, #102317, #050505);
}

.metrics-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.metric {
  padding: 28px;
  border-radius: 22px;
}

.metric img {
  margin-bottom: 24px;
  border-radius: 14px;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  background: #050505;
}

.contact-box {
  padding: 32px;
  align-self: end;
  border-radius: 24px;
}

.contact-box p {
  margin-top: 0;
  color: #fff;
  font-weight: 600;
}

.consult-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-strong);
  background: rgba(255, 255, 255, 0.06);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.form-message.success {
  color: #8fe28f;
}

.form-message.error {
  color: #ff8d8d;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 42px 34px;
  border-top: 1px solid var(--line);
  background: #050505;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-loaded .hero-content {
  animation: heroContentEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes heroBackgroundZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 116%;
  }
}

@keyframes heroOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.06);
  }
}

@keyframes heroOverlayPulse {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroGridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-24px, 18px, 0);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-55%) skewX(-12deg);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.78;
  }
  100% {
    transform: translateX(55%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes heroContentEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 46px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scrollIndicatorFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero::before,
  .hero::after,
  .overlay,
  .overlay::before,
  .overlay::after,
  .scroll-indicator,
  .hero-loaded .hero-content {
    animation: none !important;
  }

  .overlay,
  .hero-content {
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .cards,
  .metrics-grid,
  .stats-grid,
  .solution-layout,
  .contact {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid .metric:first-child,
  .contact-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 20px;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-block;
  }

  .hero,
  .dark-section,
  .services,
  .image-break,
  .light-section,
  .metrics,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 150px;
    padding-bottom: 70px;
  }

  .cards,
  .metrics-grid,
  .stats-grid,
  .solution-layout,
  .contact,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-copy h2,
  .image-break-copy h2,
  .metrics-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .scroll-indicator {
    left: 20px;
  }

  .btn {
    width: 100%;
  }

  .brand {
    max-width: 70vw;
  }

  .brand-mark {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .hero-kicker {
    width: 100%;
    min-height: auto;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
  }
}
