@font-face {
  font-family: "Newg Sans";
  src:
    url("./assets/fonts/newg-sans-300.woff2") format("woff2"),
    local("Noto Sans CJK SC DemiLight"),
    local("Noto Sans CJK SC Light");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newg Sans";
  src:
    url("./assets/fonts/newg-sans-300.woff2") format("woff2"),
    local("Noto Sans CJK SC Light"),
    local("Noto Sans CJK SC");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newg Sans";
  src:
    url("./assets/fonts/newg-sans-500.woff2") format("woff2"),
    local("Noto Sans CJK SC Medium"),
    local("Noto Sans CJK SC");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newg Sans";
  src:
    url("./assets/fonts/newg-sans-700.woff2") format("woff2"),
    local("Noto Sans CJK SC Bold"),
    local("Noto Sans CJK SC Medium"),
    local("Noto Sans CJK SC");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #f5f8fd;
  --hero-bg: #061c3a;
  --hero-line: rgba(79, 122, 186, 0.26);
  --nav-line: rgba(125, 159, 214, 0.24);
  --blue: #2e7ef7;
  --blue-deep: #1f69e7;
  --text: #16345f;
  --text-strong: #0f2d58;
  --text-soft: #5f78a0;
  --line: #e5edf8;
  --card-shadow: 0 22px 56px rgba(25, 74, 145, 0.08);
  --footer-bg: #071b38;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #f5f8fd 100%);
  color: var(--text);
  font-family: "Newg Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
a {
  font: inherit;
}

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

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

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

.wrap {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 21, 45, 0.98);
  border-bottom: 1px solid var(--nav-line);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand img {
  width: 176px;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-menu a {
  position: relative;
  color: rgba(234, 241, 255, 0.94);
  font-size: 14px;
  font-weight: 500;
  line-height: 84px;
  letter-spacing: 0.1px;
}

.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
}

.nav-menu .nav-cta {
  line-height: 1;
  padding: 13px 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #418dfb 0%, #2f78f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #061b39;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 25, 54, 0.96) 0%, rgba(5, 25, 54, 0.9) 42%, rgba(8, 31, 67, 0.7) 73%, rgba(9, 34, 74, 0.7) 100%),
    url("./assets/refcuts/hero-bg.png") center top / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(8, 27, 57, 0) 0%, rgba(8, 27, 57, 0.58) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: 406px 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 12px;
}

.hero-copy {
  padding-top: 2px;
  padding-left: 0;
}

.hero-copy h1 {
  color: #fff;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.42px;
}

.hero-copy p {
  margin-top: 17px;
  color: rgba(226, 235, 248, 0.84);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: -0.08px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.btn {
  min-width: 146px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3f90ff 0%, #2f79f5 100%);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(168, 196, 235, 0.66);
  background: rgba(8, 24, 49, 0.26);
}

.hero-visual {
  position: relative;
  height: 384px;
}

.hero-screen {
  position: absolute;
  right: 8px;
  top: -2px;
  width: 618px;
  max-width: none;
}

.hero-float {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(4, 17, 40, 0.24);
}

.hero-float-top {
  right: 18px;
  top: -16px;
  width: 160px;
}

.hero-float-bottom {
  left: 20px;
  bottom: 22px;
  width: 114px;
}

.hero-tags {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  height: 56px;
  margin-top: -10px;
  border: 1px solid rgba(90, 124, 175, 0.16);
  border-radius: 0 0 10px 10px;
  background: rgba(3, 17, 36, 0.18);
  backdrop-filter: blur(2px);
}

.hero-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(244, 248, 255, 0.92);
  font-size: 13px;
  font-weight: 300;
  border-right: 1px solid rgba(90, 124, 175, 0.16);
}

.hero-tags span img {
  width: 18px;
  height: 18px;
  object-fit: cover;
}

.hero-tags span:last-child {
  border-right: 0;
}

.intro,
.cases,
.ability {
  background:
    radial-gradient(circle at 50% 0, rgba(81, 145, 255, 0.16), transparent 44%),
    linear-gradient(180deg, #f7fbff 0%, #f5f8fd 100%);
}

.intro {
  padding: 36px 0 38px;
}

.intro h2,
.cases h2,
.ability h2 {
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -0.18px;
  text-align: center;
}

.intro > .wrap > p {
  margin-top: 8px;
  color: #6b84ab;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.solution-card,
.ability-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 231, 247, 0.86);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(25, 74, 145, 0.06);
}

.solution-card {
  min-height: 236px;
  padding: 24px 22px 24px;
}

.solution-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}

