:root {
  --primary: #4b5bff;
  --primary-2: #7f65ff;
  --bg: #f7f9ff;
  --text: #26314b;
  --muted: #6f7b95;
  --line: #e8ecf8;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(48, 72, 170, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
  scroll-behavior: smooth;
}

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(75, 91, 255, 0.08);
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 28px;
  font-weight: 900;
  color: #2f42d9;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 28px 16px;
  color: #3f4762;
  border-bottom: 4px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2f42d9;
  border-bottom-color: #4b5bff;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 88px;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 8% 12%, #8ce3ff2a 0, #8ce3ff00 34%),
    linear-gradient(125deg, #3248f7 0%, #4f61ff 38%, #7f65ff 100%);
}

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

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: #8ce3ff40;
  top: -110px;
  left: -90px;
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  background: #b0a6ff38;
  bottom: -120px;
  right: -100px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: var(--white);
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.9;
  color: #9de8ff;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
}

.hero-copy p {
  margin: 24px 0 36px;
  max-width: 680px;
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #8f01ff, #5f39ff);
  font-weight: 700;
}

.btn:hover {
  filter: brightness(1.08);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  isolation: isolate;
  perspective: 1100px;
  transform-style: preserve-3d;
  transition: transform .25s ease;
  will-change: transform;
}

.visual-card {
  position: absolute;
  right: 18px;
  top: 34px;
  width: min(500px, 100%);
  height: 340px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(164, 238, 255, 0.36) 0, rgba(164, 238, 255, 0) 34%),
    radial-gradient(circle at 82% 82%, rgba(154, 146, 255, 0.28) 0, rgba(154, 146, 255, 0) 42%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.13));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 30px 90px rgba(10, 15, 68, 0.32);
  backdrop-filter: blur(7px);
  overflow: hidden;
  transform: translateZ(64px);
  transition: transform .25s ease;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.75;
}

.visual-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0) 68%);
}

.visual-ring {
  position: absolute;
  right: 42px;
  top: -24px;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 20px solid rgba(255, 255, 255, 0.24);
  animation: floatY 7s ease-in-out infinite;
  transform: translateZ(126px);
  transition: transform .25s ease;
}

.visual-dot {
  position: absolute;
  left: -18px;
  bottom: 22px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c7f4ff, #88bdf7 72%);
  box-shadow: 0 12px 35px rgba(110, 220, 255, 0.35);
  animation: floatY 5.4s ease-in-out infinite reverse;
  transform: translateZ(172px);
  transition: transform .25s ease;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}

.hero-visual::before {
  width: 150px;
  height: 150px;
  right: -26px;
  bottom: -8px;
  background: radial-gradient(circle, rgba(170, 255, 255, 0.35) 0, rgba(170, 255, 255, 0) 68%);
  transform: translateZ(40px);
}

.hero-visual::after {
  width: 170px;
  height: 170px;
  left: 22px;
  top: 18px;
  background: radial-gradient(circle, rgba(180, 167, 255, 0.22) 0, rgba(180, 167, 255, 0) 72%);
  transform: translateZ(76px);
}

.hero-visual.is-tilting .visual-card {
  transform: translateZ(92px) translateX(calc(var(--mx, 0) * 16px)) translateY(calc(var(--my, 0) * 12px));
}

.hero-visual.is-tilting .visual-ring {
  transform: translateZ(170px) translateX(calc(var(--mx, 0) * 26px)) translateY(calc(var(--my, 0) * 18px));
}

.hero-visual.is-tilting .visual-dot {
  transform: translateZ(230px) translateX(calc(var(--mx, 0) * -22px)) translateY(calc(var(--my, 0) * -14px));
}

.hero-visual.is-tilting::before {
  transform: translateZ(72px) translateX(calc(var(--mx, 0) * -12px)) translateY(calc(var(--my, 0) * -9px));
}

