:root {
  --bg: #0f1a17;
  --bg-elevated: #16241f;
  --ink: #f3f6f4;
  --ink-muted: rgba(243, 246, 244, 0.72);
  --accent: #c8a35a;
  --accent-soft: rgba(200, 163, 90, 0.18);
  --line: rgba(243, 246, 244, 0.12);
  --forest: #2f6b57;
  --forest-deep: #1c3d33;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 107, 87, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(200, 163, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #0c1412 0%, var(--bg) 40%, #0b1210 100%);
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(12, 20, 18, 0.88), rgba(12, 20, 18, 0));
  backdrop-filter: blur(8px);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.nav__links a {
  transition: color 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding:
    clamp(6rem, 14vh, 8rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(4rem, 10vh, 6rem);
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 246, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 244, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero__orb--a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: -6%;
  top: 12%;
  background:
    radial-gradient(circle at 35% 35%, rgba(200, 163, 90, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(47, 107, 87, 0.7), transparent 60%);
  animation: float-a 12s var(--ease) infinite alternate;
}

.hero__orb--b {
  width: min(34vw, 340px);
  height: min(34vw, 340px);
  right: 18%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 40%, rgba(243, 246, 244, 0.16), transparent 65%);
  animation: float-b 10s var(--ease) infinite alternate;
}

.hero__line {
  position: absolute;
  left: 8%;
  top: 18%;
  width: 1px;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.55;
  animation: line-pulse 4.5s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: rise 1s var(--ease) both;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--accent);
  color: #1a1408;
  font-weight: 500;
}

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

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(243, 246, 244, 0.03);
}

.btn--ghost:hover {
  border-color: rgba(243, 246, 244, 0.28);
  background: rgba(243, 246, 244, 0.06);
}

.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7rem) 0;
  border-top: 1px solid var(--line);
  animation: rise 0.9s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.section__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
}

.section__text {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.service-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-list h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.service-list p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.35rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__copy,
.footer__icp {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer__icp {
  transition: color 0.2s var(--ease);
}

.footer__icp:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-18px, 22px) scale(1.04);
  }
}

@keyframes float-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(16px, -20px);
  }
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 0.7;
    transform: scaleY(1);
  }
}

@keyframes grid-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(72px);
  }
}

@media (max-width: 640px) {
  .nav__links {
    gap: 1rem;
    font-size: 0.86rem;
  }

  .hero {
    align-items: center;
  }

  .hero__line {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__grid,
  .hero__orb,
  .hero__line,
  .hero__content,
  .section {
    animation: none;
  }
}
