:root {
  --brand: #ea4236;
  --brand-dark: #c9271d;
  --ink: #171922;
  --muted: #636775;
  --line: #eceef3;
  --soft: #f7f8fb;
  --warm: #fff6f2;
  --navy: #222642;
  --amber: #ff9f1a;
  --shadow: 0 22px 70px rgba(23, 25, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 8% 16%, rgba(234, 66, 54, 0.09), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 48%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(236, 238, 243, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 66px;
  box-shadow: 0 10px 30px rgba(23, 25, 34, 0.07);
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 17px;
  font-weight: 800;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #2b2f3c;
  font-size: 15px;
  font-weight: 600;
}

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

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
}

.section-anchor {
  scroll-margin-top: 88px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 100vh;
  padding: 126px clamp(20px, 5vw, 72px) 70px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 17%;
  right: 5%;
  width: 34vw;
  max-width: 520px;
  aspect-ratio: 1;
  background:
    linear-gradient(rgba(234, 66, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 66, 54, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 0 45%, transparent 72%);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(38px, 4.5vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

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

.primary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(234, 66, 54, 0.28);
}

.primary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--brand-dark);
  box-shadow: 0 20px 42px rgba(234, 66, 54, 0.34);
}

.text-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

button.primary-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 42px;
}

.hero-metrics span {
  min-height: 78px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 238, 243, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 25, 34, 0.05);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual img {
  width: min(100%, 760px);
  margin-left: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  animation: floatVisual 6s ease-in-out infinite;
}

.signal-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: 178px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 238, 243, 0.95);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 25, 34, 0.12);
  backdrop-filter: blur(10px);
  animation: floatSignalCard 6s ease-in-out infinite;
}

.signal-card-one {
  top: -38px;
  left: 0;
  min-width: 218px;
}

.signal-card strong {
  color: var(--brand);
  font-size: 18px;
}

.signal-card span {
  color: var(--muted);
  font-size: 13px;
}

.signal-card-two {
  right: 3%;
  bottom: -38px;
  animation-delay: -2.2s;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: min(1120px, 100%);
  margin-bottom: 42px;
}

.section-heading h2,
.service-content h2,
.vision-copy h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.service-content p:not(.eyebrow),
.vision-copy p:not(.eyebrow),
.about-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.about-copy h2 {
  font-size: clamp(24px, 3.7vw, 56px);
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.case-card,
.product-panel,
.ai-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 25, 34, 0.06);
}

.feature-card {
  min-height: 230px;
  padding: 26px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover,
.case-card:hover {
  border-color: rgba(234, 66, 54, 0.24);
  box-shadow: 0 22px 58px rgba(23, 25, 34, 0.1);
  transform: translateY(-5px);
}

.feature-card span {
  color: rgba(234, 66, 54, 0.22);
  font-size: 42px;
  font-weight: 800;
}

.feature-card h3,
.product-list h3,
.ai-panel h3,
.case-card h3,
.contact-form h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.feature-card p,
.product-list p,
.ai-panel p,
.case-card p {
  color: var(--muted);
  line-height: 1.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.products {
  background:
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%),
    radial-gradient(circle at 95% 5%, rgba(255, 159, 26, 0.12), transparent 28rem);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
}

.product-panel,
.ai-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
}

.product-panel::before,
.ai-panel::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  content: "";
}

.panel-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-topline span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  font-size: 28px;
}

.product-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.product-list article {
  padding: 18px;
  background: var(--soft);
  border-radius: 8px;
}

.product-list h3 {
  margin-top: 0;
}

.product-list p,
.ai-panel p,
.case-card p {
  margin-bottom: 0;
}

.ai-panel {
  color: #fff;
  background:
    linear-gradient(145deg, #252944 0%, #171922 64%),
    var(--navy);
}

.ai-panel .eyebrow,
.ai-panel h3 {
  color: #fff;
}

.ai-panel h3 {
  max-width: 560px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
}

.ai-panel p,
.ai-panel li {
  color: rgba(255, 255, 255, 0.74);
}

.ai-panel ul {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ai-panel li {
  position: relative;
  padding-left: 26px;
}

.ai-panel li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(234, 66, 54, 0.18);
  content: "";
}

.ai-orbit {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: rotateOrbit 16s linear infinite;
}

.ai-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
}

.ai-orbit span:nth-child(1) {
  top: 20px;
  left: 52%;
}

.ai-orbit span:nth-child(2) {
  right: 18px;
  top: 52%;
  background: var(--amber);
}

.ai-orbit span:nth-child(3) {
  bottom: 34px;
  left: 26%;
  background: #fff;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
  margin: 32px clamp(20px, 5vw, 72px);
  padding: clamp(34px, 5vw, 60px);
  background:
    linear-gradient(120deg, rgba(234, 66, 54, 0.95), rgba(201, 39, 29, 0.96)),
    var(--brand);
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.service-content .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.service-content p:not(.eyebrow) {
  color: #fff;
}

.service-content h2 {
  color: #fff;
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-steps span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  min-height: 250px;
  padding: 28px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.case-card span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.vision {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 42px;
  align-items: center;
  background: var(--soft);
}

.vision-copy {
  max-width: 760px;
}

.vision-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 25, 34, 0.1);
}

.vision-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.vision-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #fff8f5 100%),
    radial-gradient(circle at 90% 16%, rgba(234, 66, 54, 0.1), transparent 30rem);
}

.about::before {
  position: absolute;
  top: 0;
  right: clamp(20px, 5vw, 72px);
  left: clamp(20px, 5vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 66, 54, 0.22), transparent);
  content: "";
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: start;
}

.about-copy {
  max-width: 860px;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 22px;
  min-height: 100%;
  padding: clamp(28px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 25, 34, 0.08);
}

.contact-form::before {
  width: 46px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  border-radius: 999px;
  content: "";
}

.contact-form h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.contact-row {
  display: grid;
  gap: 12px;
}

.contact-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid rgba(210, 214, 224, 0.9);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-row input:focus {
  border-color: rgba(234, 66, 54, 0.55);
  box-shadow: 0 0 0 4px rgba(234, 66, 54, 0.1);
}

.contact-row input[aria-invalid="true"] {
  border-color: rgba(234, 66, 54, 0.75);
  box-shadow: 0 0 0 4px rgba(234, 66, 54, 0.12);
}

.contact-row .primary-button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 34, 0.38);
  backdrop-filter: blur(10px);
}

.demo-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
}

.modal-contact-form {
  min-height: auto;
}

.modal-helper {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  content: "";
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 25, 34, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top span {
  font-size: 17px;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand);
  box-shadow: 0 20px 48px rgba(234, 66, 54, 0.28);
}

.site-footer {
  display: grid;
  gap: 20px;
  padding: 32px clamp(20px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-legal {
  margin: 0;
  color: #8b909c;
  font-size: 13px;
  line-height: 1.6;
}

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

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

@keyframes floatVisual {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-12px);
  }
}

@keyframes floatSignalCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .product-layout,
  .service-band,
  .vision,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-visual img {
    margin: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

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

  .hero-metrics,
  .feature-grid,
  .case-grid,
  .service-steps {
    grid-template-columns: 1fr;
  }

  .signal-card {
    position: relative;
    display: inline-grid;
    margin: 12px 10px 0 0;
  }

  .signal-card-one,
  .signal-card-two {
    inset: auto;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .panel-topline,
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-band {
    margin-right: 20px;
    margin-left: 20px;
  }

  .contact-form,
  .contact-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-row {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
