:root {
  --ink: #07171b;
  --ink-soft: #203338;
  --paper: #f5f1e8;
  --paper-deep: #e9e1d3;
  --accent: #ff5b3d;
  --mint: #79ddd1;
  --line: rgba(7, 23, 27, 0.14);
  --white-line: rgba(255, 255, 255, 0.14);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  width: min(calc(100% - 72px), var(--max));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 7px;
  height: 18px;
  border-radius: 10px;
  background: var(--paper);
  transform-origin: 50% 7px;
}

.brand-mark span:nth-child(1) {
  transform: rotate(0deg) translateY(-8px);
}

.brand-mark span:nth-child(2) {
  transform: rotate(120deg) translateY(-8px);
}

.brand-mark span:nth-child(3) {
  transform: rotate(240deg) translateY(-8px);
}

.brand-copy {
  display: grid;
  line-height: 1;
  gap: 6px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: #617075;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #425257;
  font-size: 14px;
}

.site-nav a,
.footer-links a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.header-cta {
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  width: min(calc(100% - 72px), var(--max));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  grid-template-rows: 1fr auto;
  column-gap: 80px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  mask-image: linear-gradient(to right, transparent, #000 48%, #000 85%, transparent);
}

.hero-copy,
.hero-visual,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 84px 0 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #536368;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.58);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(56px, 6.8vw, 96px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-intro {
  max-width: 570px;
  margin: 34px 0 0;
  color: #4d5e63;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-width: 144px;
  padding: 14px 22px;
  text-align: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(255, 91, 61, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(255, 91, 61, 0.3);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.hero-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  position: relative;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(7, 23, 27, 0.22);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(255, 91, 61, 0.12);
}

.orbit-one {
  inset: 7%;
  animation: spin 24s linear infinite;
}

.orbit-one::after {
  top: 9%;
  left: 19%;
}

.orbit-two {
  inset: 19%;
  border-style: dashed;
  opacity: 0.75;
  animation: spin-reverse 18s linear infinite;
}

.orbit-two::after {
  right: 5%;
  bottom: 17%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(121, 221, 209, 0.16);
}

.visual-card {
  position: absolute;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(7, 23, 27, 0.22);
}

.card-main {
  width: 66%;
  min-height: 230px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 31px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.signal-lines {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 52px;
  margin: auto 0 26px;
}

.signal-lines i {
  width: 20%;
  display: block;
  border-radius: 8px;
  background: linear-gradient(to top, var(--accent), var(--mint));
}

.signal-lines i:nth-child(1) {
  height: 36%;
}

.signal-lines i:nth-child(2) {
  height: 62%;
}

.signal-lines i:nth-child(3) {
  height: 48%;
}

.signal-lines i:nth-child(4) {
  height: 92%;
}

.signal-lines i:nth-child(5) {
  height: 74%;
}

.card-main strong {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 31px);
}

.card-main small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.card-float {
  right: 3%;
  bottom: 13%;
  width: 128px;
  height: 128px;
  padding: 19px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--mint);
  transform: rotate(8deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-float span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card-float strong {
  align-self: flex-end;
  font-size: 42px;
  line-height: 1;
}

.visual-dot {
  position: absolute;
  border-radius: 50%;
}

.dot-one {
  top: 15%;
  right: 13%;
  width: 22px;
  height: 22px;
  background: var(--accent);
}

.dot-two {
  left: 9%;
  bottom: 22%;
  width: 11px;
  height: 11px;
  background: var(--ink);
}

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 48px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: #657277;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  padding: 130px 0;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.about-copy {
  padding-top: 43px;
  color: #4c5c61;
  font-size: 17px;
  line-height: 1.95;
}

.about-copy p:last-child {
  color: var(--ink);
  font-weight: 600;
}

.services {
  padding-top: 80px;
}

.section-heading.wide {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
}

.section-heading.wide .eyebrow {
  margin-bottom: 8px;
}

.section-heading.wide h2 {
  max-width: 750px;
}

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

.service-card {
  min-height: 410px;
  padding: 32px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  background: #fffdf7;
}

.service-card.featured {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.service-card.featured:hover {
  background: #0d2227;
}

.service-number {
  position: absolute;
  top: 31px;
  right: 31px;
  color: #77868a;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.service-card.featured .service-number {
  color: rgba(255, 255, 255, 0.46);
}

.service-icon {
  width: 58px;
  height: 58px;
  position: relative;
  margin-bottom: auto;
}

.service-icon span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.service-icon span:nth-child(1) {
  inset: 0;
}

.service-icon span:nth-child(2) {
  inset: 11px;
  background: var(--accent);
  border: 0;
}

.service-icon span:nth-child(3) {
  width: 11px;
  height: 11px;
  top: 2px;
  right: 2px;
  background: var(--mint);
  border: 0;
}

.service-card h3 {
  margin: 42px 0 15px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0 0 26px;
  color: #657277;
  font-size: 14px;
  line-height: 1.8;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.62);
}

.service-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #526267;
  font-size: 12px;
}

.service-card.featured li {
  color: rgba(255, 255, 255, 0.7);
  border-color: var(--white-line);
}

.contact-panel {
  width: min(calc(100% - 36px), 1380px);
  margin: 20px auto 86px;
  padding: clamp(48px, 7vw, 92px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: end;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, rgba(121, 221, 209, 0.19), transparent 28%),
    linear-gradient(135deg, #07171b, #123036);
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(255, 255, 255, 0.025),
    0 0 0 130px rgba(255, 255, 255, 0.02);
}

.contact-details {
  position: relative;
  z-index: 1;
}

.contact-details p {
  margin: 0 0 17px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.contact-details a {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--accent);
  font-size: clamp(19px, 2vw, 26px);
}

.contact-details small {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  padding: 32px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #69767a;
  font-size: 11px;
}

.footer-brand {
  display: grid;
  gap: 7px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 12px;
}

.footer-brand span {
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

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

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

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 40px), var(--max));
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .hero-copy {
    padding-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(50px, 11vw, 78px);
  }

  .hero-visual {
    max-width: 500px;
    justify-self: center;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 14px 28px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-copy {
    padding-top: 8px;
  }

  .section-heading.wide {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 78px;
  }

  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding: 10px 15px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 62px;
  }

  .hero h1 {
    font-size: 49px;
    letter-spacing: -0.06em;
  }

  .hero-intro {
    font-size: 15px;
    line-height: 1.8;
  }

  .button {
    min-width: 0;
    flex: 1;
    padding-inline: 14px;
  }

  .hero-visual {
    width: 112%;
    margin-left: -6%;
  }

  .card-main {
    width: 70%;
    padding: 22px;
  }

  .card-float {
    width: 96px;
    height: 96px;
    padding: 15px;
  }

  .hero-meta {
    padding-top: 20px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: 38px;
  }

  .service-card {
    padding: 27px;
  }

  .contact-panel {
    width: calc(100% - 20px);
    margin-bottom: 56px;
    padding: 44px 26px;
    border-radius: 22px;
  }

  .contact-details a {
    font-size: 17px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
