#section-1.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: block;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 72% 30%, rgba(47,102,255,.16), transparent 34%),
    linear-gradient(135deg, #FFFFFF 0%, #F6F8FB 52%, #EAF1FF 100%);
}

.hero-bg,
.hero-bg-mask,
.hero-video {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 42%, rgba(47,102,255,.2), transparent 36%),
    linear-gradient(135deg, #FFFFFF 0%, #F4F7FC 48%, #E9F0FF 100%);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 50%;
  opacity: 0;
  transition: opacity .8s var(--ease);
}

.hero-video.is-active {
  opacity: 1;
}

.hero-bg-mask {
  z-index: 2;
  background: linear-gradient(90deg, rgba(246,248,251,.82) 0%, rgba(246,248,251,.58) 34%, rgba(246,248,251,.16) 54%, transparent 74%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: min(clamp(520px, 46vw, 920px), calc(100% - clamp(40px, 6vw, 120px)));
  padding-left: clamp(40px, 6vw, 120px);
  transform: translateY(-50%);
}

.hero-titles {
  position: relative;
  min-height: clamp(92px, 10.8vw, 230px);
}

.hero-section .hero-title {
  position: absolute;
  inset: 0 auto auto 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 4.5vw, 96px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(clamp(12px, 1vw, 22px));
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.hero-section .hero-title.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-line {
  display: inline;
  white-space: nowrap;
}

.hero-accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(clamp(16px, 1.05vw, 20px)) rotate(-2deg);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.hero-letter:nth-child(even) {
  transform: translateY(clamp(16px, 1.05vw, 20px)) rotate(2deg);
}

.hero-title.is-active .hero-letter {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-title.is-active .hero-letter:nth-child(1) { transition-delay: .05s; }
.hero-title.is-active .hero-letter:nth-child(2) { transition-delay: .08s; }
.hero-title.is-active .hero-letter:nth-child(3) { transition-delay: .11s; }
.hero-title.is-active .hero-letter:nth-child(4) { transition-delay: .14s; }
.hero-title.is-active .hero-letter:nth-child(5) { transition-delay: .17s; }
.hero-title.is-active .hero-letter:nth-child(6) { transition-delay: .2s; }
.hero-title.is-active .hero-letter:nth-child(7) { transition-delay: .23s; }
.hero-title.is-active .hero-letter:nth-child(8) { transition-delay: .26s; }
.hero-title.is-active .hero-letter:nth-child(9) { transition-delay: .29s; }
.hero-title.is-active .hero-letter:nth-child(10) { transition-delay: .32s; }
.hero-title.is-active .hero-letter:nth-child(11) { transition-delay: .35s; }
.hero-title.is-active .hero-letter:nth-child(12) { transition-delay: .38s; }
.hero-title.is-active .hero-letter:nth-child(13) { transition-delay: .41s; }
.hero-title.is-active .hero-letter:nth-child(14) { transition-delay: .44s; }
.hero-title.is-active .hero-letter:nth-child(15) { transition-delay: .47s; }
.hero-title.is-active .hero-letter:nth-child(16) { transition-delay: .5s; }
.hero-title.is-active .hero-letter:nth-child(17) { transition-delay: .53s; }
.hero-title.is-active .hero-letter:nth-child(18) { transition-delay: .56s; }

.hero-section .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(12px, 1vw, 18px);
  margin-top: clamp(36px, 3.5vw, 64px);
}

.hero-section .tec-cta {
  min-width: clamp(118px, 7.2vw, 160px);
  height: clamp(48px, 3.4vw, 64px);
  padding: 0 clamp(24px, 2vw, 40px);
  border: none;
  background: rgba(255,255,255,.5);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(10,20,40,.08), inset 0 1px 0 rgba(255,255,255,.72);
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 500;
}

.hero-section .tec-cta .cta-mask {
  background: #FFFFFF;
}

@media (hover: hover) {
  .hero-section .tec-cta:hover .cta-text {
    color: var(--text);
  }
}

.hero-actions .tec-cta .cta-mask,
.hero-sp-cta .cta-mask {
  background: #0A1428;
}

.hero-actions .tec-cta:active .cta-mask,
.hero-sp-cta:active .cta-mask {
  transform: translateX(0);
}

@media (hover: hover) {
  .hero-actions .tec-cta:hover .cta-text,
  .hero-sp-cta:hover .cta-text {
    color: #FFFFFF;
  }
}

.hero-actions .tec-cta:active .cta-text,
.hero-sp-cta:active .cta-text {
  color: #FFFFFF;
}

.hero-footer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(40px, 5vw, 88px);
  width: min(calc(100% - clamp(40px, 6vw, 120px)), clamp(720px, 48vw, 1040px));
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.hero-tabs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.08vw, 56px);
  margin: 0;
  padding: 0;
}

