:root {
  --bg: #080706;
  --bg-soft: #11100f;
  --panel: rgba(22, 20, 18, 0.74);
  --line: rgba(231, 180, 102, 0.18);
  --text: #f4efe7;
  --muted: #b9ada0;
  --dim: #807468;
  --ember: #e05f2d;
  --gold: #d8a75d;
  --ash: #2b2a28;
  --green: #8aa394;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(194, 80, 37, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(138, 163, 148, 0.12), transparent 28rem),
    linear-gradient(180deg, #070605 0%, #11100e 44%, #090807 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

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

button,
input,
textarea {
  font: inherit;
}

#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 6, 5, 0.76);
  border-bottom-color: rgba(216, 167, 93, 0.16);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 167, 93, 0.58);
  background:
    radial-gradient(circle at 50% 70%, rgba(224, 95, 45, 0.96), transparent 38%),
    linear-gradient(135deg, rgba(216, 167, 93, 0.2), rgba(138, 163, 148, 0.08));
  transform: rotate(45deg);
}

.brand-mark::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(244, 239, 231, 0.44);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.section-band {
  position: relative;
  padding: clamp(78px, 11vw, 140px) clamp(18px, 4vw, 52px);
}

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

.hero {
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding-top: 104px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(8, 7, 6, 0.92));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  position: absolute;
  right: -12vw;
  bottom: -16vw;
  width: min(760px, 76vw);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(216, 167, 93, 0.12);
  background:
    radial-gradient(circle at 50% 54%, rgba(224, 95, 45, 0.24), transparent 18%),
    radial-gradient(circle at 50% 62%, rgba(216, 167, 93, 0.12), transparent 34%),
    conic-gradient(from 20deg, transparent, rgba(216, 167, 93, 0.08), transparent, rgba(138, 163, 148, 0.08), transparent);
  border-radius: 50%;
  filter: blur(1px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-copy,
.section-heading p,
.contact p {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.85;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #130d08;
  background: linear-gradient(135deg, #f0bd6a, #e36c37 58%, #c54f2d);
  font-weight: 700;
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(216, 167, 93, 0.42);
  background: rgba(8, 7, 6, 0.44);
}

.bonfire {
  position: absolute;
  right: clamp(20px, 11vw, 180px);
  bottom: clamp(40px, 9vw, 120px);
  width: min(340px, 48vw);
  aspect-ratio: 0.58;
  filter: drop-shadow(0 0 48px rgba(224, 95, 45, 0.42));
}

.bonfire::before {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 0;
  width: 96%;
  height: 16%;
  content: "";
  background:
    radial-gradient(ellipse at 50% 42%, rgba(241, 238, 220, 0.7), rgba(126, 119, 105, 0.44) 35%, transparent 36%),
    radial-gradient(ellipse at center, rgba(255, 129, 45, 0.34), rgba(224, 95, 45, 0.12) 42%, transparent 72%);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(1px);
}

.bonfire::after {
  position: absolute;
  left: 50%;
  bottom: -1%;
  z-index: 1;
  width: 98%;
  height: 18%;
  content: "";
  background:
    radial-gradient(ellipse at 18% 45%, #d7d1c5 0 6%, transparent 7%),
    radial-gradient(ellipse at 38% 34%, #413d37 0 5%, transparent 6%),
    radial-gradient(ellipse at 62% 42%, #e4ded0 0 6%, transparent 7%),
    radial-gradient(ellipse at 78% 48%, #2b2824 0 5%, transparent 6%),
    linear-gradient(180deg, #b8b09e 0%, #625844 42%, #302515 72%, #17100b 100%);
  border: 1px solid rgba(216, 167, 93, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 12px 18px rgba(255, 255, 255, 0.16), inset 0 -12px 18px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
}

.coiled-sword {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 5;
  width: 30%;
  height: 92%;
  transform: translateX(-50%) rotate(-2deg);
  transform-origin: 50% 96%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.56));
}

.sword-blade {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 14%;
  height: 76%;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.72), rgba(221, 155, 83, 0.42) 29%, rgba(235, 193, 122, 0.76) 46%, rgba(26, 24, 22, 0.92) 54%, rgba(132, 79, 42, 0.6) 75%, rgba(4, 4, 4, 0.88)),
    linear-gradient(180deg, #090807 0%, #363028 18%, #b76435 37%, #2b2420 58%, #100d0b 100%);
  clip-path: polygon(47% 0, 58% 3%, 64% 100%, 35% 100%, 41% 3%);
  transform: translateX(-50%);
}

.sword-blade::after {
  position: absolute;
  left: 48%;
  top: 7%;
  width: 9%;
  height: 88%;
  content: "";
  background: linear-gradient(180deg, rgba(255, 233, 180, 0.5), rgba(255, 133, 57, 0.12), transparent);
  transform: translateX(-50%);
}

.sword-ridge {
  position: absolute;
  left: 50%;
  width: 21%;
  height: 15%;
  border-left: 4px solid rgba(16, 14, 13, 0.88);
  border-right: 2px solid rgba(230, 137, 70, 0.36);
  border-radius: 50%;
  transform: translateX(-50%) rotate(24deg);
}

.ridge-a {
  top: 34%;
}

.ridge-b {
  top: 46%;
  transform: translateX(-50%) rotate(-23deg);
}

.ridge-c {
  top: 58%;
}

.sword-guard {
  position: absolute;
  left: 50%;
  bottom: 72%;
  width: 78%;
  height: 7%;
  content: "";
  background:
    radial-gradient(ellipse at 50% 70%, rgba(235, 125, 58, 0.9), transparent 42%),
    linear-gradient(90deg, #080706, #4a3728 38%, #a36c3d 50%, #3a2b22 62%, #070605);
  border: 1px solid rgba(225, 170, 83, 0.26);
  clip-path: polygon(0 20%, 38% 0, 50% 38%, 62% 0, 100% 20%, 82% 100%, 18% 100%);
  transform: translateX(-50%) rotate(1deg);
}

.sword-grip {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13%;
  height: 24%;
  content: "";
  background:
    repeating-linear-gradient(180deg, rgba(9, 8, 7, 0.86) 0 7px, rgba(112, 78, 47, 0.82) 7px 12px),
    linear-gradient(90deg, #070605, #7a5433, #070605);
  border: 1px solid rgba(216, 167, 93, 0.22);
  transform: translateX(-50%);
}

.sword-grip::after {
  position: absolute;
  left: 50%;
  top: -28%;
  width: 152%;
  aspect-ratio: 0.78;
  height: auto;
  content: "";
  background: radial-gradient(circle at 50% 50%, transparent 34%, #a46b3b 37% 49%, #0b0908 54% 72%, transparent 75%);
  border: 1px solid rgba(216, 167, 93, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
}

.flame,
.flame-tongue,
.coal {
  position: absolute;
  display: block;
  left: 50%;
  bottom: 24%;
  transform-origin: 50% 100%;
}

.flame {
  z-index: 2;
  width: 34%;
  height: 31%;
  border-radius: 70% 30% 70% 30%;
  background:
    radial-gradient(circle at 54% 18%, rgba(255, 244, 192, 0.94), transparent 28%),
    linear-gradient(180deg, #ffe1a3, #ef7a36 54%, rgba(176, 42, 24, 0.2));
  mix-blend-mode: screen;
  animation: flame 2.2s ease-in-out infinite;
}

.flame-tongue {
  z-index: 4;
  bottom: 6%;
  width: 11%;
  height: 28%;
  background:
    radial-gradient(circle at 42% 35%, rgba(255, 232, 142, 0.82), transparent 20%),
    linear-gradient(180deg, rgba(255, 183, 82, 0.92), rgba(211, 68, 32, 0.82) 60%, rgba(93, 29, 19, 0.1));
  clip-path: polygon(44% 0, 72% 26%, 60% 58%, 100% 100%, 45% 82%, 0 100%, 28% 52%, 16% 24%);
  filter: drop-shadow(0 0 10px rgba(236, 94, 39, 0.5));
  transform-origin: 50% 100%;
  animation: tongue 1.8s ease-in-out infinite;
}

.tongue-a {
  transform: translateX(-176%) rotate(-30deg);
}

.tongue-b {
  height: 35%;
  transform: translateX(-84%) rotate(-10deg);
  animation-delay: -0.45s;
}

.tongue-c {
  height: 32%;
  transform: translateX(10%) rotate(16deg);
  animation-delay: -0.8s;
}

.tongue-d {
  width: 9%;
  height: 25%;
  transform: translateX(126%) rotate(34deg);
  animation-delay: -1.15s;
}

.flame-a {
  bottom: 8%;
  transform: translateX(-50%) rotate(45deg);
}

.flame-b {
  bottom: 9%;
  width: 25%;
  height: 35%;
  opacity: 0.86;
  animation-delay: -0.8s;
  transform: translateX(-92%) rotate(38deg);
}

.flame-c {
  bottom: 7%;
  width: 24%;
  height: 34%;
  opacity: 0.74;
  animation-delay: -1.4s;
  transform: translateX(-12%) rotate(52deg);
}

.coal {
  z-index: 3;
  width: 44%;
  height: 5%;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.9), rgba(6, 5, 4, 0.1), rgba(6, 5, 4, 0.88)),
    linear-gradient(90deg, #191614, #7d3521, #171412);
  border: 1px solid rgba(216, 167, 93, 0.16);
}

.coal-a {
  bottom: 10%;
  transform: translateX(-50%) rotate(16deg);
}

.coal-b {
  bottom: 11%;
  transform: translateX(-52%) rotate(-16deg);
}

.coal-c {
  width: 34%;
  bottom: 7%;
  transform: translateX(-50%) rotate(0deg);
}

@keyframes flame {
  0%,
  100% {
    border-radius: 68% 32% 72% 28%;
    filter: brightness(1);
  }
  50% {
    border-radius: 46% 54% 68% 32%;
    filter: brightness(1.18);
  }
}

@keyframes tongue {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(236, 94, 39, 0.5));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(255, 150, 58, 0.68));
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 260px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(14, 13, 12, 0.88);
}

.service-index {
  display: block;
  margin-bottom: 54px;
  color: var(--gold);
  font-size: 13px;
}

.service-card p,
.timeline p,
.solution-detail p,
.solution-item small,
.form-note {
  color: var(--muted);
  line-height: 1.75;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  background: rgba(14, 13, 12, 0.86);
}

.timeline span {
  color: var(--gold);
  font-weight: 700;
}

.timeline p {
  margin-bottom: 0;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.solution-item {
  min-height: 108px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(216, 167, 93, 0.16);
  background: rgba(15, 14, 13, 0.76);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.solution-item:hover,
.solution-item:focus-visible,
.solution-item.is-active {
  border-color: rgba(224, 95, 45, 0.72);
  background: rgba(36, 24, 18, 0.92);
  transform: translateY(-2px);
}

.solution-item span,
.solution-item small {
  display: block;
}

.solution-item span {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.solution-detail {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(216, 167, 93, 0.2);
  background:
    linear-gradient(135deg, rgba(224, 95, 45, 0.16), transparent 42%),
    rgba(12, 11, 10, 0.9);
}

.solution-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.solution-detail h3 {
  font-size: clamp(25px, 3vw, 38px);
}

.contact {
  padding-bottom: clamp(90px, 12vw, 150px);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(216, 167, 93, 0.18);
  background: rgba(12, 11, 10, 0.86);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--gold);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(216, 167, 93, 0.18);
  outline: none;
  background: rgba(5, 5, 4, 0.72);
}

.contact-form input {
  height: 46px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 126px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(224, 95, 45, 0.78);
}

.form-note {
  min-height: 24px;
  margin: 0;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(216, 167, 93, 0.14);
  background: #050504;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 52px);
  color: var(--dim);
  font-size: 14px;
}

.footer-inner p {
  margin-bottom: 0;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .bonfire {
    right: -18vw;
    bottom: 4vw;
    width: 56vw;
    opacity: 0.62;
  }

  .service-grid,
  .solution-list,
  .split-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand strong {
    max-width: 240px;
    white-space: normal;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    margin-left: auto;
  }

  h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 220px;
  }

  .service-index {
    margin-bottom: 34px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