.solution-icon img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.solution-card h3 {
  margin-top: 16px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.solution-card p {
  margin-top: 12px;
  color: #6780a4;
  font-size: 12px;
  line-height: 1.9;
  font-weight: 300;
}

.solution-card a,
.case-content a {
  display: inline-block;
  margin-top: 12px;
  color: #3a82f5;
  font-size: 12px;
  font-weight: 600;
}

.cases {
  padding: 12px 0 34px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-row h2 {
  text-align: left;
}

.section-row a {
  color: #3b82f4;
  font-size: 12px;
  font-weight: 600;
}

.case-card {
  display: grid;
  grid-template-columns: 548px 1fr;
  align-items: stretch;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 231, 247, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.case-card.reverse {
  grid-template-columns: 1fr 548px;
}

.case-card:nth-child(3),
.case-card:nth-child(5) {
  grid-template-columns: 1fr 540px;
}

.case-image {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center;
}

.case-card:nth-child(3) .case-image {
  object-position: 46% center;
}

.case-card:nth-child(7) .case-image {
  object-position: 56% center;
}

.case-content {
  padding: 15px 20px;
}

.case-index {
  color: #2f77ef;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.case-content h3 {
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.case-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #7a9cca;
  font-size: 10px;
  line-height: 1;
}

.case-content p {
  margin-top: 8px;
  color: #5f789d;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
}

.ability {
  padding: 14px 0 54px;
}

.ability h2 {
  text-align: left;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 18px;
  margin-top: 20px;
}

.ability-card {
  min-height: 112px;
  padding: 20px 18px 20px;
}

.ability-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}

.ability-icon img {
  width: 26px;
  height: 26px;
  object-fit: cover;
}

.ability-card h3 {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.08px;
}

.ability-card p {
  margin-top: 8px;
  color: #6881a5;
  font-size: 11px;
  line-height: 1.8;
  font-weight: 300;
}

.support {
  background: #f5f8fd;
}

.support-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 210px;
}

.support-left,
.support-right {
  padding: 32px 48px 28px;
}

.support-left {
  background: #081d3c;
  color: #fff;
}

.support-right {
  background: #fff;
  color: var(--text-strong);
}

.support-band h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.12px;
}

.support-band p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  font-weight: 300;
}

.support-left p {
  color: rgba(227, 236, 247, 0.78);
}

.support-right p {
  color: #7086a6;
}

.support-steps,
.support-items {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.support-steps {
  grid-template-columns: repeat(5, 1fr);
}

.support-items {
  grid-template-columns: repeat(4, 1fr);
}

.support-steps span,
.support-items span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 32px;
  font-size: 11px;
  font-weight: 600;
}

.support-steps span {
  color: #f6fbff;
  border-top: 1px solid rgba(121, 159, 212, 0.5);
  padding-top: 14px;
}

.support-items span {
  color: #5479a9;
}

.site-footer {
  position: relative;
  background: #071b38;
  color: #fff;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 24%, rgba(46, 126, 247, 0.1), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(46, 126, 247, 0.06), transparent 22%),
    linear-gradient(180deg, #071b38 0%, #06162f 100%);
  opacity: 0.98;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 284px 1fr 100px;
  gap: 28px;
  padding: 30px 0 22px;
}

.footer-brand img {
  width: 162px;
}

.footer-brand p {
  margin-top: 12px;
  color: rgba(220, 230, 245, 0.76);
  font-size: 12px;
  line-height: 1.78;
  font-weight: 300;
}

.footer-links {
  display: grid;
  grid-template-columns: 176px 148px minmax(300px, 1fr);
  gap: 18px;
}

.footer-links h3 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a,
.footer-links p {
  display: block;
  margin-bottom: 8px;
  color: rgba(233, 240, 252, 0.86);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 300;
  word-break: break-word;
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-qr img {
  width: 82px;
  border-radius: 4px;
}

.footer-qr span {
  color: rgba(233, 240, 252, 0.82);
  font-size: 12px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(120, 151, 194, 0.18);
  color: rgba(218, 227, 241, 0.66);
  font-size: 11px;
  font-weight: 300;
  text-align: center;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 88px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 0;
    background: rgba(6, 23, 47, 0.98);
    border: 1px solid rgba(123, 159, 214, 0.16);
  }

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

  .nav-menu a {
    line-height: 1;
    padding: 14px 20px;
  }

  .nav-menu a.is-active::after {
    display: none;
  }

  .nav-menu .nav-cta {
    margin: 10px 20px 0;
    text-align: center;
  }

  .hero-inner,
  .solution-grid,
  .ability-grid,
  .support-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-visual {
    height: auto;
  }

  .hero-screen,
  .hero-float {
    position: relative;
    inset: auto;
  }

  .hero-screen {
    width: 100%;
  }

  .hero-float-top {
    width: 160px;
    margin-left: auto;
    margin-top: -90px;
  }

  .hero-float-bottom {
    width: 140px;
    margin-top: -40px;
  }

  .hero-tags {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .hero-tags span {
    min-height: 52px;
    border-bottom: 1px solid rgba(90, 124, 175, 0.16);
  }

  .case-card,
  .case-card.reverse {
    grid-template-columns: 1fr;
  }

  .case-image {
    height: auto;
  }

  .support-steps,
  .support-items,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 72px;
  }

  .brand img {
    width: 142px;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .hero-copy h1 {
    font-size: 40px;
    letter-spacing: -0.4px;
  }

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

  .hero-copy p br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .intro,
  .cases,
  .ability {
    padding-top: 32px;
  }

  .intro h2,
  .cases h2,
  .ability h2,
  .support-band h2 {
    font-size: 28px;
  }

  .solution-card,
  .ability-card,
  .case-content,
  .support-left,
  .support-right {
    padding-left: 20px;
    padding-right: 20px;
  }
}