.hero-visual.is-tilting::after {
  transform: translateZ(108px) translateX(calc(var(--mx, 0) * 14px)) translateY(calc(var(--my, 0) * 10px));
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .visual-card,
  .visual-ring,
  .visual-dot {
    transition: none;
    animation: none;
  }
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  min-height: 380px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 18% 18%, #a7f0ff7a 0, transparent 33%),
    radial-gradient(circle at 82% 78%, #8d90ff8a 0, transparent 38%),
    linear-gradient(135deg, #3753ff, #6c6af7 48%, #8b7df8 100%);
  overflow: hidden;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 8px,
      transparent 8px,
      transparent 24px
    );
}

.about-photo::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -18px;
  top: -28px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, 0.22);
  animation: floatY 7.5s ease-in-out infinite;
}

.about-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.35;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
}

.tag {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: #7586ff;
  font-weight: 700;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 42px);
}

.section-title p {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 32px);
  color: #c3c8dc;
  letter-spacing: 1px;
}

.services {
  background: linear-gradient(180deg, #f8faff 0%, #f2f6ff 100%);
}

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

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  min-height: 250px;
  box-shadow: 0 8px 30px rgba(18, 34, 104, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(18, 34, 104, 0.13);
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.service-card p {
  margin: 0;
  color: #7c839b;
  line-height: 1.75;
}

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

.logo-grid span {
  display: grid;
  place-items: center;
  height: 110px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(30, 50, 120, 0.08);
  color: #8a93af;
  font-weight: 700;
  font-size: 18px;
}

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

.stats div {
  text-align: center;
}

.stats strong {
  display: block;
  font-size: clamp(34px, 4vw, 58px);
  color: #2f42d9;
}

.stats p {
  margin: 8px 0 0;
  color: #7d869f;
}

.reviews {
  background: linear-gradient(110deg, #6179ff, #8f67ff);
}

.section-title.on-dark h2 {
  color: #fff;
}

.section-title.on-dark p {
  color: rgba(255, 255, 255, 0.36);
}

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

.review-card {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  min-height: 220px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(20, 23, 90, 0.2);
}

.review-card p {
  margin: 0;
  line-height: 1.85;
  color: #636c86;
}

.review-card cite {
  display: block;
  margin-top: 22px;
  font-size: 20px;
  color: #1f3cf0;
  font-style: normal;
  font-weight: 700;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.contact-inner h2 {
  margin: 8px 0 12px;
  font-size: 38px;
}

.contact-inner p {
  margin: 0;
  color: #6d7894;
  line-height: 1.8;
}

.contact-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  align-content: center;
}

.contact-inner li {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f4f7ff;
  color: #4d5776;
}

.footer {
  background: #303fc9;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer p,
.footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  font-size: 14px;
}

.footer div {
  display: flex;
  gap: 16px;
}

.backtop {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 100;
  border: 0;
  border-radius: 100px;
  padding: 10px 14px;
  background: #2f42d9;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(22, 34, 108, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
}

.backtop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .24s;
}

.delay-3 {
  transition-delay: .36s;
}

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

@media (max-width: 980px) {
  .topbar-inner {
    min-height: 72px;
  }

  .brand {
    font-size: 22px;
  }

  .nav {
    display: none;
  }

  .hero {
    margin-top: 72px;
    min-height: auto;
  }

  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .about-copy p {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-card {
    right: 0;
    top: 0;
    height: 230px;
    border-radius: 24px;
  }

  .visual-ring {
    width: 130px;
    border-width: 14px;
    top: -16px;
    right: 20px;
  }

  .visual-dot {
    width: 84px;
    height: 84px;
    left: -8px;
    bottom: 8px;
  }

  .about-photo {
    min-height: 300px;
  }

  .service-grid,
  .logo-grid,
  .stats,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1200px, calc(100% - 28px));
  }

  .service-grid,
  .logo-grid,
  .stats,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    font-size: 56px;
  }

  .hero-copy h1,
  .about-copy h2,
  .contact-inner h2 {
    font-size: 28px;
  }

  .contact-inner {
    padding: 24px;
  }

  .footer p,
  .footer a {
    font-size: 12px;
  }
}
