:root {
  --ink: #10241c;
  --ink-soft: #3a5348;
  --paper: #f4faf6;
  --paper-2: #e7f3ec;
  --green: #22c55e;
  --green-deep: #16a34a;
  --coral: #ff6b3d;
  --coral-deep: #e85428;
  --line: rgba(16, 36, 28, 0.1);
  --max: 1180px;
  --nav-h: 76px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --font-en: "Outfit", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(244, 250, 246, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 250, 246, 0.94);
  box-shadow: 0 8px 24px rgba(16, 36, 28, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.brand svg,
.hero-kicker svg,
.footer-brand svg {
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-kicker svg {
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-deep);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: #1a3830 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(34, 197, 94, 0.2), transparent 58%),
    radial-gradient(ellipse 45% 40% at 50% 88%, rgba(255, 107, 61, 0.08), transparent 55%),
    linear-gradient(180deg, #eaf7ef 0%, var(--paper) 52%, #e3f3ea 100%);
}

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

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 36, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 28, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
  animation: grid-shift 36s linear infinite;
}

@keyframes grid-shift {
  to {
    transform: translateY(56px);
  }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-glow--green {
  width: min(56vw, 480px);
  height: min(56vw, 480px);
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 68%);
  animation: float-a 10s ease-in-out infinite;
}

.hero-glow--coral {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 107, 61, 0.16), transparent 70%);
  animation: float-b 12s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translateX(-50%) translate(0, 0);
  }
  50% {
    transform: translateX(-50%) translate(0, 14px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateX(-50%) translate(0, 0);
  }
  50% {
    transform: translateX(-50%) translate(0, -10px);
  }
}

.hero-frame {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.8s 0.05s ease both;
}

.hero-kicker img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: rise 0.85s 0.15s ease both;
}

.hero-tagline {
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: rise 0.85s 0.25s ease both;
}

.hero-lead {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.85s 0.35s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.85s 0.45s ease both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 107, 61, 0.28);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green-deep);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section-head--center {
  text-align: center;
  margin: 0 auto 3rem;
}

.section-head--center .section-desc {
  margin: 0 auto;
}

/* —— About —— */
.section-about {
  background: #fff;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-points {
  display: grid;
  gap: 0;
}

.point {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.point:last-child {
  border-bottom: 1px solid var(--line);
}

.point h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* —— Services —— */
.section-services {
  background:
    linear-gradient(180deg, #10241c 0%, #16352a 100%);
  color: #f3faf6;
}

.section-services .section-label {
  color: #6ee7a0;
}

.section-services .section-title {
  color: #fff;
}

.section-services .section-desc {
  color: rgba(243, 250, 246, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(243, 250, 246, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.service:hover {
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.service-no {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6ee7a0;
}

.service h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.service p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(243, 250, 246, 0.7);
}

/* —— Contact —— */
.section-contact {
  background: var(--paper-2);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  border-top: 1px solid var(--line);
}

.contact-list .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.contact-list .value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
  word-break: break-word;
}

.contact-list a.value:hover {
  color: var(--green-deep);
}

/* —— Footer —— */
.site-footer {
  padding: 2.75rem clamp(1.25rem, 4vw, 3.5rem) 2.25rem;
  background: #0a1712;
  color: rgba(243, 250, 246, 0.68);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-brand strong {
  display: block;
  color: #f3faf6;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand span {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 250, 246, 0.45);
}

.footer-meta a:hover {
  color: #6ee7a0;
}

.icp-slot {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 250, 246, 0.1);
  color: rgba(243, 250, 246, 0.4);
  font-size: 0.84rem;
}

.icp-link {
  color: rgba(243, 250, 246, 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.icp-link:hover {
  color: #6ee7a0;
  border-bottom-color: rgba(110, 231, 160, 0.45);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .about-grid,
  .service-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
    min-height: auto;
  }

  .section-head--center {
    text-align: left;
  }

  .section-head--center .section-desc {
    margin: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .brand-en {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(244, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }

  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero-title {
    letter-spacing: 0.04em;
  }
}