.hero-tab {
  position: relative;
  overflow: hidden;
  min-height: clamp(48px, 3vw, 64px);
  padding: 0 clamp(28px, 2.08vw, 48px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.5);
  box-shadow: 0 14px 34px rgba(10,20,40,.08), inset 0 1px 0 rgba(255,255,255,.72);
  line-height: 1;
  cursor: pointer;
  transform: translateZ(0);
  transition: background-color .3s var(--ease);
}

.hero-tab-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: #FFFFFF;
  pointer-events: none;
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
}

.hero-tab.is-active .hero-tab-bg,
.hero-tab-bg.is-active {
  transform: translateX(0);
}

.hero-tab-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  color: rgba(10,20,40,.45);
  font-size: clamp(16px, 1.15vw, 26px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .35s var(--ease);
}

.hero-tab-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  line-height: 1;
  letter-spacing: inherit;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: clip-path .55s var(--ease) .1s;
}

.hero-tab.is-active .hero-tab-text::after,
.hero-tab-text.is-active::after {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 1023px) {
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;
  }

  .hero-video[poster] {
    object-position: 100% 50%;
  }

  .hero-content {
    width: min(clamp(420px, 62vw, 720px), calc(100% - clamp(28px, 5vw, 72px)));
    padding-left: clamp(28px, 5vw, 72px);
  }

  .hero-section .tec-cta {
    min-width: clamp(110px, 12vw, 142px);
    height: clamp(44px, 4.2vw, 56px);
    padding: 0 clamp(20px, 2.4vw, 30px);
  }

  .hero-footer {
    width: min(calc(100% - clamp(28px, 5vw, 72px)), clamp(640px, 74vw, 860px));
  }
}

@media (max-width: 767px) {
  #section-1.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-bg-mask {
    background: linear-gradient(180deg, rgba(246,248,251,.78) 0%, rgba(246,248,251,.34) 48%, rgba(246,248,251,.48) 100%);
  }

  .hero-content {
    top: 48%;
    width: calc(100% - clamp(36px, 10vw, 56px));
    padding-left: clamp(18px, 5vw, 28px);
  }

  .hero-titles {
    min-height: clamp(96px, 27vw, 138px);
  }

  .hero-section .hero-title {
    font-size: clamp(36px, 10.4vw, 48px);
  }

  .hero-section .hero-actions {
    display: grid;
    gap: clamp(10px, 3vw, 14px);
    width: min(100%, clamp(220px, 72vw, 340px));
    margin-top: clamp(30px, 8vw, 42px);
  }

  .hero-section .tec-cta {
    width: 100%;
    min-width: 0;
  }

  .hero-footer {
    bottom: clamp(22px, 7vw, 34px);
    width: calc(100% - clamp(28px, 8vw, 44px));
    gap: 0;
  }

  .hero-tabs {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    overflow-x: visible;
    scrollbar-width: none;
  }

  .hero-tabs::-webkit-scrollbar {
    display: none;
  }

  .hero-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: clamp(36px, 9vw, 44px);
    padding: 0 clamp(8px, 2vw, 14px);
  }

  .hero-tab-text {
    font-size: clamp(11px, 3.2vw, 14px);
  }
}

@media (max-width: 479px) {
  .hero-video {
    transform: scale(1.08);
    transform-origin: 100% 50%;
  }
}

@media (max-width: 359px) {
  .hero-tabs {
    gap: clamp(6px, 1.8vw, 8px);
  }

  .hero-tab {
    padding: 0 clamp(6px, 1.8vw, 8px);
  }

  .hero-tab-text {
    font-size: clamp(10px, 3vw, 12px);
  }
}
